blackfriday2016 0.1.2 → 0.1.4
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 +4 -4
- data/README.md +14 -2
- data/blackfriday2016-0.1.1.gem +0 -0
- data/blackfriday2016-0.1.2.gem +0 -0
- data/blackfriday2016.gemspec +2 -2
- data/lib/blackfriday2016/base_scraper.rb +2 -2
- metadata +4 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: cd5b33a6654a2f543ed5da2af31b98e3ce805b30
|
|
4
|
+
data.tar.gz: 371162583bbbad180702a16b75440b3e2f07a30e
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 72df1a6185e2a1717819690a6d13aae336c7dedeb4bfe182d7b8f5682354d5a3eb8d4764c169e8bf42b05b1ab956d9a54bd77ef8d1b7c7b79d29bdd98b362058
|
|
7
|
+
data.tar.gz: eeb6ca184a633ed32dbb63ad08459d7bed0fdaf8fc5ad80b0a1497a35ae23b065ccad95574cf9211c650b866a9d857440e3ca49a62d3244eb5e464befe233216
|
data/README.md
CHANGED
|
@@ -1,17 +1,29 @@
|
|
|
1
1
|
|
|
2
2
|
# Black Friday 2016 Deals Cli App/Gem
|
|
3
3
|
|
|
4
|
+
[](https://badge.fury.io/rb/blackfriday2016)
|
|
5
|
+
|
|
4
6
|
Welcome to Black Friday 2016 Deals Cli App/Gem. This is a simple gem listing all the Black Friday deals offered by the stores as they are released.
|
|
5
7
|
|
|
6
8
|
## Installation
|
|
7
9
|
|
|
8
|
-
|
|
10
|
+
Install it yourself as:
|
|
9
11
|
|
|
10
12
|
$ gem install blackfriday2016
|
|
11
13
|
|
|
14
|
+
Alternatively, add this line to your application's Gemfile:
|
|
15
|
+
|
|
16
|
+
```ruby
|
|
17
|
+
gem 'blackfriday2016'
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
And then execute:
|
|
21
|
+
|
|
22
|
+
$ bundle
|
|
23
|
+
|
|
12
24
|
## Usage
|
|
13
25
|
|
|
14
|
-
Type as shown below and then follow the on screen menu options
|
|
26
|
+
Type as shown below and then follow the on screen menu options:
|
|
15
27
|
|
|
16
28
|
$ blackfriday2016
|
|
17
29
|
|
|
Binary file
|
|
Binary file
|
data/blackfriday2016.gemspec
CHANGED
|
@@ -4,8 +4,8 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
|
|
4
4
|
|
|
5
5
|
Gem::Specification.new do |s|
|
|
6
6
|
s.name = 'blackfriday2016'
|
|
7
|
-
s.version = '0.1.
|
|
8
|
-
s.date = '2016-11-
|
|
7
|
+
s.version = '0.1.4'
|
|
8
|
+
s.date = '2016-11-14'
|
|
9
9
|
s.summary = "Black Friday 2016!"
|
|
10
10
|
s.description = "A simple gem listing Black Friday Deals from various stores"
|
|
11
11
|
s.authors = ["Chirag Dudhat"]
|
|
@@ -68,7 +68,7 @@ class Scraper
|
|
|
68
68
|
page_num = "1" if (prev_page == nil && next_page == nil)
|
|
69
69
|
|
|
70
70
|
#Collect Vendor name
|
|
71
|
-
name = deals_page.css("div.banner-tagline h1").text.gsub(" Coupons & Promo Codes for
|
|
71
|
+
name = deals_page.css("div.banner-tagline h1").text.gsub(" Coupons & Promo Codes for Black Friday","")
|
|
72
72
|
|
|
73
73
|
#Compile entire deal page Hash
|
|
74
74
|
deal_page_complete = {
|
|
@@ -78,7 +78,7 @@ class Scraper
|
|
|
78
78
|
:deals => full_page_deals,
|
|
79
79
|
:vendor_name => name
|
|
80
80
|
}
|
|
81
|
-
|
|
81
|
+
|
|
82
82
|
deal_page_complete
|
|
83
83
|
end
|
|
84
84
|
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: blackfriday2016
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.4
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Chirag Dudhat
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2016-11-
|
|
11
|
+
date: 2016-11-14 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|
|
@@ -112,6 +112,8 @@ files:
|
|
|
112
112
|
- bin/console
|
|
113
113
|
- bin/setup
|
|
114
114
|
- blackfriday2016-0.1.0.gem
|
|
115
|
+
- blackfriday2016-0.1.1.gem
|
|
116
|
+
- blackfriday2016-0.1.2.gem
|
|
115
117
|
- blackfriday2016.gemspec
|
|
116
118
|
- config/environment.rb
|
|
117
119
|
- lib/blackfriday2016.rb
|