ascraper 0.0.3 → 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
@@ -31,7 +31,11 @@ module Scraper
31
31
 
32
32
  movie = Nokogiri::HTML(open(url))
33
33
 
34
- result.images = movie.at_css('.image').search('a').map {|a| a['href']}.collect! {|x| x if %r{\Ahttps?:\/\/.+\.(?:jpe?g|png)\z}.match(x) }.compact.inspect
34
+ result.images = []
35
+
36
+ movie.at_css('.image').search('a').map {|a| a['href']}.collect! {|x| x if %r{\Ahttps?:\/\/.+\.(?:jpe?g|png)\z}.match(x) }.compact.each do |image|
37
+ result.images << image
38
+ end
35
39
 
36
40
  result.download_links = []
37
41
 
@@ -1,3 +1,3 @@
1
1
  module Scraper
2
- VERSION = "0.0.3"
2
+ VERSION = "0.0.4"
3
3
  end
metadata CHANGED
@@ -1,97 +1,110 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ascraper
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
+ prerelease:
5
6
  platform: ruby
6
7
  authors:
7
8
  - Ahmet
8
9
  autorequire:
9
10
  bindir: bin
10
11
  cert_chain: []
11
- date: 2014-07-30 00:00:00.000000000 Z
12
+ date: 2014-08-02 00:00:00.000000000 Z
12
13
  dependencies:
13
14
  - !ruby/object:Gem::Dependency
14
15
  name: bundler
15
16
  requirement: !ruby/object:Gem::Requirement
17
+ none: false
16
18
  requirements:
17
- - - "~>"
19
+ - - ~>
18
20
  - !ruby/object:Gem::Version
19
21
  version: '1.6'
20
22
  type: :development
21
23
  prerelease: false
22
24
  version_requirements: !ruby/object:Gem::Requirement
25
+ none: false
23
26
  requirements:
24
- - - "~>"
27
+ - - ~>
25
28
  - !ruby/object:Gem::Version
26
29
  version: '1.6'
27
30
  - !ruby/object:Gem::Dependency
28
31
  name: rake
29
32
  requirement: !ruby/object:Gem::Requirement
33
+ none: false
30
34
  requirements:
31
- - - ">="
35
+ - - ! '>='
32
36
  - !ruby/object:Gem::Version
33
37
  version: '0'
34
38
  type: :development
35
39
  prerelease: false
36
40
  version_requirements: !ruby/object:Gem::Requirement
41
+ none: false
37
42
  requirements:
38
- - - ">="
43
+ - - ! '>='
39
44
  - !ruby/object:Gem::Version
40
45
  version: '0'
41
46
  - !ruby/object:Gem::Dependency
42
47
  name: rspec
43
48
  requirement: !ruby/object:Gem::Requirement
49
+ none: false
44
50
  requirements:
45
- - - ">="
51
+ - - ! '>='
46
52
  - !ruby/object:Gem::Version
47
53
  version: '0'
48
54
  type: :development
49
55
  prerelease: false
50
56
  version_requirements: !ruby/object:Gem::Requirement
57
+ none: false
51
58
  requirements:
52
- - - ">="
59
+ - - ! '>='
53
60
  - !ruby/object:Gem::Version
54
61
  version: '0'
55
62
  - !ruby/object:Gem::Dependency
56
63
  name: guard
57
64
  requirement: !ruby/object:Gem::Requirement
65
+ none: false
58
66
  requirements:
59
- - - ">="
67
+ - - ! '>='
60
68
  - !ruby/object:Gem::Version
61
69
  version: '0'
62
70
  type: :development
63
71
  prerelease: false
64
72
  version_requirements: !ruby/object:Gem::Requirement
73
+ none: false
65
74
  requirements:
66
- - - ">="
75
+ - - ! '>='
67
76
  - !ruby/object:Gem::Version
68
77
  version: '0'
69
78
  - !ruby/object:Gem::Dependency
70
79
  name: guard-rspec
71
80
  requirement: !ruby/object:Gem::Requirement
81
+ none: false
72
82
  requirements:
73
- - - ">="
83
+ - - ! '>='
74
84
  - !ruby/object:Gem::Version
75
85
  version: '0'
76
86
  type: :development
77
87
  prerelease: false
78
88
  version_requirements: !ruby/object:Gem::Requirement
89
+ none: false
79
90
  requirements:
80
- - - ">="
91
+ - - ! '>='
81
92
  - !ruby/object:Gem::Version
82
93
  version: '0'
83
94
  - !ruby/object:Gem::Dependency
84
95
  name: nokogiri
85
96
  requirement: !ruby/object:Gem::Requirement
97
+ none: false
86
98
  requirements:
87
- - - ">="
99
+ - - ! '>='
88
100
  - !ruby/object:Gem::Version
89
101
  version: '0'
90
102
  type: :runtime
91
103
  prerelease: false
92
104
  version_requirements: !ruby/object:Gem::Requirement
105
+ none: false
93
106
  requirements:
94
- - - ">="
107
+ - - ! '>='
95
108
  - !ruby/object:Gem::Version
96
109
  version: '0'
97
110
  description: A Scraper.
@@ -101,10 +114,10 @@ executables: []
101
114
  extensions: []
102
115
  extra_rdoc_files: []
103
116
  files:
104
- - ".gitignore"
105
- - ".rspec"
106
- - ".ruby-gemset"
107
- - ".ruby-version"
117
+ - .gitignore
118
+ - .rspec
119
+ - .ruby-gemset
120
+ - .ruby-version
108
121
  - Gemfile
109
122
  - Guardfile
110
123
  - LICENSE.txt
@@ -121,26 +134,27 @@ files:
121
134
  homepage: ''
122
135
  licenses:
123
136
  - MIT
124
- metadata: {}
125
137
  post_install_message:
126
138
  rdoc_options: []
127
139
  require_paths:
128
140
  - lib
129
141
  required_ruby_version: !ruby/object:Gem::Requirement
142
+ none: false
130
143
  requirements:
131
- - - ">="
144
+ - - ! '>='
132
145
  - !ruby/object:Gem::Version
133
146
  version: '0'
134
147
  required_rubygems_version: !ruby/object:Gem::Requirement
148
+ none: false
135
149
  requirements:
136
- - - ">="
150
+ - - ! '>='
137
151
  - !ruby/object:Gem::Version
138
152
  version: '0'
139
153
  requirements: []
140
154
  rubyforge_project:
141
- rubygems_version: 2.2.2
155
+ rubygems_version: 1.8.23
142
156
  signing_key:
143
- specification_version: 4
157
+ specification_version: 3
144
158
  summary: A Scraper.
145
159
  test_files:
146
160
  - spec/comics_spec.rb
checksums.yaml DELETED
@@ -1,7 +0,0 @@
1
- ---
2
- SHA1:
3
- metadata.gz: d53102d3d1a510718df3337d8c9f416758e6d6f7
4
- data.tar.gz: bab21395a575d1ee90cfe78ca154b297e5d39e2d
5
- SHA512:
6
- metadata.gz: 21df1b371c0883dfd5010f03e00548fdb9fa0b41bdbbad20aeb76c677602f0fc51d2f4fe110bebf6e5cf210c747018e8a4534f72ef46182b5369f192f0264b1c
7
- data.tar.gz: 3866c4fe2707519e41f184d387169cc4340dfab58a3ead11f13b58cfd2adf891bf51402625dc1cb79cac7493669b446ecdb5d78581f410a15c713295f65a934e