light-services 0.5.4 → 2.0.0.beta1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (48) hide show
  1. checksums.yaml +5 -5
  2. data/.github/config/rubocop_linter_action.yml +4 -0
  3. data/.github/workflows/ci.yml +63 -0
  4. data/.gitignore +3 -4
  5. data/.rspec +1 -0
  6. data/.rubocop.yml +22 -8
  7. data/CHANGELOG.md +1 -0
  8. data/CODE_OF_CONDUCT.md +55 -30
  9. data/Gemfile +16 -2
  10. data/Gemfile.lock +101 -0
  11. data/LICENSE.txt +1 -1
  12. data/README.md +3 -149
  13. data/Rakefile +2 -2
  14. data/bin/console +4 -4
  15. data/lib/light/services.rb +4 -7
  16. data/lib/light/services/base.rb +127 -27
  17. data/lib/light/services/base_with_context.rb +32 -0
  18. data/lib/light/services/class_based_collection/base.rb +88 -0
  19. data/lib/light/services/class_based_collection/mount.rb +33 -0
  20. data/lib/light/services/collection/arguments.rb +34 -0
  21. data/lib/light/services/collection/base.rb +47 -0
  22. data/lib/light/services/collection/outputs.rb +16 -0
  23. data/lib/light/services/config.rb +63 -0
  24. data/lib/light/services/exceptions.rb +3 -2
  25. data/lib/light/services/messages.rb +77 -34
  26. data/lib/light/services/settings/argument.rb +50 -0
  27. data/lib/light/services/settings/output.rb +34 -0
  28. data/lib/light/services/settings/step.rb +62 -0
  29. data/lib/light/services/version.rb +1 -1
  30. data/light-services.gemspec +21 -24
  31. metadata +34 -127
  32. data/.codeclimate.yml +0 -16
  33. data/.ruby-gemset +0 -1
  34. data/.travis.yml +0 -29
  35. data/Appraisals +0 -21
  36. data/gemfiles/rails_4_0.gemfile +0 -7
  37. data/gemfiles/rails_4_0.gemfile.lock +0 -115
  38. data/gemfiles/rails_4_1.gemfile +0 -7
  39. data/gemfiles/rails_4_1.gemfile.lock +0 -119
  40. data/gemfiles/rails_4_2.gemfile +0 -7
  41. data/gemfiles/rails_4_2.gemfile.lock +0 -146
  42. data/gemfiles/rails_5_0.gemfile +0 -7
  43. data/gemfiles/rails_5_0.gemfile.lock +0 -150
  44. data/gemfiles/rails_5_1.gemfile +0 -7
  45. data/gemfiles/rails_5_1.gemfile.lock +0 -150
  46. data/lib/light/services/callbacks.rb +0 -54
  47. data/lib/light/services/outputs.rb +0 -70
  48. data/lib/light/services/parameters.rb +0 -96
@@ -1,7 +0,0 @@
1
- # This file was generated by Appraisal
2
-
3
- source "https://rubygems.org"
4
-
5
- gem "rails", "4.2.6"
6
-
7
- gemspec path: "../"
@@ -1,146 +0,0 @@
1
- PATH
2
- remote: ..
3
- specs:
4
- light-services (0.5.4)
5
- rails (> 4.0)
6
-
7
- GEM
8
- remote: https://rubygems.org/
9
- specs:
10
- actionmailer (4.2.6)
11
- actionpack (= 4.2.6)
12
- actionview (= 4.2.6)
13
- activejob (= 4.2.6)
14
- mail (~> 2.5, >= 2.5.4)
15
- rails-dom-testing (~> 1.0, >= 1.0.5)
16
- actionpack (4.2.6)
17
- actionview (= 4.2.6)
18
- activesupport (= 4.2.6)
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.6)
24
- activesupport (= 4.2.6)
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.2)
29
- activejob (4.2.6)
30
- activesupport (= 4.2.6)
31
- globalid (>= 0.3.0)
32
- activemodel (4.2.6)
33
- activesupport (= 4.2.6)
34
- builder (~> 3.1)
35
- activerecord (4.2.6)
36
- activemodel (= 4.2.6)
37
- activesupport (= 4.2.6)
38
- arel (~> 6.0)
39
- activesupport (4.2.6)
40
- i18n (~> 0.7)
41
- json (~> 1.7, >= 1.7.7)
42
- minitest (~> 5.1)
43
- thread_safe (~> 0.3, >= 0.3.4)
44
- tzinfo (~> 1.1)
45
- appraisal (2.1.0)
46
- bundler
47
- rake
48
- thor (>= 0.14.0)
49
- arel (6.0.3)
50
- builder (3.2.2)
51
- codeclimate-test-reporter (0.5.1)
52
- simplecov (>= 0.7.1, < 1.0.0)
53
- concurrent-ruby (1.0.2)
54
- diff-lcs (1.2.5)
55
- docile (1.1.5)
56
- erubis (2.7.0)
57
- globalid (0.3.6)
58
- activesupport (>= 4.1.0)
59
- i18n (0.7.0)
60
- json (1.8.6)
61
- loofah (2.0.3)
62
- nokogiri (>= 1.5.9)
63
- mail (2.6.4)
64
- mime-types (>= 1.16, < 4)
65
- mime-types (3.1)
66
- mime-types-data (~> 3.2015)
67
- mime-types-data (3.2016.0521)
68
- mini_portile2 (2.1.0)
69
- minitest (5.9.0)
70
- nokogiri (1.6.8)
71
- mini_portile2 (~> 2.1.0)
72
- pkg-config (~> 1.1.7)
73
- pkg-config (1.1.7)
74
- rack (1.6.4)
75
- rack-test (0.6.3)
76
- rack (>= 1.0)
77
- rails (4.2.6)
78
- actionmailer (= 4.2.6)
79
- actionpack (= 4.2.6)
80
- actionview (= 4.2.6)
81
- activejob (= 4.2.6)
82
- activemodel (= 4.2.6)
83
- activerecord (= 4.2.6)
84
- activesupport (= 4.2.6)
85
- bundler (>= 1.3.0, < 2.0)
86
- railties (= 4.2.6)
87
- sprockets-rails
88
- rails-deprecated_sanitizer (1.0.3)
89
- activesupport (>= 4.2.0.alpha)
90
- rails-dom-testing (1.0.7)
91
- activesupport (>= 4.2.0.beta, < 5.0)
92
- nokogiri (~> 1.6.0)
93
- rails-deprecated_sanitizer (>= 1.0.1)
94
- rails-html-sanitizer (1.0.3)
95
- loofah (~> 2.0)
96
- railties (4.2.6)
97
- actionpack (= 4.2.6)
98
- activesupport (= 4.2.6)
99
- rake (>= 0.8.7)
100
- thor (>= 0.18.1, < 2.0)
101
- rake (10.5.0)
102
- rspec (3.4.0)
103
- rspec-core (~> 3.4.0)
104
- rspec-expectations (~> 3.4.0)
105
- rspec-mocks (~> 3.4.0)
106
- rspec-core (3.4.4)
107
- rspec-support (~> 3.4.0)
108
- rspec-expectations (3.4.0)
109
- diff-lcs (>= 1.2.0, < 2.0)
110
- rspec-support (~> 3.4.0)
111
- rspec-mocks (3.4.1)
112
- diff-lcs (>= 1.2.0, < 2.0)
113
- rspec-support (~> 3.4.0)
114
- rspec-support (3.4.1)
115
- simplecov (0.11.2)
116
- docile (~> 1.1.0)
117
- json (~> 1.8)
118
- simplecov-html (~> 0.10.0)
119
- simplecov-html (0.10.0)
120
- sprockets (3.6.1)
121
- concurrent-ruby (~> 1.0)
122
- rack (> 1, < 3)
123
- sprockets-rails (3.0.4)
124
- actionpack (>= 4.0)
125
- activesupport (>= 4.0)
126
- sprockets (>= 3.0.0)
127
- thor (0.19.1)
128
- thread_safe (0.3.5)
129
- tzinfo (1.2.2)
130
- thread_safe (~> 0.1)
131
-
132
- PLATFORMS
133
- ruby
134
-
135
- DEPENDENCIES
136
- appraisal (~> 2.1)
137
- bundler (~> 1.12)
138
- codeclimate-test-reporter
139
- light-services!
140
- rails (= 4.2.6)
141
- rake (~> 10.0)
142
- rspec (~> 3.0)
143
- simplecov (~> 0.11.2)
144
-
145
- BUNDLED WITH
146
- 1.15.4
@@ -1,7 +0,0 @@
1
- # This file was generated by Appraisal
2
-
3
- source "https://rubygems.org"
4
-
5
- gem "rails", "5.0.5"
6
-
7
- gemspec path: "../"
@@ -1,150 +0,0 @@
1
- PATH
2
- remote: ..
3
- specs:
4
- light-services (0.5.4)
5
- rails (> 4.0)
6
-
7
- GEM
8
- remote: https://rubygems.org/
9
- specs:
10
- actioncable (5.0.5)
11
- actionpack (= 5.0.5)
12
- nio4r (>= 1.2, < 3.0)
13
- websocket-driver (~> 0.6.1)
14
- actionmailer (5.0.5)
15
- actionpack (= 5.0.5)
16
- actionview (= 5.0.5)
17
- activejob (= 5.0.5)
18
- mail (~> 2.5, >= 2.5.4)
19
- rails-dom-testing (~> 2.0)
20
- actionpack (5.0.5)
21
- actionview (= 5.0.5)
22
- activesupport (= 5.0.5)
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.5)
28
- activesupport (= 5.0.5)
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.5)
34
- activesupport (= 5.0.5)
35
- globalid (>= 0.3.6)
36
- activemodel (5.0.5)
37
- activesupport (= 5.0.5)
38
- activerecord (5.0.5)
39
- activemodel (= 5.0.5)
40
- activesupport (= 5.0.5)
41
- arel (~> 7.0)
42
- activesupport (5.0.5)
43
- concurrent-ruby (~> 1.0, >= 1.0.2)
44
- i18n (~> 0.7)
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
- diff-lcs (1.3)
57
- docile (1.1.5)
58
- erubis (2.7.0)
59
- globalid (0.4.0)
60
- activesupport (>= 4.2.0)
61
- i18n (0.8.6)
62
- json (1.8.6)
63
- loofah (2.0.3)
64
- nokogiri (>= 1.5.9)
65
- mail (2.6.6)
66
- mime-types (>= 1.16, < 4)
67
- method_source (0.8.2)
68
- mime-types (3.1)
69
- mime-types-data (~> 3.2015)
70
- mime-types-data (3.2016.0521)
71
- mini_portile2 (2.2.0)
72
- minitest (5.10.3)
73
- nio4r (2.1.0)
74
- nokogiri (1.8.0)
75
- mini_portile2 (~> 2.2.0)
76
- rack (2.0.3)
77
- rack-test (0.6.3)
78
- rack (>= 1.0)
79
- rails (5.0.5)
80
- actioncable (= 5.0.5)
81
- actionmailer (= 5.0.5)
82
- actionpack (= 5.0.5)
83
- actionview (= 5.0.5)
84
- activejob (= 5.0.5)
85
- activemodel (= 5.0.5)
86
- activerecord (= 5.0.5)
87
- activesupport (= 5.0.5)
88
- bundler (>= 1.3.0)
89
- railties (= 5.0.5)
90
- sprockets-rails (>= 2.0.0)
91
- rails-dom-testing (2.0.3)
92
- activesupport (>= 4.2.0)
93
- nokogiri (>= 1.6)
94
- rails-html-sanitizer (1.0.3)
95
- loofah (~> 2.0)
96
- railties (5.0.5)
97
- actionpack (= 5.0.5)
98
- activesupport (= 5.0.5)
99
- method_source
100
- rake (>= 0.8.7)
101
- thor (>= 0.18.1, < 2.0)
102
- rake (10.5.0)
103
- rspec (3.6.0)
104
- rspec-core (~> 3.6.0)
105
- rspec-expectations (~> 3.6.0)
106
- rspec-mocks (~> 3.6.0)
107
- rspec-core (3.6.0)
108
- rspec-support (~> 3.6.0)
109
- rspec-expectations (3.6.0)
110
- diff-lcs (>= 1.2.0, < 2.0)
111
- rspec-support (~> 3.6.0)
112
- rspec-mocks (3.6.0)
113
- diff-lcs (>= 1.2.0, < 2.0)
114
- rspec-support (~> 3.6.0)
115
- rspec-support (3.6.0)
116
- simplecov (0.11.2)
117
- docile (~> 1.1.0)
118
- json (~> 1.8)
119
- simplecov-html (~> 0.10.0)
120
- simplecov-html (0.10.2)
121
- sprockets (3.7.1)
122
- concurrent-ruby (~> 1.0)
123
- rack (> 1, < 3)
124
- sprockets-rails (3.2.0)
125
- actionpack (>= 4.0)
126
- activesupport (>= 4.0)
127
- sprockets (>= 3.0.0)
128
- thor (0.20.0)
129
- thread_safe (0.3.6)
130
- tzinfo (1.2.3)
131
- thread_safe (~> 0.1)
132
- websocket-driver (0.6.5)
133
- websocket-extensions (>= 0.1.0)
134
- websocket-extensions (0.1.2)
135
-
136
- PLATFORMS
137
- ruby
138
-
139
- DEPENDENCIES
140
- appraisal (~> 2.1)
141
- bundler (~> 1.12)
142
- codeclimate-test-reporter
143
- light-services!
144
- rails (= 5.0.5)
145
- rake (~> 10.0)
146
- rspec (~> 3.0)
147
- simplecov (~> 0.11.2)
148
-
149
- BUNDLED WITH
150
- 1.15.4
@@ -1,7 +0,0 @@
1
- # This file was generated by Appraisal
2
-
3
- source "https://rubygems.org"
4
-
5
- gem "rails", "5.1.3"
6
-
7
- gemspec path: "../"
@@ -1,150 +0,0 @@
1
- PATH
2
- remote: ..
3
- specs:
4
- light-services (0.5.4)
5
- rails (> 4.0)
6
-
7
- GEM
8
- remote: https://rubygems.org/
9
- specs:
10
- actioncable (5.1.3)
11
- actionpack (= 5.1.3)
12
- nio4r (~> 2.0)
13
- websocket-driver (~> 0.6.1)
14
- actionmailer (5.1.3)
15
- actionpack (= 5.1.3)
16
- actionview (= 5.1.3)
17
- activejob (= 5.1.3)
18
- mail (~> 2.5, >= 2.5.4)
19
- rails-dom-testing (~> 2.0)
20
- actionpack (5.1.3)
21
- actionview (= 5.1.3)
22
- activesupport (= 5.1.3)
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.1.3)
28
- activesupport (= 5.1.3)
29
- builder (~> 3.1)
30
- erubi (~> 1.4)
31
- rails-dom-testing (~> 2.0)
32
- rails-html-sanitizer (~> 1.0, >= 1.0.3)
33
- activejob (5.1.3)
34
- activesupport (= 5.1.3)
35
- globalid (>= 0.3.6)
36
- activemodel (5.1.3)
37
- activesupport (= 5.1.3)
38
- activerecord (5.1.3)
39
- activemodel (= 5.1.3)
40
- activesupport (= 5.1.3)
41
- arel (~> 8.0)
42
- activesupport (5.1.3)
43
- concurrent-ruby (~> 1.0, >= 1.0.2)
44
- i18n (~> 0.7)
45
- minitest (~> 5.1)
46
- tzinfo (~> 1.1)
47
- appraisal (2.2.0)
48
- bundler
49
- rake
50
- thor (>= 0.14.0)
51
- arel (8.0.0)
52
- builder (3.2.3)
53
- codeclimate-test-reporter (1.0.8)
54
- simplecov (<= 0.13)
55
- concurrent-ruby (1.0.5)
56
- diff-lcs (1.3)
57
- docile (1.1.5)
58
- erubi (1.6.1)
59
- globalid (0.4.0)
60
- activesupport (>= 4.2.0)
61
- i18n (0.8.6)
62
- json (1.8.6)
63
- loofah (2.0.3)
64
- nokogiri (>= 1.5.9)
65
- mail (2.6.6)
66
- mime-types (>= 1.16, < 4)
67
- method_source (0.8.2)
68
- mime-types (3.1)
69
- mime-types-data (~> 3.2015)
70
- mime-types-data (3.2016.0521)
71
- mini_portile2 (2.2.0)
72
- minitest (5.10.3)
73
- nio4r (2.1.0)
74
- nokogiri (1.8.0)
75
- mini_portile2 (~> 2.2.0)
76
- rack (2.0.3)
77
- rack-test (0.6.3)
78
- rack (>= 1.0)
79
- rails (5.1.3)
80
- actioncable (= 5.1.3)
81
- actionmailer (= 5.1.3)
82
- actionpack (= 5.1.3)
83
- actionview (= 5.1.3)
84
- activejob (= 5.1.3)
85
- activemodel (= 5.1.3)
86
- activerecord (= 5.1.3)
87
- activesupport (= 5.1.3)
88
- bundler (>= 1.3.0)
89
- railties (= 5.1.3)
90
- sprockets-rails (>= 2.0.0)
91
- rails-dom-testing (2.0.3)
92
- activesupport (>= 4.2.0)
93
- nokogiri (>= 1.6)
94
- rails-html-sanitizer (1.0.3)
95
- loofah (~> 2.0)
96
- railties (5.1.3)
97
- actionpack (= 5.1.3)
98
- activesupport (= 5.1.3)
99
- method_source
100
- rake (>= 0.8.7)
101
- thor (>= 0.18.1, < 2.0)
102
- rake (10.5.0)
103
- rspec (3.6.0)
104
- rspec-core (~> 3.6.0)
105
- rspec-expectations (~> 3.6.0)
106
- rspec-mocks (~> 3.6.0)
107
- rspec-core (3.6.0)
108
- rspec-support (~> 3.6.0)
109
- rspec-expectations (3.6.0)
110
- diff-lcs (>= 1.2.0, < 2.0)
111
- rspec-support (~> 3.6.0)
112
- rspec-mocks (3.6.0)
113
- diff-lcs (>= 1.2.0, < 2.0)
114
- rspec-support (~> 3.6.0)
115
- rspec-support (3.6.0)
116
- simplecov (0.11.2)
117
- docile (~> 1.1.0)
118
- json (~> 1.8)
119
- simplecov-html (~> 0.10.0)
120
- simplecov-html (0.10.2)
121
- sprockets (3.7.1)
122
- concurrent-ruby (~> 1.0)
123
- rack (> 1, < 3)
124
- sprockets-rails (3.2.0)
125
- actionpack (>= 4.0)
126
- activesupport (>= 4.0)
127
- sprockets (>= 3.0.0)
128
- thor (0.20.0)
129
- thread_safe (0.3.6)
130
- tzinfo (1.2.3)
131
- thread_safe (~> 0.1)
132
- websocket-driver (0.6.5)
133
- websocket-extensions (>= 0.1.0)
134
- websocket-extensions (0.1.2)
135
-
136
- PLATFORMS
137
- ruby
138
-
139
- DEPENDENCIES
140
- appraisal (~> 2.1)
141
- bundler (~> 1.12)
142
- codeclimate-test-reporter
143
- light-services!
144
- rails (= 5.1.3)
145
- rake (~> 10.0)
146
- rspec (~> 3.0)
147
- simplecov (~> 0.11.2)
148
-
149
- BUNDLED WITH
150
- 1.15.4