lite-decorator 1.1.2 → 1.2.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
  SHA256:
3
- metadata.gz: 8b55ade8030c919c92fa0d2fe3a32f4f62475acb1bad6f9feceaa980ccd3c6b6
4
- data.tar.gz: 4c6c4d42b8c0de0bf7eb438a129500225244e35604058618f56c13c305a5aa12
3
+ metadata.gz: e0026f563698dc67b2405c7314b71e62e6505f839e3834bd512ab6b40d0815b8
4
+ data.tar.gz: 34ca2dda26a84bd2e59b69d87d7e46fd697ef908b4b68a44b20c4ca67c97d876
5
5
  SHA512:
6
- metadata.gz: 2d6f2ebb14e314383629f3ba9d43dbfca230e51d49b7889bb93f3de65d0320b8c7564f3e64aef909940ed03db1dc3ced380e69072ffa9b3891c352d693d16b93
7
- data.tar.gz: 33bf25eae3d2b278af066455f0d96ab1371032b2c47d285fc8fa555b820a7d2ccc21976b71620256af48580b4c93e1c637e3caa437a5c775eb2ade6c71c489c2
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
- Max: 100
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
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- source 'https://rubygems.org'
3
+ source "https://rubygems.org"
4
4
 
5
5
  # Specify your gem's dependencies in lite-decorator.gemspec
6
6
  gemspec
data/Gemfile.lock CHANGED
@@ -1,129 +1,169 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- lite-decorator (1.1.2)
4
+ lite-decorator (1.2.1)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
8
8
  specs:
9
- actionpack (6.1.4)
10
- actionview (= 6.1.4)
11
- activesupport (= 6.1.4)
12
- rack (~> 2.0, >= 2.0.9)
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.0)
15
- rails-html-sanitizer (~> 1.0, >= 1.2.0)
16
- actionview (6.1.4)
17
- activesupport (= 6.1.4)
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.4)
20
- rails-dom-testing (~> 2.0)
21
- rails-html-sanitizer (~> 1.1, >= 1.2.0)
22
- activemodel (6.1.4)
23
- activesupport (= 6.1.4)
24
- activerecord (6.1.4)
25
- activemodel (= 6.1.4)
26
- activesupport (= 6.1.4)
27
- activesupport (6.1.4)
28
- concurrent-ruby (~> 1.0, >= 1.0.2)
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
- tzinfo (~> 2.0)
32
- zeitwerk (~> 2.3)
41
+ securerandom (>= 0.3)
42
+ tzinfo (~> 2.0, >= 2.0.5)
33
43
  ast (2.4.2)
34
- builder (3.2.4)
35
- colorize (0.8.1)
36
- concurrent-ruby (1.1.9)
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.1)
39
- database_cleaner-active_record (~> 2.0.0)
40
- database_cleaner-active_record (2.0.1)
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.4.4)
45
- erubi (1.10.0)
46
- fasterer (0.9.0)
47
- colorize (~> 0.7)
48
- ruby_parser (>= 3.14.1)
49
- generator_spec (0.9.4)
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.8.10)
64
+ i18n (1.14.6)
53
65
  concurrent-ruby (~> 1.0)
54
- loofah (2.10.0)
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.5.9)
57
- method_source (1.0.0)
58
- mini_portile2 (2.5.3)
59
- minitest (5.14.4)
60
- nokogiri (1.11.7)
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.20.1)
64
- parser (3.0.2.0)
81
+ parallel (1.26.3)
82
+ parser (3.3.5.0)
65
83
  ast (~> 2.4.1)
66
- racc (1.5.2)
67
- rack (2.2.3)
68
- rack-test (1.1.0)
69
- rack (>= 1.0, < 3)
70
- rails-dom-testing (2.0.3)
71
- activesupport (>= 4.2.0)
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.3.0)
74
- loofah (~> 2.3)
75
- railties (6.1.4)
76
- actionpack (= 6.1.4)
77
- activesupport (= 6.1.4)
78
- method_source
79
- rake (>= 0.13)
80
- thor (~> 1.0)
81
- rainbow (3.0.0)
82
- rake (13.0.6)
83
- regexp_parser (2.1.1)
84
- rexml (3.2.5)
85
- rspec (3.10.0)
86
- rspec-core (~> 3.10.0)
87
- rspec-expectations (~> 3.10.0)
88
- rspec-mocks (~> 3.10.0)
89
- rspec-core (3.10.1)
90
- rspec-support (~> 3.10.0)
91
- rspec-expectations (3.10.1)
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.10.0)
94
- rspec-mocks (3.10.2)
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.10.0)
97
- rspec-support (3.10.2)
98
- rubocop (1.18.3)
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.0.0.0)
135
+ parser (>= 3.3.0.2)
101
136
  rainbow (>= 2.2.2, < 4.0)
102
- regexp_parser (>= 1.8, < 3.0)
103
- rexml
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 (>= 1.4.0, < 3.0)
107
- rubocop-ast (1.8.0)
108
- parser (>= 3.0.1.1)
109
- rubocop-performance (1.11.4)
110
- rubocop (>= 1.7.0, < 2.0)
111
- rubocop-ast (>= 0.4.0)
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 (2.4.0)
115
- rubocop (~> 1.0)
116
- rubocop-ast (>= 1.1.0)
117
- ruby-progressbar (1.11.0)
118
- ruby_parser (3.16.0)
119
- sexp_processor (~> 4.15, >= 4.15.1)
120
- sexp_processor (4.15.3)
121
- sqlite3 (1.4.2)
122
- thor (1.1.0)
123
- tzinfo (2.0.4)
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.0.0)
126
- zeitwerk (2.4.2)
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.2.24
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
- ### Generator
32
+ #### Generator
33
33
 
34
34
  Use `rails g decorator NAME` will generate the following files:
35
35
 
36
36
  ```erb
37
- app/decorators/[name]_decorator.rb
37
+ app/decorators/[NAME]_decorator.rb
38
38
  ```
39
39
 
40
- If a `ApplicationDecorator` file in the `app/decorators` directory is available, the
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
- ## Decorator
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 and thats it.
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 # || User.all
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/[USERNAME]/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
+ 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/[USERNAME]/lite-decorator/blob/master/CODE_OF_CONDUCT.md).
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
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require 'bundler/gem_tasks'
4
- require 'rspec/core/rake_task'
3
+ require "bundler/gem_tasks"
4
+ require "rspec/core/rake_task"
5
5
 
6
6
  RSpec::Core::RakeTask.new(:spec)
7
7
 
data/bin/console CHANGED
@@ -1,8 +1,8 @@
1
1
  #!/usr/bin/env ruby
2
2
  # frozen_string_literal: true
3
3
 
4
- require 'bundler/setup'
5
- require 'lite/decorator'
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 'irb'
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('../templates', __FILE__)
7
- check_class_collision suffix: 'Decorator'
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('app', 'decorators', class_path, "#{file_name}_decorator.rb")
11
- template('decorator.rb.tt', path)
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
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require 'delegate' unless defined?(SimpleDelegator)
3
+ require "delegate" unless defined?(SimpleDelegator)
4
4
 
5
5
  module Lite
6
6
  module Decorator
@@ -3,7 +3,7 @@
3
3
  module Lite
4
4
  module Decorator
5
5
 
6
- VERSION = '1.1.2'
6
+ VERSION = "1.2.1"
7
7
 
8
8
  end
9
9
  end
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require 'generators/rails/decorator_generator' if defined?(Rails::Generators)
3
+ require "generators/rails/decorator_generator" if defined?(Rails::Generators)
4
4
 
5
- require 'lite/decorator/version'
6
- require 'lite/decorator/base'
5
+ require "lite/decorator/version"
6
+ require "lite/decorator/base"
@@ -1,52 +1,46 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- lib = File.expand_path('../lib', __FILE__)
3
+ lib = File.expand_path("../lib", __FILE__)
4
4
  $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
5
- require 'lite/decorator/version'
5
+ require "lite/decorator/version"
6
6
 
7
7
  Gem::Specification.new do |spec|
8
- spec.name = 'lite-decorator'
8
+ spec.name = "lite-decorator"
9
9
  spec.version = Lite::Decorator::VERSION
10
- spec.authors = ['Juan Gomez']
10
+ spec.authors = ["Juan Gomez"]
11
11
  spec.email = %w[j.gomez@drexed.com]
12
12
 
13
- spec.summary = 'Ruby Decorator based framework (aka decorator/presenter objects)'
14
- spec.homepage = 'http://drexed.github.io/lite-decorator'
15
- spec.license = 'MIT'
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
- if spec.respond_to?(:metadata)
20
- spec.metadata.merge(
21
- 'allowed_push_host' => 'https://rubygems.org',
22
- 'changelog_uri' => 'https://github.com/drexed/lite-decorator/blob/master/CHANGELOG.md',
23
- 'homepage_uri' => spec.homepage,
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('..', __FILE__)) do
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 = 'exe'
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 'activerecord'
41
- spec.add_development_dependency 'bundler'
42
- spec.add_development_dependency 'database_cleaner'
43
- spec.add_development_dependency 'fasterer'
44
- spec.add_development_dependency 'generator_spec'
45
- spec.add_development_dependency 'rake'
46
- spec.add_development_dependency 'rspec'
47
- spec.add_development_dependency 'rubocop'
48
- spec.add_development_dependency 'rubocop-performance'
49
- spec.add_development_dependency 'rubocop-rake'
50
- spec.add_development_dependency 'rubocop-rspec'
51
- spec.add_development_dependency 'sqlite3'
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.2
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: 2021-07-22 00:00:00.000000000 Z
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.2.24
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=