polterheist 0.0.1 → 0.0.2

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 0fffa6772543784e262e0246e8ae5076b12b25ab
4
- data.tar.gz: 8722df20d25963aa98a5dacf6784f525680f331f
3
+ metadata.gz: 0a442888593054991027f1ee2027f84413ec0469
4
+ data.tar.gz: bfe4f95df09a2620dcbcb5e4a792ebd67b6e0801
5
5
  SHA512:
6
- metadata.gz: d4bd9717f098fe27e817bd022a692a920f2de59d69b6787576071a01ffaf74f01fdec1c7453d9eb035b6cfc4b7cd34894c64f78a2ccc78f8ab24ea8be308a680
7
- data.tar.gz: 395e60878aa1b61ce2234d2a659cae15510b029d0c32ef4ec2624a7283307181c9074fd5a19ee4326e0dbdb890d6cf34afc4e2d90244d92a263dd9fb130f4957
6
+ metadata.gz: ee583adb841548e99863b5ad776d376719c18425bf8461f9fc70a24342f0fa86d9e5f0cfbe61549d9465999c8aa82bc96e1754dae1e2897c4c43cc40bdeca409
7
+ data.tar.gz: 5d5c9bc8d4bf7ad8bb91e9a13bce22c2f4774f903102dcfece9cde1f7db28d39fc5ea322835fcc8eed16f6210a23685a4db9538de350d33dbb6d4dfc87413884
@@ -11,13 +11,10 @@ module Polterheist
11
11
  click_on "Search"
12
12
  loop do
13
13
  if page.has_css?(".mainImage")
14
- puts "Found a house at #{address}"
15
14
  return page.body
16
15
  elsif page.has_text? "No Homes Found"
17
- puts "Did not find any houses at #{address}"
18
16
  return false
19
17
  else
20
- print "."
21
18
  sleep 1
22
19
  end
23
20
  end
@@ -1,3 +1,3 @@
1
1
  module Polterheist
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
@@ -4,7 +4,7 @@ describe Polterheist::TheMLS do
4
4
  describe "#locate_property" do
5
5
  let(:result) { subject.locate_property address }
6
6
 
7
- context "not located" do
7
+ context "could not locate property with address" do
8
8
  let(:address) { "8622 LEHIGH Ave" }
9
9
 
10
10
  it "returns false" do
@@ -12,10 +12,10 @@ describe Polterheist::TheMLS do
12
12
  end
13
13
  end
14
14
 
15
- context "located" do
15
+ context "located the property with the address" do
16
16
  let(:address) { "7654 WESTLAND Ave" }
17
17
 
18
- it "can be further parsed" do
18
+ it "data can be further extracted" do
19
19
  doc = Nokogiri::HTML.parse(result)
20
20
  img_src = doc.css(".mainImage img").first.attr :src
21
21
  img_src.should match /(jpg|png)/
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: polterheist
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Keyvan Fatehi