acts_as_scriptural 0.0.3 → 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/acts_as_scriptural.rb +2 -1
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 1e63a6dbf43d2de4d0d0176b539eccd055c0252d
4
- data.tar.gz: 9f9d13af8bc73504324f0ccc9c94c278455ef378
3
+ metadata.gz: 94c7cf802bd9d03e233ad4905c6936a5920ffd45
4
+ data.tar.gz: 1258e0022e28686b4953edc313beb2e9d5d08c2d
5
5
  SHA512:
6
- metadata.gz: 2482fdad678c74230b4f7468f29ed64fb8b77e4f77683afb1c8554d701c320b6c9ff4cb64ce615511c106b638623a764d5894bace5c145406a1410160da7e626
7
- data.tar.gz: 413f8795e0f7b9c978a70de20657c9d5c477ffe55150e7cab06406b608ee83ccd05f544fbc87c5a35add2d7442908288be8791ef92247332d13d7ea3cc0d1275
6
+ metadata.gz: 362f463dc1ef486088ef243dbd246c320d4a7b584d9e4bfefaad5121075cf1d8638768cce79f598932ae7bcc0be018fb30f8db3535f852728c37acd90a8760ff
7
+ data.tar.gz: 5346994e78cc3dbd3e95bde34a7c04a8d90dafd188630dfd9640a36afb5562446caf7dcf05224f31ce00009a374ac52db535cbd420a4e80ec8a2f0f96209db22
@@ -9,7 +9,8 @@ class ActsAsScriptural
9
9
  def parse(str)
10
10
  references = str.split(',')
11
11
  references.each do |ref|
12
- add_chapters(Parser.new.parse_reference(ref))
12
+ parsed_reference = Parser.new.parse_reference(ref)
13
+ add_chapters(parsed_reference) if parsed_reference
13
14
  end
14
15
  self
15
16
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: acts_as_scriptural
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Philip Bradley
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-06-23 00:00:00.000000000 Z
11
+ date: 2015-07-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler