post_haste 1.2 → 1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/post_haste/most_viewed.rb +3 -3
- data/lib/post_haste/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fceacfa2cfb2c3d4db0d7a2a3a21f51a18b6e51e
|
4
|
+
data.tar.gz: 20731150ab70f3808686f634b3fad97706a732f1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e2db277cb96dbd01e31294e6e9b1d926506083b3de5d26d58564fda1b738e67db68f82b12e42edf792677260b284f5e66db46ba40557497b0f28b682b5412d0a
|
7
|
+
data.tar.gz: fc87e612f37ba5cb25dd2eb4e8e83175c5e9c95f7c5cfc46ce74895d10d7e2196b3ce4ff74653016f1fad424170c52d4ae2981af604f80a47bdf86e075dc7b46
|
@@ -10,17 +10,17 @@ module PostHaste
|
|
10
10
|
end
|
11
11
|
|
12
12
|
def self.all(platform='web', limit=25)
|
13
|
-
url = "
|
13
|
+
url = "https://js.washingtonpost.com/most-viewed/#{platform}/article,blog.feed-#{limit}.json"
|
14
14
|
create(HTTParty.get(url).parsed_response, platform, 'all')
|
15
15
|
end
|
16
16
|
|
17
17
|
def self.articles(platform='web', limit=25)
|
18
|
-
url = "
|
18
|
+
url = "https://js.washingtonpost.com/most-viewed/#{platform}/article.feed-#{limit}.json"
|
19
19
|
create(HTTParty.get(url).parsed_response, platform, 'articles')
|
20
20
|
end
|
21
21
|
|
22
22
|
def self.blogs(platform='web', limit=25)
|
23
|
-
url = "
|
23
|
+
url = "https://js.washingtonpost.com/most-viewed/#{platform}/blog.feed-#{limit}.json"
|
24
24
|
create(HTTParty.get(url).parsed_response, platform, 'blogs')
|
25
25
|
end
|
26
26
|
|
data/lib/post_haste/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: post_haste
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: '1.
|
4
|
+
version: '1.3'
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Derek Willis
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-09-
|
11
|
+
date: 2015-09-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: httparty
|