restpack_activity_service 0.0.8 → 0.0.9

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 1a9ef553a4b75b0c6ea3b7536c6703f07057bbbe
4
- data.tar.gz: 85107e44af5897c64f3e7913e5d7178614e97646
3
+ metadata.gz: c809084f7c16056814ca9844c45a2ed0a599fae5
4
+ data.tar.gz: 0f2cdace64ef48754e0d709eedba8e5762f7a8ba
5
5
  SHA512:
6
- metadata.gz: f5a6d6f3d0a25d456a584a556101d24d6d6931889db83dbe47a0138c90d5e3068a0e51878ab38a4439b7c22e65db89ca52abe312fe58748a7f4f87002d58a341
7
- data.tar.gz: bb5b335bacdebf4ca65d5d693ee5d150a7016fae04c8a2ca0f4609280adcdc4dafa208d5d194ae8663b2d9e8136b19a3b3bee02f939df29ad998eb221d288a35
6
+ metadata.gz: ce6f7ec0aad87e39ca461e991355bd1b44f4e399de477bb65bdeff928b68ac15c92e85a64af26e5be1cf5964e21957fde57db3d7fe86b49eb4a49aeeeb2374e0
7
+ data.tar.gz: adde67ef868d86e67febaa57d31b86625d5ac8612ea77ae9013485bb8b91d85ce2160ec03bb15f0bf2e3949e5d12b4092bfcd2040736544affd4ff5ce5dc1e08
@@ -1,7 +1,7 @@
1
1
  module RestPack
2
2
  module Activity
3
3
  module Service
4
- VERSION = "0.0.8"
4
+ VERSION = "0.0.9"
5
5
  end
6
6
  end
7
7
  end
@@ -18,9 +18,9 @@ Gem::Specification.new do |spec|
18
18
  spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
19
19
  spec.require_paths = ["lib"]
20
20
 
21
- spec.add_dependency "restpack_service", "~> 0.0.27"
22
- spec.add_dependency "restpack_serializer", "~> 0.4.1"
23
- spec.add_dependency "restpack_gem", "~> 0.0.9"
21
+ spec.add_dependency "restpack_service"
22
+ spec.add_dependency "restpack_serializer"
23
+ spec.add_dependency "restpack_gem"
24
24
  spec.add_dependency "sinatra", "~> 1.4.3"
25
25
  spec.add_dependency "pg", "~> 0.16"
26
26
 
@@ -29,4 +29,6 @@ Gem::Specification.new do |spec|
29
29
  spec.add_development_dependency "rake"
30
30
  spec.add_development_dependency "rspec"
31
31
  spec.add_development_dependency "bump"
32
+ spec.add_development_dependency "shoulda-matchers", "~> 1.4.2"
33
+ spec.add_development_dependency "factory_girl", "~> 4.0"
32
34
  end
data/spec/spec_helper.rb CHANGED
@@ -1,10 +1,8 @@
1
+ require 'restpack_service/support/spec_helper'
2
+ require 'restpack_activity_service'
3
+
1
4
  require_relative 'factories/activity_factory'
2
- require_relative 'support/mutations_matchers'
3
5
 
4
- require 'rspec'
5
- require 'database_cleaner'
6
- require 'yaml'
7
- require 'restpack_activity_service'
8
6
  require 'coveralls'
9
7
  Coveralls.wear!
10
8
 
metadata CHANGED
@@ -1,57 +1,57 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: restpack_activity_service
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.8
4
+ version: 0.0.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gavin Joyce
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-08-22 00:00:00.000000000 Z
11
+ date: 2013-08-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: restpack_service
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ~>
17
+ - - '>='
18
18
  - !ruby/object:Gem::Version
19
- version: 0.0.27
19
+ version: '0'
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: 0.0.27
26
+ version: '0'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: restpack_serializer
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - ~>
31
+ - - '>='
32
32
  - !ruby/object:Gem::Version
33
- version: 0.4.1
33
+ version: '0'
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - ~>
38
+ - - '>='
39
39
  - !ruby/object:Gem::Version
40
- version: 0.4.1
40
+ version: '0'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: restpack_gem
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - ~>
45
+ - - '>='
46
46
  - !ruby/object:Gem::Version
47
- version: 0.0.9
47
+ version: '0'
48
48
  type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - ~>
52
+ - - '>='
53
53
  - !ruby/object:Gem::Version
54
- version: 0.0.9
54
+ version: '0'
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: sinatra
57
57
  requirement: !ruby/object:Gem::Requirement
@@ -150,6 +150,34 @@ dependencies:
150
150
  - - '>='
151
151
  - !ruby/object:Gem::Version
152
152
  version: '0'
153
+ - !ruby/object:Gem::Dependency
154
+ name: shoulda-matchers
155
+ requirement: !ruby/object:Gem::Requirement
156
+ requirements:
157
+ - - ~>
158
+ - !ruby/object:Gem::Version
159
+ version: 1.4.2
160
+ type: :development
161
+ prerelease: false
162
+ version_requirements: !ruby/object:Gem::Requirement
163
+ requirements:
164
+ - - ~>
165
+ - !ruby/object:Gem::Version
166
+ version: 1.4.2
167
+ - !ruby/object:Gem::Dependency
168
+ name: factory_girl
169
+ requirement: !ruby/object:Gem::Requirement
170
+ requirements:
171
+ - - ~>
172
+ - !ruby/object:Gem::Version
173
+ version: '4.0'
174
+ type: :development
175
+ prerelease: false
176
+ version_requirements: !ruby/object:Gem::Requirement
177
+ requirements:
178
+ - - ~>
179
+ - !ruby/object:Gem::Version
180
+ version: '4.0'
153
181
  description: RestPack Activity Services
154
182
  email:
155
183
  - gavinjoyce@gmail.com
@@ -187,7 +215,6 @@ files:
187
215
  - spec/services/get_spec.rb
188
216
  - spec/services/list_spec.rb
189
217
  - spec/spec_helper.rb
190
- - spec/support/mutations_matchers.rb
191
218
  homepage: https://github.com/RestPack
192
219
  licenses:
193
220
  - MIT
@@ -219,4 +246,3 @@ test_files:
219
246
  - spec/services/get_spec.rb
220
247
  - spec/services/list_spec.rb
221
248
  - spec/spec_helper.rb
222
- - spec/support/mutations_matchers.rb
@@ -1,32 +0,0 @@
1
- def is_required(*params)
2
- params.each do |param|
3
- it ":#{param} parameter must be required" do
4
- expect(subject.class.input_filters.required_inputs).to include(param)
5
- end
6
- end
7
- end
8
-
9
- def is_optional(*params)
10
- params.each do |param|
11
- it ":#{param} parameter must be required" do
12
- expect(subject.class.input_filters.optional_inputs).to include(param)
13
- end
14
- end
15
- end
16
-
17
- def service_request_with(param, value, &block)
18
- context "when :#{param} = #{value.inspect}" do
19
- let(:params) do
20
- super().merge({ param => value })
21
- end
22
- it { yield(response.result) }
23
- end
24
- end
25
-
26
- def service_should_map(param, map)
27
- context param do
28
- map.each do |value, expected|
29
- service_request_with(param, value) { |r| r[param].should == expected }
30
- end
31
- end
32
- end