rcv_deeplink 0.0.0 → 0.0.1

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/rcv_deeplink.rb +3 -3
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 733ff8a1087f5f4f51bc84aa2b6dd4107bdfe47d219116ca00377aa83b34b271
4
- data.tar.gz: dbbfb5bab2636992b9a199aebd8f6517fcc276eaebf30da97055b3489e31656f
3
+ metadata.gz: 1d832f46b598c9d4abbf5fdeefaa3e57df0015078a7fa26d4f3eb3c5193ec208
4
+ data.tar.gz: 52d81eba81c698a9b4fb9a072b9142a8f3c6d0b0a91835fa3f9fd985fa98d68e
5
5
  SHA512:
6
- metadata.gz: 6a63926d1935028dc73ce05dc1e5622dae2a17a9ac40edaa500ebbfdc6d19d28cb81a8f259ef93632fcc4261ed66c86a87ae1a6bef67d8a8de4226bc554d57e8
7
- data.tar.gz: 6084bfa1d995575fc26dfb1947e8665247b6711270e65bf049b56b9bc13b48d1a5fd6cb70b1e21a8932c0e0e00a9d8d223548cc8262b941a28627f56e1b90d00
6
+ metadata.gz: b554e7a393751c0b9e32cec9c64776f45adb743e7b4c20055d8d6f5de78cecbc5ed5221aeb1123e00a1c16cef27bede3a4a37281adce12c5bac8a7d0909b22ae
7
+ data.tar.gz: b2ba45e6feac555ed02d92dc550940d10439bccdee4738a6ac4f941af8fbfcef4397aaedb2414b84013286160df80501fe2e9249441c65e86f09d3c43f45540f
data/lib/rcv_deeplink.rb CHANGED
@@ -19,7 +19,7 @@ class RcvDeeplink
19
19
  end
20
20
 
21
21
  def path
22
- "#{padded_book_number}_#{book_name_no_spaces}_#{@chapter_number}.htm\##{anchor_tag_book_abbreviation}#{@chapter_number}#{chapter_anchor_text}"
22
+ "#{padded_book_number}_#{book_name_no_spaces}_#{@chapter_number}.htm\##{anchor_tag_book_abbreviation}#{@chapter_number}#{verse_anchor}"
23
23
  end
24
24
 
25
25
  def url
@@ -48,8 +48,8 @@ class RcvDeeplink
48
48
  row[:ref_code]
49
49
  end
50
50
 
51
- def chapter_anchor_text
52
- "-#{@chapter_number}" if @chapter_number.to_i > 0
51
+ def verse_anchor
52
+ "-#{@verse_number}" if @verse_number.to_i > 0
53
53
  end
54
54
 
55
55
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rcv_deeplink
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.0
4
+ version: 0.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Philip Bradley