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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/textme.rb +4 -1
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ceb46c088e7d48f7a65d5f9be0888bcf2dac4b1f
4
- data.tar.gz: 467c1782393669d14d8dc5542b199e008a77f374
3
+ metadata.gz: 426304f38cb591727fa9939a5776be3a93ff7189
4
+ data.tar.gz: 65443f178e11d91974af5aba5b38f203516327ee
5
5
  SHA512:
6
- metadata.gz: c7dbba1ff905f01ffd18f96ed41bd59ca050d6a99e1a175bfc59120183fcfb9ae96dc4816312712380adfa7ce4a8e20241637dd2600a8ad2dfe7b481e6a0a2ce
7
- data.tar.gz: de93c27169b8a12a2256913ee709abbf8e73695370cf156d6748b4a42766c42c2912bebe4bfda2ca3d12adadc990eccb94a2513958c83a23e1831b52fd272c14
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(url)
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
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: textme
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
  - Harsh Gosar