survey-gizmo-ruby 0.7.0 → 0.7.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (5) hide show
  1. data/Gemfile +2 -2
  2. data/Gemfile.lock +11 -11
  3. data/VERSION +1 -1
  4. data/lib/survey_gizmo/resource.rb +4 -4
  5. metadata +21 -21
data/Gemfile CHANGED
@@ -8,13 +8,13 @@ gem 'httparty'
8
8
  group :development do
9
9
  gem 'bluecloth', :require => nil
10
10
  gem "yard", "~> 0.7.0"
11
- gem "bundler", "~> 1.0.0"
11
+ gem "bundler", "~> 1.0"
12
12
  gem "jeweler", "~> 1.6.4"
13
13
  end
14
14
 
15
15
  group :test do
16
16
  gem "webmock", :require => 'webmock/rspec'
17
- gem "rspec", "~> 2.3.0"
17
+ gem "rspec", "~> 2.11.0"
18
18
  gem 'net-http-spy', :require => nil
19
19
  gem 'awesome_print', :require => nil
20
20
  end
data/Gemfile.lock CHANGED
@@ -21,17 +21,17 @@ GEM
21
21
  multi_xml (0.4.1)
22
22
  net-http-spy (0.2.1)
23
23
  rake (0.9.2.2)
24
- rspec (2.3.0)
25
- rspec-core (~> 2.3.0)
26
- rspec-expectations (~> 2.3.0)
27
- rspec-mocks (~> 2.3.0)
28
- rspec-core (2.3.1)
29
- rspec-expectations (2.3.0)
30
- diff-lcs (~> 1.1.2)
31
- rspec-mocks (2.3.0)
24
+ rspec (2.11.0)
25
+ rspec-core (~> 2.11.0)
26
+ rspec-expectations (~> 2.11.0)
27
+ rspec-mocks (~> 2.11.0)
28
+ rspec-core (2.11.1)
29
+ rspec-expectations (2.11.2)
30
+ diff-lcs (~> 1.1.3)
31
+ rspec-mocks (2.11.2)
32
32
  virtus (0.0.10)
33
33
  webmock (1.7.8)
34
- addressable (> 2.2.5, ~> 2.2)
34
+ addressable (~> 2.2, > 2.2.5)
35
35
  crack (>= 0.1.7)
36
36
  yard (0.7.4)
37
37
 
@@ -42,12 +42,12 @@ DEPENDENCIES
42
42
  activesupport (>= 3.0.1)
43
43
  awesome_print
44
44
  bluecloth
45
- bundler (~> 1.0.0)
45
+ bundler (~> 1.0)
46
46
  httparty
47
47
  i18n
48
48
  jeweler (~> 1.6.4)
49
49
  net-http-spy
50
- rspec (~> 2.3.0)
50
+ rspec (~> 2.11.0)
51
51
  virtus (~> 0.0.5)
52
52
  webmock
53
53
  yard (~> 0.7.0)
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.7.0
1
+ 0.7.1
@@ -137,7 +137,7 @@ module SurveyGizmo
137
137
  if new?
138
138
  _create
139
139
  else
140
- handle_response SurveyGizmo.post(handle_route(:update), :query => self.attributes_without_blanks), do
140
+ handle_response SurveyGizmo.post(handle_route(:update), :query => self.attributes_without_blanks) do
141
141
  _response.ok? ? saved! : false
142
142
  end
143
143
  end
@@ -147,7 +147,7 @@ module SurveyGizmo
147
147
  # @return [self, false]
148
148
  # Returns the object, if saved. Otherwise returns false.
149
149
  def reload
150
- handle_response SurveyGizmo.get(handle_route(:get)), do
150
+ handle_response SurveyGizmo.get(handle_route(:get)) do
151
151
  if _response.ok?
152
152
  self.attributes = _response.data
153
153
  clean!
@@ -161,7 +161,7 @@ module SurveyGizmo
161
161
  # @return [Boolean]
162
162
  def destroy
163
163
  return false if new? || destroyed?
164
- handle_response SurveyGizmo.delete(handle_route(:delete)), do
164
+ handle_response SurveyGizmo.delete(handle_route(:delete)) do
165
165
  _response.ok? ? destroyed! : false
166
166
  end
167
167
  end
@@ -264,7 +264,7 @@ module SurveyGizmo
264
264
 
265
265
  def _create(attributes = {})
266
266
  http = SurveyGizmo.put(handle_route(:create), :query => self.attributes_without_blanks)
267
- handle_response http, do
267
+ handle_response http do
268
268
  if _response.ok?
269
269
  self.attributes = _response.data
270
270
  saved!
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: survey-gizmo-ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.0
4
+ version: 0.7.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-03-02 00:00:00.000000000Z
12
+ date: 2012-08-22 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: activesupport
16
- requirement: &70321870190520 !ruby/object:Gem::Requirement
16
+ requirement: &70264289751960 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: 3.0.1
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *70321870190520
24
+ version_requirements: *70264289751960
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: i18n
27
- requirement: &70321870172640 !ruby/object:Gem::Requirement
27
+ requirement: &70264289751200 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ! '>='
@@ -32,10 +32,10 @@ dependencies:
32
32
  version: '0'
33
33
  type: :runtime
34
34
  prerelease: false
35
- version_requirements: *70321870172640
35
+ version_requirements: *70264289751200
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: virtus
38
- requirement: &70321870170640 !ruby/object:Gem::Requirement
38
+ requirement: &70264289750360 !ruby/object:Gem::Requirement
39
39
  none: false
40
40
  requirements:
41
41
  - - ~>
@@ -43,10 +43,10 @@ dependencies:
43
43
  version: 0.0.5
44
44
  type: :runtime
45
45
  prerelease: false
46
- version_requirements: *70321870170640
46
+ version_requirements: *70264289750360
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: httparty
49
- requirement: &70321870169380 !ruby/object:Gem::Requirement
49
+ requirement: &70264289749540 !ruby/object:Gem::Requirement
50
50
  none: false
51
51
  requirements:
52
52
  - - ! '>='
@@ -54,10 +54,10 @@ dependencies:
54
54
  version: '0'
55
55
  type: :runtime
56
56
  prerelease: false
57
- version_requirements: *70321870169380
57
+ version_requirements: *70264289749540
58
58
  - !ruby/object:Gem::Dependency
59
59
  name: bluecloth
60
- requirement: &70321870167280 !ruby/object:Gem::Requirement
60
+ requirement: &70264289725700 !ruby/object:Gem::Requirement
61
61
  none: false
62
62
  requirements:
63
63
  - - ! '>='
@@ -65,10 +65,10 @@ dependencies:
65
65
  version: '0'
66
66
  type: :development
67
67
  prerelease: false
68
- version_requirements: *70321870167280
68
+ version_requirements: *70264289725700
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: yard
71
- requirement: &70321870160460 !ruby/object:Gem::Requirement
71
+ requirement: &70264289724740 !ruby/object:Gem::Requirement
72
72
  none: false
73
73
  requirements:
74
74
  - - ~>
@@ -76,21 +76,21 @@ dependencies:
76
76
  version: 0.7.0
77
77
  type: :development
78
78
  prerelease: false
79
- version_requirements: *70321870160460
79
+ version_requirements: *70264289724740
80
80
  - !ruby/object:Gem::Dependency
81
81
  name: bundler
82
- requirement: &70321870158060 !ruby/object:Gem::Requirement
82
+ requirement: &70264289724080 !ruby/object:Gem::Requirement
83
83
  none: false
84
84
  requirements:
85
85
  - - ~>
86
86
  - !ruby/object:Gem::Version
87
- version: 1.0.0
87
+ version: '1.0'
88
88
  type: :development
89
89
  prerelease: false
90
- version_requirements: *70321870158060
90
+ version_requirements: *70264289724080
91
91
  - !ruby/object:Gem::Dependency
92
92
  name: jeweler
93
- requirement: &70321870156640 !ruby/object:Gem::Requirement
93
+ requirement: &70264289723040 !ruby/object:Gem::Requirement
94
94
  none: false
95
95
  requirements:
96
96
  - - ~>
@@ -98,7 +98,7 @@ dependencies:
98
98
  version: 1.6.4
99
99
  type: :development
100
100
  prerelease: false
101
- version_requirements: *70321870156640
101
+ version_requirements: *70264289723040
102
102
  description: ''
103
103
  email: self@ripthejacker.com
104
104
  executables: []
@@ -148,7 +148,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
148
148
  version: '0'
149
149
  segments:
150
150
  - 0
151
- hash: 746384856005912275
151
+ hash: -1188549938639229754
152
152
  required_rubygems_version: !ruby/object:Gem::Requirement
153
153
  none: false
154
154
  requirements:
@@ -157,7 +157,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
157
157
  version: '0'
158
158
  requirements: []
159
159
  rubyforge_project:
160
- rubygems_version: 1.8.8
160
+ rubygems_version: 1.8.10
161
161
  signing_key:
162
162
  specification_version: 3
163
163
  summary: gem to consume the Survey Gizmo API