market_bot 0.11.0 → 0.12.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -21,7 +21,7 @@ def stub_hydra(hydra)
21
21
  test_src_editors_choice = read_file(File.dirname(__FILE__), 'data', "leaderboard-apps_editors_choice.txt")
22
22
 
23
23
  response = Typhoeus::Response.new(:code => 200, :headers => '', :body => test_src_editors_choice)
24
- url = "https://play.google.com/store/apps/collection/editors_choice?hl=en"
24
+ url = "https://play.google.com/store/apps/collection/editors_choice?&hl=en"
25
25
  Typhoeus.stub(url).and_return(response)
26
26
  end
27
27
 
@@ -114,15 +114,15 @@ describe 'Leaderboard' do
114
114
  lb = Leaderboard.new('editors_choice', nil, :hydra => hydra)
115
115
  lb.update
116
116
 
117
- lb.results.count.should == 45
117
+ lb.results.count.should == 51
118
118
 
119
119
  app = lb.results.last
120
120
 
121
- app[:title].should == 'Kingdom Rush'
122
- app[:price_usd].should == "$1.99"
123
- app[:developer].should == 'Ironhide Game Studio'
124
- app[:market_id].should == 'com.ironhidegames.android.kingdomrush'
125
- app[:market_url].should == 'https://play.google.com/store/apps/details?id=com.ironhidegames.android.kingdomrush&hl=en'
121
+ app[:title].should == 'Into the Dead'
122
+ app[:price_usd].should == "Free"
123
+ app[:developer].should == 'PIKPOK'
124
+ app[:market_id].should == 'com.sidheinteractive.sif.DR'
125
+ app[:market_url].should == 'https://play.google.com/store/apps/details?id=com.sidheinteractive.sif.DR&hl=en'
126
126
  end
127
127
  end
128
128
  end
data/spec/spec_helper.rb CHANGED
@@ -22,6 +22,10 @@ Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each {|f| require f}
22
22
  RSpec.configure do |config|
23
23
  end
24
24
 
25
+ Typhoeus.configure do |config|
26
+ config.block_connection = true
27
+ end
28
+
25
29
  def read_file(*path)
26
30
  data = nil
27
31
  File.open(File.join(path), 'r') { |f| data = f.read }
metadata CHANGED
@@ -1,41 +1,41 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: market_bot
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.11.0
4
+ version: 0.12.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chad Remesch
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-11-28 00:00:00.000000000 Z
11
+ date: 2014-07-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: typhoeus
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - '>='
17
+ - - ">="
18
18
  - !ruby/object:Gem::Version
19
19
  version: 0.6.0
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - '>='
24
+ - - ">="
25
25
  - !ruby/object:Gem::Version
26
26
  version: 0.6.0
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: nokogiri
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - '>='
31
+ - - ">="
32
32
  - !ruby/object:Gem::Version
33
33
  version: '0'
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - '>='
38
+ - - ">="
39
39
  - !ruby/object:Gem::Version
40
40
  version: '0'
41
41
  - !ruby/object:Gem::Dependency
@@ -60,9 +60,8 @@ executables: []
60
60
  extensions: []
61
61
  extra_rdoc_files: []
62
62
  files:
63
- - .gitignore
64
- - .rspec
65
- - .ruby-version
63
+ - ".gitignore"
64
+ - ".rspec"
66
65
  - Gemfile
67
66
  - Gemfile.lock
68
67
  - LICENSE.txt
@@ -99,17 +98,17 @@ require_paths:
99
98
  - lib
100
99
  required_ruby_version: !ruby/object:Gem::Requirement
101
100
  requirements:
102
- - - '>='
101
+ - - ">="
103
102
  - !ruby/object:Gem::Version
104
103
  version: '0'
105
104
  required_rubygems_version: !ruby/object:Gem::Requirement
106
105
  requirements:
107
- - - '>='
106
+ - - ">="
108
107
  - !ruby/object:Gem::Version
109
108
  version: '0'
110
109
  requirements: []
111
110
  rubyforge_project:
112
- rubygems_version: 2.0.3
111
+ rubygems_version: 2.2.2
113
112
  signing_key:
114
113
  specification_version: 4
115
114
  summary: 'Market Bot: High performance Ruby scraper for Google''s Android Market'
data/.ruby-version DELETED
@@ -1 +0,0 @@
1
- 2.0.0-p247