ddc 0.1.7 → 0.1.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +8 -0
- data/ddc.gemspec +5 -5
- data/lib/ddc/response_builder.rb +1 -1
- data/lib/ddc/version.rb +1 -1
- data/spec/controller_builder_spec.rb +4 -4
- metadata +13 -13
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 64452a6bd1278153b9302577601ab0ce2a782923
|
4
|
+
data.tar.gz: c35cb6775320b901d2f381ee4e6120cc494de113
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e89c1b7ed006d88388c19c82a1d6c1adff8a1565cb1b38c0e8490a28be6cc890a7e2683062c92c6b3f14b44a0b68458962a4304d7e55b6645094f2cb037c8b66
|
7
|
+
data.tar.gz: 532d3a474f14035b4ed2e868263af8efa6158f2ebab44e0f5fd73d0bfedd29c0cdc93969faf18cbba6d99cdd55baf35c2e155e61096c56667c58ce637dd28f57
|
data/CHANGELOG.md
CHANGED
data/ddc.gemspec
CHANGED
@@ -18,11 +18,11 @@ 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_development_dependency "bundler", "
|
22
|
-
spec.add_development_dependency "rake", "
|
23
|
-
spec.add_development_dependency "rspec", "
|
21
|
+
spec.add_development_dependency "bundler", ">= 1.7"
|
22
|
+
spec.add_development_dependency "rake", ">= 10.0"
|
23
|
+
spec.add_development_dependency "rspec", ">= 3.0"
|
24
24
|
spec.add_development_dependency "pry"
|
25
|
-
spec.add_dependency "actionpack", "
|
26
|
-
spec.add_dependency "activesupport", "
|
25
|
+
spec.add_dependency "actionpack", ">= 4.1"
|
26
|
+
spec.add_dependency "activesupport", ">= 4.1"
|
27
27
|
|
28
28
|
end
|
data/lib/ddc/response_builder.rb
CHANGED
data/lib/ddc/version.rb
CHANGED
@@ -31,21 +31,21 @@ describe DDC::ControllerBuilder do
|
|
31
31
|
end
|
32
32
|
|
33
33
|
it 'raises if there are no actions defined' do
|
34
|
-
expect(->{subject.build :foo, actions: {}}).to raise_exception
|
35
|
-
expect(->{subject.build :foop, {}}).to raise_exception
|
34
|
+
expect(->{subject.build :foo, actions: {}}).to raise_exception(RuntimeError, "Must specify actions")
|
35
|
+
expect(->{subject.build :foop, {}}).to raise_exception(RuntimeError, "Must specify actions")
|
36
36
|
end
|
37
37
|
|
38
38
|
it 'raises if an action is missing context' do
|
39
39
|
expect(->{subject.build :foo, actions: {foo: {
|
40
40
|
context_params: [:current_user, :params],
|
41
41
|
service: 'baz_service#qux'
|
42
|
-
}}}).to raise_exception
|
42
|
+
}}}).to raise_exception(RuntimeError, "Must specify a context for each action")
|
43
43
|
end
|
44
44
|
|
45
45
|
it 'raises if an action is missing service' do
|
46
46
|
expect(->{subject.build :foo, actions: {foo: {
|
47
47
|
context: 'foo_context_builder#bar',
|
48
|
-
}}}).to raise_exception
|
48
|
+
}}}).to raise_exception(RuntimeError, "Must specify a service for each action")
|
49
49
|
end
|
50
50
|
|
51
51
|
it 'uses the provided parent class' do
|
metadata
CHANGED
@@ -1,55 +1,55 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ddc
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Shawn Anderson
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2017-06-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - "
|
17
|
+
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
19
|
version: '1.7'
|
20
20
|
type: :development
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- - "
|
24
|
+
- - ">="
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: '1.7'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: rake
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- - "
|
31
|
+
- - ">="
|
32
32
|
- !ruby/object:Gem::Version
|
33
33
|
version: '10.0'
|
34
34
|
type: :development
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
|
-
- - "
|
38
|
+
- - ">="
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '10.0'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: rspec
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
|
-
- - "
|
45
|
+
- - ">="
|
46
46
|
- !ruby/object:Gem::Version
|
47
47
|
version: '3.0'
|
48
48
|
type: :development
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
|
-
- - "
|
52
|
+
- - ">="
|
53
53
|
- !ruby/object:Gem::Version
|
54
54
|
version: '3.0'
|
55
55
|
- !ruby/object:Gem::Dependency
|
@@ -70,28 +70,28 @@ dependencies:
|
|
70
70
|
name: actionpack
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
72
72
|
requirements:
|
73
|
-
- - "
|
73
|
+
- - ">="
|
74
74
|
- !ruby/object:Gem::Version
|
75
75
|
version: '4.1'
|
76
76
|
type: :runtime
|
77
77
|
prerelease: false
|
78
78
|
version_requirements: !ruby/object:Gem::Requirement
|
79
79
|
requirements:
|
80
|
-
- - "
|
80
|
+
- - ">="
|
81
81
|
- !ruby/object:Gem::Version
|
82
82
|
version: '4.1'
|
83
83
|
- !ruby/object:Gem::Dependency
|
84
84
|
name: activesupport
|
85
85
|
requirement: !ruby/object:Gem::Requirement
|
86
86
|
requirements:
|
87
|
-
- - "
|
87
|
+
- - ">="
|
88
88
|
- !ruby/object:Gem::Version
|
89
89
|
version: '4.1'
|
90
90
|
type: :runtime
|
91
91
|
prerelease: false
|
92
92
|
version_requirements: !ruby/object:Gem::Requirement
|
93
93
|
requirements:
|
94
|
-
- - "
|
94
|
+
- - ">="
|
95
95
|
- !ruby/object:Gem::Version
|
96
96
|
version: '4.1'
|
97
97
|
description: Use data to tell Rails how to interact with your domain.
|
@@ -136,7 +136,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
136
136
|
version: '0'
|
137
137
|
requirements: []
|
138
138
|
rubyforge_project:
|
139
|
-
rubygems_version: 2.
|
139
|
+
rubygems_version: 2.6.11
|
140
140
|
signing_key:
|
141
141
|
specification_version: 4
|
142
142
|
summary: Data Driven Controllers for Rails
|