power-types 0.3.1 → 0.6.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.circleci/config.yml +103 -0
- data/.circleci/setup-rubygems.sh +3 -0
- data/.rubocop.yml +49 -591
- data/.ruby-version +1 -0
- data/LICENSE.txt +1 -1
- data/README.md +194 -23
- data/lib/generators/power_types/init_generator.rb +10 -0
- data/lib/generators/rails/presenter_generator.rb +12 -0
- data/lib/generators/rails/templates/presenter.rb +2 -0
- data/lib/generators/rails/templates/presenter_spec.rb +5 -0
- data/lib/generators/rails/templates/util.rb +7 -0
- data/lib/generators/rails/templates/util_spec.rb +9 -0
- data/lib/generators/rails/util_generator.rb +14 -0
- data/lib/power_types/errors.rb +3 -0
- data/lib/power_types/patterns/base_util.rb +7 -0
- data/lib/power_types/patterns/observer/observer.rb +18 -0
- data/lib/power_types/patterns/presenter/base_presenter.rb +28 -0
- data/lib/power_types/patterns/presenter/presentable.rb +20 -0
- data/lib/power_types/util.rb +1 -0
- data/lib/power_types/version.rb +1 -1
- data/lib/power_types.rb +14 -7
- data/power-types.gemspec +10 -10
- metadata +60 -50
- data/.hound.yml +0 -4
- data/.travis.yml +0 -13
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: power-types
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.6.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ignacio Baixas
|
@@ -9,64 +9,70 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: exe
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2022-09-09 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
|
-
name:
|
15
|
+
name: activesupport
|
16
16
|
requirement: !ruby/object:Gem::Requirement
|
17
17
|
requirements:
|
18
|
-
- - "
|
18
|
+
- - ">="
|
19
19
|
- !ruby/object:Gem::Version
|
20
|
-
version: '
|
21
|
-
type: :
|
20
|
+
version: '0'
|
21
|
+
type: :runtime
|
22
22
|
prerelease: false
|
23
23
|
version_requirements: !ruby/object:Gem::Requirement
|
24
24
|
requirements:
|
25
|
-
- - "
|
25
|
+
- - ">="
|
26
26
|
- !ruby/object:Gem::Version
|
27
|
-
version: '
|
27
|
+
version: '0'
|
28
28
|
- !ruby/object:Gem::Dependency
|
29
|
-
name:
|
29
|
+
name: after_commit_everywhere
|
30
30
|
requirement: !ruby/object:Gem::Requirement
|
31
31
|
requirements:
|
32
32
|
- - "~>"
|
33
33
|
- !ruby/object:Gem::Version
|
34
|
-
version: '
|
35
|
-
|
34
|
+
version: '1.2'
|
35
|
+
- - ">="
|
36
|
+
- !ruby/object:Gem::Version
|
37
|
+
version: 1.2.2
|
38
|
+
type: :runtime
|
36
39
|
prerelease: false
|
37
40
|
version_requirements: !ruby/object:Gem::Requirement
|
38
41
|
requirements:
|
39
42
|
- - "~>"
|
40
43
|
- !ruby/object:Gem::Version
|
41
|
-
version: '
|
44
|
+
version: '1.2'
|
45
|
+
- - ">="
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: 1.2.2
|
42
48
|
- !ruby/object:Gem::Dependency
|
43
|
-
name:
|
49
|
+
name: bundler
|
44
50
|
requirement: !ruby/object:Gem::Requirement
|
45
51
|
requirements:
|
46
52
|
- - "~>"
|
47
53
|
- !ruby/object:Gem::Version
|
48
|
-
version:
|
54
|
+
version: 2.2.15
|
49
55
|
type: :development
|
50
56
|
prerelease: false
|
51
57
|
version_requirements: !ruby/object:Gem::Requirement
|
52
58
|
requirements:
|
53
59
|
- - "~>"
|
54
60
|
- !ruby/object:Gem::Version
|
55
|
-
version:
|
61
|
+
version: 2.2.15
|
56
62
|
- !ruby/object:Gem::Dependency
|
57
|
-
name:
|
63
|
+
name: coveralls
|
58
64
|
requirement: !ruby/object:Gem::Requirement
|
59
65
|
requirements:
|
60
|
-
- - "
|
66
|
+
- - ">="
|
61
67
|
- !ruby/object:Gem::Version
|
62
|
-
version: '0
|
68
|
+
version: '0'
|
63
69
|
type: :development
|
64
70
|
prerelease: false
|
65
71
|
version_requirements: !ruby/object:Gem::Requirement
|
66
72
|
requirements:
|
67
|
-
- - "
|
73
|
+
- - ">="
|
68
74
|
- !ruby/object:Gem::Version
|
69
|
-
version: '0
|
75
|
+
version: '0'
|
70
76
|
- !ruby/object:Gem::Dependency
|
71
77
|
name: guard
|
72
78
|
requirement: !ruby/object:Gem::Requirement
|
@@ -96,83 +102,77 @@ dependencies:
|
|
96
102
|
- !ruby/object:Gem::Version
|
97
103
|
version: '4.5'
|
98
104
|
- !ruby/object:Gem::Dependency
|
99
|
-
name:
|
105
|
+
name: pry
|
100
106
|
requirement: !ruby/object:Gem::Requirement
|
101
107
|
requirements:
|
102
108
|
- - "~>"
|
103
109
|
- !ruby/object:Gem::Version
|
104
|
-
version: '
|
105
|
-
- - ">="
|
106
|
-
- !ruby/object:Gem::Version
|
107
|
-
version: 1.6.1
|
110
|
+
version: '0.10'
|
108
111
|
type: :development
|
109
112
|
prerelease: false
|
110
113
|
version_requirements: !ruby/object:Gem::Requirement
|
111
114
|
requirements:
|
112
115
|
- - "~>"
|
113
116
|
- !ruby/object:Gem::Version
|
114
|
-
version: '
|
115
|
-
- - ">="
|
116
|
-
- !ruby/object:Gem::Version
|
117
|
-
version: 1.6.1
|
117
|
+
version: '0.10'
|
118
118
|
- !ruby/object:Gem::Dependency
|
119
|
-
name:
|
119
|
+
name: rake
|
120
120
|
requirement: !ruby/object:Gem::Requirement
|
121
121
|
requirements:
|
122
122
|
- - "~>"
|
123
123
|
- !ruby/object:Gem::Version
|
124
|
-
version: '
|
124
|
+
version: '10.4'
|
125
125
|
type: :development
|
126
126
|
prerelease: false
|
127
127
|
version_requirements: !ruby/object:Gem::Requirement
|
128
128
|
requirements:
|
129
129
|
- - "~>"
|
130
130
|
- !ruby/object:Gem::Version
|
131
|
-
version: '
|
131
|
+
version: '10.4'
|
132
132
|
- !ruby/object:Gem::Dependency
|
133
|
-
name:
|
133
|
+
name: rspec
|
134
134
|
requirement: !ruby/object:Gem::Requirement
|
135
135
|
requirements:
|
136
136
|
- - "~>"
|
137
137
|
- !ruby/object:Gem::Version
|
138
|
-
version: '
|
138
|
+
version: '3.1'
|
139
139
|
type: :development
|
140
140
|
prerelease: false
|
141
141
|
version_requirements: !ruby/object:Gem::Requirement
|
142
142
|
requirements:
|
143
143
|
- - "~>"
|
144
144
|
- !ruby/object:Gem::Version
|
145
|
-
version: '
|
145
|
+
version: '3.1'
|
146
146
|
- !ruby/object:Gem::Dependency
|
147
|
-
name:
|
147
|
+
name: rspec_junit_formatter
|
148
148
|
requirement: !ruby/object:Gem::Requirement
|
149
149
|
requirements:
|
150
|
-
- - "
|
150
|
+
- - ">="
|
151
151
|
- !ruby/object:Gem::Version
|
152
|
-
version: '
|
152
|
+
version: '0'
|
153
153
|
type: :development
|
154
154
|
prerelease: false
|
155
155
|
version_requirements: !ruby/object:Gem::Requirement
|
156
156
|
requirements:
|
157
|
-
- - "
|
157
|
+
- - ">="
|
158
158
|
- !ruby/object:Gem::Version
|
159
|
-
version: '
|
159
|
+
version: '0'
|
160
160
|
- !ruby/object:Gem::Dependency
|
161
|
-
name:
|
161
|
+
name: rubocop
|
162
162
|
requirement: !ruby/object:Gem::Requirement
|
163
163
|
requirements:
|
164
|
-
- -
|
164
|
+
- - '='
|
165
165
|
- !ruby/object:Gem::Version
|
166
|
-
version: '0.
|
166
|
+
version: '0.66'
|
167
167
|
type: :development
|
168
168
|
prerelease: false
|
169
169
|
version_requirements: !ruby/object:Gem::Requirement
|
170
170
|
requirements:
|
171
|
-
- -
|
171
|
+
- - '='
|
172
172
|
- !ruby/object:Gem::Version
|
173
|
-
version: '0.
|
173
|
+
version: '0.66'
|
174
174
|
- !ruby/object:Gem::Dependency
|
175
|
-
name:
|
175
|
+
name: rubocop-rspec
|
176
176
|
requirement: !ruby/object:Gem::Requirement
|
177
177
|
requirements:
|
178
178
|
- - ">="
|
@@ -193,12 +193,13 @@ executables: []
|
|
193
193
|
extensions: []
|
194
194
|
extra_rdoc_files: []
|
195
195
|
files:
|
196
|
+
- ".circleci/config.yml"
|
197
|
+
- ".circleci/setup-rubygems.sh"
|
196
198
|
- ".coveralls.yml"
|
197
199
|
- ".gitignore"
|
198
|
-
- ".hound.yml"
|
199
200
|
- ".rspec"
|
200
201
|
- ".rubocop.yml"
|
201
|
-
- ".
|
202
|
+
- ".ruby-version"
|
202
203
|
- CODE_OF_CONDUCT.md
|
203
204
|
- Gemfile
|
204
205
|
- Guardfile
|
@@ -208,19 +209,29 @@ files:
|
|
208
209
|
- lib/generators/power_types/init_generator.rb
|
209
210
|
- lib/generators/rails/command_generator.rb
|
210
211
|
- lib/generators/rails/observer_generator.rb
|
212
|
+
- lib/generators/rails/presenter_generator.rb
|
211
213
|
- lib/generators/rails/service_generator.rb
|
212
214
|
- lib/generators/rails/templates/command.rb
|
213
215
|
- lib/generators/rails/templates/command_spec.rb
|
214
216
|
- lib/generators/rails/templates/observer.rb
|
215
217
|
- lib/generators/rails/templates/observer_spec.rb
|
218
|
+
- lib/generators/rails/templates/presenter.rb
|
219
|
+
- lib/generators/rails/templates/presenter_spec.rb
|
216
220
|
- lib/generators/rails/templates/service.rb
|
217
221
|
- lib/generators/rails/templates/service_spec.rb
|
222
|
+
- lib/generators/rails/templates/util.rb
|
223
|
+
- lib/generators/rails/templates/util_spec.rb
|
224
|
+
- lib/generators/rails/util_generator.rb
|
218
225
|
- lib/power-types.rb
|
219
226
|
- lib/power_types.rb
|
227
|
+
- lib/power_types/errors.rb
|
228
|
+
- lib/power_types/patterns/base_util.rb
|
220
229
|
- lib/power_types/patterns/command.rb
|
221
230
|
- lib/power_types/patterns/observer/observable.rb
|
222
231
|
- lib/power_types/patterns/observer/observer.rb
|
223
232
|
- lib/power_types/patterns/observer/trigger.rb
|
233
|
+
- lib/power_types/patterns/presenter/base_presenter.rb
|
234
|
+
- lib/power_types/patterns/presenter/presentable.rb
|
224
235
|
- lib/power_types/patterns/service.rb
|
225
236
|
- lib/power_types/util.rb
|
226
237
|
- lib/power_types/version.rb
|
@@ -244,8 +255,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
244
255
|
- !ruby/object:Gem::Version
|
245
256
|
version: '0'
|
246
257
|
requirements: []
|
247
|
-
|
248
|
-
rubygems_version: 2.7.7
|
258
|
+
rubygems_version: 3.1.6
|
249
259
|
signing_key:
|
250
260
|
specification_version: 4
|
251
261
|
summary: Power Types for Rails by Platanus
|
data/.hound.yml
DELETED
data/.travis.yml
DELETED
@@ -1,13 +0,0 @@
|
|
1
|
-
sudo: false
|
2
|
-
language: ruby
|
3
|
-
rvm:
|
4
|
-
- 2.3.1
|
5
|
-
before_install: gem install bundler -v 1.12.4
|
6
|
-
deploy:
|
7
|
-
provider: rubygems
|
8
|
-
api_key:
|
9
|
-
secure: e5mtRDYciM2I5IxsMJDKKNSHgyQsfmAQEMCgbf1tN+SEmxeJTif0FXfA1M4vZ2y6XL7sza0Pf1hTMIqmEIh4L8tv/JxTOl6ZWkD2l8x+nn/2Hlu5mVsztsBh+qDPWPg29hbvTptOfcLHfAqIboB4L4f5nNuHeeLZQjGD7irwaVil7IntV3oG+XfD1uJzkqO9x7Xw+cN+HzACwZQ3u+XhmedCnMWJdCwai5QZAYlytxqKirYoGgS9pi4ZgAs0ptIT+aG3dG8ckCRvhDiu2iGDrv7AnG+K2MrI7O06g0676Iao1O0xTcW2Yo9uArkVXRo9L3Ghk1T5O5zCPoiF7oLiNlBkHeRGOw/+H+88NxziNaOi9BZswn2ROpFylVPrg8hDvIoOqRZfxqgnCtM2vTdOdyCcPOJgm3nhZl9OZ9aPbE3x/Fh5zXVBFT5Vwz3RV0s9uDuKa6pjphxOGb/be+ZYyPJ/uOU7Wo6Qj+lQ+/YBwbZ2wPJ2qAqb69gRBliYpSFbMsLptKw7YUYNW22yknZHGrhHlok7YDDpotUMMDJmSKUrXvBIPdqq9Y61gXLXE5QxxQkWqAFyhluDDMdIDs0PMkDBl45LvHfPJQZxp8sX+FK5ashmMPgdsDcb8DRK+LYrCHrinMkPcwIME5JeuAnb7bT0ErrtBSq8iAD8sPeI+/Q=
|
10
|
-
gem: power-types
|
11
|
-
on:
|
12
|
-
tags: true
|
13
|
-
repo: platanus/power-types
|