dekorator 1.4.0 → 1.6.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +20 -1
- data/README.md +2 -2
- data/lib/dekorator/rails/record.rb +11 -0
- data/lib/dekorator/railtie.rb +2 -0
- data/lib/dekorator/version.rb +1 -1
- data/lib/generators/rspec/templates/decorator_spec.rb +1 -1
- metadata +17 -16
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1a7c142a20d3bdeb4891a93cabdabf5186b2190a9e29fe2e16134e4001f36e55
|
4
|
+
data.tar.gz: d91d13e74814b535417e7bef1e53b1f4c0aad977f4b47931cb8d921b4da4e841
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2247b7fed17d4cbebe2e3e8b8a493812d56476e65c52a5fe6522e5d0bc2f554f1b2329bec42f0e944f7714acddcc60121994311d8abb60b7537ff69a7bdb666b
|
7
|
+
data.tar.gz: 9b99064c81f694164125e056fed2ac90eadaea80876987be4aa3f7f6b89ea1856032517ecb84fcedf10858f1c72a6e6a42fc54aca1a56d30de44b4ca8f7c6faf
|
data/CHANGELOG.md
CHANGED
@@ -8,6 +8,23 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
8
8
|
## [Unreleased]
|
9
9
|
Nothing yet.
|
10
10
|
|
11
|
+
## [1.6.0] - 2024-09-10
|
12
|
+
### Added
|
13
|
+
- Add Rails 7.2 support ([#54](https://github.com/komposable/dekorator/pull/54))
|
14
|
+
### Removed
|
15
|
+
- Drop Ruby 3.0 support ([#54](https://github.com/komposable/dekorator/pull/54))
|
16
|
+
- Drop Rails 6.1 support ([#54](https://github.com/komposable/dekorator/pull/54))
|
17
|
+
|
18
|
+
## [1.5.0] - 2024-03-06
|
19
|
+
### Added
|
20
|
+
- Add Ruby 3.3 support ([#53](https://github.com/komposable/dekorator/pull/53))
|
21
|
+
- Include `#decorated` method in `ActiveRecord::Base` ([#52](https://github.com/komposable/dekorator/pull/52))
|
22
|
+
### Fixes
|
23
|
+
- Fix RSpec `decorator_spec.rb` template by using `File#exist?` instead `File#exists?` ([#51](https://github.com/komposable/dekorator/pull/51))
|
24
|
+
### Removed
|
25
|
+
- Drop Ruby 2.7 support ([#53](https://github.com/komposable/dekorator/pull/53))
|
26
|
+
- Drop Rails 6.0 support ([#53](https://github.com/komposable/dekorator/pull/53))
|
27
|
+
|
11
28
|
## [1.4.0] - 2023-11-09
|
12
29
|
### Changed
|
13
30
|
- ⚠️ **Breaking** `.decorates_association` now generate `#decorated_[ASSOCIATION_NAME]` instead `#[ASSOCIATION_NAME]` ([#48](https://github.com/komposable/dekorator/pull/48))
|
@@ -62,7 +79,9 @@ Nothing yet.
|
|
62
79
|
- Create `dekorator:install` generator ([a2a36d66](https://github.com/komposable/dekorator/commit/a2a36d66c6de6cb0a00f783794cd29f899bc04b6))
|
63
80
|
- Create `decorator` generator ([a2a36d66](https://github.com/komposable/dekorator/commit/a2a36d66c6de6cb0a00f783794cd29f899bc04b6))
|
64
81
|
|
65
|
-
[Unreleased]: https://github.com/komposable/dekorator/compare/v1.
|
82
|
+
[Unreleased]: https://github.com/komposable/dekorator/compare/v1.6.0...main
|
83
|
+
[1.6.0]: https://github.com/komposable/dekorator/compare/v1.5.0...v1.6.0
|
84
|
+
[1.5.0]: https://github.com/komposable/dekorator/compare/v1.4.0...v1.5.0
|
66
85
|
[1.4.0]: https://github.com/komposable/dekorator/compare/v1.3.0...v1.4.0
|
67
86
|
[1.3.0]: https://github.com/komposable/dekorator/compare/v1.2.1...v1.3.0
|
68
87
|
[1.2.1]: https://github.com/komposable/dekorator/compare/v1.2.0...v1.2.1
|
data/README.md
CHANGED
data/lib/dekorator/railtie.rb
CHANGED
@@ -2,6 +2,7 @@
|
|
2
2
|
|
3
3
|
module Dekorator
|
4
4
|
require "dekorator/rails/controller"
|
5
|
+
require "dekorator/rails/record"
|
5
6
|
|
6
7
|
class Railtie < ::Rails::Railtie
|
7
8
|
rake_tasks do
|
@@ -10,6 +11,7 @@ module Dekorator
|
|
10
11
|
|
11
12
|
config.to_prepare do |_app|
|
12
13
|
ActionController::Base.include Dekorator::Controller
|
14
|
+
ActiveRecord::Base.include Dekorator::Record
|
13
15
|
end
|
14
16
|
end
|
15
17
|
end
|
data/lib/dekorator/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dekorator
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.6.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Pantographe
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2024-09-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: actionview
|
@@ -16,60 +16,60 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '
|
19
|
+
version: '7.0'
|
20
20
|
- - "<"
|
21
21
|
- !ruby/object:Gem::Version
|
22
|
-
version: '
|
22
|
+
version: '8.0'
|
23
23
|
type: :runtime
|
24
24
|
prerelease: false
|
25
25
|
version_requirements: !ruby/object:Gem::Requirement
|
26
26
|
requirements:
|
27
27
|
- - ">="
|
28
28
|
- !ruby/object:Gem::Version
|
29
|
-
version: '
|
29
|
+
version: '7.0'
|
30
30
|
- - "<"
|
31
31
|
- !ruby/object:Gem::Version
|
32
|
-
version: '
|
32
|
+
version: '8.0'
|
33
33
|
- !ruby/object:Gem::Dependency
|
34
34
|
name: activerecord
|
35
35
|
requirement: !ruby/object:Gem::Requirement
|
36
36
|
requirements:
|
37
37
|
- - ">="
|
38
38
|
- !ruby/object:Gem::Version
|
39
|
-
version: '
|
39
|
+
version: '7.0'
|
40
40
|
- - "<"
|
41
41
|
- !ruby/object:Gem::Version
|
42
|
-
version: '
|
42
|
+
version: '8.0'
|
43
43
|
type: :runtime
|
44
44
|
prerelease: false
|
45
45
|
version_requirements: !ruby/object:Gem::Requirement
|
46
46
|
requirements:
|
47
47
|
- - ">="
|
48
48
|
- !ruby/object:Gem::Version
|
49
|
-
version: '
|
49
|
+
version: '7.0'
|
50
50
|
- - "<"
|
51
51
|
- !ruby/object:Gem::Version
|
52
|
-
version: '
|
52
|
+
version: '8.0'
|
53
53
|
- !ruby/object:Gem::Dependency
|
54
54
|
name: activesupport
|
55
55
|
requirement: !ruby/object:Gem::Requirement
|
56
56
|
requirements:
|
57
57
|
- - ">="
|
58
58
|
- !ruby/object:Gem::Version
|
59
|
-
version: '
|
59
|
+
version: '7.0'
|
60
60
|
- - "<"
|
61
61
|
- !ruby/object:Gem::Version
|
62
|
-
version: '
|
62
|
+
version: '8.0'
|
63
63
|
type: :runtime
|
64
64
|
prerelease: false
|
65
65
|
version_requirements: !ruby/object:Gem::Requirement
|
66
66
|
requirements:
|
67
67
|
- - ">="
|
68
68
|
- !ruby/object:Gem::Version
|
69
|
-
version: '
|
69
|
+
version: '7.0'
|
70
70
|
- - "<"
|
71
71
|
- !ruby/object:Gem::Version
|
72
|
-
version: '
|
72
|
+
version: '8.0'
|
73
73
|
description: An opinionated way of organizing model-view code in Ruby on Rails, based
|
74
74
|
on decorators
|
75
75
|
email:
|
@@ -83,6 +83,7 @@ files:
|
|
83
83
|
- README.md
|
84
84
|
- lib/dekorator.rb
|
85
85
|
- lib/dekorator/rails/controller.rb
|
86
|
+
- lib/dekorator/rails/record.rb
|
86
87
|
- lib/dekorator/rails/tasks/dekorator.rake
|
87
88
|
- lib/dekorator/railtie.rb
|
88
89
|
- lib/dekorator/version.rb
|
@@ -112,14 +113,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
112
113
|
requirements:
|
113
114
|
- - ">="
|
114
115
|
- !ruby/object:Gem::Version
|
115
|
-
version:
|
116
|
+
version: 3.1.0
|
116
117
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
117
118
|
requirements:
|
118
119
|
- - ">="
|
119
120
|
- !ruby/object:Gem::Version
|
120
121
|
version: '0'
|
121
122
|
requirements: []
|
122
|
-
rubygems_version: 3.
|
123
|
+
rubygems_version: 3.5.16
|
123
124
|
signing_key:
|
124
125
|
specification_version: 4
|
125
126
|
summary: An opinionated way of organizing model-view code in Ruby on Rails, based
|