parsable 0.1.2 → 0.1.3

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: 48f0ddf2c95fb1197cd638d4e8bfaed246c89be1
4
- data.tar.gz: 874eee2df9c4fe3ea3889d11fdbb2d1e6c0225b8
3
+ metadata.gz: 2b7bd63bda903100cc57f39ef1c9e0b4ef2ee2f8
4
+ data.tar.gz: 1e230fd511bbfe8ee6c7a6505c1b9405347455ad
5
5
  SHA512:
6
- metadata.gz: 0f833679a76bf2828ee3a970be01529ac56a18dbfafc294a7ffbda35faf6956fbc86543dbac7ebb73085595a4459391771321ff405e8979f3ed5a5ba323a74bd
7
- data.tar.gz: bac16f61d81fa2a50df895529e17674c7ebad8dd8171bbc6cc771cdf1cbb77b12a6ade4b0ddadc39c698f45758479b9e386ee4e0d69d96a7030a210b216849d2
6
+ metadata.gz: d3840fee767a40555e1dd33d16e9e85c14c3e161c393fd9609222875f6cedcb39288796d704790f484f4bbda208ff840b848bb0694255a0693b74eda8c05518e
7
+ data.tar.gz: 1892e5fbb8800d9a7ea7b74348e18e1d5d0d0376bc72629c336489f3fa043e8bfd80f0f09b3e7d90409b89ecd55eb92502c2823f9bc40ce99ecfa6eef976feda
data/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # Parsable
1
+ # Parsable [![Code Climate](https://codeclimate.com/github/hcliu/parsable.png)](https://codeclimate.com/github/hcliu/parsable) [![Build Status](https://travis-ci.org/hcliu/parsable.png?branch=master)](https://travis-ci.org/hcliu/parsable)
2
2
 
3
3
  A basic implementation of replacing inline {{variables}} with values. Inspired by [Shopify's Liquid](https://github.com/Shopify/liquid)
4
4
 
@@ -45,7 +45,7 @@ module Parsable
45
45
  end
46
46
 
47
47
  def object_attribute string
48
- string.match(/(\w*\.\w*)/)[1].split('.')
48
+ string.match[/(\w*\.\w*)/, 1].to_s.split('.')
49
49
  end
50
50
 
51
51
  end
@@ -1,3 +1,3 @@
1
1
  module Parsable
2
- VERSION = "0.1.2"
2
+ VERSION = "0.1.3"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: parsable
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Hubert Liu
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-02-20 00:00:00.000000000 Z
11
+ date: 2015-09-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler