presto_api 0.0.3 → 0.0.4

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
  SHA1:
3
- metadata.gz: 94c50dbbb46c6a6a659301092291c57e0f748975
4
- data.tar.gz: 9db1da2d1829fd67e576b30e4cd4a85280c82167
3
+ metadata.gz: d398e4d89667403cd394bd7750bb2376673842eb
4
+ data.tar.gz: d5de7828f581707d280f191fe243665e3110e013
5
5
  SHA512:
6
- metadata.gz: 0316ce8d8fe53e0be155c7bd15326d9937bffd44938fc1d3d94341b6aaed3694bee7ba835d8397c8168a643fba8185090db3050f0bf7512ae9c0db42ea13995d
7
- data.tar.gz: 81760fd520c8b54cca2c86a2bb2347dd30fb607862b926c59590b512a50393a898295f60d5b6fda3dca46219b70626c7ad0cfa4c85df4ad44d30865c451ad8a1
6
+ metadata.gz: 74d0fb76457db31f595cc71719136f933409006000851f0772da70c7e0c73e50cc04332395369a4ef2fe4ac2451f64c5484afc7f639d319ecb03102f43b25f7f
7
+ data.tar.gz: 1e6bded2c7d248b9f747fc681de8487a8253da6ea4650d3b037613be2331d53f15c5d29ea53c4294d368295f3e028b31c833ba1a2485825b9f1e078385875335
@@ -1,3 +1,3 @@
1
1
  module PrestoAPI
2
- VERSION = "0.0.3"
2
+ VERSION = "0.0.4"
3
3
  end
data/lib/presto_api.rb CHANGED
@@ -28,8 +28,8 @@ module PrestoAPI
28
28
  attr_accessor :first_name,
29
29
  :card_number,
30
30
  :last_name,
31
- :address,
32
- :apt,
31
+ :address1,
32
+ :address2,
33
33
  :city,
34
34
  :province,
35
35
  :country,
@@ -124,8 +124,8 @@ module PrestoAPI
124
124
  def user_from_page(page)
125
125
  first_name = page.parser.xpath('//span[@id="ctl00_SPWebPartManager1_updateRegistrationWebPart_ctl00_WizardViewUpdateProfile_labelFirstNameOutput"]/text()[last()]').last
126
126
  last_name = page.parser.xpath('//span[@id="ctl00_SPWebPartManager1_updateRegistrationWebPart_ctl00_WizardViewUpdateProfile_labelLastNameOutput"]/text()[last()]').last
127
- address = page.parser.xpath('//span[@id="ctl00_SPWebPartManager1_updateRegistrationWebPart_ctl00_WizardViewUpdateProfile_labelStreetAddress1Output"]/text()[last()]').last
128
- apt = page.parser.xpath('//span[@id="ctl00_SPWebPartManager1_updateRegistrationWebPart_ctl00_WizardViewUpdateProfile_labelStreetAddress1Output"]/text()[last()]').last
127
+ address1 = page.parser.xpath('//span[@id="ctl00_SPWebPartManager1_updateRegistrationWebPart_ctl00_WizardViewUpdateProfile_labelStreetAddress1Output"]/text()[last()]').last
128
+ address2 = page.parser.xpath('//span[@id="ctl00_SPWebPartManager1_updateRegistrationWebPart_ctl00_WizardViewUpdateProfile_labelStreetAddress2Output"]/text()[last()]').last
129
129
  city = page.parser.xpath('//span[@id="ctl00_SPWebPartManager1_updateRegistrationWebPart_ctl00_WizardViewUpdateProfile_labelCityOutput"]/text()[last()]').last
130
130
  province = page.parser.xpath('//span[@id="ctl00_SPWebPartManager1_updateRegistrationWebPart_ctl00_WizardViewUpdateProfile_labelProvinceOutput"]/text()[last()]').last
131
131
  country = page.parser.xpath('//span[@id="ctl00_SPWebPartManager1_updateRegistrationWebPart_ctl00_WizardViewUpdateProfile_labelCountryOutput"]/text()[last()]').last
@@ -143,8 +143,8 @@ module PrestoAPI
143
143
  user = User.new
144
144
  user.first_name = first_name.content || ''
145
145
  user.last_name = last_name.content || ''
146
- user.address = address.content || ''
147
- user.apt = apt.content || ''
146
+ user.address1 = address1.content || ''
147
+ user.address2 = address2.content || ''
148
148
  user.city = city.content || ''
149
149
  user.province = province.content || ''
150
150
  user.country = country.content || ''
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: presto_api
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - JP Simard