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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 1e62db9575fb5178f54f19d956f70199f582275b
4
- data.tar.gz: d37c726ec92c27889f8ffdb4654b2f023e143e9b
3
+ metadata.gz: 64452a6bd1278153b9302577601ab0ce2a782923
4
+ data.tar.gz: c35cb6775320b901d2f381ee4e6120cc494de113
5
5
  SHA512:
6
- metadata.gz: 94f69307b9649d32f6ba9742e5695f7a1812db92216e05f9d875d64f276d0971982d3dad31db7851eaeba337636ed5f7a4589078b9f7c6bbf0da349f159c8d21
7
- data.tar.gz: 1d5e4053f091f76309479d695b8a61c37db675af9c9db3dfdbd19d34e967c664ffdbf566079b3772335eee83a9659638156b3b630555d1d76ca973d672009216
6
+ metadata.gz: e89c1b7ed006d88388c19c82a1d6c1adff8a1565cb1b38c0e8490a28be6cc890a7e2683062c92c6b3f14b44a0b68458962a4304d7e55b6645094f2cb037c8b66
7
+ data.tar.gz: 532d3a474f14035b4ed2e868263af8efa6158f2ebab44e0f5fd73d0bfedd29c0cdc93969faf18cbba6d99cdd55baf35c2e155e61096c56667c58ce637dd28f57
@@ -1,5 +1,13 @@
1
1
  # DDC Changelog
2
2
 
3
+ ### 0.1.9
4
+
5
+ * Rails 5 compat
6
+
7
+ ### 0.1.8
8
+
9
+ * ResponseBuilder#delete no longer requires arg
10
+
3
11
  ### 0.1.7
4
12
 
5
13
  * patch to fix 0.1.6 bug
@@ -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", "~> 1.7"
22
- spec.add_development_dependency "rake", "~> 10.0"
23
- spec.add_development_dependency "rspec", "~> 3.0"
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", "~> 4.1"
26
- spec.add_dependency "activesupport", "~> 4.1"
25
+ spec.add_dependency "actionpack", ">= 4.1"
26
+ spec.add_dependency "activesupport", ">= 4.1"
27
27
 
28
28
  end
@@ -16,7 +16,7 @@ module DDC
16
16
  {status: :not_valid, errors: obj.errors.to_hash}
17
17
  end
18
18
 
19
- def deleted(obj)
19
+ def deleted
20
20
  {status: :deleted}
21
21
  end
22
22
  end
@@ -1,3 +1,3 @@
1
1
  module Ddc
2
- VERSION = "0.1.7"
2
+ VERSION = "0.1.9"
3
3
  end
@@ -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.7
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: 2016-08-02 00:00:00.000000000 Z
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.4.5
139
+ rubygems_version: 2.6.11
140
140
  signing_key:
141
141
  specification_version: 4
142
142
  summary: Data Driven Controllers for Rails