acts_as_scriptural 0.0.2 → 0.0.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: 8933d939f83cae6978c3e39faffc412ba768d858
4
- data.tar.gz: 8ca2c6d30c653bf91bfa7ffb2375d76a473c6d8c
3
+ metadata.gz: 1e63a6dbf43d2de4d0d0176b539eccd055c0252d
4
+ data.tar.gz: 9f9d13af8bc73504324f0ccc9c94c278455ef378
5
5
  SHA512:
6
- metadata.gz: 191a0d70d2056376d5705cb50b9055b5ecb98be3020a5c83c8854556aa36f852f0e00306412ea58ea152eb2471d514d12c2ea9647626c38a39f14255d4a8b840
7
- data.tar.gz: 1c9297b346767f2fcee826a022cad14d171d6040f596318a0675fa3e7eb1d969b28f3cb1bc3a5e708dca204bd3d8477bcc7caa001babbd1ffe23be1864d83dc8
6
+ metadata.gz: 2482fdad678c74230b4f7468f29ed64fb8b77e4f77683afb1c8554d701c320b6c9ff4cb64ce615511c106b638623a764d5894bace5c145406a1410160da7e626
7
+ data.tar.gz: 413f8795e0f7b9c978a70de20657c9d5c477ffe55150e7cab06406b608ee83ccd05f544fbc87c5a35add2d7442908288be8791ef92247332d13d7ea3cc0d1275
@@ -27,7 +27,8 @@ class ActsAsScriptural::Bible
27
27
  private
28
28
 
29
29
  def import_from_file
30
- File.readlines("data/acts_as_scriptural/english.txt").each do |line|
30
+ datafile = File.dirname(__FILE__) + "/../../data/acts_as_scriptural/english.txt"
31
+ File.readlines(datafile).each do |line|
31
32
  book_name, book_index, num_chapters = line.chomp.split(',')
32
33
  book = ActsAsScriptural::Book.new(book_name, book_index.to_i, num_chapters.to_i)
33
34
  @namehash[book_name] = book
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: acts_as_scriptural
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Philip Bradley