tempsms22 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 10a9863d8b0de9dafe30552dcf76150f734a7bd213086c2c0fd790e0c431468e
4
- data.tar.gz: c48457528bab5b22273f1995a3ac3e77d686bbf20320f6048856226ce4da9f85
3
+ metadata.gz: 1faa829158e2c23fc576967dbe414a9aec307f387185dfe9bd78ec0abddea43c
4
+ data.tar.gz: b3dbbe605b322ef388addc03ddc87e7808743c17655a7b8a1bad6db43423c1ca
5
5
  SHA512:
6
- metadata.gz: fcb06c6470c236e06a682d777fd62be70434672994e4b3159b9111724fabcd82d92c9cc023b55fff2be9f96878e6915c4fe1a7fbe2e12807b4710406a39a1f26
7
- data.tar.gz: 36608139430252834005dbdb6946ce588167853f0d0eb970cec647e6952b3ab5f81ca5e59d040a72872d10c3c3cb377f83b8af0bb03572d48a2bb8280fb78bbe
6
+ metadata.gz: 8c50027ab5e1a7993d1db279bf98a20c57c8491654c99705edf92bb738e2da12a99a335957061ad0ccf2f46bdedd6fbb9474511f3a72157ee1ae03e146f739a9
7
+ data.tar.gz: 36d71ff2ecceb4e3a7cf170fce417079b8bd9556df460fc2fd9a2413c783977766623fbe8278a9a81c3f66806992332011456f19bedc0f70bbd2f20c43b6c010
checksums.yaml.gz.sig CHANGED
Binary file
data/lib/tempsms22.rb CHANGED
@@ -5,6 +5,7 @@
5
5
  # description: Scrapes the temporary SMS number from receive-smss.com.
6
6
 
7
7
  require 'nokorexi'
8
+ require 'ostruct'
8
9
 
9
10
 
10
11
  class TempSMS22
@@ -23,10 +24,10 @@ class TempSMS22
23
24
  table = doc.root.element('//table')
24
25
 
25
26
  a = table.xpath('tbody/tr').map do |x|
26
- x.xpath('td').map {|y| y.plaintext }
27
+ x.xpath('td').map {|y| y.plaintext.strip }
27
28
  end
28
29
 
29
- a.map {|x| %i(from text date).zip(x).to_h }
30
+ a.map {|x| OpenStruct.new(%i(from text date).zip(x).to_h) }
30
31
 
31
32
  end
32
33
 
data.tar.gz.sig CHANGED
Binary file
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tempsms22
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - James Robertson
metadata.gz.sig CHANGED
Binary file