deco_lite 1.2.1 → 1.3.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d5e504d4b1c9442022ff1d9dc1727f1116b3be5bef76cce7c3f0b4373e1d5531
4
- data.tar.gz: c92ec939a0264e410d01d847521ecbd6432fd67e949858c8cc5183354e4aabd2
3
+ metadata.gz: beccc94d1fa8bec7ddba7ffbc0399eb37089d9e4379ca505536e91492f7b7f52
4
+ data.tar.gz: 6b4196a5605d7521bfc8554e7794acc4df7056dbbc05f14f8075ae3d2b0a19ae
5
5
  SHA512:
6
- metadata.gz: d2e87a67fce2ce3177231eb78ba340bef28b415a67263098ec7c9ee1a99e8b9e670bcbf04f9393c9db98e4f3186c5e34eb90e9db5140ecb88df5de9088304d3f
7
- data.tar.gz: cc3c507551e330c3b6fe052384106a0deed623a3d842ade9f0d119ee5f0886def3cce4de96737dbeec246c816941e5d62c19f7f62c6260900403d2fac9a15d11
6
+ metadata.gz: c919d0514806dbe1acdea2bb9f544ee385587223a2a3f7cfeb4540c7995315fda1798ea6f15071f3e6a5fe41f4b3a2fb17faabbf67d8aaf0b7351cef1856846d
7
+ data.tar.gz: '0938c6d2069d7e094172fd8e710c44484be8a67638ee9cf234da6ab24e82c9d455f79bf5042a15576a86a28699be3412d3092b0169047c6d16811d9befcbe061'
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ ### 1.3.0
2
+ * Changes
3
+ * Update gem description in .gemspec.
4
+
1
5
  ### 1.2.1
2
6
  * Bugs
3
7
  * Fix bug that did not recognize loaded field values if `attr_accessors` were previously created for the loaded fields due to model validations being present. If `ActiveModel` validators are present on the model, DecoLite will automatically create `attr_accessors` for the fields associated with the validations. The presence of these fields being automatically loaded prohibited any fields subsequently loaded having the same field names to not be recognized as having been loaded, causing validation to validate incorrectly (the model did not recognize the fields as having been loaded).
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- deco_lite (1.2.1)
4
+ deco_lite (1.3.0)
5
5
  activemodel (~> 7.0, >= 7.0.3.1)
6
6
  activesupport (~> 7.0, >= 7.0.3.1)
7
7
  immutable_struct_ex (~> 0.2.0)
data/deco_lite.gemspec CHANGED
@@ -11,7 +11,22 @@ Gem::Specification.new do |spec|
11
11
  spec.email = ['public.gma@gmail.com']
12
12
 
13
13
  spec.summary = 'Dynamically creates an active model from a Hash.'
14
- spec.description = 'Dynamically creates an active model from a Hash.'
14
+ spec.description = <<-EOF
15
+ DecoLite is a little gem that allows you to use the provided DecoLite::Model
16
+ class to dynamically create Decorator class objects. Use the DecoLite::Model
17
+ class directly, or inherit from the DecoLite::Model class to create your own
18
+ unique subclasses with custom functionality. DecoLite::Model
19
+ includes ActiveModel::Model, so validation can be applied using ActiveModel
20
+ validation helpers (https://api.rubyonrails.org/v6.1.3/classes/ActiveModel/Validations/HelperMethods.html)
21
+ you're familiar with; or, you can roll your own - just like any other ActiveModel.
22
+
23
+ DecoLite::Model allows you to consume a Ruby Hash that you supply via the
24
+ initializer (DecoLite::Model#new) or via the DecoLite::Model#load! method. Any
25
+ number of Ruby Hashes can be consumed. Your supplied Ruby Hashes are used to
26
+ create attr_accessor attributes (or "fields") on the model. Each attribute
27
+ created is then assigned the value from the Hash that was loaded. Again, any
28
+ number of hashes can be consumed using the DecoLite::Model#load! method.
29
+ EOF
15
30
  spec.homepage = 'https://github.com/gangelo/deco_lite'
16
31
  spec.license = 'MIT'
17
32
 
@@ -2,5 +2,5 @@
2
2
 
3
3
  # Defines the version of this gem.
4
4
  module DecoLite
5
- VERSION = '1.2.1'
5
+ VERSION = '1.3.0'
6
6
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: deco_lite
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.1
4
+ version: 1.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gene M. Angelo, Jr.
@@ -234,7 +234,21 @@ dependencies:
234
234
  - - ">="
235
235
  - !ruby/object:Gem::Version
236
236
  version: 13.0.6
237
- description: Dynamically creates an active model from a Hash.
237
+ description: |2
238
+ DecoLite is a little gem that allows you to use the provided DecoLite::Model
239
+ class to dynamically create Decorator class objects. Use the DecoLite::Model
240
+ class directly, or inherit from the DecoLite::Model class to create your own
241
+ unique subclasses with custom functionality. DecoLite::Model
242
+ includes ActiveModel::Model, so validation can be applied using ActiveModel
243
+ validation helpers (https://api.rubyonrails.org/v6.1.3/classes/ActiveModel/Validations/HelperMethods.html)
244
+ you're familiar with; or, you can roll your own - just like any other ActiveModel.
245
+
246
+ DecoLite::Model allows you to consume a Ruby Hash that you supply via the
247
+ initializer (DecoLite::Model#new) or via the DecoLite::Model#load! method. Any
248
+ number of Ruby Hashes can be consumed. Your supplied Ruby Hashes are used to
249
+ create attr_accessor attributes (or "fields") on the model. Each attribute
250
+ created is then assigned the value from the Hash that was loaded. Again, any
251
+ number of hashes can be consumed using the DecoLite::Model#load! method.
238
252
  email:
239
253
  - public.gma@gmail.com
240
254
  executables: []