skn_utils 3.1.3 → 3.1.4

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
  SHA1:
3
- metadata.gz: 3d6a76be3fda74b19cb4d82c2920af818f048868
4
- data.tar.gz: 7930b0d4cfb43e89a50cbcb6d04968e21de19378
3
+ metadata.gz: 19745a2e2656ae6e549c7d9cfda1539fc06e011a
4
+ data.tar.gz: 27b7e896212e6d336c2ede19cd1f1d857476f282
5
5
  SHA512:
6
- metadata.gz: 672e6c48a4482709ed64fdc7e8c738b002fe48d3ee0d1e2dccafc1c740a46b4f445abe18068adca2e125c2b78e88c2f8b00a39f2466420e6d124724ae6a739af
7
- data.tar.gz: 4ac9da7063904ccba413f052dbdf21e4b2bd921341a1e4270f50e6bbe342a34326bc4ec1b6a63317f73d0595280045f3eaaa42fcf4f2d25d67a87434289eb14f
6
+ metadata.gz: 99583604dd3ae0bbb11d0babd711e5ba7f1878c2bdf114da8f52deb6821ff459389c47ed490132eb448cb83ef7f12126bb6705f95126c4f647e59f57566e0d06
7
+ data.tar.gz: 5b7117ec60265bc0f2de853e2cf2a6b49ec41498e5247ea31e7ed5f935e078176be750f622fc41252a41e8d65c799c784dda272cc1f519ff4d1476f1f37da291
data/README.md CHANGED
@@ -9,13 +9,24 @@ Ruby Gem containing a Ruby PORO (Plain Old Ruby Object) that can be instantiated
9
9
  an Object with Dot or Hash notational accessors to each key's value. Additional key/value pairs can be added post-create
10
10
  by 'obj.my_new_var = "some value"', or simply assigning it.
11
11
 
12
- * Transforms the initialization hash into accessable object instance values, with their keys as method names.
12
+ * Transforms the initializating hash into accessible object instance values, with their keys as method names.
13
13
  * If the key's value is also a hash, it too will become an Object.
14
14
  * if the key's value is a Array of Hashes, or Array of Arrays of Hashes, each element of the Arrays will become an Object.
15
15
  * The current key/value (including nested) pairs are returned via #to_hash or #to_json when and if needed.
16
16
 
17
17
 
18
18
  ## New Features
19
+ 07/2017 V3.1.4
20
+ Added SknSettings class for use as a replacement to the popular, but obsolete, Config.gem
21
+ SknSettings.load_configuration_basename!(config_file_name-only) or 'Rails.env.to_s' value, will load all the yml files in this order:
22
+ ./config/settings.yml
23
+ ./config/settings/<name>.yml
24
+ ./config/settings/<name>.local.yml
25
+ and deep_merge the results. Ya might have to add this gem statement to your Rails Application GemFile.
26
+ gem 'deep_merge', '~> 1.1', :require => 'deep_merge/rails_compat'
27
+ I also restored SknUtils:ResultBean and SknUtils::PageControls to the classes contained in this gem. They are simple wrappers
28
+ inheriting the NestedResult class.
29
+
19
30
  03/2017 V3.0.0
20
31
  Added SknUtils::NestedResult to replace, or be an alternate, to ResultBean, GenericBean, PageControls, ValueBean, and AttributeHelper.
21
32
  NestedResult overcome issues with serialization via Marshal and Yaml/Psych.
@@ -0,0 +1,5 @@
1
+
2
+ module SknUtils
3
+ class PageControls < NestedResult
4
+ end
5
+ end
@@ -0,0 +1,5 @@
1
+
2
+ module SknUtils
3
+ class ResultBean < NestedResult
4
+ end
5
+ end
@@ -3,7 +3,7 @@ module SknUtils
3
3
  class Version
4
4
  MAJOR = 3
5
5
  MINOR = 1
6
- PATCH = 3
6
+ PATCH = 4
7
7
 
8
8
  def self.to_s
9
9
  [MAJOR, MINOR, PATCH].join('.')
data/lib/skn_utils.rb CHANGED
@@ -1,11 +1,13 @@
1
1
  require "skn_utils/version"
2
2
  require 'skn_utils/nested_result'
3
+ require 'skn_utils/result_bean'
4
+ require 'skn_utils/page_controls'
3
5
  require 'skn_utils/null_object'
4
6
  require 'skn_utils/notifier_base'
5
- # require 'deep_merge/rails_compat'
6
7
  require 'skn_utils/skn_configuration'
7
8
  require 'skn_utils/exploring/commander'
8
9
  require 'skn_utils/exploring/action_service'
10
+ require 'deep_merge/rails_compat'
9
11
  require 'skn_settings'
10
12
 
11
13
  module SknUtils
data/skn_utils.gemspec CHANGED
@@ -23,6 +23,14 @@ This version does not include ResultBean, PageControls, or ValueBean classes.
23
23
  SknUtils::NestedResult class replaces those original classes and their function.
24
24
 
25
25
  Please update your existing code to make the above change or use the prior version 2.0.6
26
+
27
+ ATTENTION: ****************************************************************
28
+ This version requires the following be added to your Rails Application 'Gemfile'
29
+ if you are using the SknSettings configuration class.
30
+
31
+ gem 'deep_merge', '~> 1.1', :require => 'deep_merge/rails_compat'
32
+
33
+ ************************************************************************
26
34
  EOF
27
35
  spec.homepage = "https://github.com/skoona/skn_utils"
28
36
  spec.license = "MIT"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: skn_utils
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.1.3
4
+ version: 3.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - James Scott Jr
@@ -122,6 +122,8 @@ files:
122
122
  - lib/skn_utils/nested_result.rb
123
123
  - lib/skn_utils/notifier_base.rb
124
124
  - lib/skn_utils/null_object.rb
125
+ - lib/skn_utils/page_controls.rb
126
+ - lib/skn_utils/result_bean.rb
125
127
  - lib/skn_utils/skn_configuration.rb
126
128
  - lib/skn_utils/version.rb
127
129
  - skn_utils.gemspec
@@ -143,7 +145,10 @@ metadata: {}
143
145
  post_install_message: "This version does not include ResultBean, PageControls, or
144
146
  ValueBean classes. \nSknUtils::NestedResult class replaces those original classes
145
147
  and their function. \n\nPlease update your existing code to make the above change
146
- or use the prior version 2.0.6\n"
148
+ or use the prior version 2.0.6\n\nATTENTION: ****************************************************************
149
+ \n This version requires the following be added to your Rails Application 'Gemfile'\n
150
+ \ if you are using the SknSettings configuration class.\n\n gem 'deep_merge',
151
+ '~> 1.1', :require => 'deep_merge/rails_compat'\n\n ************************************************************************\n"
147
152
  rdoc_options: []
148
153
  require_paths:
149
154
  - lib