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 +4 -4
- data/lib/restpack_service/loader.rb +6 -5
- data/lib/restpack_service/version.rb +1 -1
- data/restpack_service.gemspec +2 -2
- data/spec/command_spec.rb +1 -1
- data/spec/support/fixtures.rb +2 -2
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 953a4a1cc1f6cdfb4344eb174dfa91ee469ce446
|
4
|
+
data.tar.gz: dbf2b156da79620c6efbb2292466dc4b69c6ec89
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
19
|
-
Modularize.create "
|
20
|
-
Modularize.create "
|
21
|
-
Modularize.create "
|
22
|
-
Modularize.create "
|
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
|
data/restpack_service.gemspec
CHANGED
@@ -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", "~>
|
34
|
-
spec.add_development_dependency "rspec", "~>
|
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!)
|
data/spec/support/fixtures.rb
CHANGED
@@ -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.
|
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: '
|
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: '
|
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: '
|
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: '
|
194
|
+
version: '3'
|
195
195
|
- !ruby/object:Gem::Dependency
|
196
196
|
name: bump
|
197
197
|
requirement: !ruby/object:Gem::Requirement
|