light-services 0.6.0 → 2.0.0.rc1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/config/rubocop_linter_action.yml +4 -0
- data/.github/workflows/ci.yml +63 -0
- data/.gitignore +8 -4
- data/.rspec +1 -0
- data/.rubocop.yml +22 -8
- data/CHANGELOG.md +1 -0
- data/CODE_OF_CONDUCT.md +55 -30
- data/Gemfile +16 -2
- data/Gemfile.lock +101 -0
- data/LICENSE.txt +1 -1
- data/README.md +3 -149
- data/Rakefile +2 -2
- data/bin/console +4 -4
- data/lib/light/services.rb +4 -7
- data/lib/light/services/base.rb +142 -30
- data/lib/light/services/base_with_context.rb +33 -0
- data/lib/light/services/class_based_collection/base.rb +88 -0
- data/lib/light/services/class_based_collection/mount.rb +33 -0
- data/lib/light/services/collection/arguments.rb +34 -0
- data/lib/light/services/collection/base.rb +47 -0
- data/lib/light/services/collection/outputs.rb +16 -0
- data/lib/light/services/config.rb +63 -0
- data/lib/light/services/exceptions.rb +3 -2
- data/lib/light/services/messages.rb +74 -41
- data/lib/light/services/settings/argument.rb +50 -0
- data/lib/light/services/settings/output.rb +34 -0
- data/lib/light/services/settings/step.rb +71 -0
- data/lib/light/services/version.rb +1 -1
- data/light-services.gemspec +21 -24
- metadata +28 -129
- data/.codeclimate.yml +0 -18
- data/.ruby-gemset +0 -1
- data/.ruby-version +0 -1
- data/.travis.yml +0 -36
- data/Appraisals +0 -25
- data/gemfiles/rails_4_0.gemfile +0 -7
- data/gemfiles/rails_4_0.gemfile.lock +0 -115
- data/gemfiles/rails_4_1.gemfile +0 -7
- data/gemfiles/rails_4_1.gemfile.lock +0 -118
- data/gemfiles/rails_4_2.gemfile +0 -7
- data/gemfiles/rails_4_2.gemfile.lock +0 -144
- data/gemfiles/rails_5_0.gemfile +0 -7
- data/gemfiles/rails_5_0.gemfile.lock +0 -151
- data/gemfiles/rails_5_1.gemfile +0 -7
- data/gemfiles/rails_5_1.gemfile.lock +0 -151
- data/gemfiles/rails_5_2.gemfile +0 -7
- data/gemfiles/rails_5_2.gemfile.lock +0 -159
- data/lib/light/services/callbacks.rb +0 -54
- data/lib/light/services/outputs.rb +0 -70
- data/lib/light/services/parameters.rb +0 -96
data/gemfiles/rails_4_1.gemfile
DELETED
@@ -1,118 +0,0 @@
|
|
1
|
-
PATH
|
2
|
-
remote: ..
|
3
|
-
specs:
|
4
|
-
light-services (0.6.0)
|
5
|
-
rails (> 4.0)
|
6
|
-
|
7
|
-
GEM
|
8
|
-
remote: https://rubygems.org/
|
9
|
-
specs:
|
10
|
-
actionmailer (4.1.16)
|
11
|
-
actionpack (= 4.1.16)
|
12
|
-
actionview (= 4.1.16)
|
13
|
-
mail (~> 2.5, >= 2.5.4)
|
14
|
-
actionpack (4.1.16)
|
15
|
-
actionview (= 4.1.16)
|
16
|
-
activesupport (= 4.1.16)
|
17
|
-
rack (~> 1.5.2)
|
18
|
-
rack-test (~> 0.6.2)
|
19
|
-
actionview (4.1.16)
|
20
|
-
activesupport (= 4.1.16)
|
21
|
-
builder (~> 3.1)
|
22
|
-
erubis (~> 2.7.0)
|
23
|
-
activemodel (4.1.16)
|
24
|
-
activesupport (= 4.1.16)
|
25
|
-
builder (~> 3.1)
|
26
|
-
activerecord (4.1.16)
|
27
|
-
activemodel (= 4.1.16)
|
28
|
-
activesupport (= 4.1.16)
|
29
|
-
arel (~> 5.0.0)
|
30
|
-
activesupport (4.1.16)
|
31
|
-
i18n (~> 0.6, >= 0.6.9)
|
32
|
-
json (~> 1.7, >= 1.7.7)
|
33
|
-
minitest (~> 5.1)
|
34
|
-
thread_safe (~> 0.1)
|
35
|
-
tzinfo (~> 1.1)
|
36
|
-
appraisal (2.1.0)
|
37
|
-
bundler
|
38
|
-
rake
|
39
|
-
thor (>= 0.14.0)
|
40
|
-
arel (5.0.1.20140414130214)
|
41
|
-
builder (3.2.3)
|
42
|
-
codeclimate-test-reporter (0.5.1)
|
43
|
-
simplecov (>= 0.7.1, < 1.0.0)
|
44
|
-
concurrent-ruby (1.0.5)
|
45
|
-
diff-lcs (1.2.5)
|
46
|
-
docile (1.1.5)
|
47
|
-
erubis (2.7.0)
|
48
|
-
i18n (0.9.5)
|
49
|
-
concurrent-ruby (~> 1.0)
|
50
|
-
json (1.8.6)
|
51
|
-
mail (2.7.0)
|
52
|
-
mini_mime (>= 0.1.1)
|
53
|
-
mini_mime (1.0.1)
|
54
|
-
minitest (5.11.3)
|
55
|
-
rack (1.5.5)
|
56
|
-
rack-test (0.6.3)
|
57
|
-
rack (>= 1.0)
|
58
|
-
rails (4.1.16)
|
59
|
-
actionmailer (= 4.1.16)
|
60
|
-
actionpack (= 4.1.16)
|
61
|
-
actionview (= 4.1.16)
|
62
|
-
activemodel (= 4.1.16)
|
63
|
-
activerecord (= 4.1.16)
|
64
|
-
activesupport (= 4.1.16)
|
65
|
-
bundler (>= 1.3.0, < 2.0)
|
66
|
-
railties (= 4.1.16)
|
67
|
-
sprockets-rails (~> 2.0)
|
68
|
-
railties (4.1.16)
|
69
|
-
actionpack (= 4.1.16)
|
70
|
-
activesupport (= 4.1.16)
|
71
|
-
rake (>= 0.8.7)
|
72
|
-
thor (>= 0.18.1, < 2.0)
|
73
|
-
rake (10.5.0)
|
74
|
-
rspec (3.4.0)
|
75
|
-
rspec-core (~> 3.4.0)
|
76
|
-
rspec-expectations (~> 3.4.0)
|
77
|
-
rspec-mocks (~> 3.4.0)
|
78
|
-
rspec-core (3.4.4)
|
79
|
-
rspec-support (~> 3.4.0)
|
80
|
-
rspec-expectations (3.4.0)
|
81
|
-
diff-lcs (>= 1.2.0, < 2.0)
|
82
|
-
rspec-support (~> 3.4.0)
|
83
|
-
rspec-mocks (3.4.1)
|
84
|
-
diff-lcs (>= 1.2.0, < 2.0)
|
85
|
-
rspec-support (~> 3.4.0)
|
86
|
-
rspec-support (3.4.1)
|
87
|
-
simplecov (0.11.2)
|
88
|
-
docile (~> 1.1.0)
|
89
|
-
json (~> 1.8)
|
90
|
-
simplecov-html (~> 0.10.0)
|
91
|
-
simplecov-html (0.10.0)
|
92
|
-
sprockets (3.7.2)
|
93
|
-
concurrent-ruby (~> 1.0)
|
94
|
-
rack (> 1, < 3)
|
95
|
-
sprockets-rails (2.3.3)
|
96
|
-
actionpack (>= 3.0)
|
97
|
-
activesupport (>= 3.0)
|
98
|
-
sprockets (>= 2.8, < 4.0)
|
99
|
-
thor (0.19.1)
|
100
|
-
thread_safe (0.3.6)
|
101
|
-
tzinfo (1.2.5)
|
102
|
-
thread_safe (~> 0.1)
|
103
|
-
|
104
|
-
PLATFORMS
|
105
|
-
ruby
|
106
|
-
|
107
|
-
DEPENDENCIES
|
108
|
-
appraisal (~> 2.1)
|
109
|
-
bundler (~> 1.12)
|
110
|
-
codeclimate-test-reporter
|
111
|
-
light-services!
|
112
|
-
rails (= 4.1.16)
|
113
|
-
rake (~> 10.0)
|
114
|
-
rspec (~> 3.0)
|
115
|
-
simplecov (~> 0.11.2)
|
116
|
-
|
117
|
-
BUNDLED WITH
|
118
|
-
1.16.2
|
data/gemfiles/rails_4_2.gemfile
DELETED
@@ -1,144 +0,0 @@
|
|
1
|
-
PATH
|
2
|
-
remote: ..
|
3
|
-
specs:
|
4
|
-
light-services (0.6.0)
|
5
|
-
rails (> 4.0)
|
6
|
-
|
7
|
-
GEM
|
8
|
-
remote: https://rubygems.org/
|
9
|
-
specs:
|
10
|
-
actionmailer (4.2.10)
|
11
|
-
actionpack (= 4.2.10)
|
12
|
-
actionview (= 4.2.10)
|
13
|
-
activejob (= 4.2.10)
|
14
|
-
mail (~> 2.5, >= 2.5.4)
|
15
|
-
rails-dom-testing (~> 1.0, >= 1.0.5)
|
16
|
-
actionpack (4.2.10)
|
17
|
-
actionview (= 4.2.10)
|
18
|
-
activesupport (= 4.2.10)
|
19
|
-
rack (~> 1.6)
|
20
|
-
rack-test (~> 0.6.2)
|
21
|
-
rails-dom-testing (~> 1.0, >= 1.0.5)
|
22
|
-
rails-html-sanitizer (~> 1.0, >= 1.0.2)
|
23
|
-
actionview (4.2.10)
|
24
|
-
activesupport (= 4.2.10)
|
25
|
-
builder (~> 3.1)
|
26
|
-
erubis (~> 2.7.0)
|
27
|
-
rails-dom-testing (~> 1.0, >= 1.0.5)
|
28
|
-
rails-html-sanitizer (~> 1.0, >= 1.0.3)
|
29
|
-
activejob (4.2.10)
|
30
|
-
activesupport (= 4.2.10)
|
31
|
-
globalid (>= 0.3.0)
|
32
|
-
activemodel (4.2.10)
|
33
|
-
activesupport (= 4.2.10)
|
34
|
-
builder (~> 3.1)
|
35
|
-
activerecord (4.2.10)
|
36
|
-
activemodel (= 4.2.10)
|
37
|
-
activesupport (= 4.2.10)
|
38
|
-
arel (~> 6.0)
|
39
|
-
activesupport (4.2.10)
|
40
|
-
i18n (~> 0.7)
|
41
|
-
minitest (~> 5.1)
|
42
|
-
thread_safe (~> 0.3, >= 0.3.4)
|
43
|
-
tzinfo (~> 1.1)
|
44
|
-
appraisal (2.1.0)
|
45
|
-
bundler
|
46
|
-
rake
|
47
|
-
thor (>= 0.14.0)
|
48
|
-
arel (6.0.4)
|
49
|
-
builder (3.2.3)
|
50
|
-
codeclimate-test-reporter (0.5.1)
|
51
|
-
simplecov (>= 0.7.1, < 1.0.0)
|
52
|
-
concurrent-ruby (1.0.5)
|
53
|
-
crass (1.0.4)
|
54
|
-
diff-lcs (1.2.5)
|
55
|
-
docile (1.1.5)
|
56
|
-
erubis (2.7.0)
|
57
|
-
globalid (0.4.1)
|
58
|
-
activesupport (>= 4.2.0)
|
59
|
-
i18n (0.9.5)
|
60
|
-
concurrent-ruby (~> 1.0)
|
61
|
-
json (1.8.6)
|
62
|
-
loofah (2.2.2)
|
63
|
-
crass (~> 1.0.2)
|
64
|
-
nokogiri (>= 1.5.9)
|
65
|
-
mail (2.7.0)
|
66
|
-
mini_mime (>= 0.1.1)
|
67
|
-
mini_mime (1.0.1)
|
68
|
-
mini_portile2 (2.3.0)
|
69
|
-
minitest (5.11.3)
|
70
|
-
nokogiri (1.8.4)
|
71
|
-
mini_portile2 (~> 2.3.0)
|
72
|
-
rack (1.6.10)
|
73
|
-
rack-test (0.6.3)
|
74
|
-
rack (>= 1.0)
|
75
|
-
rails (4.2.10)
|
76
|
-
actionmailer (= 4.2.10)
|
77
|
-
actionpack (= 4.2.10)
|
78
|
-
actionview (= 4.2.10)
|
79
|
-
activejob (= 4.2.10)
|
80
|
-
activemodel (= 4.2.10)
|
81
|
-
activerecord (= 4.2.10)
|
82
|
-
activesupport (= 4.2.10)
|
83
|
-
bundler (>= 1.3.0, < 2.0)
|
84
|
-
railties (= 4.2.10)
|
85
|
-
sprockets-rails
|
86
|
-
rails-deprecated_sanitizer (1.0.3)
|
87
|
-
activesupport (>= 4.2.0.alpha)
|
88
|
-
rails-dom-testing (1.0.9)
|
89
|
-
activesupport (>= 4.2.0, < 5.0)
|
90
|
-
nokogiri (~> 1.6)
|
91
|
-
rails-deprecated_sanitizer (>= 1.0.1)
|
92
|
-
rails-html-sanitizer (1.0.4)
|
93
|
-
loofah (~> 2.2, >= 2.2.2)
|
94
|
-
railties (4.2.10)
|
95
|
-
actionpack (= 4.2.10)
|
96
|
-
activesupport (= 4.2.10)
|
97
|
-
rake (>= 0.8.7)
|
98
|
-
thor (>= 0.18.1, < 2.0)
|
99
|
-
rake (10.5.0)
|
100
|
-
rspec (3.4.0)
|
101
|
-
rspec-core (~> 3.4.0)
|
102
|
-
rspec-expectations (~> 3.4.0)
|
103
|
-
rspec-mocks (~> 3.4.0)
|
104
|
-
rspec-core (3.4.4)
|
105
|
-
rspec-support (~> 3.4.0)
|
106
|
-
rspec-expectations (3.4.0)
|
107
|
-
diff-lcs (>= 1.2.0, < 2.0)
|
108
|
-
rspec-support (~> 3.4.0)
|
109
|
-
rspec-mocks (3.4.1)
|
110
|
-
diff-lcs (>= 1.2.0, < 2.0)
|
111
|
-
rspec-support (~> 3.4.0)
|
112
|
-
rspec-support (3.4.1)
|
113
|
-
simplecov (0.11.2)
|
114
|
-
docile (~> 1.1.0)
|
115
|
-
json (~> 1.8)
|
116
|
-
simplecov-html (~> 0.10.0)
|
117
|
-
simplecov-html (0.10.0)
|
118
|
-
sprockets (3.7.2)
|
119
|
-
concurrent-ruby (~> 1.0)
|
120
|
-
rack (> 1, < 3)
|
121
|
-
sprockets-rails (3.2.1)
|
122
|
-
actionpack (>= 4.0)
|
123
|
-
activesupport (>= 4.0)
|
124
|
-
sprockets (>= 3.0.0)
|
125
|
-
thor (0.19.1)
|
126
|
-
thread_safe (0.3.6)
|
127
|
-
tzinfo (1.2.5)
|
128
|
-
thread_safe (~> 0.1)
|
129
|
-
|
130
|
-
PLATFORMS
|
131
|
-
ruby
|
132
|
-
|
133
|
-
DEPENDENCIES
|
134
|
-
appraisal (~> 2.1)
|
135
|
-
bundler (~> 1.12)
|
136
|
-
codeclimate-test-reporter
|
137
|
-
light-services!
|
138
|
-
rails (= 4.2.10)
|
139
|
-
rake (~> 10.0)
|
140
|
-
rspec (~> 3.0)
|
141
|
-
simplecov (~> 0.11.2)
|
142
|
-
|
143
|
-
BUNDLED WITH
|
144
|
-
1.16.2
|
data/gemfiles/rails_5_0.gemfile
DELETED
@@ -1,151 +0,0 @@
|
|
1
|
-
PATH
|
2
|
-
remote: ..
|
3
|
-
specs:
|
4
|
-
light-services (0.6.0)
|
5
|
-
rails (> 4.0)
|
6
|
-
|
7
|
-
GEM
|
8
|
-
remote: https://rubygems.org/
|
9
|
-
specs:
|
10
|
-
actioncable (5.0.7)
|
11
|
-
actionpack (= 5.0.7)
|
12
|
-
nio4r (>= 1.2, < 3.0)
|
13
|
-
websocket-driver (~> 0.6.1)
|
14
|
-
actionmailer (5.0.7)
|
15
|
-
actionpack (= 5.0.7)
|
16
|
-
actionview (= 5.0.7)
|
17
|
-
activejob (= 5.0.7)
|
18
|
-
mail (~> 2.5, >= 2.5.4)
|
19
|
-
rails-dom-testing (~> 2.0)
|
20
|
-
actionpack (5.0.7)
|
21
|
-
actionview (= 5.0.7)
|
22
|
-
activesupport (= 5.0.7)
|
23
|
-
rack (~> 2.0)
|
24
|
-
rack-test (~> 0.6.3)
|
25
|
-
rails-dom-testing (~> 2.0)
|
26
|
-
rails-html-sanitizer (~> 1.0, >= 1.0.2)
|
27
|
-
actionview (5.0.7)
|
28
|
-
activesupport (= 5.0.7)
|
29
|
-
builder (~> 3.1)
|
30
|
-
erubis (~> 2.7.0)
|
31
|
-
rails-dom-testing (~> 2.0)
|
32
|
-
rails-html-sanitizer (~> 1.0, >= 1.0.3)
|
33
|
-
activejob (5.0.7)
|
34
|
-
activesupport (= 5.0.7)
|
35
|
-
globalid (>= 0.3.6)
|
36
|
-
activemodel (5.0.7)
|
37
|
-
activesupport (= 5.0.7)
|
38
|
-
activerecord (5.0.7)
|
39
|
-
activemodel (= 5.0.7)
|
40
|
-
activesupport (= 5.0.7)
|
41
|
-
arel (~> 7.0)
|
42
|
-
activesupport (5.0.7)
|
43
|
-
concurrent-ruby (~> 1.0, >= 1.0.2)
|
44
|
-
i18n (>= 0.7, < 2)
|
45
|
-
minitest (~> 5.1)
|
46
|
-
tzinfo (~> 1.1)
|
47
|
-
appraisal (2.2.0)
|
48
|
-
bundler
|
49
|
-
rake
|
50
|
-
thor (>= 0.14.0)
|
51
|
-
arel (7.1.4)
|
52
|
-
builder (3.2.3)
|
53
|
-
codeclimate-test-reporter (1.0.8)
|
54
|
-
simplecov (<= 0.13)
|
55
|
-
concurrent-ruby (1.0.5)
|
56
|
-
crass (1.0.4)
|
57
|
-
diff-lcs (1.3)
|
58
|
-
docile (1.1.5)
|
59
|
-
erubis (2.7.0)
|
60
|
-
globalid (0.4.1)
|
61
|
-
activesupport (>= 4.2.0)
|
62
|
-
i18n (1.1.0)
|
63
|
-
concurrent-ruby (~> 1.0)
|
64
|
-
json (1.8.6)
|
65
|
-
loofah (2.2.2)
|
66
|
-
crass (~> 1.0.2)
|
67
|
-
nokogiri (>= 1.5.9)
|
68
|
-
mail (2.7.0)
|
69
|
-
mini_mime (>= 0.1.1)
|
70
|
-
method_source (0.9.0)
|
71
|
-
mini_mime (1.0.1)
|
72
|
-
mini_portile2 (2.3.0)
|
73
|
-
minitest (5.11.3)
|
74
|
-
nio4r (2.3.1)
|
75
|
-
nokogiri (1.8.4)
|
76
|
-
mini_portile2 (~> 2.3.0)
|
77
|
-
rack (2.0.5)
|
78
|
-
rack-test (0.6.3)
|
79
|
-
rack (>= 1.0)
|
80
|
-
rails (5.0.7)
|
81
|
-
actioncable (= 5.0.7)
|
82
|
-
actionmailer (= 5.0.7)
|
83
|
-
actionpack (= 5.0.7)
|
84
|
-
actionview (= 5.0.7)
|
85
|
-
activejob (= 5.0.7)
|
86
|
-
activemodel (= 5.0.7)
|
87
|
-
activerecord (= 5.0.7)
|
88
|
-
activesupport (= 5.0.7)
|
89
|
-
bundler (>= 1.3.0)
|
90
|
-
railties (= 5.0.7)
|
91
|
-
sprockets-rails (>= 2.0.0)
|
92
|
-
rails-dom-testing (2.0.3)
|
93
|
-
activesupport (>= 4.2.0)
|
94
|
-
nokogiri (>= 1.6)
|
95
|
-
rails-html-sanitizer (1.0.4)
|
96
|
-
loofah (~> 2.2, >= 2.2.2)
|
97
|
-
railties (5.0.7)
|
98
|
-
actionpack (= 5.0.7)
|
99
|
-
activesupport (= 5.0.7)
|
100
|
-
method_source
|
101
|
-
rake (>= 0.8.7)
|
102
|
-
thor (>= 0.18.1, < 2.0)
|
103
|
-
rake (10.5.0)
|
104
|
-
rspec (3.6.0)
|
105
|
-
rspec-core (~> 3.6.0)
|
106
|
-
rspec-expectations (~> 3.6.0)
|
107
|
-
rspec-mocks (~> 3.6.0)
|
108
|
-
rspec-core (3.6.0)
|
109
|
-
rspec-support (~> 3.6.0)
|
110
|
-
rspec-expectations (3.6.0)
|
111
|
-
diff-lcs (>= 1.2.0, < 2.0)
|
112
|
-
rspec-support (~> 3.6.0)
|
113
|
-
rspec-mocks (3.6.0)
|
114
|
-
diff-lcs (>= 1.2.0, < 2.0)
|
115
|
-
rspec-support (~> 3.6.0)
|
116
|
-
rspec-support (3.6.0)
|
117
|
-
simplecov (0.11.2)
|
118
|
-
docile (~> 1.1.0)
|
119
|
-
json (~> 1.8)
|
120
|
-
simplecov-html (~> 0.10.0)
|
121
|
-
simplecov-html (0.10.2)
|
122
|
-
sprockets (3.7.2)
|
123
|
-
concurrent-ruby (~> 1.0)
|
124
|
-
rack (> 1, < 3)
|
125
|
-
sprockets-rails (3.2.1)
|
126
|
-
actionpack (>= 4.0)
|
127
|
-
activesupport (>= 4.0)
|
128
|
-
sprockets (>= 3.0.0)
|
129
|
-
thor (0.20.0)
|
130
|
-
thread_safe (0.3.6)
|
131
|
-
tzinfo (1.2.5)
|
132
|
-
thread_safe (~> 0.1)
|
133
|
-
websocket-driver (0.6.5)
|
134
|
-
websocket-extensions (>= 0.1.0)
|
135
|
-
websocket-extensions (0.1.3)
|
136
|
-
|
137
|
-
PLATFORMS
|
138
|
-
ruby
|
139
|
-
|
140
|
-
DEPENDENCIES
|
141
|
-
appraisal (~> 2.1)
|
142
|
-
bundler (~> 1.12)
|
143
|
-
codeclimate-test-reporter
|
144
|
-
light-services!
|
145
|
-
rails (= 5.0.7)
|
146
|
-
rake (~> 10.0)
|
147
|
-
rspec (~> 3.0)
|
148
|
-
simplecov (~> 0.11.2)
|
149
|
-
|
150
|
-
BUNDLED WITH
|
151
|
-
1.16.2
|