leggy 0.2.0 → 0.3.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e7f28d231bf567519d180e03632c738d5557e1ce
4
- data.tar.gz: edce7a1ef7ee3123b2aede13b5df5622e7a84c47
3
+ metadata.gz: 009c635ecee28d066a8b7a827f355c5bf924e681
4
+ data.tar.gz: ebc0abc6f73d336948c89fdc2890228962c83230
5
5
  SHA512:
6
- metadata.gz: cbdf3042c82634faae01a3c4b2cbfc6d6265c44099bbaf96d3f01e8e2d03a991c444080021f22ff41c26bf3bbbda2f002fb5ef16ee59f7194dcf5de42b301563
7
- data.tar.gz: 53973b207036638ca4b20463cb30ce7149bc5eca45c61088b44dd21a27316ab4c106d880c4465377d3cd0214807da6175d4b5893e8b36540df22f6f7ff765705
6
+ metadata.gz: 039fb9278049a441a9e6b3477cbfa339d3a32999c5055dc85f3b5cbbbb1fc02b1e6e86bd586f109bd270a65544a3b69486cff6a2d098d4396033072c8f194b96
7
+ data.tar.gz: 49e23ea19de50b4b590cb272d5efe9d7144a626f229c4e3f7a494f929424da179e4eeb1b7fe1f6db54e12fc7d57aeaadef3d467b06c64130eed9a5d12f125793
@@ -18,9 +18,9 @@ Gem::Specification.new do |spec|
18
18
  spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
19
19
  spec.require_paths = ["lib"]
20
20
 
21
- spec.add_development_dependency "bundler", "~> 1.7"
22
- spec.add_development_dependency "rake", "~> 10.0"
23
- spec.add_development_dependency "rspec", "~> 3.0"
21
+ spec.add_development_dependency "bundler"
22
+ spec.add_development_dependency "rake"
23
+ spec.add_development_dependency "rspec", "> 3.0"
24
24
  spec.add_development_dependency "guard-rspec"
25
25
  spec.add_development_dependency "vcr"
26
26
  spec.add_development_dependency "webmock"
@@ -32,6 +32,6 @@ Gem::Specification.new do |spec|
32
32
  spec.add_dependency "faraday_middleware", "~> 0.9"
33
33
  spec.add_dependency "resource_kit", "~> 0.1"
34
34
  spec.add_dependency "kartograph", "~> 0.2"
35
- spec.add_dependency "activesupport", "~> 4.0"
35
+ spec.add_dependency "activesupport", ">= 4.0", "< 6"
36
36
 
37
37
  end
@@ -1,3 +1,3 @@
1
1
  module Leggy
2
- VERSION = "0.2.0"
2
+ VERSION = "0.3.0"
3
3
  end
@@ -1,6 +1,8 @@
1
1
  require 'spec_helper'
2
2
 
3
- RSpec.describe Leggy::Exception, vcr: { cassette_name: 'leggy_exception', record: :none } do
3
+ RSpec.describe Leggy::Exception,
4
+ vcr: { cassette_name: 'leggy_exception', record: :none, match_requests_on: [ :method, :host, :path ] } \
5
+ do
4
6
 
5
7
  context ".errors" do
6
8
 
@@ -1,6 +1,8 @@
1
1
  require 'spec_helper'
2
2
 
3
- RSpec.describe Leggy::Resource::App, vcr: { cassette_name: 'leggy_app', record: :none } do
3
+ RSpec.describe Leggy::Resource::App,
4
+ vcr: { cassette_name: 'leggy_app', record: :none, match_requests_on: [ :method, :host, :path ] } \
5
+ do
4
6
 
5
7
  it "includes Leggy::ErrorHandler" do
6
8
  expect(described_class.ancestors).to include Leggy::ErrorHandler
@@ -16,7 +16,7 @@ RSpec.describe Leggy::Resource::Crawl do
16
16
  }
17
17
  end
18
18
 
19
- context ".all", vcr: { cassette_name: 'leggy_crawl_all', record: :none } do
19
+ context ".all", vcr: { cassette_name: 'leggy_crawl_all', record: :none, match_requests_on: [ :method, :host, :path ] } do
20
20
 
21
21
  it "returns a list of all crawls" do
22
22
  crawls = Leggy.crawls.all
@@ -25,7 +25,7 @@ RSpec.describe Leggy::Resource::Crawl do
25
25
 
26
26
  end
27
27
 
28
- context ".start", vcr: { cassette_name: 'leggy_crawl_start', record: :none } do
28
+ context ".start", vcr: { cassette_name: 'leggy_crawl_start', record: :none, match_requests_on: [ :method, :host, :path ] } do
29
29
 
30
30
  before do
31
31
  options.merge!(name: 'testing_crawl_start', urllist: 'sample_crawl_list')
@@ -44,7 +44,7 @@ RSpec.describe Leggy::Resource::Crawl do
44
44
 
45
45
  end
46
46
 
47
- context ".status", vcr: { cassette_name: 'leggy_crawl_status', record: :none } do
47
+ context ".status", vcr: { cassette_name: 'leggy_crawl_status', record: :none, match_requests_on: [ :method, :host, :path ] } do
48
48
 
49
49
  before do
50
50
  options.merge!(name: 'testing_crawl_status', urllist: 'sample_crawl_list')
@@ -64,7 +64,7 @@ RSpec.describe Leggy::Resource::Crawl do
64
64
 
65
65
  end
66
66
 
67
- context ".cancel", vcr: { cassette_name: 'leggy_crawl_cancel', record: :none } do
67
+ context ".cancel", vcr: { cassette_name: 'leggy_crawl_cancel', record: :none, match_requests_on: [ :method, :host, :path ] } do
68
68
 
69
69
  before do
70
70
  options.merge!(name: 'testing_crawl_cancel', urllist: 'sample_crawl_list')
@@ -19,7 +19,7 @@ RSpec.describe Leggy::Resource::Result do
19
19
  # If rerunning this test without a cassette, it needs to be run in stages
20
20
  # to allow for the crawl to finish and generate results
21
21
  #
22
- context ".all", vcr: { cassette_name: 'leggy_result', record: :none } do
22
+ context ".all", vcr: { cassette_name: 'leggy_result', record: :none, match_requests_on: [ :method, :host, :path ] } do
23
23
 
24
24
  before do
25
25
  options.merge!(name: 'testing_crawl_results', urllist: 'sample_crawl_list')
@@ -1,6 +1,8 @@
1
1
  require 'spec_helper'
2
2
 
3
- RSpec.describe Leggy::Resource::Url, vcr: { cassette_name: 'leggy_url', record: :none } do
3
+ RSpec.describe Leggy::Resource::Url,
4
+ vcr: { cassette_name: 'leggy_url', record: :none, match_requests_on: [ :method, :host, :path ] } \
5
+ do
4
6
 
5
7
  it "includes Leggy::ErrorHandler" do
6
8
  expect(described_class.ancestors).to include Leggy::ErrorHandler
@@ -1,6 +1,8 @@
1
1
  require 'spec_helper'
2
2
 
3
- RSpec.describe Leggy::Resource::User, vcr: { cassette_name: 'leggy_user', record: :none } do
3
+ RSpec.describe Leggy::Resource::User,
4
+ vcr: { cassette_name: 'leggy_user', record: :none, match_requests_on: [ :method, :host, :path ] } \
5
+ do
4
6
 
5
7
  it "includes Leggy::ErrorHandler" do
6
8
  expect(described_class.ancestors).to include Leggy::ErrorHandler
@@ -3,6 +3,7 @@ require 'vcr'
3
3
 
4
4
  VCR.configure do |c|
5
5
  c.ignore_localhost = true
6
+ c.ignore_hosts 'codeclimate.com'
6
7
  c.cassette_library_dir = File.join(File.dirname(__FILE__), '..', 'cassettes')
7
8
  c.hook_into :webmock #:typhoeus, :faraday, :fakeweb, or :webmock
8
9
  c.default_cassette_options = { :record => :new_episodes }
metadata CHANGED
@@ -1,55 +1,55 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: leggy
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matt Solt
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-12-12 00:00:00.000000000 Z
11
+ date: 2016-07-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - "~>"
17
+ - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: '1.7'
19
+ version: '0'
20
20
  type: :development
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - "~>"
24
+ - - ">="
25
25
  - !ruby/object:Gem::Version
26
- version: '1.7'
26
+ version: '0'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rake
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - "~>"
31
+ - - ">="
32
32
  - !ruby/object:Gem::Version
33
- version: '10.0'
33
+ version: '0'
34
34
  type: :development
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - "~>"
38
+ - - ">="
39
39
  - !ruby/object:Gem::Version
40
- version: '10.0'
40
+ version: '0'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: rspec
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - "~>"
45
+ - - ">"
46
46
  - !ruby/object:Gem::Version
47
47
  version: '3.0'
48
48
  type: :development
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - "~>"
52
+ - - ">"
53
53
  - !ruby/object:Gem::Version
54
54
  version: '3.0'
55
55
  - !ruby/object:Gem::Dependency
@@ -196,16 +196,22 @@ dependencies:
196
196
  name: activesupport
197
197
  requirement: !ruby/object:Gem::Requirement
198
198
  requirements:
199
- - - "~>"
199
+ - - ">="
200
200
  - !ruby/object:Gem::Version
201
201
  version: '4.0'
202
+ - - "<"
203
+ - !ruby/object:Gem::Version
204
+ version: '6'
202
205
  type: :runtime
203
206
  prerelease: false
204
207
  version_requirements: !ruby/object:Gem::Requirement
205
208
  requirements:
206
- - - "~>"
209
+ - - ">="
207
210
  - !ruby/object:Gem::Version
208
211
  version: '4.0'
212
+ - - "<"
213
+ - !ruby/object:Gem::Version
214
+ version: '6'
209
215
  description: Ruby wrapper for the 80Legs API.
210
216
  email:
211
217
  - mattsolt@gmail.com
@@ -221,7 +227,6 @@ files:
221
227
  - LICENSE.txt
222
228
  - README.md
223
229
  - Rakefile
224
- - leggy-0.1.0.gem
225
230
  - leggy.gemspec
226
231
  - lib/leggy.rb
227
232
  - lib/leggy/app.rb
@@ -285,7 +290,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
285
290
  version: '0'
286
291
  requirements: []
287
292
  rubyforge_project:
288
- rubygems_version: 2.4.5.1
293
+ rubygems_version: 2.5.1
289
294
  signing_key:
290
295
  specification_version: 4
291
296
  summary: Ruby wrapper for the 80Legs API