textme 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 +4 -4
- data/lib/textme.rb +4 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 426304f38cb591727fa9939a5776be3a93ff7189
|
4
|
+
data.tar.gz: 65443f178e11d91974af5aba5b38f203516327ee
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a0fff656f470530adc874ee2b5dc11ffa290926226036b9c6a7a79371fd59a292fc495512a4084e5165c71718eae3204a60622ebd40df40d0c679c972f7c3515
|
7
|
+
data.tar.gz: 8b278d57ab96a5a8cd08b6e343b1cb81f0f68a9bfd184bbb3bffebda3d9eaf265c1c71a4711f8361f28390ac3a52c9acb14ae4c05e98a5d078e9d739b9db9af6
|
data/lib/textme.rb
CHANGED
@@ -5,6 +5,7 @@
|
|
5
5
|
|
6
6
|
require 'twilio-ruby' #The Twilio gem
|
7
7
|
require 'metainspector' #Gem to help extract the open graph data
|
8
|
+
require_relative 'bible-extractor'
|
8
9
|
|
9
10
|
module TextMe
|
10
11
|
class Core
|
@@ -26,7 +27,9 @@ module TextMe
|
|
26
27
|
#Input: You version url of the verse
|
27
28
|
#Output: A hash with the (always) 'verse' => (verse name + verse text),
|
28
29
|
# (optional) 'image_url' => image verse
|
29
|
-
def meta_extractor(
|
30
|
+
def meta_extractor(name)
|
31
|
+
extractor = BibleExtractor::Core.new
|
32
|
+
url = extractor.verse_url_generator(name)
|
30
33
|
#Use a Hash to store the verse and image url
|
31
34
|
metadata = Hash.new
|
32
35
|
|