var_block 1.0.6 → 1.0.7

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
  SHA1:
3
- metadata.gz: b5eff5e3d3eabecc4648ffda2370f50e17b2d4ab
4
- data.tar.gz: 9843dd46c637d96897b68f99bec939cbc2d8015c
3
+ metadata.gz: baae457897fd641741e1750cda5470ade9b7a137
4
+ data.tar.gz: 00e01f43cf688c10491a4d3262be93e8010cc0ca
5
5
  SHA512:
6
- metadata.gz: 7dd22cc5fe605b40680407df3cd704f637d7a8774c54bcbb5ee15578ea365220d7126b4236618f5211c7e2065d9521debf85112edd5c2e4a883c8db2efbdb6c2
7
- data.tar.gz: f65d3d1e7eb077ef7d0f6a8e8a71e846c6ae5feffa201ed1abd52d8c587262bdca278c087c0617b1d3e05273bd6230101b72fc39ccc1e365d25d5fee3a5b0c4d
6
+ metadata.gz: ed06f59ed5a872189cfb95af0d8c0c53c2aabcea57465f5703161822061077a3ed118a8108065de5c541bb8b022ccb4dbfac3f719a1f14d3daa8eea341a5f2e8
7
+ data.tar.gz: 10e02df5809d50883e67dfc06723ae551f54722d85731e35cff9fb3d7481ce5dabe799b986d65c0877640981f54f9fd0c4319d1c8652a1bca6a6e262c1820211
@@ -13,7 +13,7 @@ module VarBlock
13
13
 
14
14
  def getvar(var_hash, index, *options)
15
15
  unsupported_options = (options - VarBlock::GetvarHandlers::OPTIONS)
16
- raise ArgumentError, "3rd argument options Array only supports #{VarBlock::GetvarHandlers::SUPPORTED_OPTIONS}. Does not support #{unsupported_options.map(&:inspect).join(', ')}" if unsupported_options.any?
16
+ raise ArgumentError, "3rd argument options Array only supports #{VarBlock::GetvarHandlers::OPTIONS}. Does not support #{unsupported_options.map(&:inspect).join(', ')}" if unsupported_options.any?
17
17
  raise ArgumentError, "1st argument should be a VarHash object, but is found to be a #{var_hash.class}" unless var_hash.is_a? VarHash
18
18
  raise ArgumentError, "2nd argument :#{index} is not defined. Defined are #{var_hash.keys.map(&:inspect).join(', ')}" unless var_hash.keys.include?(index)
19
19
 
@@ -1,3 +1,3 @@
1
1
  module VarBlock
2
- VERSION = '1.0.6'.freeze
2
+ VERSION = '1.0.7'.freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: var_block
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.6
4
+ version: 1.0.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jules Roman B. Polidario