paperclip-imgur 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +2 -2
- data/lib/paperclip/storage/imgur.rb +1 -1
- data/paperclip-imgur.gemspec +2 -2
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c8c575a6ffa5a32f1067c7b7c0794e271fdf745b
|
4
|
+
data.tar.gz: b814a0fe6cd45104444b7388beea1de45fdfdb3e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
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
|
-
|
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
|
```
|
data/paperclip-imgur.gemspec
CHANGED
@@ -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.
|
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.
|
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.
|
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-
|
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.
|
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.
|
26
|
+
version: 2.0.2
|
27
27
|
description: Extends Paperclip with Imgur storage
|
28
28
|
email:
|
29
29
|
executables: []
|