travian_bot 0.2.0 → 0.2.1

Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile CHANGED
@@ -1,9 +1,8 @@
1
- source "http://rubygems.org"
1
+ source :rubygems
2
2
 
3
3
  group :development do
4
- gem "bundler", "~> 1.0.0"
5
- gem "jeweler", "~> 1.6.4"
4
+ gem 'bundler'
5
+ gem 'jeweler', '~> 1.6.4'
6
6
  end
7
7
 
8
- gem 'selenium-webdriver'
9
- gem 'chronic'
8
+ gem 'selenium-webdriver'
data/Gemfile.lock CHANGED
@@ -3,7 +3,6 @@ GEM
3
3
  specs:
4
4
  childprocess (0.2.2)
5
5
  ffi (~> 1.0.6)
6
- chronic (0.6.4)
7
6
  ffi (1.0.9)
8
7
  git (1.2.5)
9
8
  jeweler (1.6.4)
@@ -23,7 +22,6 @@ PLATFORMS
23
22
  ruby
24
23
 
25
24
  DEPENDENCIES
26
- bundler (~> 1.0.0)
27
- chronic
25
+ bundler
28
26
  jeweler (~> 1.6.4)
29
27
  selenium-webdriver
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.2.0
1
+ 0.2.1
@@ -1,9 +1,9 @@
1
- require 'travian_bot/application/navigate'
1
+ require 'travian_bot/application/navigation'
2
2
 
3
3
  class TravianBot
4
4
  class Application
5
5
  module Buildings
6
- include TravianBot::Application::Navigate
6
+ include TravianBot::Application::Navigation
7
7
 
8
8
  def avaible_buildings(selenium)
9
9
  begin
@@ -1,6 +1,6 @@
1
1
  class TravianBot
2
2
  class Application
3
- module Navigate
3
+ module Navigation
4
4
  def to_resources_page(selenium)
5
5
  to_page(selenium, 'resources')
6
6
  end
@@ -1,6 +1,4 @@
1
1
  require 'selenium-webdriver'
2
- require 'chronic'
3
-
4
2
  Dir.glob(File.join(File.dirname(__FILE__), '/application/*.rb')).sort.each { |lib| load lib }
5
3
 
6
4
 
@@ -26,7 +24,6 @@ class TravianBot
26
24
  return 1
27
25
  end
28
26
 
29
- private
30
27
  def current_avaible_buildings
31
28
  h2 'Avaible buildings'
32
29
  buildings = avaible_buildings(@game)
@@ -64,13 +61,6 @@ class TravianBot
64
61
  new_line
65
62
  end
66
63
  end
67
-
68
- # Get the ending time of a string
69
- def wait_till(input)
70
- time = input.to_s.match(/(\d*):(\d*)$/)
71
-
72
- Chronic.parse("today #{time[0]}:#{time[1]}")
73
- end
74
64
  end
75
65
  end
76
66
  end
data/travian_bot.gemspec CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "travian_bot"
8
- s.version = "0.2.0"
8
+ s.version = "0.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 = ["Roman Simecek"]
@@ -31,7 +31,7 @@ Gem::Specification.new do |s|
31
31
  "lib/travian_bot/application/buildings.rb",
32
32
  "lib/travian_bot/application/connection.rb",
33
33
  "lib/travian_bot/application/display.rb",
34
- "lib/travian_bot/application/navigate.rb",
34
+ "lib/travian_bot/application/navigation.rb",
35
35
  "lib/travian_bot/application/queue.rb",
36
36
  "test/helper.rb",
37
37
  "test/test_travian_bot.rb",
@@ -48,19 +48,16 @@ Gem::Specification.new do |s|
48
48
 
49
49
  if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
50
50
  s.add_runtime_dependency(%q<selenium-webdriver>, [">= 0"])
51
- s.add_runtime_dependency(%q<chronic>, [">= 0"])
52
- s.add_development_dependency(%q<bundler>, ["~> 1.0.0"])
51
+ s.add_development_dependency(%q<bundler>, [">= 0"])
53
52
  s.add_development_dependency(%q<jeweler>, ["~> 1.6.4"])
54
53
  else
55
54
  s.add_dependency(%q<selenium-webdriver>, [">= 0"])
56
- s.add_dependency(%q<chronic>, [">= 0"])
57
- s.add_dependency(%q<bundler>, ["~> 1.0.0"])
55
+ s.add_dependency(%q<bundler>, [">= 0"])
58
56
  s.add_dependency(%q<jeweler>, ["~> 1.6.4"])
59
57
  end
60
58
  else
61
59
  s.add_dependency(%q<selenium-webdriver>, [">= 0"])
62
- s.add_dependency(%q<chronic>, [">= 0"])
63
- s.add_dependency(%q<bundler>, ["~> 1.0.0"])
60
+ s.add_dependency(%q<bundler>, [">= 0"])
64
61
  s.add_dependency(%q<jeweler>, ["~> 1.6.4"])
65
62
  end
66
63
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: travian_bot
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -13,7 +13,7 @@ date: 2011-10-24 00:00:00.000000000Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: selenium-webdriver
16
- requirement: &2156060440 !ruby/object:Gem::Requirement
16
+ requirement: &2156928880 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,32 +21,21 @@ dependencies:
21
21
  version: '0'
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *2156060440
24
+ version_requirements: *2156928880
25
25
  - !ruby/object:Gem::Dependency
26
- name: chronic
27
- requirement: &2156056740 !ruby/object:Gem::Requirement
26
+ name: bundler
27
+ requirement: &2156927960 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ! '>='
31
31
  - !ruby/object:Gem::Version
32
32
  version: '0'
33
- type: :runtime
34
- prerelease: false
35
- version_requirements: *2156056740
36
- - !ruby/object:Gem::Dependency
37
- name: bundler
38
- requirement: &2156050160 !ruby/object:Gem::Requirement
39
- none: false
40
- requirements:
41
- - - ~>
42
- - !ruby/object:Gem::Version
43
- version: 1.0.0
44
33
  type: :development
45
34
  prerelease: false
46
- version_requirements: *2156050160
35
+ version_requirements: *2156927960
47
36
  - !ruby/object:Gem::Dependency
48
37
  name: jeweler
49
- requirement: &2156047020 !ruby/object:Gem::Requirement
38
+ requirement: &2156927140 !ruby/object:Gem::Requirement
50
39
  none: false
51
40
  requirements:
52
41
  - - ~>
@@ -54,7 +43,7 @@ dependencies:
54
43
  version: 1.6.4
55
44
  type: :development
56
45
  prerelease: false
57
- version_requirements: *2156047020
46
+ version_requirements: *2156927140
58
47
  description: A little bot for travian.
59
48
  email: roman.simecek@cyt.ch
60
49
  executables:
@@ -77,7 +66,7 @@ files:
77
66
  - lib/travian_bot/application/buildings.rb
78
67
  - lib/travian_bot/application/connection.rb
79
68
  - lib/travian_bot/application/display.rb
80
- - lib/travian_bot/application/navigate.rb
69
+ - lib/travian_bot/application/navigation.rb
81
70
  - lib/travian_bot/application/queue.rb
82
71
  - test/helper.rb
83
72
  - test/test_travian_bot.rb
@@ -97,7 +86,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
97
86
  version: '0'
98
87
  segments:
99
88
  - 0
100
- hash: -1529457768905218778
89
+ hash: 2833179273791333550
101
90
  required_rubygems_version: !ruby/object:Gem::Requirement
102
91
  none: false
103
92
  requirements: