dansdeals 2.0.0 → 2.1.0

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: 86406105cc10a100e760863488d0e255efe7b12b
4
- data.tar.gz: d4728a364079965484f57f50dd37acd407321442
3
+ metadata.gz: deb23ca2ddacca624fc66d31d3c49794fc941ed2
4
+ data.tar.gz: 5080270a15a1ecc703e63abb3c2423ef22bd9c2f
5
5
  SHA512:
6
- metadata.gz: 2feba4cba36f53786450c013cf92ecde1a90bfa8248bdcec2800af961baa9a510c852ab9ca4f47978e7792060276c803d946d7444279a462c0135b33d0d7ebd3
7
- data.tar.gz: c05f70bad1e3fa938943406e4915f3e997d59c4249e56c24f0e33d93dbca777ed95b07cffa93a36071cb5f14c3243db37424dabd5fdf89ab7efb48608a5b0b4a
6
+ metadata.gz: b1dba3fc569f08ac697525fa9c861669a0cd79c1424b850bc8f0f032938e89af79016734f8b446e731e2a2e0feacc197f188627ee80709d85bdf696bfbb0cb71
7
+ data.tar.gz: 70df07123f9ca3200534e0e626bc63bb8655619d51f9529b2c111800b99097c963238741863991f50605aa3659ee70b5a859a7293c345a59dad94ea3bf9f6f5b
data/README.md CHANGED
@@ -37,7 +37,7 @@ To install this gem onto your local machine, run `bundle exec rake install`. To
37
37
 
38
38
  ## Contributing
39
39
 
40
- Bug reports and pull requests are welcome on GitHub at https://github.com/achasveachas/dansdeals or by email to achasveachas@gmail.com. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
40
+ Bug reports and pull requests are welcome on GitHub at https://github.com/achasveachas/dansdeals or by email to contact@yechiel.me. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
41
41
 
42
42
 
43
43
  ## License
Binary file
@@ -6,13 +6,13 @@ class DansDeals::Deals
6
6
 
7
7
  def self.scrape_deals
8
8
 
9
- doc = Nokogiri::HTML(open("http://www.dansdeals.com"))
9
+ doc = Nokogiri::HTML(open("https://www.dansdeals.com/all/"))
10
10
 
11
- doc.css(".td_module_10").collect do |post|
11
+ doc.css(".td_module_15").collect do |post|
12
12
  deal = self.new
13
- deal.title = post.css("h3.entry-title").text
14
- deal.body = post.css(".td-excerpt").first.inner_text.strip
15
- deal.url = post.css("h3 a").attribute("href").value
13
+ deal.title = post.css("h1.entry-title").text
14
+ deal.body = post.css(".td-post-content").first.inner_text.strip
15
+ deal.url = post.css("h1.entry-title a").attribute("href").value
16
16
 
17
17
  deal
18
18
  end
@@ -1,3 +1,3 @@
1
1
  module DansDeals
2
- VERSION = "2.0.0"
2
+ VERSION = "2.1.0"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dansdeals
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.0
4
+ version: 2.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yechiel Kalmenson
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-07-11 00:00:00.000000000 Z
11
+ date: 2017-07-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -102,6 +102,7 @@ files:
102
102
  - bin/dansdeals
103
103
  - bin/setup
104
104
  - dansdeals-0.1.1.gem
105
+ - dansdeals-2.0.0.gem
105
106
  - dansdeals.gemspec
106
107
  - lib/dansdeals.rb
107
108
  - lib/dansdeals/cli.rb