restpack_service 0.0.68 → 0.0.69

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: e0f9e8b4c16a16101ef2a668bcf7a3daeae92dcd
4
- data.tar.gz: 7e381efa954dc5b2f0ca30120126bb9e5fc5e6c3
3
+ metadata.gz: 953a4a1cc1f6cdfb4344eb174dfa91ee469ce446
4
+ data.tar.gz: dbf2b156da79620c6efbb2292466dc4b69c6ec89
5
5
  SHA512:
6
- metadata.gz: 74847cc12dd7ffae0943ef26c9e590924cdb86bea04d0a73127ad03f2ba0ffd9f202310fe1b0580ae661e475e28144ddc3c7f55c71fdca46663d0e07ff0a8b87
7
- data.tar.gz: 63ab3e2370ada81a80720beaee94827a8bb3cc4cf4024b61948d985ca7375103c2862b412d36d64db416d9e752f0bf3e2342c7eeedb4c2a584ab0ca22f851358
6
+ metadata.gz: bd3d68ae1c692a3e76e979cc07884077eee25dc49d90d8201b99805fcc29ee20fe24dade86eb65642b44d5098e9f8eda9ebe845d823024ae19b2517e66485d2a
7
+ data.tar.gz: 3c8510196f15cf133c8368d399c8cb002a6bb3f54bbebb2dcadb585bf279acdd2af020c313de228be9fba8124a07fcf69d960dfe3e8ce41ff096cdbe07cc617e
@@ -15,11 +15,12 @@ module RestPack::Service
15
15
  require "#{service_path}/configuration"
16
16
  require_all "#{service_path}/tasks"
17
17
 
18
- Modularize.create "Models"
19
- Modularize.create "Serializers"
20
- Modularize.create "Tasks"
21
- Modularize.create "Jobs"
22
- Modularize.create "Commands::#{module_name}"
18
+ Modularize.create module_name
19
+ Modularize.create "#{module_name}::Models"
20
+ Modularize.create "#{module_name}::Serializers"
21
+ Modularize.create "#{module_name}::Tasks"
22
+ Modularize.create "#{module_name}::Jobs"
23
+ Modularize.create "#{module_name}::Commands"
23
24
 
24
25
  require_service_module 'models', service_path
25
26
  require_service_module 'serializers', service_path
@@ -1,5 +1,5 @@
1
1
  module RestPack
2
2
  module Service
3
- VERSION = "0.0.68"
3
+ VERSION = "0.0.69"
4
4
  end
5
5
  end
@@ -30,7 +30,7 @@ Gem::Specification.new do |spec|
30
30
  spec.add_dependency "sidekiq", "~> 3.2"
31
31
 
32
32
  spec.add_development_dependency "bundler", "~> 1.3"
33
- spec.add_development_dependency "rake", "~> 0"
34
- spec.add_development_dependency "rspec", "~> 0"
33
+ spec.add_development_dependency "rake", "~> 10"
34
+ spec.add_development_dependency "rspec", "~> 3"
35
35
  spec.add_development_dependency "bump", "~> 0"
36
36
  end
data/spec/command_spec.rb CHANGED
@@ -1,6 +1,6 @@
1
1
  require 'spec_helper'
2
2
 
3
- describe RestPack::Command do
3
+ describe RestPack::Service::Command do
4
4
  context 'with a commands in a namespace like TextService::Commands::Text::Reverse' do
5
5
  it 'defines sugar methods' do
6
6
  expect(TextService::Text).to respond_to(:reverse, :reverse!)
@@ -11,7 +11,7 @@ module TextService
11
11
 
12
12
  module Commands
13
13
  module Text
14
- class Reverse < RestPack::Command
14
+ class Reverse < RestPack::Service::Command
15
15
  required do
16
16
  string :text
17
17
  end
@@ -27,7 +27,7 @@ end
27
27
 
28
28
  module Commands
29
29
  module Math
30
- class Add < RestPack::Command
30
+ class Add < RestPack::Service::Command
31
31
  required do
32
32
  integer :a
33
33
  integer :b
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: restpack_service
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.68
4
+ version: 0.0.69
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gavin Joyce
@@ -170,28 +170,28 @@ dependencies:
170
170
  requirements:
171
171
  - - "~>"
172
172
  - !ruby/object:Gem::Version
173
- version: '0'
173
+ version: '10'
174
174
  type: :development
175
175
  prerelease: false
176
176
  version_requirements: !ruby/object:Gem::Requirement
177
177
  requirements:
178
178
  - - "~>"
179
179
  - !ruby/object:Gem::Version
180
- version: '0'
180
+ version: '10'
181
181
  - !ruby/object:Gem::Dependency
182
182
  name: rspec
183
183
  requirement: !ruby/object:Gem::Requirement
184
184
  requirements:
185
185
  - - "~>"
186
186
  - !ruby/object:Gem::Version
187
- version: '0'
187
+ version: '3'
188
188
  type: :development
189
189
  prerelease: false
190
190
  version_requirements: !ruby/object:Gem::Requirement
191
191
  requirements:
192
192
  - - "~>"
193
193
  - !ruby/object:Gem::Version
194
- version: '0'
194
+ version: '3'
195
195
  - !ruby/object:Gem::Dependency
196
196
  name: bump
197
197
  requirement: !ruby/object:Gem::Requirement