resizor 0.0.4 → 0.0.5
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/resizor/asset.rb +1 -1
- data/lib/resizor/version.rb +1 -1
- data/resizor.gemspec +1 -1
- metadata +3 -9
data/lib/resizor/asset.rb
CHANGED
@@ -18,7 +18,7 @@ module Resizor
|
|
18
18
|
|
19
19
|
def save_to_resizor
|
20
20
|
if path && File.exists?(path)
|
21
|
-
ret = Resizor.post('/assets.json', :file => File.open(path))
|
21
|
+
ret = Resizor.post('/assets.json', :file => File.open(path, 'rb'))
|
22
22
|
if ret.code == 201
|
23
23
|
@id = ret.body['asset']['id']
|
24
24
|
@name = "#{ret.body['asset']['name']}.#{ret.body['asset']['extension']}"
|
data/lib/resizor/version.rb
CHANGED
data/resizor.gemspec
CHANGED
@@ -15,7 +15,7 @@ Gem::Specification.new do |s|
|
|
15
15
|
|
16
16
|
s.add_development_dependency "bundler", ">= 1.0.0"
|
17
17
|
|
18
|
-
s.add_dependency(%q<rest-client>, ["
|
18
|
+
s.add_dependency(%q<rest-client>, [">= 1.4.2"])
|
19
19
|
s.add_dependency(%q<json>, [">= 1.2"])
|
20
20
|
|
21
21
|
s.files = `git ls-files`.split("\n")
|
metadata
CHANGED
@@ -1,13 +1,12 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: resizor
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash: 23
|
5
4
|
prerelease: false
|
6
5
|
segments:
|
7
6
|
- 0
|
8
7
|
- 0
|
9
|
-
-
|
10
|
-
version: 0.0.
|
8
|
+
- 5
|
9
|
+
version: 0.0.5
|
11
10
|
platform: ruby
|
12
11
|
authors:
|
13
12
|
- Winston Design
|
@@ -26,7 +25,6 @@ dependencies:
|
|
26
25
|
requirements:
|
27
26
|
- - ">="
|
28
27
|
- !ruby/object:Gem::Version
|
29
|
-
hash: 23
|
30
28
|
segments:
|
31
29
|
- 1
|
32
30
|
- 0
|
@@ -40,9 +38,8 @@ dependencies:
|
|
40
38
|
requirement: &id002 !ruby/object:Gem::Requirement
|
41
39
|
none: false
|
42
40
|
requirements:
|
43
|
-
- -
|
41
|
+
- - ">="
|
44
42
|
- !ruby/object:Gem::Version
|
45
|
-
hash: 3
|
46
43
|
segments:
|
47
44
|
- 1
|
48
45
|
- 4
|
@@ -58,7 +55,6 @@ dependencies:
|
|
58
55
|
requirements:
|
59
56
|
- - ">="
|
60
57
|
- !ruby/object:Gem::Version
|
61
|
-
hash: 11
|
62
58
|
segments:
|
63
59
|
- 1
|
64
60
|
- 2
|
@@ -108,7 +104,6 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
108
104
|
requirements:
|
109
105
|
- - ">="
|
110
106
|
- !ruby/object:Gem::Version
|
111
|
-
hash: 3
|
112
107
|
segments:
|
113
108
|
- 0
|
114
109
|
version: "0"
|
@@ -117,7 +112,6 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
117
112
|
requirements:
|
118
113
|
- - ">="
|
119
114
|
- !ruby/object:Gem::Version
|
120
|
-
hash: 23
|
121
115
|
segments:
|
122
116
|
- 1
|
123
117
|
- 3
|