roadtrip 0.0.3 → 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (55) hide show
  1. data/.gitignore +4 -0
  2. data/Rakefile +13 -21
  3. data/VERSION +1 -0
  4. data/features/create_trip.feature +10 -0
  5. data/features/step_definitions/roadtrip_steps.rb +11 -0
  6. data/lib/roadtrip.rb +21 -32
  7. data/pkg/roadtrip-0.0.1.gem +0 -0
  8. data/pkg/roadtrip-0.0.1.tgz +0 -0
  9. data/pkg/roadtrip-0.0.1/History.txt +4 -0
  10. data/pkg/roadtrip-0.0.1/Manifest.txt +13 -0
  11. data/pkg/roadtrip-0.0.1/PostInstall.txt +3 -0
  12. data/pkg/roadtrip-0.0.1/README.rdoc +72 -0
  13. data/pkg/roadtrip-0.0.1/Rakefile +18 -0
  14. data/pkg/roadtrip-0.0.1/lib/roadtrip.rb +70 -0
  15. data/pkg/roadtrip-0.0.1/script/console +10 -0
  16. data/pkg/roadtrip-0.0.1/script/destroy +14 -0
  17. data/pkg/roadtrip-0.0.1/script/generate +14 -0
  18. data/pkg/roadtrip-0.0.1/spec/roadtrip_spec.rb +11 -0
  19. data/pkg/roadtrip-0.0.1/spec/spec.opts +1 -0
  20. data/pkg/roadtrip-0.0.1/spec/spec_helper.rb +10 -0
  21. data/pkg/roadtrip-0.0.1/tasks/rspec.rake +21 -0
  22. data/pkg/roadtrip-0.0.2.gem +0 -0
  23. data/pkg/roadtrip-0.0.2.tgz +0 -0
  24. data/pkg/roadtrip-0.0.2/History.txt +4 -0
  25. data/pkg/roadtrip-0.0.2/Manifest.txt +13 -0
  26. data/pkg/roadtrip-0.0.2/PostInstall.txt +3 -0
  27. data/pkg/roadtrip-0.0.2/README.rdoc +72 -0
  28. data/pkg/roadtrip-0.0.2/Rakefile +18 -0
  29. data/pkg/roadtrip-0.0.2/lib/roadtrip.rb +70 -0
  30. data/pkg/roadtrip-0.0.2/script/console +10 -0
  31. data/pkg/roadtrip-0.0.2/script/destroy +14 -0
  32. data/pkg/roadtrip-0.0.2/script/generate +14 -0
  33. data/pkg/roadtrip-0.0.2/spec/roadtrip_spec.rb +11 -0
  34. data/pkg/roadtrip-0.0.2/spec/spec.opts +1 -0
  35. data/pkg/roadtrip-0.0.2/spec/spec_helper.rb +10 -0
  36. data/pkg/roadtrip-0.0.2/tasks/rspec.rake +21 -0
  37. data/pkg/roadtrip-0.0.3.gem +0 -0
  38. data/pkg/roadtrip-0.0.3.tgz +0 -0
  39. data/pkg/roadtrip-0.0.3/History.txt +4 -0
  40. data/pkg/roadtrip-0.0.3/Manifest.txt +13 -0
  41. data/pkg/roadtrip-0.0.3/PostInstall.txt +3 -0
  42. data/pkg/roadtrip-0.0.3/README.rdoc +72 -0
  43. data/pkg/roadtrip-0.0.3/Rakefile +18 -0
  44. data/pkg/roadtrip-0.0.3/lib/roadtrip.rb +70 -0
  45. data/pkg/roadtrip-0.0.3/script/console +10 -0
  46. data/pkg/roadtrip-0.0.3/script/destroy +14 -0
  47. data/pkg/roadtrip-0.0.3/script/generate +14 -0
  48. data/pkg/roadtrip-0.0.3/spec/roadtrip_spec.rb +11 -0
  49. data/pkg/roadtrip-0.0.3/spec/spec.opts +1 -0
  50. data/pkg/roadtrip-0.0.3/spec/spec_helper.rb +10 -0
  51. data/pkg/roadtrip-0.0.3/tasks/rspec.rake +21 -0
  52. data/pkg/roadtrip-0.1.0.gem +0 -0
  53. data/roadtrip.gemspec +105 -0
  54. data/spec/roadtrip_spec.rb +9 -1
  55. metadata +67 -68
@@ -0,0 +1,10 @@
1
+ #!/usr/bin/env ruby
2
+ # File: script/console
3
+ irb = RUBY_PLATFORM =~ /(:?mswin|mingw)/ ? 'irb.bat' : 'irb'
4
+
5
+ libs = " -r irb/completion"
6
+ # Perhaps use a console_lib to store any extra methods I may want available in the cosole
7
+ # libs << " -r #{File.dirname(__FILE__) + '/../lib/console_lib/console_logger.rb'}"
8
+ libs << " -r #{File.dirname(__FILE__) + '/../lib/roadtrip.rb'}"
9
+ puts "Loading roadtrip gem"
10
+ exec "#{irb} #{libs} --simple-prompt"
@@ -0,0 +1,14 @@
1
+ #!/usr/bin/env ruby
2
+ APP_ROOT = File.expand_path(File.join(File.dirname(__FILE__), '..'))
3
+
4
+ begin
5
+ require 'rubigen'
6
+ rescue LoadError
7
+ require 'rubygems'
8
+ require 'rubigen'
9
+ end
10
+ require 'rubigen/scripts/destroy'
11
+
12
+ ARGV.shift if ['--help', '-h'].include?(ARGV[0])
13
+ RubiGen::Base.use_component_sources! [:rubygems, :newgem, :newgem_theme, :test_unit]
14
+ RubiGen::Scripts::Destroy.new.run(ARGV)
@@ -0,0 +1,14 @@
1
+ #!/usr/bin/env ruby
2
+ APP_ROOT = File.expand_path(File.join(File.dirname(__FILE__), '..'))
3
+
4
+ begin
5
+ require 'rubigen'
6
+ rescue LoadError
7
+ require 'rubygems'
8
+ require 'rubigen'
9
+ end
10
+ require 'rubigen/scripts/generate'
11
+
12
+ ARGV.shift if ['--help', '-h'].include?(ARGV[0])
13
+ RubiGen::Base.use_component_sources! [:rubygems, :newgem, :newgem_theme, :test_unit]
14
+ RubiGen::Scripts::Generate.new.run(ARGV)
@@ -0,0 +1,11 @@
1
+ require File.dirname(__FILE__) + '/spec_helper.rb'
2
+
3
+ # Time to add your specs!
4
+ # http://rspec.info/
5
+ describe "Place your specs here" do
6
+
7
+ it "should find the distance between the starting point and the end point" do
8
+ # violated "Be sure to write your specs"
9
+ end
10
+
11
+ end
@@ -0,0 +1 @@
1
+ --colour
@@ -0,0 +1,10 @@
1
+ begin
2
+ require 'spec'
3
+ rescue LoadError
4
+ require 'rubygems' unless ENV['NO_RUBYGEMS']
5
+ gem 'rspec'
6
+ require 'spec'
7
+ end
8
+
9
+ $:.unshift(File.dirname(__FILE__) + '/../lib')
10
+ require 'roadtrip'
@@ -0,0 +1,21 @@
1
+ begin
2
+ require 'spec'
3
+ rescue LoadError
4
+ require 'rubygems' unless ENV['NO_RUBYGEMS']
5
+ require 'spec'
6
+ end
7
+ begin
8
+ require 'spec/rake/spectask'
9
+ rescue LoadError
10
+ puts <<-EOS
11
+ To use rspec for testing you must install rspec gem:
12
+ gem install rspec
13
+ EOS
14
+ exit(0)
15
+ end
16
+
17
+ desc "Run the specs under spec/models"
18
+ Spec::Rake::SpecTask.new do |t|
19
+ t.spec_opts = ['--options', "spec/spec.opts"]
20
+ t.spec_files = FileList['spec/**/*_spec.rb']
21
+ end
Binary file
@@ -0,0 +1,105 @@
1
+ # Generated by jeweler
2
+ # DO NOT EDIT THIS FILE DIRECTLY
3
+ # Instead, edit Jeweler::Tasks in Rakefile, and run the gemspec command
4
+ # -*- encoding: utf-8 -*-
5
+
6
+ Gem::Specification.new do |s|
7
+ s.name = %q{roadtrip}
8
+ s.version = "0.1.0"
9
+
10
+ s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
+ s.authors = ["Kenton Newby"]
12
+ s.date = %q{2010-08-28}
13
+ s.description = %q{This is a quick little gem that uses Google Maps to determine the distance, duration and fuel costs for driving between two user defined points. Just like Google Maps, the starting and destination points can be full addresses, city/state combinations, or just ZIP codes.}
14
+ s.email = %q{kentonnewby@gmail.com}
15
+ s.extra_rdoc_files = [
16
+ "README.rdoc"
17
+ ]
18
+ s.files = [
19
+ ".DS_Store",
20
+ ".gitignore",
21
+ "History.txt",
22
+ "Manifest.txt",
23
+ "PostInstall.txt",
24
+ "README.rdoc",
25
+ "Rakefile",
26
+ "VERSION",
27
+ "features/create_trip.feature",
28
+ "features/step_definitions/roadtrip_steps.rb",
29
+ "lib/roadtrip.rb",
30
+ "pkg/roadtrip-0.0.1.gem",
31
+ "pkg/roadtrip-0.0.1.tgz",
32
+ "pkg/roadtrip-0.0.1/History.txt",
33
+ "pkg/roadtrip-0.0.1/Manifest.txt",
34
+ "pkg/roadtrip-0.0.1/PostInstall.txt",
35
+ "pkg/roadtrip-0.0.1/README.rdoc",
36
+ "pkg/roadtrip-0.0.1/Rakefile",
37
+ "pkg/roadtrip-0.0.1/lib/roadtrip.rb",
38
+ "pkg/roadtrip-0.0.1/script/console",
39
+ "pkg/roadtrip-0.0.1/script/destroy",
40
+ "pkg/roadtrip-0.0.1/script/generate",
41
+ "pkg/roadtrip-0.0.1/spec/roadtrip_spec.rb",
42
+ "pkg/roadtrip-0.0.1/spec/spec.opts",
43
+ "pkg/roadtrip-0.0.1/spec/spec_helper.rb",
44
+ "pkg/roadtrip-0.0.1/tasks/rspec.rake",
45
+ "pkg/roadtrip-0.0.2.gem",
46
+ "pkg/roadtrip-0.0.2.tgz",
47
+ "pkg/roadtrip-0.0.2/History.txt",
48
+ "pkg/roadtrip-0.0.2/Manifest.txt",
49
+ "pkg/roadtrip-0.0.2/PostInstall.txt",
50
+ "pkg/roadtrip-0.0.2/README.rdoc",
51
+ "pkg/roadtrip-0.0.2/Rakefile",
52
+ "pkg/roadtrip-0.0.2/lib/roadtrip.rb",
53
+ "pkg/roadtrip-0.0.2/script/console",
54
+ "pkg/roadtrip-0.0.2/script/destroy",
55
+ "pkg/roadtrip-0.0.2/script/generate",
56
+ "pkg/roadtrip-0.0.2/spec/roadtrip_spec.rb",
57
+ "pkg/roadtrip-0.0.2/spec/spec.opts",
58
+ "pkg/roadtrip-0.0.2/spec/spec_helper.rb",
59
+ "pkg/roadtrip-0.0.2/tasks/rspec.rake",
60
+ "pkg/roadtrip-0.0.3.gem",
61
+ "pkg/roadtrip-0.0.3.tgz",
62
+ "pkg/roadtrip-0.0.3/History.txt",
63
+ "pkg/roadtrip-0.0.3/Manifest.txt",
64
+ "pkg/roadtrip-0.0.3/PostInstall.txt",
65
+ "pkg/roadtrip-0.0.3/README.rdoc",
66
+ "pkg/roadtrip-0.0.3/Rakefile",
67
+ "pkg/roadtrip-0.0.3/lib/roadtrip.rb",
68
+ "pkg/roadtrip-0.0.3/script/console",
69
+ "pkg/roadtrip-0.0.3/script/destroy",
70
+ "pkg/roadtrip-0.0.3/script/generate",
71
+ "pkg/roadtrip-0.0.3/spec/roadtrip_spec.rb",
72
+ "pkg/roadtrip-0.0.3/spec/spec.opts",
73
+ "pkg/roadtrip-0.0.3/spec/spec_helper.rb",
74
+ "pkg/roadtrip-0.0.3/tasks/rspec.rake",
75
+ "pkg/roadtrip-0.1.0.gem",
76
+ "roadtrip.gemspec",
77
+ "script/console",
78
+ "script/destroy",
79
+ "script/generate",
80
+ "spec/roadtrip_spec.rb",
81
+ "spec/spec.opts",
82
+ "spec/spec_helper.rb",
83
+ "tasks/rspec.rake"
84
+ ]
85
+ s.homepage = %q{http://github.com/kenton/roadtrip}
86
+ s.rdoc_options = ["--charset=UTF-8"]
87
+ s.require_paths = ["lib"]
88
+ s.rubygems_version = %q{1.3.7}
89
+ s.summary = %q{Use Google Maps to find the cost, duration and distance for road trips}
90
+ s.test_files = [
91
+ "spec/roadtrip_spec.rb",
92
+ "spec/spec_helper.rb"
93
+ ]
94
+
95
+ if s.respond_to? :specification_version then
96
+ current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
97
+ s.specification_version = 3
98
+
99
+ if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
100
+ else
101
+ end
102
+ else
103
+ end
104
+ end
105
+
@@ -4,8 +4,16 @@ require File.dirname(__FILE__) + '/spec_helper.rb'
4
4
  # http://rspec.info/
5
5
  describe "Place your specs here" do
6
6
 
7
- it "find this spec in spec directory" do
7
+ it "should find the round trip cost for the roadtrip"
8
+
9
+ it "should find the distance between the starting point and the end point" do
8
10
  # violated "Be sure to write your specs"
9
11
  end
10
12
 
13
+ it "should calculate the cost of the roadtrip"
14
+
15
+ it "should find the duration of the roadtrip"
16
+
17
+ it "should show a map of the roadtrip route"
18
+
11
19
  end
metadata CHANGED
@@ -1,13 +1,12 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: roadtrip
3
3
  version: !ruby/object:Gem::Version
4
- hash: 25
5
4
  prerelease: false
6
5
  segments:
7
6
  - 0
7
+ - 1
8
8
  - 0
9
- - 3
10
- version: 0.0.3
9
+ version: 0.1.0
11
10
  platform: ruby
12
11
  authors:
13
12
  - Kenton Newby
@@ -15,75 +14,77 @@ autorequire:
15
14
  bindir: bin
16
15
  cert_chain: []
17
16
 
18
- date: 2010-07-12 00:00:00 -04:00
17
+ date: 2010-08-28 00:00:00 -04:00
19
18
  default_executable:
20
- dependencies:
21
- - !ruby/object:Gem::Dependency
22
- name: rubyforge
23
- prerelease: false
24
- requirement: &id001 !ruby/object:Gem::Requirement
25
- none: false
26
- requirements:
27
- - - ">="
28
- - !ruby/object:Gem::Version
29
- hash: 7
30
- segments:
31
- - 2
32
- - 0
33
- - 4
34
- version: 2.0.4
35
- type: :development
36
- version_requirements: *id001
37
- - !ruby/object:Gem::Dependency
38
- name: gemcutter
39
- prerelease: false
40
- requirement: &id002 !ruby/object:Gem::Requirement
41
- none: false
42
- requirements:
43
- - - ">="
44
- - !ruby/object:Gem::Version
45
- hash: 11
46
- segments:
47
- - 0
48
- - 5
49
- - 0
50
- version: 0.5.0
51
- type: :development
52
- version_requirements: *id002
53
- - !ruby/object:Gem::Dependency
54
- name: hoe
55
- prerelease: false
56
- requirement: &id003 !ruby/object:Gem::Requirement
57
- none: false
58
- requirements:
59
- - - ">="
60
- - !ruby/object:Gem::Version
61
- hash: 27
62
- segments:
63
- - 2
64
- - 5
65
- - 0
66
- version: 2.5.0
67
- type: :development
68
- version_requirements: *id003
69
- description: This is a quick little gem that uses Google Maps to determine the distance, duration and fuel costs for driving between two user defined points. Just like Google Maps, the starting and destination points can be full addresses, city/state combinations, or just ZIP codes.
70
- email:
71
- - kentonnewby@gmail.com
19
+ dependencies: []
20
+
21
+ description: This is a quick little gem that uses Google Maps to determine the distance, duration and fuel costs for driving between two user defined points. Just like Google Maps, the starting and destination points can be full addresses, city/state combinations, or just ZIP codes.
22
+ email: kentonnewby@gmail.com
72
23
  executables: []
73
24
 
74
25
  extensions: []
75
26
 
76
27
  extra_rdoc_files:
77
- - History.txt
78
- - Manifest.txt
79
- - PostInstall.txt
28
+ - README.rdoc
80
29
  files:
30
+ - .DS_Store
31
+ - .gitignore
81
32
  - History.txt
82
33
  - Manifest.txt
83
34
  - PostInstall.txt
84
35
  - README.rdoc
85
36
  - Rakefile
37
+ - VERSION
38
+ - features/create_trip.feature
39
+ - features/step_definitions/roadtrip_steps.rb
86
40
  - lib/roadtrip.rb
41
+ - pkg/roadtrip-0.0.1.gem
42
+ - pkg/roadtrip-0.0.1.tgz
43
+ - pkg/roadtrip-0.0.1/History.txt
44
+ - pkg/roadtrip-0.0.1/Manifest.txt
45
+ - pkg/roadtrip-0.0.1/PostInstall.txt
46
+ - pkg/roadtrip-0.0.1/README.rdoc
47
+ - pkg/roadtrip-0.0.1/Rakefile
48
+ - pkg/roadtrip-0.0.1/lib/roadtrip.rb
49
+ - pkg/roadtrip-0.0.1/script/console
50
+ - pkg/roadtrip-0.0.1/script/destroy
51
+ - pkg/roadtrip-0.0.1/script/generate
52
+ - pkg/roadtrip-0.0.1/spec/roadtrip_spec.rb
53
+ - pkg/roadtrip-0.0.1/spec/spec.opts
54
+ - pkg/roadtrip-0.0.1/spec/spec_helper.rb
55
+ - pkg/roadtrip-0.0.1/tasks/rspec.rake
56
+ - pkg/roadtrip-0.0.2.gem
57
+ - pkg/roadtrip-0.0.2.tgz
58
+ - pkg/roadtrip-0.0.2/History.txt
59
+ - pkg/roadtrip-0.0.2/Manifest.txt
60
+ - pkg/roadtrip-0.0.2/PostInstall.txt
61
+ - pkg/roadtrip-0.0.2/README.rdoc
62
+ - pkg/roadtrip-0.0.2/Rakefile
63
+ - pkg/roadtrip-0.0.2/lib/roadtrip.rb
64
+ - pkg/roadtrip-0.0.2/script/console
65
+ - pkg/roadtrip-0.0.2/script/destroy
66
+ - pkg/roadtrip-0.0.2/script/generate
67
+ - pkg/roadtrip-0.0.2/spec/roadtrip_spec.rb
68
+ - pkg/roadtrip-0.0.2/spec/spec.opts
69
+ - pkg/roadtrip-0.0.2/spec/spec_helper.rb
70
+ - pkg/roadtrip-0.0.2/tasks/rspec.rake
71
+ - pkg/roadtrip-0.0.3.gem
72
+ - pkg/roadtrip-0.0.3.tgz
73
+ - pkg/roadtrip-0.0.3/History.txt
74
+ - pkg/roadtrip-0.0.3/Manifest.txt
75
+ - pkg/roadtrip-0.0.3/PostInstall.txt
76
+ - pkg/roadtrip-0.0.3/README.rdoc
77
+ - pkg/roadtrip-0.0.3/Rakefile
78
+ - pkg/roadtrip-0.0.3/lib/roadtrip.rb
79
+ - pkg/roadtrip-0.0.3/script/console
80
+ - pkg/roadtrip-0.0.3/script/destroy
81
+ - pkg/roadtrip-0.0.3/script/generate
82
+ - pkg/roadtrip-0.0.3/spec/roadtrip_spec.rb
83
+ - pkg/roadtrip-0.0.3/spec/spec.opts
84
+ - pkg/roadtrip-0.0.3/spec/spec_helper.rb
85
+ - pkg/roadtrip-0.0.3/tasks/rspec.rake
86
+ - pkg/roadtrip-0.1.0.gem
87
+ - roadtrip.gemspec
87
88
  - script/console
88
89
  - script/destroy
89
90
  - script/generate
@@ -95,10 +96,9 @@ has_rdoc: true
95
96
  homepage: http://github.com/kenton/roadtrip
96
97
  licenses: []
97
98
 
98
- post_install_message: PostInstall.txt
99
+ post_install_message:
99
100
  rdoc_options:
100
- - --main
101
- - README.rdoc
101
+ - --charset=UTF-8
102
102
  require_paths:
103
103
  - lib
104
104
  required_ruby_version: !ruby/object:Gem::Requirement
@@ -106,7 +106,6 @@ required_ruby_version: !ruby/object:Gem::Requirement
106
106
  requirements:
107
107
  - - ">="
108
108
  - !ruby/object:Gem::Version
109
- hash: 3
110
109
  segments:
111
110
  - 0
112
111
  version: "0"
@@ -115,16 +114,16 @@ required_rubygems_version: !ruby/object:Gem::Requirement
115
114
  requirements:
116
115
  - - ">="
117
116
  - !ruby/object:Gem::Version
118
- hash: 3
119
117
  segments:
120
118
  - 0
121
119
  version: "0"
122
120
  requirements: []
123
121
 
124
- rubyforge_project: roadtrip
122
+ rubyforge_project:
125
123
  rubygems_version: 1.3.7
126
124
  signing_key:
127
125
  specification_version: 3
128
- summary: This is a quick little gem that uses Google Maps to determine the distance, duration and fuel costs for driving between two user defined points
129
- test_files: []
130
-
126
+ summary: Use Google Maps to find the cost, duration and distance for road trips
127
+ test_files:
128
+ - spec/roadtrip_spec.rb
129
+ - spec/spec_helper.rb