paperclip-imgur 0.1.0 → 0.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 55e4fc058747f3de3d7d5f3ac1c60eb5e50d08ab
4
- data.tar.gz: 51760bd9e810ba8a9e5f14aa4722aebd2652f9b3
3
+ metadata.gz: c8c575a6ffa5a32f1067c7b7c0794e271fdf745b
4
+ data.tar.gz: b814a0fe6cd45104444b7388beea1de45fdfdb3e
5
5
  SHA512:
6
- metadata.gz: bcfe5c84a4bc6835b28618795d8b7420d0194006bbb5666f9acf6cb41e3b24deb46c694d5b6beba4767b9b918e628c9b19b01e8c6c29c306f434526a0d8fa24c
7
- data.tar.gz: 08ec4452008de121fe831a32e1e82b1ec4f03ba155acda02e3210e90c71d62da486f935bbb66411af1a041e3e11b82767102debf6039651727472de6996851b6
6
+ metadata.gz: 45af981e2c2652ac7e12abeda03b7fe4ce4c4624eb69585f3b066fcec6e3cbbf3fc7e9d9ef2cbc4d21696851597a399bb340a7c7b35fd7430ead51e197471056
7
+ data.tar.gz: 17abb68607dd4099b179d3d32940ad3ca8bf057e4524d2082d5eafd7b7f27130ee441459b060636cf9738e3ec9bb32e835d1f300ee7d698cbf29ab58d07f6f69
data/README.md CHANGED
@@ -44,11 +44,11 @@ You can also specify the credentials per model attribute, using a hash:
44
44
  ```ruby
45
45
  has_attached_file :avatar, storage: :imgur, imgur_credentials: {client_id: 'CLIENT_ID', client_secret: 'CLIENT_SECRET', refresh_token: 'REFRESH_TOKEN'}
46
46
  ```
47
- ...or path to a YAML file
47
+ or path to a YAML file
48
48
  ```ruby
49
49
  has_attached_file :avatar, storage: :imgur, imgur_credentials: 'path.to/file.yml'
50
50
  ```
51
- ...or a File itself
51
+ or a File itself
52
52
  ```ruby
53
53
  has_attached_file :avatar, storage: :imgur, imgur_credentials: File.open('path.to/file.yml', 'r')
54
54
  ```
@@ -83,7 +83,7 @@ module Paperclip
83
83
  private
84
84
 
85
85
  def imgur_session
86
- @imgur_session ||= ::Imgur::Session.new(@imgur_credentials)
86
+ @imgur_session ||= ::Imgur::Session.instance(@imgur_credentials)
87
87
  end
88
88
 
89
89
  def parse_credentials(credentials = nil)
@@ -4,7 +4,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
4
 
5
5
  Gem::Specification.new do |gem|
6
6
  gem.name = 'paperclip-imgur'
7
- gem.version = '0.1.0'
7
+ gem.version = '0.1.1'
8
8
  gem.authors = ['Daniel Cruz Horts']
9
9
  gem.description = %q{Extends Paperclip with Imgur storage}
10
10
  gem.summary = gem.description
@@ -16,5 +16,5 @@ Gem::Specification.new do |gem|
16
16
  gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
17
17
  gem.require_paths = ['lib']
18
18
 
19
- gem.add_dependency 'imgurapi', '~> 2.0.1'
19
+ gem.add_dependency 'imgurapi', '~> 2.0.2'
20
20
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: paperclip-imgur
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Daniel Cruz Horts
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-07-05 00:00:00.000000000 Z
11
+ date: 2015-07-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: imgurapi
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: 2.0.1
19
+ version: 2.0.2
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: 2.0.1
26
+ version: 2.0.2
27
27
  description: Extends Paperclip with Imgur storage
28
28
  email:
29
29
  executables: []