market_bot 0.6.2 → 0.6.3

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.6.2
1
+ 0.6.3
data/lib/market_bot.rb CHANGED
@@ -8,3 +8,8 @@ require 'market_bot/android/leaderboard/constants'
8
8
  require 'market_bot/android/leaderboard'
9
9
  require 'market_bot/android/search_query'
10
10
 
11
+ module MarketBot
12
+ def self.hydra
13
+ @hydra ||= Typhoeus::Hydra.new(:max_concurrency => 5)
14
+ end
15
+ end
@@ -121,7 +121,7 @@ module MarketBot
121
121
 
122
122
  def initialize(app_id, options={})
123
123
  @app_id = app_id
124
- @hydra = options[:hydra] || Typhoeus::Hydra.new(:max_concurrency => 5)
124
+ @hydra = options[:hydra] || MarketBot.hydra
125
125
  @callback = nil
126
126
  @error = nil
127
127
  end
@@ -66,7 +66,7 @@ module MarketBot
66
66
  def initialize(identifier, category=nil, options={})
67
67
  @identifier = identifier
68
68
  @category = category
69
- @hydra = options[:hydra] || Typhoeus::Hydra.new(:max_concurrency => 5)
69
+ @hydra = options[:hydra] || MarketBot.hydra
70
70
  @parsed_results = []
71
71
  end
72
72
 
data/market_bot.gemspec CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "market_bot"
8
- s.version = "0.6.2"
8
+ s.version = "0.6.3"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Chad Remesch"]
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: market_bot
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.2
4
+ version: 0.6.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -240,7 +240,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
240
240
  version: '0'
241
241
  segments:
242
242
  - 0
243
- hash: -320091291937685270
243
+ hash: 1001334864545958244
244
244
  required_rubygems_version: !ruby/object:Gem::Requirement
245
245
  none: false
246
246
  requirements: