Skip to content
This repository has been archived by the owner on Nov 8, 2023. It is now read-only.

Commit

Permalink
Add Laravel 5.1 support and drop PHP 5.4 support
Browse files Browse the repository at this point in the history
  • Loading branch information
vinkla committed May 8, 2015
1 parent 070ea73 commit fe06f5e
Show file tree
Hide file tree
Showing 9 changed files with 32 additions and 18 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
language: php

php:
- 5.4
- 5.5.9
- 5.5
- 5.6
- 7.0
Expand Down
18 changes: 18 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# CHANGELOG

## 2.1.0 (released 2015-05-08)

- Support both Laravel 5.0 and 5.1
- Dropped PHP 5.4 support

## 2.0.0 (released 2015-02-03)

- Laravel 5.0 release

## 1.0.1 (released 2015-01-11)

- Fix bug in `__construct` method

## 1.0.0 (released 2014-11-27)

- First stable release with Larvel 4 support
3 changes: 1 addition & 2 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
CONTRIBUTING
============
# CONTRIBUTING

Contributions are welcome, and are accepted via pull requests. Please review these guidelines before submitting any pull requests.

Expand Down
10 changes: 5 additions & 5 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,14 @@
}
],
"require": {
"php": ">=5.4.7",
"illuminate/contracts": "5.0.*",
"illuminate/support": "5.0.*",
"graham-campbell/manager": "~2.0",
"php": ">=5.5.9",
"illuminate/contracts": "5.0.*|5.1.*",
"illuminate/support": "5.0.*|5.1.*",
"graham-campbell/manager": "~2.1",
"cosenary/instagram": "~2.0"
},
"require-dev": {
"graham-campbell/testbench": "~2.0"
"graham-campbell/testbench": "~2.1"
},
"autoload": {
"psr-4": {
Expand Down
6 changes: 3 additions & 3 deletions config/instagram.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,15 +40,15 @@
'main' => [
'client_id' => 'your-client-id',
'client_secret' => null,
'callback_url' => null
'callback_url' => null,
],

'alternative' => [
'client_id' => 'your-client-id',
'client_secret' => null,
'callback_url' => null
'callback_url' => null,
],

]
],

];
3 changes: 0 additions & 3 deletions phpunit.xml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,6 @@
<filter>
<whitelist processUncoveredFilesFromWhitelist="true">
<directory suffix=".php">./src</directory>
<exclude>
<directory>./src/config</directory>
</exclude>
</whitelist>
</filter>
</phpunit>
2 changes: 1 addition & 1 deletion src/Factories/InstagramFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ protected function getClient(array $auth)
return new Instagram([
'apiKey' => $auth['client_id'],
'apiSecret' => $auth['client_secret'],
'apiCallback' => $auth['callback_url']
'apiCallback' => $auth['callback_url'],
]);
}

Expand Down
2 changes: 1 addition & 1 deletion src/InstagramServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ public function provides()
{
return [
'instagram',
'instagram.factory'
'instagram.factory',
];
}
}
4 changes: 2 additions & 2 deletions tests/Factories/InstagramFactoryTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public function testMakeStandard()
$return = $factory->make([
'client_id' => 'your-client-id',
'client_secret' => null,
'callback_url' => null
'callback_url' => null,
]);

$this->assertInstanceOf('MetzWeb\Instagram\Instagram', $return);
Expand All @@ -43,7 +43,7 @@ public function testMakeWithoutClientId()

$factory->make([
'client_secret' => null,
'callback_url' => null
'callback_url' => null,
]);
}

Expand Down

0 comments on commit fe06f5e

Please sign in to comment.