supports_pointer 0.5.0 → 0.5.1

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: 3e4e9bf143c824bb44ee0d6118ce2b19e931250728e6e7c656297f4cc651e304
4
- data.tar.gz: 6604b4d85a25ce1b2467c85f7bf797a6ecb84d59c4cb06a9b7848893dc458c6a
3
+ metadata.gz: 683bac4d43d854b62c2193bea25d8824612f83784673b852be0a525b549309fb
4
+ data.tar.gz: a010b5abbc5673d5fe991b0c20cd92d00be15ee4ca5a913e79076a54b5427e9c
5
5
  SHA512:
6
- metadata.gz: 90bf68d4e41547e0dcf6a6fd92fa5cfbb28b2853e8a8efb1f88d91dc86cf4a7267d1510ac839b7af701fcdfff441c045a9e051cbc0fe1f470f35882b9045da6c
7
- data.tar.gz: bfceb10d6c0234f3faa1cc2116d834e59f2567fccf938c10ec6d4a13da6360ee5bd845af63ced96166dc76ef6c041e7bbcf6d365e371350421e91db58c8cbf2f
6
+ metadata.gz: 32ad84863b0a9f65035dc224804c1217254b40a7e657a377989fd194f4b6e3e01d10648234fcba3c2bb7a1efe1d493e19667b7081637e78cf36f78bfe1a2b2f5
7
+ data.tar.gz: 19362dc21bf55037a898028394d1d6764778ea099ce2c17959879bd80729cd9d7f5f661fe26a851ceb7702dad5d1daf557cef9b757c04817bb498bc1a39ecdf3
data/README.md CHANGED
@@ -6,8 +6,8 @@ Add the following to your model:
6
6
  ```ruby
7
7
  parses_pointer :pointer_name_as_symbol,
8
8
  template:/regexp(?<with_captures>.*)for(?<each_field>)/,
9
- resolve:{|data| data[:with_captures].find_by(some_param:data[:other_capture]),
10
- generate:{|target| "#{target.some_attr}:#{target.other_attr}"}
9
+ resolve:Proc.new{|data| data[:with_captures].find_by(some_param:data[:other_capture]),
10
+ generate:Proc.new{|target| "#{target.some_attr}:#{target.other_attr}"}
11
11
  ```
12
12
 
13
13
  if the pointer being declared is a model pointer, or model_instance pointer, simply declare:
@@ -1,3 +1,3 @@
1
1
  module SupportsPointer
2
- VERSION = "0.5.0"
2
+ VERSION = "0.5.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: supports_pointer
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.0
4
+ version: 0.5.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Greg Mikeska