rack-geo 0.1.2 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +3 -0
- data/Gemfile +2 -0
- data/HISTORY.rdoc +10 -0
- data/Rakefile +3 -45
- data/lib/rack/geo/version.rb +1 -1
- data/rack-geo.gemspec +24 -0
- data/spec/spec_helper.rb +5 -4
- metadata +36 -23
- data/spec/spec.opts +0 -4
data/.gitignore
ADDED
data/Gemfile
ADDED
data/HISTORY.rdoc
CHANGED
@@ -1,3 +1,13 @@
|
|
1
|
+
=== Version 0.1.3 2011-06-29
|
2
|
+
|
3
|
+
* Removed Jeweler; added gemspec
|
4
|
+
* Added Gemfile
|
5
|
+
* Upgrade test library to RSpec2
|
6
|
+
|
7
|
+
=== Version 0.1.2 2011-03-07
|
8
|
+
|
9
|
+
Increase precision generated by to_http_header for lat/long
|
10
|
+
|
1
11
|
=== Version 0.1.1 2010-07-18
|
2
12
|
|
3
13
|
Initial release of Rack::Geo middleware.
|
data/Rakefile
CHANGED
@@ -1,49 +1,7 @@
|
|
1
|
-
require '
|
1
|
+
require 'bundler/setup'
|
2
2
|
require 'rake'
|
3
|
-
require 'spec/rake/spectask'
|
4
3
|
|
5
|
-
require
|
4
|
+
require 'rspec/core/rake_task'
|
5
|
+
RSpec::Core::RakeTask.new(:spec)
|
6
6
|
|
7
|
-
begin
|
8
|
-
require 'jeweler'
|
9
|
-
Jeweler::Tasks.new do |gemspec|
|
10
|
-
gemspec.version = Rack::Geo::VERSION::STRING
|
11
|
-
gemspec.name = "rack-geo"
|
12
|
-
gemspec.summary = "Rack middleware for Geo-Position HTTP headers"
|
13
|
-
gemspec.description = "Parse and serialize geospatial HTTP headers."
|
14
|
-
gemspec.email = "github@squareup.com"
|
15
|
-
gemspec.homepage = "http://github.com/square/rack-geo"
|
16
|
-
gemspec.authors = [
|
17
|
-
"Randy Reddig",
|
18
|
-
"Cameron Walters",
|
19
|
-
"Paul McKellar",
|
20
|
-
]
|
21
|
-
gemspec.extra_rdoc_files = [
|
22
|
-
'README.rdoc',
|
23
|
-
'HISTORY.rdoc',
|
24
|
-
'LICENSE.txt',
|
25
|
-
]
|
26
|
-
gemspec.add_dependency "rack", ">=1.0.0"
|
27
|
-
gemspec.add_development_dependency "rack-test", ">=0.5.3"
|
28
|
-
gemspec.add_development_dependency "rspec", ">=1.3.0"
|
29
|
-
end
|
30
|
-
rescue LoadError
|
31
|
-
puts "Jeweler (or a dependency) not available. Install it with: gem install jeweler"
|
32
|
-
end
|
33
|
-
|
34
|
-
desc "Run all specs"
|
35
|
-
Spec::Rake::SpecTask.new do |t|
|
36
|
-
t.spec_opts = ["--options", "spec/spec.opts"]
|
37
|
-
t.spec_files = FileList["spec/**/*_spec.rb"]
|
38
|
-
t.rcov = ENV["RCOV"]
|
39
|
-
t.rcov_opts = %w{--exclude osx\/objc,gems\/,spec\/}
|
40
|
-
t.verbose = true
|
41
|
-
end
|
42
|
-
|
43
|
-
task :spec => :check_dependencies
|
44
7
|
task :default => :spec
|
45
|
-
|
46
|
-
desc "Remove trailing whitespace"
|
47
|
-
task :whitespace do
|
48
|
-
sh %{find . -name '*.rb' -exec sed -i '' 's/ *$//g' {} \\;}
|
49
|
-
end
|
data/lib/rack/geo/version.rb
CHANGED
data/rack-geo.gemspec
ADDED
@@ -0,0 +1,24 @@
|
|
1
|
+
# -*- encoding: utf-8 -*-
|
2
|
+
$:.push File.expand_path("../lib", __FILE__)
|
3
|
+
require "rack/geo/version"
|
4
|
+
|
5
|
+
Gem::Specification.new do |s|
|
6
|
+
s.name = "rack-geo"
|
7
|
+
s.version = Rack::Geo::VERSION::STRING
|
8
|
+
s.platform = Gem::Platform::RUBY
|
9
|
+
s.authors = ["Randy Reddig", "Cameron Walters", "Paul McKellar"]
|
10
|
+
s.email = "github@squareup.com"
|
11
|
+
s.homepage = "https://github.com/square/rack-geo"
|
12
|
+
s.summary = %q{Rack middleware for Geo-Position HTTP headers}
|
13
|
+
s.description = %q{Parse and serialize geospatial HTTP headers.}
|
14
|
+
|
15
|
+
s.files = `git ls-files`.split("\n")
|
16
|
+
s.test_files = `git ls-files -- spec/*`.split("\n")
|
17
|
+
s.extra_rdoc_files = ['README.rdoc', 'HISTORY.rdoc', 'LICENSE.txt']
|
18
|
+
s.require_paths = ["lib"]
|
19
|
+
|
20
|
+
s.add_dependency 'rack', '~> 1.0'
|
21
|
+
s.add_development_dependency 'rake'
|
22
|
+
s.add_development_dependency 'rack-test', '~> 0.5'
|
23
|
+
s.add_development_dependency 'rspec', '~> 2.6'
|
24
|
+
end
|
data/spec/spec_helper.rb
CHANGED
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rack-geo
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 29
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 1
|
9
|
-
-
|
10
|
-
version: 0.1.
|
9
|
+
- 3
|
10
|
+
version: 0.1.3
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Randy Reddig
|
@@ -17,7 +17,7 @@ autorequire:
|
|
17
17
|
bindir: bin
|
18
18
|
cert_chain: []
|
19
19
|
|
20
|
-
date: 2011-
|
20
|
+
date: 2011-06-29 00:00:00 -07:00
|
21
21
|
default_executable:
|
22
22
|
dependencies:
|
23
23
|
- !ruby/object:Gem::Dependency
|
@@ -26,48 +26,59 @@ dependencies:
|
|
26
26
|
requirement: &id001 !ruby/object:Gem::Requirement
|
27
27
|
none: false
|
28
28
|
requirements:
|
29
|
-
- -
|
29
|
+
- - ~>
|
30
30
|
- !ruby/object:Gem::Version
|
31
|
-
hash:
|
31
|
+
hash: 15
|
32
32
|
segments:
|
33
33
|
- 1
|
34
34
|
- 0
|
35
|
-
|
36
|
-
version: 1.0.0
|
35
|
+
version: "1.0"
|
37
36
|
type: :runtime
|
38
37
|
version_requirements: *id001
|
39
38
|
- !ruby/object:Gem::Dependency
|
40
|
-
name:
|
39
|
+
name: rake
|
41
40
|
prerelease: false
|
42
41
|
requirement: &id002 !ruby/object:Gem::Requirement
|
43
42
|
none: false
|
44
43
|
requirements:
|
45
44
|
- - ">="
|
46
45
|
- !ruby/object:Gem::Version
|
47
|
-
hash:
|
46
|
+
hash: 3
|
48
47
|
segments:
|
49
48
|
- 0
|
50
|
-
|
51
|
-
- 3
|
52
|
-
version: 0.5.3
|
49
|
+
version: "0"
|
53
50
|
type: :development
|
54
51
|
version_requirements: *id002
|
55
52
|
- !ruby/object:Gem::Dependency
|
56
|
-
name:
|
53
|
+
name: rack-test
|
57
54
|
prerelease: false
|
58
55
|
requirement: &id003 !ruby/object:Gem::Requirement
|
59
56
|
none: false
|
60
57
|
requirements:
|
61
|
-
- -
|
58
|
+
- - ~>
|
62
59
|
- !ruby/object:Gem::Version
|
63
|
-
hash:
|
60
|
+
hash: 1
|
64
61
|
segments:
|
65
|
-
- 1
|
66
|
-
- 3
|
67
62
|
- 0
|
68
|
-
|
63
|
+
- 5
|
64
|
+
version: "0.5"
|
69
65
|
type: :development
|
70
66
|
version_requirements: *id003
|
67
|
+
- !ruby/object:Gem::Dependency
|
68
|
+
name: rspec
|
69
|
+
prerelease: false
|
70
|
+
requirement: &id004 !ruby/object:Gem::Requirement
|
71
|
+
none: false
|
72
|
+
requirements:
|
73
|
+
- - ~>
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
hash: 15
|
76
|
+
segments:
|
77
|
+
- 2
|
78
|
+
- 6
|
79
|
+
version: "2.6"
|
80
|
+
type: :development
|
81
|
+
version_requirements: *id004
|
71
82
|
description: Parse and serialize geospatial HTTP headers.
|
72
83
|
email: github@squareup.com
|
73
84
|
executables: []
|
@@ -75,10 +86,12 @@ executables: []
|
|
75
86
|
extensions: []
|
76
87
|
|
77
88
|
extra_rdoc_files:
|
89
|
+
- README.rdoc
|
78
90
|
- HISTORY.rdoc
|
79
91
|
- LICENSE.txt
|
80
|
-
- README.rdoc
|
81
92
|
files:
|
93
|
+
- .gitignore
|
94
|
+
- Gemfile
|
82
95
|
- HISTORY.rdoc
|
83
96
|
- LICENSE.txt
|
84
97
|
- README.rdoc
|
@@ -86,11 +99,11 @@ files:
|
|
86
99
|
- lib/rack-geo.rb
|
87
100
|
- lib/rack/geo.rb
|
88
101
|
- lib/rack/geo/version.rb
|
102
|
+
- rack-geo.gemspec
|
89
103
|
- spec/rack/geo_spec.rb
|
90
|
-
- spec/spec.opts
|
91
104
|
- spec/spec_helper.rb
|
92
105
|
has_rdoc: true
|
93
|
-
homepage:
|
106
|
+
homepage: https://github.com/square/rack-geo
|
94
107
|
licenses: []
|
95
108
|
|
96
109
|
post_install_message:
|
@@ -119,7 +132,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
119
132
|
requirements: []
|
120
133
|
|
121
134
|
rubyforge_project:
|
122
|
-
rubygems_version: 1.
|
135
|
+
rubygems_version: 1.6.2
|
123
136
|
signing_key:
|
124
137
|
specification_version: 3
|
125
138
|
summary: Rack middleware for Geo-Position HTTP headers
|
data/spec/spec.opts
DELETED