wombat 2.2.0 → 2.2.1

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.
data/.travis.yml CHANGED
@@ -1,4 +1,3 @@
1
1
  language: ruby
2
2
  rvm:
3
- - 1.9.2
4
3
  - 1.9.3
data/Gemfile CHANGED
@@ -12,4 +12,5 @@ group :development, :test do
12
12
  gem 'rspec'
13
13
  gem 'vcr'
14
14
  gem 'fakeweb'
15
+ gem 'coveralls', require: false
15
16
  end
data/Gemfile.lock CHANGED
@@ -1,54 +1,109 @@
1
1
  GEM
2
2
  remote: http://rubygems.org/
3
3
  specs:
4
- activesupport (3.2.13)
5
- i18n (= 0.6.1)
6
- multi_json (~> 1.0)
4
+ activesupport (4.0.0)
5
+ i18n (~> 0.6, >= 0.6.4)
6
+ minitest (~> 4.2)
7
+ multi_json (~> 1.3)
8
+ thread_safe (~> 0.1)
9
+ tzinfo (~> 0.3.37)
10
+ addressable (2.3.5)
11
+ atomic (1.1.14)
12
+ builder (3.2.2)
13
+ coveralls (0.7.0)
14
+ multi_json (~> 1.3)
15
+ rest-client
16
+ simplecov (>= 0.7)
17
+ term-ansicolor
18
+ thor
7
19
  diff-lcs (1.2.4)
8
- domain_name (0.5.11)
20
+ domain_name (0.5.14)
9
21
  unf (>= 0.0.5, < 1.0.0)
10
22
  fakeweb (1.3.0)
11
- git (1.2.5)
12
- i18n (0.6.1)
13
- jeweler (1.8.4)
23
+ faraday (0.8.8)
24
+ multipart-post (~> 1.2.0)
25
+ git (1.2.6)
26
+ github_api (0.10.1)
27
+ addressable
28
+ faraday (~> 0.8.1)
29
+ hashie (>= 1.2)
30
+ multi_json (~> 1.4)
31
+ nokogiri (~> 1.5.2)
32
+ oauth2
33
+ hashie (2.0.5)
34
+ highline (1.6.20)
35
+ http-cookie (1.0.2)
36
+ domain_name (~> 0.5)
37
+ httpauth (0.2.0)
38
+ i18n (0.6.5)
39
+ jeweler (1.8.8)
40
+ builder
14
41
  bundler (~> 1.0)
15
42
  git (>= 1.2.5)
43
+ github_api (= 0.10.1)
44
+ highline (>= 1.6.15)
45
+ nokogiri (= 1.5.10)
16
46
  rake
17
47
  rdoc
18
- json (1.7.7)
19
- mechanize (2.6.0)
48
+ json (1.8.1)
49
+ jwt (0.1.8)
50
+ multi_json (>= 1.5)
51
+ mechanize (2.7.2)
20
52
  domain_name (~> 0.5, >= 0.5.1)
53
+ http-cookie (~> 1.0.0)
21
54
  mime-types (~> 1.17, >= 1.17.2)
22
55
  net-http-digest_auth (~> 1.1, >= 1.1.1)
23
56
  net-http-persistent (~> 2.5, >= 2.5.2)
24
57
  nokogiri (~> 1.4)
25
58
  ntlm-http (~> 0.1, >= 0.1.1)
26
59
  webrobots (>= 0.0.9, < 0.2)
27
- mime-types (1.23)
28
- multi_json (1.7.2)
29
- net-http-digest_auth (1.3)
30
- net-http-persistent (2.8)
31
- nokogiri (1.5.9)
60
+ mime-types (1.25)
61
+ minitest (4.7.5)
62
+ multi_json (1.8.2)
63
+ multi_xml (0.5.5)
64
+ multipart-post (1.2.0)
65
+ net-http-digest_auth (1.4)
66
+ net-http-persistent (2.9)
67
+ nokogiri (1.5.10)
32
68
  ntlm-http (0.1.1)
33
- rake (10.0.4)
69
+ oauth2 (0.9.2)
70
+ faraday (~> 0.8)
71
+ httpauth (~> 0.2)
72
+ jwt (~> 0.1.4)
73
+ multi_json (~> 1.0)
74
+ multi_xml (~> 0.5)
75
+ rack (~> 1.2)
76
+ rack (1.5.2)
77
+ rake (10.1.0)
34
78
  rdoc (4.0.1)
35
79
  json (~> 1.4)
36
80
  rest-client (1.6.7)
37
81
  mime-types (>= 1.16)
38
- rspec (2.13.0)
39
- rspec-core (~> 2.13.0)
40
- rspec-expectations (~> 2.13.0)
41
- rspec-mocks (~> 2.13.0)
42
- rspec-core (2.13.1)
43
- rspec-expectations (2.13.0)
82
+ rspec (2.14.1)
83
+ rspec-core (~> 2.14.0)
84
+ rspec-expectations (~> 2.14.0)
85
+ rspec-mocks (~> 2.14.0)
86
+ rspec-core (2.14.6)
87
+ rspec-expectations (2.14.3)
44
88
  diff-lcs (>= 1.1.3, < 2.0)
45
- rspec-mocks (2.13.1)
46
- unf (0.1.1)
89
+ rspec-mocks (2.14.4)
90
+ simplecov (0.7.1)
91
+ multi_json (~> 1.0)
92
+ simplecov-html (~> 0.7.1)
93
+ simplecov-html (0.7.1)
94
+ term-ansicolor (1.2.2)
95
+ tins (~> 0.8)
96
+ thor (0.18.1)
97
+ thread_safe (0.1.3)
98
+ atomic
99
+ tins (0.12.0)
100
+ tzinfo (0.3.38)
101
+ unf (0.1.2)
47
102
  unf_ext
48
103
  unf_ext (0.0.6)
49
- vcr (2.4.0)
104
+ vcr (2.6.0)
50
105
  webrobots (0.1.1)
51
- yard (0.8.6.1)
106
+ yard (0.8.7.2)
52
107
 
53
108
  PLATFORMS
54
109
  ruby
@@ -56,6 +111,7 @@ PLATFORMS
56
111
  DEPENDENCIES
57
112
  activesupport
58
113
  bundler
114
+ coveralls
59
115
  fakeweb
60
116
  jeweler
61
117
  mechanize
data/README.md CHANGED
@@ -1,11 +1,12 @@
1
1
  # Wombat
2
2
 
3
- [[![Gem Version](https://badge.fury.io/rb/wombat.png)](http://badge.fury.io/rb/wombat)][rubygems] [![CI Build Status](https://secure.travis-ci.org/felipecsl/wombat.png?branch=master)][travis] [![Dependency Status](https://gemnasium.com/felipecsl/wombat.png?travis)][gemnasium] [![Code Climate](https://codeclimate.com/github/felipecsl/wombat.png)][codeclimate]
3
+ [[![Gem Version](https://badge.fury.io/rb/wombat.png)](http://badge.fury.io/rb/wombat)][rubygems] [![CI Build Status](https://secure.travis-ci.org/felipecsl/wombat.png?branch=master)][travis] [![Dependency Status](https://gemnasium.com/felipecsl/wombat.png?travis)][gemnasium] [![Code Climate](https://codeclimate.com/github/felipecsl/wombat.png)][codeclimate] [![Coverage Status](https://coveralls.io/repos/felipecsl/wombat/badge.png?branch=master)][coveralls]
4
4
 
5
5
  [rubygems]: http://rubygems.org/gems/wombat
6
6
  [travis]: http://travis-ci.org/felipecsl/wombat
7
7
  [gemnasium]: https://gemnasium.com/felipecsl/wombat
8
8
  [codeclimate]: https://codeclimate.com/github/felipecsl/wombat
9
+ [coveralls]: https://coveralls.io/r/felipecsl/wombat?branch=master
9
10
 
10
11
  Web scraper with an elegant DSL that parses structured data from web pages.
11
12
 
@@ -13,7 +14,7 @@ Web scraper with an elegant DSL that parses structured data from web pages.
13
14
 
14
15
  ``gem install wombat``
15
16
 
16
- Obs: Requires ruby 1.9
17
+ Obs: Requires ruby 1.9.3 (activesupport requires Ruby version >= 1.9.3)
17
18
 
18
19
  ## Scraping a page:
19
20
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 2.2.0
1
+ 2.2.1
data/spec/spec_helper.rb CHANGED
@@ -2,6 +2,9 @@ require 'wombat'
2
2
  require 'rspec'
3
3
  require 'rspec-expectations'
4
4
  require 'vcr'
5
+ require 'coveralls'
6
+
7
+ Coveralls.wear!
5
8
 
6
9
  VCR.configure do |c|
7
10
  c.cassette_library_dir = 'fixtures/vcr_cassettes'
data/spec/wombat_spec.rb CHANGED
@@ -12,7 +12,7 @@ describe Wombat do
12
12
  it 'should redirect .scrape to .crawl' do
13
13
  fake_class = double :fake
14
14
  fake_class.stub :include
15
- fake_class.should_receive(:new).and_return(stub(crawl: nil))
15
+ fake_class.should_receive(:new).and_return(double(crawl: nil))
16
16
  Class.stub :new => fake_class
17
17
  Wombat.scrape
18
18
  end
data/wombat.gemspec CHANGED
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "wombat"
8
- s.version = "2.2.0"
8
+ s.version = "2.2.1"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Felipe Lima"]
12
- s.date = "2013-06-06"
12
+ s.date = "2013-10-20"
13
13
  s.description = "Generic Web crawler with a DSL that parses structured data from web pages"
14
14
  s.email = "felipe.lima@gmail.com"
15
15
  s.extra_rdoc_files = [
@@ -96,6 +96,7 @@ Gem::Specification.new do |s|
96
96
  s.add_development_dependency(%q<rspec>, [">= 0"])
97
97
  s.add_development_dependency(%q<vcr>, [">= 0"])
98
98
  s.add_development_dependency(%q<fakeweb>, [">= 0"])
99
+ s.add_development_dependency(%q<coveralls>, [">= 0"])
99
100
  else
100
101
  s.add_dependency(%q<mechanize>, [">= 0"])
101
102
  s.add_dependency(%q<activesupport>, [">= 0"])
@@ -107,6 +108,7 @@ Gem::Specification.new do |s|
107
108
  s.add_dependency(%q<rspec>, [">= 0"])
108
109
  s.add_dependency(%q<vcr>, [">= 0"])
109
110
  s.add_dependency(%q<fakeweb>, [">= 0"])
111
+ s.add_dependency(%q<coveralls>, [">= 0"])
110
112
  end
111
113
  else
112
114
  s.add_dependency(%q<mechanize>, [">= 0"])
@@ -119,6 +121,7 @@ Gem::Specification.new do |s|
119
121
  s.add_dependency(%q<rspec>, [">= 0"])
120
122
  s.add_dependency(%q<vcr>, [">= 0"])
121
123
  s.add_dependency(%q<fakeweb>, [">= 0"])
124
+ s.add_dependency(%q<coveralls>, [">= 0"])
122
125
  end
123
126
  end
124
127
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: wombat
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.2.0
4
+ version: 2.2.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-06-06 00:00:00.000000000 Z
12
+ date: 2013-10-20 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: mechanize
@@ -171,6 +171,22 @@ dependencies:
171
171
  - - ! '>='
172
172
  - !ruby/object:Gem::Version
173
173
  version: '0'
174
+ - !ruby/object:Gem::Dependency
175
+ name: coveralls
176
+ requirement: !ruby/object:Gem::Requirement
177
+ none: false
178
+ requirements:
179
+ - - ! '>='
180
+ - !ruby/object:Gem::Version
181
+ version: '0'
182
+ type: :development
183
+ prerelease: false
184
+ version_requirements: !ruby/object:Gem::Requirement
185
+ none: false
186
+ requirements:
187
+ - - ! '>='
188
+ - !ruby/object:Gem::Version
189
+ version: '0'
174
190
  description: Generic Web crawler with a DSL that parses structured data from web pages
175
191
  email: felipe.lima@gmail.com
176
192
  executables: []