lite-decorator 1.1.2 → 1.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.rubocop.yml +7 -2
- data/CHANGELOG.md +9 -0
- data/Gemfile +1 -1
- data/Gemfile.lock +136 -96
- data/README.md +16 -15
- data/Rakefile +2 -2
- data/bin/console +3 -3
- data/lib/generators/rails/decorator_generator.rb +5 -5
- data/lib/lite/decorator/base.rb +1 -1
- data/lib/lite/decorator/version.rb +1 -1
- data/lib/lite/decorator.rb +3 -3
- data/lite-decorator.gemspec +26 -32
- metadata +9 -5
- data/.travis.yml +0 -24
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e0026f563698dc67b2405c7314b71e62e6505f839e3834bd512ab6b40d0815b8
|
4
|
+
data.tar.gz: 34ca2dda26a84bd2e59b69d87d7e46fd697ef908b4b68a44b20c4ca67c97d876
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: eaaa7dad4f695a770c416d0387afc33432e0f79915cd7c5c832ae1e06c3e41d5a3e4d9b8e371971a5cd17a31a1f59a164ff0090308dbe8e0fe8cfc4c0227b273
|
7
|
+
data.tar.gz: dbc3256f11d9184ff53d5476d7f3f69880dea7aeeaa768450ff526d94953f1563df2b32f7a09d263c3e6a793d81b9bb4a003256b315097a0b1cc6da8e8cc3ab5
|
data/.rubocop.yml
CHANGED
@@ -3,10 +3,11 @@ require:
|
|
3
3
|
- rubocop-rake
|
4
4
|
- rubocop-rspec
|
5
5
|
AllCops:
|
6
|
-
TargetRubyVersion: 3.0
|
7
6
|
NewCops: enable
|
8
7
|
DisplayCopNames: true
|
9
8
|
DisplayStyleGuide: true
|
9
|
+
Gemspec/DevelopmentDependencies:
|
10
|
+
EnforcedStyle: gemspec
|
10
11
|
Gemspec/RequiredRubyVersion:
|
11
12
|
Enabled: false
|
12
13
|
Layout/EmptyLinesAroundAttributeAccessor:
|
@@ -19,7 +20,7 @@ Layout/EmptyLinesAroundClassBody:
|
|
19
20
|
Layout/EmptyLinesAroundModuleBody:
|
20
21
|
EnforcedStyle: empty_lines_except_namespace
|
21
22
|
Layout/LineLength:
|
22
|
-
|
23
|
+
Enabled: false
|
23
24
|
Layout/SpaceAroundMethodCallOperator:
|
24
25
|
Enabled: true
|
25
26
|
Lint/RaiseException:
|
@@ -42,3 +43,7 @@ Style/Documentation:
|
|
42
43
|
Enabled: false
|
43
44
|
Style/ExpandPathArguments:
|
44
45
|
Enabled: false
|
46
|
+
Style/HashSyntax:
|
47
|
+
EnforcedShorthandSyntax: never
|
48
|
+
Style/StringLiterals:
|
49
|
+
EnforcedStyle: double_quotes
|
data/CHANGELOG.md
CHANGED
@@ -6,6 +6,15 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
6
6
|
|
7
7
|
## [Unreleased]
|
8
8
|
|
9
|
+
## [1.2.1] - 2024-09-20
|
10
|
+
### Changed
|
11
|
+
- Bump dependencies
|
12
|
+
|
13
|
+
## [1.2.0] - 2022-11-19
|
14
|
+
### Changed
|
15
|
+
- Improved docs
|
16
|
+
- Improved rubocop setup
|
17
|
+
|
9
18
|
## [1.1.2] - 2021-07-21
|
10
19
|
### Changed
|
11
20
|
- Improved setup
|
data/Gemfile
CHANGED
data/Gemfile.lock
CHANGED
@@ -1,129 +1,169 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
lite-decorator (1.1
|
4
|
+
lite-decorator (1.2.1)
|
5
5
|
|
6
6
|
GEM
|
7
7
|
remote: https://rubygems.org/
|
8
8
|
specs:
|
9
|
-
actionpack (
|
10
|
-
actionview (=
|
11
|
-
activesupport (=
|
12
|
-
|
9
|
+
actionpack (7.2.1)
|
10
|
+
actionview (= 7.2.1)
|
11
|
+
activesupport (= 7.2.1)
|
12
|
+
nokogiri (>= 1.8.5)
|
13
|
+
racc
|
14
|
+
rack (>= 2.2.4, < 3.2)
|
15
|
+
rack-session (>= 1.0.1)
|
13
16
|
rack-test (>= 0.6.3)
|
14
|
-
rails-dom-testing (~> 2.
|
15
|
-
rails-html-sanitizer (~> 1.
|
16
|
-
|
17
|
-
|
17
|
+
rails-dom-testing (~> 2.2)
|
18
|
+
rails-html-sanitizer (~> 1.6)
|
19
|
+
useragent (~> 0.16)
|
20
|
+
actionview (7.2.1)
|
21
|
+
activesupport (= 7.2.1)
|
18
22
|
builder (~> 3.1)
|
19
|
-
erubi (~> 1.
|
20
|
-
rails-dom-testing (~> 2.
|
21
|
-
rails-html-sanitizer (~> 1.
|
22
|
-
activemodel (
|
23
|
-
activesupport (=
|
24
|
-
activerecord (
|
25
|
-
activemodel (=
|
26
|
-
activesupport (=
|
27
|
-
|
28
|
-
|
23
|
+
erubi (~> 1.11)
|
24
|
+
rails-dom-testing (~> 2.2)
|
25
|
+
rails-html-sanitizer (~> 1.6)
|
26
|
+
activemodel (7.2.1)
|
27
|
+
activesupport (= 7.2.1)
|
28
|
+
activerecord (7.2.1)
|
29
|
+
activemodel (= 7.2.1)
|
30
|
+
activesupport (= 7.2.1)
|
31
|
+
timeout (>= 0.4.0)
|
32
|
+
activesupport (7.2.1)
|
33
|
+
base64
|
34
|
+
bigdecimal
|
35
|
+
concurrent-ruby (~> 1.0, >= 1.3.1)
|
36
|
+
connection_pool (>= 2.2.5)
|
37
|
+
drb
|
29
38
|
i18n (>= 1.6, < 2)
|
39
|
+
logger (>= 1.4.2)
|
30
40
|
minitest (>= 5.1)
|
31
|
-
|
32
|
-
|
41
|
+
securerandom (>= 0.3)
|
42
|
+
tzinfo (~> 2.0, >= 2.0.5)
|
33
43
|
ast (2.4.2)
|
34
|
-
|
35
|
-
|
36
|
-
|
44
|
+
base64 (0.2.0)
|
45
|
+
bigdecimal (3.1.8)
|
46
|
+
builder (3.3.0)
|
47
|
+
concurrent-ruby (1.3.4)
|
48
|
+
connection_pool (2.4.1)
|
37
49
|
crass (1.0.6)
|
38
|
-
database_cleaner (2.0.
|
39
|
-
database_cleaner-active_record (
|
40
|
-
database_cleaner-active_record (2.0
|
50
|
+
database_cleaner (2.0.2)
|
51
|
+
database_cleaner-active_record (>= 2, < 3)
|
52
|
+
database_cleaner-active_record (2.2.0)
|
41
53
|
activerecord (>= 5.a)
|
42
54
|
database_cleaner-core (~> 2.0.0)
|
43
55
|
database_cleaner-core (2.0.1)
|
44
|
-
diff-lcs (1.
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
ruby_parser (>= 3.
|
49
|
-
generator_spec (0.
|
56
|
+
diff-lcs (1.5.1)
|
57
|
+
drb (2.2.1)
|
58
|
+
erubi (1.13.0)
|
59
|
+
fasterer (0.11.0)
|
60
|
+
ruby_parser (>= 3.19.1)
|
61
|
+
generator_spec (0.10.0)
|
50
62
|
activesupport (>= 3.0.0)
|
51
63
|
railties (>= 3.0.0)
|
52
|
-
i18n (1.
|
64
|
+
i18n (1.14.6)
|
53
65
|
concurrent-ruby (~> 1.0)
|
54
|
-
|
66
|
+
io-console (0.7.2)
|
67
|
+
irb (1.14.0)
|
68
|
+
rdoc (>= 4.0.0)
|
69
|
+
reline (>= 0.4.2)
|
70
|
+
json (2.7.2)
|
71
|
+
language_server-protocol (3.17.0.3)
|
72
|
+
logger (1.6.1)
|
73
|
+
loofah (2.22.0)
|
55
74
|
crass (~> 1.0.2)
|
56
|
-
nokogiri (>= 1.
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
mini_portile2 (~> 2.5.0)
|
75
|
+
nokogiri (>= 1.12.0)
|
76
|
+
mini_portile2 (2.8.7)
|
77
|
+
minitest (5.25.1)
|
78
|
+
nokogiri (1.16.7)
|
79
|
+
mini_portile2 (~> 2.8.2)
|
62
80
|
racc (~> 1.4)
|
63
|
-
parallel (1.
|
64
|
-
parser (3.
|
81
|
+
parallel (1.26.3)
|
82
|
+
parser (3.3.5.0)
|
65
83
|
ast (~> 2.4.1)
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
84
|
+
racc
|
85
|
+
psych (5.1.2)
|
86
|
+
stringio
|
87
|
+
racc (1.8.1)
|
88
|
+
rack (3.1.7)
|
89
|
+
rack-session (2.0.0)
|
90
|
+
rack (>= 3.0.0)
|
91
|
+
rack-test (2.1.0)
|
92
|
+
rack (>= 1.3)
|
93
|
+
rackup (2.1.0)
|
94
|
+
rack (>= 3)
|
95
|
+
webrick (~> 1.8)
|
96
|
+
rails-dom-testing (2.2.0)
|
97
|
+
activesupport (>= 5.0.0)
|
98
|
+
minitest
|
72
99
|
nokogiri (>= 1.6)
|
73
|
-
rails-html-sanitizer (1.
|
74
|
-
loofah (~> 2.
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
rspec
|
100
|
+
rails-html-sanitizer (1.6.0)
|
101
|
+
loofah (~> 2.21)
|
102
|
+
nokogiri (~> 1.14)
|
103
|
+
railties (7.2.1)
|
104
|
+
actionpack (= 7.2.1)
|
105
|
+
activesupport (= 7.2.1)
|
106
|
+
irb (~> 1.13)
|
107
|
+
rackup (>= 1.0.0)
|
108
|
+
rake (>= 12.2)
|
109
|
+
thor (~> 1.0, >= 1.2.2)
|
110
|
+
zeitwerk (~> 2.6)
|
111
|
+
rainbow (3.1.1)
|
112
|
+
rake (13.2.1)
|
113
|
+
rdoc (6.7.0)
|
114
|
+
psych (>= 4.0.0)
|
115
|
+
regexp_parser (2.9.2)
|
116
|
+
reline (0.5.10)
|
117
|
+
io-console (~> 0.5)
|
118
|
+
rspec (3.13.0)
|
119
|
+
rspec-core (~> 3.13.0)
|
120
|
+
rspec-expectations (~> 3.13.0)
|
121
|
+
rspec-mocks (~> 3.13.0)
|
122
|
+
rspec-core (3.13.1)
|
123
|
+
rspec-support (~> 3.13.0)
|
124
|
+
rspec-expectations (3.13.3)
|
92
125
|
diff-lcs (>= 1.2.0, < 2.0)
|
93
|
-
rspec-support (~> 3.
|
94
|
-
rspec-mocks (3.
|
126
|
+
rspec-support (~> 3.13.0)
|
127
|
+
rspec-mocks (3.13.1)
|
95
128
|
diff-lcs (>= 1.2.0, < 2.0)
|
96
|
-
rspec-support (~> 3.
|
97
|
-
rspec-support (3.
|
98
|
-
rubocop (1.
|
129
|
+
rspec-support (~> 3.13.0)
|
130
|
+
rspec-support (3.13.1)
|
131
|
+
rubocop (1.66.1)
|
132
|
+
json (~> 2.3)
|
133
|
+
language_server-protocol (>= 3.17.0)
|
99
134
|
parallel (~> 1.10)
|
100
|
-
parser (>= 3.
|
135
|
+
parser (>= 3.3.0.2)
|
101
136
|
rainbow (>= 2.2.2, < 4.0)
|
102
|
-
regexp_parser (>=
|
103
|
-
|
104
|
-
rubocop-ast (>= 1.7.0, < 2.0)
|
137
|
+
regexp_parser (>= 2.4, < 3.0)
|
138
|
+
rubocop-ast (>= 1.32.2, < 2.0)
|
105
139
|
ruby-progressbar (~> 1.7)
|
106
|
-
unicode-display_width (>=
|
107
|
-
rubocop-ast (1.
|
108
|
-
parser (>= 3.
|
109
|
-
rubocop-performance (1.
|
110
|
-
rubocop (>= 1.
|
111
|
-
rubocop-ast (>=
|
140
|
+
unicode-display_width (>= 2.4.0, < 3.0)
|
141
|
+
rubocop-ast (1.32.3)
|
142
|
+
parser (>= 3.3.1.0)
|
143
|
+
rubocop-performance (1.22.1)
|
144
|
+
rubocop (>= 1.48.1, < 2.0)
|
145
|
+
rubocop-ast (>= 1.31.1, < 2.0)
|
112
146
|
rubocop-rake (0.6.0)
|
113
147
|
rubocop (~> 1.0)
|
114
|
-
rubocop-rspec (
|
115
|
-
rubocop (~> 1.
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
sexp_processor (~> 4.
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
148
|
+
rubocop-rspec (3.0.5)
|
149
|
+
rubocop (~> 1.61)
|
150
|
+
ruby-progressbar (1.13.0)
|
151
|
+
ruby_parser (3.21.1)
|
152
|
+
racc (~> 1.5)
|
153
|
+
sexp_processor (~> 4.16)
|
154
|
+
securerandom (0.3.1)
|
155
|
+
sexp_processor (4.17.2)
|
156
|
+
sqlite3 (2.0.4)
|
157
|
+
mini_portile2 (~> 2.8.0)
|
158
|
+
stringio (3.1.1)
|
159
|
+
thor (1.3.2)
|
160
|
+
timeout (0.4.1)
|
161
|
+
tzinfo (2.0.6)
|
124
162
|
concurrent-ruby (~> 1.0)
|
125
|
-
unicode-display_width (2.
|
126
|
-
|
163
|
+
unicode-display_width (2.6.0)
|
164
|
+
useragent (0.16.10)
|
165
|
+
webrick (1.8.1)
|
166
|
+
zeitwerk (2.6.18)
|
127
167
|
|
128
168
|
PLATFORMS
|
129
169
|
ruby
|
@@ -144,4 +184,4 @@ DEPENDENCIES
|
|
144
184
|
sqlite3
|
145
185
|
|
146
186
|
BUNDLED WITH
|
147
|
-
2.
|
187
|
+
2.5.19
|
data/README.md
CHANGED
@@ -29,19 +29,19 @@ Or install it yourself as:
|
|
29
29
|
|
30
30
|
## Setup
|
31
31
|
|
32
|
-
|
32
|
+
#### Generator
|
33
33
|
|
34
34
|
Use `rails g decorator NAME` will generate the following files:
|
35
35
|
|
36
36
|
```erb
|
37
|
-
app/decorators/[
|
37
|
+
app/decorators/[NAME]_decorator.rb
|
38
38
|
```
|
39
39
|
|
40
|
-
If
|
40
|
+
If an `ApplicationDecorator` file in the `app/decorators` directory is available, the
|
41
41
|
generator will create file that inherit from `ApplicationDecorator` if not it will
|
42
42
|
fallback to `Lite::Decorator::Base`.
|
43
43
|
|
44
|
-
|
44
|
+
#### Decorator
|
45
45
|
|
46
46
|
You will need to fill this class with the methods you want to decorate:
|
47
47
|
|
@@ -57,21 +57,22 @@ end
|
|
57
57
|
|
58
58
|
## Usage
|
59
59
|
|
60
|
-
To access the decorator you need to pass the object to the decorator class
|
61
|
-
You can even decorate a collection of objects by passing the collection to `decorate`.
|
60
|
+
To access the decorator you need to pass the object to the decorator class.
|
62
61
|
|
62
|
+
#### Instance
|
63
63
|
```ruby
|
64
|
-
user = User.first
|
65
|
-
|
64
|
+
user = User.first
|
66
65
|
decorator = UserDecorator.new(user)
|
67
|
-
|
68
|
-
# - or -
|
69
|
-
|
70
|
-
decorator = UserDecorator.decorate(user)
|
71
|
-
|
72
66
|
decorator.full_name #=> "John Doe"
|
73
67
|
```
|
74
68
|
|
69
|
+
#### Collection
|
70
|
+
```ruby
|
71
|
+
users = User.all
|
72
|
+
collection = UserDecorator.new(users)
|
73
|
+
collection.map(&:full_name) #=> ["John Doe", "Jane Poe"]
|
74
|
+
```
|
75
|
+
|
75
76
|
## Development
|
76
77
|
|
77
78
|
After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
|
@@ -80,7 +81,7 @@ To install this gem onto your local machine, run `bundle exec rake install`. To
|
|
80
81
|
|
81
82
|
## Contributing
|
82
83
|
|
83
|
-
Bug reports and pull requests are welcome on GitHub at https://github.com/
|
84
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/drexed/lite-decorator. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
|
84
85
|
|
85
86
|
## License
|
86
87
|
|
@@ -88,4 +89,4 @@ The gem is available as open source under the terms of the [MIT License](https:/
|
|
88
89
|
|
89
90
|
## Code of Conduct
|
90
91
|
|
91
|
-
Everyone interacting in the Lite::Decorator project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/
|
92
|
+
Everyone interacting in the Lite::Decorator project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/drexed/lite-decorator/blob/master/CODE_OF_CONDUCT.md).
|
data/Rakefile
CHANGED
data/bin/console
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
#!/usr/bin/env ruby
|
2
2
|
# frozen_string_literal: true
|
3
3
|
|
4
|
-
require
|
5
|
-
require
|
4
|
+
require "bundler/setup"
|
5
|
+
require "lite/decorator"
|
6
6
|
|
7
7
|
# You can add fixtures and/or initialization code here to make experimenting
|
8
8
|
# with your gem easier. You can also use a different console, if you like.
|
@@ -11,5 +11,5 @@ require 'lite/decorator'
|
|
11
11
|
# require "pry"
|
12
12
|
# Pry.start
|
13
13
|
|
14
|
-
require
|
14
|
+
require "irb"
|
15
15
|
IRB.start(__FILE__)
|
@@ -3,12 +3,12 @@
|
|
3
3
|
module Rails
|
4
4
|
class DecoratorGenerator < Rails::Generators::NamedBase
|
5
5
|
|
6
|
-
source_root File.expand_path(
|
7
|
-
check_class_collision suffix:
|
6
|
+
source_root File.expand_path("../templates", __FILE__)
|
7
|
+
check_class_collision suffix: "Decorator"
|
8
8
|
|
9
9
|
def copy_files
|
10
|
-
path = File.join(
|
11
|
-
template(
|
10
|
+
path = File.join("app", "decorators", class_path, "#{file_name}_decorator.rb")
|
11
|
+
template("decorator.rb.tt", path)
|
12
12
|
end
|
13
13
|
|
14
14
|
private
|
@@ -18,7 +18,7 @@ module Rails
|
|
18
18
|
end
|
19
19
|
|
20
20
|
def remove_possible_suffix(name)
|
21
|
-
name.sub(/_?decorator$/i,
|
21
|
+
name.sub(/_?decorator$/i, "")
|
22
22
|
end
|
23
23
|
|
24
24
|
end
|
data/lib/lite/decorator/base.rb
CHANGED
data/lib/lite/decorator.rb
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
require
|
3
|
+
require "generators/rails/decorator_generator" if defined?(Rails::Generators)
|
4
4
|
|
5
|
-
require
|
6
|
-
require
|
5
|
+
require "lite/decorator/version"
|
6
|
+
require "lite/decorator/base"
|
data/lite-decorator.gemspec
CHANGED
@@ -1,52 +1,46 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
lib = File.expand_path(
|
3
|
+
lib = File.expand_path("../lib", __FILE__)
|
4
4
|
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
5
|
-
require
|
5
|
+
require "lite/decorator/version"
|
6
6
|
|
7
7
|
Gem::Specification.new do |spec|
|
8
|
-
spec.name =
|
8
|
+
spec.name = "lite-decorator"
|
9
9
|
spec.version = Lite::Decorator::VERSION
|
10
|
-
spec.authors = [
|
10
|
+
spec.authors = ["Juan Gomez"]
|
11
11
|
spec.email = %w[j.gomez@drexed.com]
|
12
12
|
|
13
|
-
spec.summary =
|
14
|
-
spec.homepage =
|
15
|
-
spec.license =
|
13
|
+
spec.summary = "Ruby Decorator based framework (aka decorator/presenter objects)"
|
14
|
+
spec.homepage = "http://drexed.github.io/lite-decorator"
|
15
|
+
spec.license = "MIT"
|
16
16
|
|
17
17
|
# Prevent pushing this gem to RubyGems.org. To allow pushes either set the 'allowed_push_host'
|
18
18
|
# to allow pushing to a single host or delete this section to allow pushing to any host.
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
'source_code_uri' => 'https://github.com/drexed/lite-decorator'
|
25
|
-
)
|
26
|
-
else
|
27
|
-
raise 'RubyGems 2.0 or newer is required to protect against ' \
|
28
|
-
'public gem pushes.'
|
29
|
-
end
|
19
|
+
spec.metadata["allowed_push_host"] = "https://rubygems.org"
|
20
|
+
spec.metadata["changelog_uri"] = "https://github.com/drexed/lite-decorator/blob/master/CHANGELOG.md"
|
21
|
+
spec.metadata["homepage_uri"] = spec.homepage
|
22
|
+
spec.metadata["rubygems_mfa_required"] = "true"
|
23
|
+
spec.metadata["source_code_uri"] = "https://github.com/drexed/lite-decorator"
|
30
24
|
|
31
25
|
# Specify which files should be added to the gem when it is released.
|
32
26
|
# The `git ls-files -z` loads the files in the RubyGem that have been added into git.
|
33
|
-
spec.files = Dir.chdir(File.expand_path(
|
27
|
+
spec.files = Dir.chdir(File.expand_path("..", __FILE__)) do
|
34
28
|
`git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
35
29
|
end
|
36
|
-
spec.bindir =
|
30
|
+
spec.bindir = "exe"
|
37
31
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
38
32
|
spec.require_paths = %w[lib]
|
39
33
|
|
40
|
-
spec.add_development_dependency
|
41
|
-
spec.add_development_dependency
|
42
|
-
spec.add_development_dependency
|
43
|
-
spec.add_development_dependency
|
44
|
-
spec.add_development_dependency
|
45
|
-
spec.add_development_dependency
|
46
|
-
spec.add_development_dependency
|
47
|
-
spec.add_development_dependency
|
48
|
-
spec.add_development_dependency
|
49
|
-
spec.add_development_dependency
|
50
|
-
spec.add_development_dependency
|
51
|
-
spec.add_development_dependency
|
34
|
+
spec.add_development_dependency "activerecord"
|
35
|
+
spec.add_development_dependency "bundler"
|
36
|
+
spec.add_development_dependency "database_cleaner"
|
37
|
+
spec.add_development_dependency "fasterer"
|
38
|
+
spec.add_development_dependency "generator_spec"
|
39
|
+
spec.add_development_dependency "rake"
|
40
|
+
spec.add_development_dependency "rspec"
|
41
|
+
spec.add_development_dependency "rubocop"
|
42
|
+
spec.add_development_dependency "rubocop-performance"
|
43
|
+
spec.add_development_dependency "rubocop-rake"
|
44
|
+
spec.add_development_dependency "rubocop-rspec"
|
45
|
+
spec.add_development_dependency "sqlite3"
|
52
46
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: lite-decorator
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1
|
4
|
+
version: 1.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Juan Gomez
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2024-09-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activerecord
|
@@ -189,7 +189,6 @@ files:
|
|
189
189
|
- ".gitignore"
|
190
190
|
- ".rspec"
|
191
191
|
- ".rubocop.yml"
|
192
|
-
- ".travis.yml"
|
193
192
|
- CHANGELOG.md
|
194
193
|
- CODE_OF_CONDUCT.md
|
195
194
|
- Gemfile
|
@@ -210,7 +209,12 @@ files:
|
|
210
209
|
homepage: http://drexed.github.io/lite-decorator
|
211
210
|
licenses:
|
212
211
|
- MIT
|
213
|
-
metadata:
|
212
|
+
metadata:
|
213
|
+
allowed_push_host: https://rubygems.org
|
214
|
+
changelog_uri: https://github.com/drexed/lite-decorator/blob/master/CHANGELOG.md
|
215
|
+
homepage_uri: http://drexed.github.io/lite-decorator
|
216
|
+
rubygems_mfa_required: 'true'
|
217
|
+
source_code_uri: https://github.com/drexed/lite-decorator
|
214
218
|
post_install_message:
|
215
219
|
rdoc_options: []
|
216
220
|
require_paths:
|
@@ -226,7 +230,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
226
230
|
- !ruby/object:Gem::Version
|
227
231
|
version: '0'
|
228
232
|
requirements: []
|
229
|
-
rubygems_version: 3.
|
233
|
+
rubygems_version: 3.5.19
|
230
234
|
signing_key:
|
231
235
|
specification_version: 4
|
232
236
|
summary: Ruby Decorator based framework (aka decorator/presenter objects)
|
data/.travis.yml
DELETED
@@ -1,24 +0,0 @@
|
|
1
|
-
sudo: false
|
2
|
-
language: ruby
|
3
|
-
cache: bundler
|
4
|
-
rvm:
|
5
|
-
- 2.5
|
6
|
-
- 2.6
|
7
|
-
- ruby-head
|
8
|
-
matrix:
|
9
|
-
fast_finish: true
|
10
|
-
allow_failures:
|
11
|
-
- rvm: ruby-head
|
12
|
-
before_install:
|
13
|
-
- gem update --system
|
14
|
-
- gem install bundler
|
15
|
-
install:
|
16
|
-
- bundle install --jobs=3 --retry=3
|
17
|
-
script:
|
18
|
-
- bundle exec rspec
|
19
|
-
- bundle exec rubocop
|
20
|
-
- bundle exec fasterer
|
21
|
-
notifications:
|
22
|
-
email: false
|
23
|
-
slack:
|
24
|
-
secure: OMdJ1GhPFL/lFCdzXvZRygea1ahrZloZiIH+lJ+yuneKirbyCDbVFd9wNVdw3gUjDmxwtj9kXUPcBy0XcgSxh3ExJY/LBn3ylVwANfSND0ReO/erOLBzUk4cM/Pqxvm4bh2PnrEjkfEe2iuZiypCGZVTn6ovsFo60WB3TIz8bZem6OOMUqk6s54D18/FAfmwcOf7Sct0rE+S2aNM7HscREkzmP1TEF9VsasOJJEi7o0vqtXkPskBI6ZNpuShHq58b/ViE8ymK11cUteXmAmT7kVWCAfDRyOrFrpa4rr1o4kWvZyDcsoLcidW7Ly33CfVuBSv9h5wXoYli8TyRLz+Ni6Y0Th/3PCA/YHuQcWZH2kuRdnbZ19OrD+yWeXDoR3celF/3ZmMkwcDwerdXjSR0NY48jJkn0Bvui8cpTrT1xZLEePleX76d0y42W5vmKqWQJ6UeEtxnadoelsUiJmrXPYRJCUqlRql8l30v0jy+uQCpHR/OfJyBFhTTaI4Qf/u6INOWwK3TWBXM8Ph9qjxILLwnfQMbxBsfFJ6LL09z7H2EKH7O3BRriOPZc3Al+VCtochE5VRfauUWvBMYi2yq87d30QWQ759ML2Jw1xX1ZGqOjNPDqJyGnEkT6ONTKf8unubBBYbiOGGRiBwVelqbZ3kX8V8M/zNAxzjh/6q3uA=
|