lite-ruby 1.1.12 → 1.1.13

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: a396444ff8c06f3c21d41e17b3360d5af587e6914f1d9835527316c6eaeb9a3a
4
- data.tar.gz: 6034fb2b62c4e0ab25b74cccd1285c5266d3880741c345f3780dcd193ff16eff
3
+ metadata.gz: fe679570639cc347f06cb66cb3cefab5f43c76d66d2460050f91a9f2107a9baf
4
+ data.tar.gz: 9c342175047a4783844895e1fce5759d0351d6ed15383a5c245700637408af3b
5
5
  SHA512:
6
- metadata.gz: 70d61e9235e2a68f62848ac14e37a6bc442746e57af32d26a2361849c88501cbf20ed723f6db5665a95734c77e9418fe66e2f9b900c36ffedfdbad141b0f6f48
7
- data.tar.gz: 42661db34d7fa54d3d29a4ddc71f266ab7670d334544c8e14a5504ffece60a1f0bf04fcefbbad0e69d29bcf14a40e738326f95c06a4c98c72faf45e00680e52a
6
+ metadata.gz: 51c1075b41fee9f7c36a6530e31caa46fe1edbdc3779708485c3f4d6d9f0ea2c16bd31e282414926fa1d1962d69fd75920144a4c9dbb66c2b7a65f43af316e3d
7
+ data.tar.gz: 360692b781b2e8eaa7d511a1c225fe6721a241673fe670eaa682056d96379448a622c4cc3abe0a30c3350c9411d6aea3ae58084e821f79cdd5039b0479d51a7a
data/CHANGELOG.md CHANGED
@@ -6,6 +6,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
6
6
 
7
7
  ## [Unreleased]
8
8
 
9
+ ## [1.1.13] - 2021-07-05
10
+ ### Added
11
+ - Added more OpenStruct backwards compatibility
12
+
9
13
  ## [1.1.12] - 2021-07-05
10
14
  ### Added
11
15
  - Added OpenStruct backwards compatibility
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- lite-ruby (1.1.12)
4
+ lite-ruby (1.1.13)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -65,8 +65,13 @@ if Lite::Ruby.configuration.monkey_patches.include?('open_struct')
65
65
  def new_ostruct_member!(name)
66
66
  return if is_method_protected!(name)
67
67
 
68
- define_singleton_method!(name) { @table[name] }
69
- define_singleton_method!("#{name}=") { |x| @table[name] = x }
68
+ if respond_to?(:define_singleton_method!)
69
+ define_singleton_method(name) { @table[name] }
70
+ define_singleton_method("#{name}=") { |x| @table[name] = x }
71
+ else
72
+ define_singleton_method!(name) { @table[name] }
73
+ define_singleton_method!("#{name}=") { |x| @table[name] = x }
74
+ end
70
75
  end
71
76
 
72
77
  end
@@ -3,7 +3,7 @@
3
3
  module Lite
4
4
  module Ruby
5
5
 
6
- VERSION = '1.1.12'
6
+ VERSION = '1.1.13'
7
7
 
8
8
  end
9
9
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lite-ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.12
4
+ version: 1.1.13
5
5
  platform: ruby
6
6
  authors:
7
7
  - Juan Gomez