nine-gag 0.1.2 → 0.1.3

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: dc18e2768eae1aa8a57124ece8eb16e4b7fa7ea7
4
- data.tar.gz: 5d60c8509c6acd4fb3db048aa94e64d456a1a4ed
3
+ metadata.gz: ed51b9fff78efa65daf34555ba17d7a62d86a675
4
+ data.tar.gz: baab575f82d737a51c03a5e9465ff9c37206e5a1
5
5
  SHA512:
6
- metadata.gz: d8d526decc30b6d2f5f2a5594bc6c7b2d29dbad001dc016f65382c4c710660d7316bbbdb04cf87e47d03670f8efa00fba8df6bfb02436dbbab560fe9995dc98b
7
- data.tar.gz: 608acd7ce182b03d0878ed5b0986a3b4d0583431e105f521a9c7731e2bdf8c81fe8aa8b16857dc56ecbd108f1b63455fc073a357ead82d0af8cf76d25d62278c
6
+ metadata.gz: f66eec53c4765f7b8d79ead0c9a100bb3f940c35a8586230f02d1641eea3cbfbc298d5676232f70bb6c43719f749d2c5ba58e9f5863211eb9ba8b4550fe516ae
7
+ data.tar.gz: 63a70b89bae89eaecec6f113e2d8ef4410945d43259abe7816943724495b17e233a64982d7c44d477530f6dff7054dd8435ecddab06bb6ef2160bee4013c8225
@@ -1,5 +1,3 @@
1
- require 'ostruct'
2
-
3
1
  module NineGag
4
2
  class Scraper
5
3
  # path = ":section/:type"
@@ -60,7 +58,7 @@ module NineGag
60
58
 
61
59
  post_meta = post.search('p.post-meta').first
62
60
 
63
- post_data = {
61
+ {
64
62
  id: post.attribute('data-entry-id').value,
65
63
  title: title.text.strip,
66
64
  url: post.attribute('data-entry-url').value,
@@ -69,8 +67,6 @@ module NineGag
69
67
  points: post_meta.search('a.point').first.text.sub(' points', '').sub(',', '').strip,
70
68
  media: media_data(post.search('video').first)
71
69
  }
72
-
73
- OpenStruct.new(post_data)
74
70
  end
75
71
 
76
72
  def self.generate_index_data(scrape, next_page)
@@ -1,3 +1,3 @@
1
1
  module NineGag
2
- VERSION = "0.1.2"
2
+ VERSION = "0.1.3"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: nine-gag
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dimas J. Taniawan
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-11-07 00:00:00.000000000 Z
11
+ date: 2016-11-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: nokogiri