resizor 0.0.7 → 0.0.8
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/resizor/connection.rb +1 -1
- data/lib/resizor/version.rb +1 -1
- data/resizor.gemspec +1 -0
- metadata +17 -6
data/lib/resizor/connection.rb
CHANGED
@@ -65,7 +65,7 @@ module Resizor
|
|
65
65
|
def initialize(_code, _body, _format = 'json')
|
66
66
|
@code = _code
|
67
67
|
@format = _format
|
68
|
-
@body = if @format == 'json'
|
68
|
+
@body = if @format == 'json' && _body != ''
|
69
69
|
if defined?(ActiveSupport::JSON)
|
70
70
|
ActiveSupport::JSON.decode(_body)
|
71
71
|
else
|
data/lib/resizor/version.rb
CHANGED
data/resizor.gemspec
CHANGED
@@ -16,6 +16,7 @@ Gem::Specification.new do |s|
|
|
16
16
|
s.add_development_dependency "bundler", ">= 1.0.0"
|
17
17
|
s.add_development_dependency "shoulda", ">= 2.11.3"
|
18
18
|
s.add_development_dependency "webmock", ">= 1.6.2"
|
19
|
+
s.add_development_dependency 'activerecord', '~>3.0.0'
|
19
20
|
|
20
21
|
s.add_dependency(%q<rest-client>, [">= 1.4.2"])
|
21
22
|
s.add_dependency(%q<json>, [">= 1.2"])
|
metadata
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
name: resizor
|
3
3
|
version: !ruby/object:Gem::Version
|
4
4
|
prerelease:
|
5
|
-
version: 0.0.
|
5
|
+
version: 0.0.8
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- Winston Design
|
@@ -10,7 +10,7 @@ autorequire:
|
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
12
|
|
13
|
-
date: 2011-
|
13
|
+
date: 2011-06-15 00:00:00 +02:00
|
14
14
|
default_executable:
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
@@ -47,27 +47,38 @@ dependencies:
|
|
47
47
|
type: :development
|
48
48
|
version_requirements: *id003
|
49
49
|
- !ruby/object:Gem::Dependency
|
50
|
-
name:
|
50
|
+
name: activerecord
|
51
51
|
prerelease: false
|
52
52
|
requirement: &id004 !ruby/object:Gem::Requirement
|
53
|
+
none: false
|
54
|
+
requirements:
|
55
|
+
- - ~>
|
56
|
+
- !ruby/object:Gem::Version
|
57
|
+
version: 3.0.0
|
58
|
+
type: :development
|
59
|
+
version_requirements: *id004
|
60
|
+
- !ruby/object:Gem::Dependency
|
61
|
+
name: rest-client
|
62
|
+
prerelease: false
|
63
|
+
requirement: &id005 !ruby/object:Gem::Requirement
|
53
64
|
none: false
|
54
65
|
requirements:
|
55
66
|
- - ">="
|
56
67
|
- !ruby/object:Gem::Version
|
57
68
|
version: 1.4.2
|
58
69
|
type: :runtime
|
59
|
-
version_requirements: *
|
70
|
+
version_requirements: *id005
|
60
71
|
- !ruby/object:Gem::Dependency
|
61
72
|
name: json
|
62
73
|
prerelease: false
|
63
|
-
requirement: &
|
74
|
+
requirement: &id006 !ruby/object:Gem::Requirement
|
64
75
|
none: false
|
65
76
|
requirements:
|
66
77
|
- - ">="
|
67
78
|
- !ruby/object:Gem::Version
|
68
79
|
version: "1.2"
|
69
80
|
type: :runtime
|
70
|
-
version_requirements: *
|
81
|
+
version_requirements: *id006
|
71
82
|
description: Lets you easily interface with Resizor.com's REST API. Includes Rails helpers.
|
72
83
|
email:
|
73
84
|
- hello@resizor.com
|