actionizer 0.13.0 → 0.13.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 14b8f13428c6ea8176fd2f8da334b5c851dd1fab
4
- data.tar.gz: af64327228ad4b5c6eada4d534f1a215a6e83ed3
3
+ metadata.gz: 1a8252f1bf3569b951493494f97b092156376543
4
+ data.tar.gz: d1d40e8aa4962b53139cb21c539ca2099288652b
5
5
  SHA512:
6
- metadata.gz: a6c50a06d3e98cf7978a91a15e183e826bf435f547106d373b1c6a0e2e6d6a6ab238358ee1a7d4172c7b42725d397b4ff6b969987684788113f1fafa8ecf2568
7
- data.tar.gz: 11b3fbadea521f84acf4e1c7b387944464e75fa86130136fe08650f0499d5e0cfe6a888843c4ea8b4023cef5bb9e46153206e25c61aa4d0aa3c4876d41ccd83f
6
+ metadata.gz: f9687ecbfd6487dd620c9a5895a6ac1461e8767c029d23b9a8c713f7e966a06edff2943a7389740e19eff20889315848822f65d063c8555566b45cecaf5349c7
7
+ data.tar.gz: f5c8376b470f379c9ecb278b159e75749899b60da0cde9d3393c9f9597aed395ff0038096a7da06070c81fdec55febe8f7991017aae0fd705ea23472e245beeb
data/.rubocop.yml CHANGED
@@ -1,3 +1,11 @@
1
+ AllCops:
2
+ TargetRubyVersion: 2.1
3
+
4
+ Layout/EmptyLinesAroundBlockBody:
5
+ Enabled: false
6
+ Layout/EmptyLinesAroundClassBody:
7
+ Enabled: false
8
+
1
9
  Lint/InheritException:
2
10
  Enabled: false
3
11
 
@@ -12,17 +20,16 @@ Metrics/LineLength:
12
20
  Metrics/MethodLength:
13
21
  Max: 20
14
22
 
15
- Style/Documentation:
23
+ Style/CommentedKeyword:
16
24
  Enabled: false
17
-
18
- Style/EmptyLinesAroundBlockBody:
19
- Enabled: false
20
- Style/EmptyLinesAroundClassBody:
25
+ Style/Documentation:
21
26
  Enabled: false
22
27
  Style/FrozenStringLiteralComment:
23
28
  Enabled: false
24
29
  Style/IfUnlessModifier:
25
30
  Enabled: false
31
+ Style/InverseMethods:
32
+ Enabled: false
26
33
  Style/MutableConstant:
27
34
  Enabled: false
28
35
  Style/NegatedIf:
data/README.md CHANGED
@@ -117,21 +117,6 @@ end
117
117
 
118
118
  This code is self-documenting because there's no wiki or comments to read about what's going on here. The code is telling you exactly what's going on.
119
119
 
120
- ### Error-checking shorthand: `*_or_fail`
121
-
122
- To automatically check for `failure?` and bubble up errors on failure, there's a shorthand: `<METHOD>_or_fail`. It works for any instance method defined on the class you specify.
123
- ```ruby
124
- class OnboardUser
125
- include Actionizer
126
-
127
- def call
128
- # This code is identical to the example above
129
- call_or_fail(CreateUser, name: input.name, email: input.email)
130
- deliver_now_or_fail(SendWelcomeEmail, name: input.name, email: input.email)
131
- end
132
- end
133
- ```
134
-
135
120
  ### Explicitly declare your inputs with `inputs_for`
136
121
 
137
122
  To more explicitly document the inputs to your Actions, you can use `inputs_for`.
data/actionizer.gemspec CHANGED
@@ -1,4 +1,3 @@
1
- # coding: utf-8
2
1
  lib = File.expand_path('../lib', __FILE__)
3
2
  $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
3
  require 'actionizer/version'
@@ -29,10 +28,10 @@ Gem::Specification.new do |spec|
29
28
  spec.required_ruby_version = '~> 2.1'
30
29
 
31
30
  spec.add_development_dependency 'bundler', '~> 1.13'
31
+ spec.add_development_dependency 'codeclimate-test-reporter', '~> 0.5'
32
+ spec.add_development_dependency 'pry-byebug', '~> 3.4'
32
33
  spec.add_development_dependency 'rake', '~> 11.3'
33
34
  spec.add_development_dependency 'rspec', '~> 3.5'
34
- spec.add_development_dependency 'pry-byebug', '~> 3.4'
35
- spec.add_development_dependency 'rubocop', '0.45.0'
35
+ spec.add_development_dependency 'rubocop', '0.52.1'
36
36
  spec.add_development_dependency 'simplecov', '~> 0.12'
37
- spec.add_development_dependency 'codeclimate-test-reporter', '~> 0.5'
38
37
  end
@@ -51,7 +51,7 @@ module Actionizer
51
51
  end
52
52
 
53
53
  @declared_params_by_method[method][param] = { required: required,
54
- null: false == opts[:null] ? false : true,
54
+ null: opts[:null] != false,
55
55
  type: opts.fetch(:type, nil) }
56
56
  end
57
57
 
@@ -1,3 +1,3 @@
1
1
  module Actionizer
2
- VERSION = '0.13.0'
2
+ VERSION = '0.13.1'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: actionizer
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.13.0
4
+ version: 0.13.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mike Nichols
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-09-11 00:00:00.000000000 Z
11
+ date: 2018-02-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -25,89 +25,89 @@ dependencies:
25
25
  - !ruby/object:Gem::Version
26
26
  version: '1.13'
27
27
  - !ruby/object:Gem::Dependency
28
- name: rake
28
+ name: codeclimate-test-reporter
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: '11.3'
33
+ version: '0.5'
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
- version: '11.3'
40
+ version: '0.5'
41
41
  - !ruby/object:Gem::Dependency
42
- name: rspec
42
+ name: pry-byebug
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
45
  - - "~>"
46
46
  - !ruby/object:Gem::Version
47
- version: '3.5'
47
+ version: '3.4'
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
- version: '3.5'
54
+ version: '3.4'
55
55
  - !ruby/object:Gem::Dependency
56
- name: pry-byebug
56
+ name: rake
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
59
  - - "~>"
60
60
  - !ruby/object:Gem::Version
61
- version: '3.4'
61
+ version: '11.3'
62
62
  type: :development
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
66
  - - "~>"
67
67
  - !ruby/object:Gem::Version
68
- version: '3.4'
68
+ version: '11.3'
69
69
  - !ruby/object:Gem::Dependency
70
- name: rubocop
70
+ name: rspec
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
- - - '='
73
+ - - "~>"
74
74
  - !ruby/object:Gem::Version
75
- version: 0.45.0
75
+ version: '3.5'
76
76
  type: :development
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
- - - '='
80
+ - - "~>"
81
81
  - !ruby/object:Gem::Version
82
- version: 0.45.0
82
+ version: '3.5'
83
83
  - !ruby/object:Gem::Dependency
84
- name: simplecov
84
+ name: rubocop
85
85
  requirement: !ruby/object:Gem::Requirement
86
86
  requirements:
87
- - - "~>"
87
+ - - '='
88
88
  - !ruby/object:Gem::Version
89
- version: '0.12'
89
+ version: 0.52.1
90
90
  type: :development
91
91
  prerelease: false
92
92
  version_requirements: !ruby/object:Gem::Requirement
93
93
  requirements:
94
- - - "~>"
94
+ - - '='
95
95
  - !ruby/object:Gem::Version
96
- version: '0.12'
96
+ version: 0.52.1
97
97
  - !ruby/object:Gem::Dependency
98
- name: codeclimate-test-reporter
98
+ name: simplecov
99
99
  requirement: !ruby/object:Gem::Requirement
100
100
  requirements:
101
101
  - - "~>"
102
102
  - !ruby/object:Gem::Version
103
- version: '0.5'
103
+ version: '0.12'
104
104
  type: :development
105
105
  prerelease: false
106
106
  version_requirements: !ruby/object:Gem::Requirement
107
107
  requirements:
108
108
  - - "~>"
109
109
  - !ruby/object:Gem::Version
110
- version: '0.5'
110
+ version: '0.12'
111
111
  description:
112
112
  email:
113
113
  - mykphyre@yahoo.com