ulticoder 0.0.1alpha → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/.gitignore +2 -0
- data/.idea/.name +1 -0
- data/.idea/.rakeTasks +7 -0
- data/.idea/cssxfire.xml +9 -0
- data/.idea/encodings.xml +5 -0
- data/.idea/misc.xml +5 -0
- data/.idea/modules.xml +9 -0
- data/.idea/scopes/scope_settings.xml +5 -0
- data/.idea/vcs.xml +7 -0
- data/.travis.yml +9 -0
- data/CHANGELOG.md +3 -0
- data/Gemfile +0 -3
- data/README.md +3 -0
- data/features/support/env.rb +13 -0
- data/lib/ulticoder.rb +2 -4
- data/lib/ulticoder/railtie.rb +8 -0
- data/lib/ulticoder/version.rb +1 -1
- data/lib/ulticoder/view_helpers.rb +4 -0
- data/spec/geodecoder_spec.rb +0 -6
- data/spec/spec_helper.rb +20 -0
- data/ulticoder.gemspec +5 -1
- metadata +93 -8
- data/lib/ulticoder/geo_chain.rb +0 -15
- data/lib/ulticoder/placer.rb +0 -5
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
ZTI5ZTRhMjM2Yzk3ZDdhZGY4Y2MxMGU0OWRhOTc5NjE3ZmJjMDRkNg==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
MzU4ODNkNWJhNjg3ZmI5ODFiMzFmM2UxODk1NTFmNzYzMDgxODQ2Yw==
|
7
7
|
!binary "U0hBNTEy":
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
YTQ5OGVlYjE4Nzc1MzRhZGJmNDE2YzM0MDNjNTNhOTgxNTZmM2U1YTdlY2Fm
|
10
|
+
ODA5YmE5MWU1ODY2ZTEzNjc0ZmYxMjZjNDU2MWE1YTgwN2UzNTJmNGUxNGQx
|
11
|
+
YjljOThmMTJmMjc2NGNmMmZkOGRlOGJjMmY2YzIzYzkxZTIxMzE=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
YTBjY2U5YTU2NDBlN2FhYTRjZWQ1OGRjYzRmMjcyYTljOGQ1YWU4MmJlMTQ5
|
14
|
+
MjNlNTdjMGNjZjU5NzkwYTFlNmU5NGQ3ZmY4NjRlMmM4Zjk1YzA2MDY3ZTAw
|
15
|
+
ZWM3NGEwMGM1ZTJhYzM1NWI1YzNkOWU3NjBjN2YxZWQ3YzI0ZmY=
|
data/.gitignore
CHANGED
data/.idea/.name
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
ulticoder
|
data/.idea/.rakeTasks
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<Settings><!--This file was automatically generated by Ruby plugin.
|
3
|
+
You are allowed to:
|
4
|
+
1. Remove rake task
|
5
|
+
2. Add existing rake tasks
|
6
|
+
To add existing rake tasks automatically delete this file and reload the project.
|
7
|
+
--><RakeGroup description="" fullCmd="" taksId="rake"><RakeTask description="Build ulticoder-0.0.1.gem into the pkg directory" fullCmd="build" taksId="build" /><RakeTask description="Build and install ulticoder-0.0.1.gem into system gems" fullCmd="install" taksId="install" /><RakeTask description="Create tag v0.0.1 and build and push ulticoder-0.0.1.gem to Rubygems" fullCmd="release" taksId="release" /></RakeGroup></Settings>
|
data/.idea/cssxfire.xml
ADDED
@@ -0,0 +1,9 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<project version="4">
|
3
|
+
<component name="CssXFireSettings">
|
4
|
+
<general autoClear="false" autoExpand="false" />
|
5
|
+
<strategy useRoutes="false" mediaReduce="false" fileReduce="false" currentDocumentsReduce="false" resolveVariables="true" resolveMixins="true" />
|
6
|
+
<routes />
|
7
|
+
</component>
|
8
|
+
</project>
|
9
|
+
|
data/.idea/encodings.xml
ADDED
data/.idea/misc.xml
ADDED
data/.idea/modules.xml
ADDED
@@ -0,0 +1,9 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<project version="4">
|
3
|
+
<component name="ProjectModuleManager">
|
4
|
+
<modules>
|
5
|
+
<module fileurl="file://$PROJECT_DIR$/.idea/ulticoder.iml" filepath="$PROJECT_DIR$/.idea/ulticoder.iml" />
|
6
|
+
</modules>
|
7
|
+
</component>
|
8
|
+
</project>
|
9
|
+
|
data/.idea/vcs.xml
ADDED
data/.travis.yml
ADDED
@@ -0,0 +1,9 @@
|
|
1
|
+
language: ruby
|
2
|
+
rvm:
|
3
|
+
- "1.9.3"
|
4
|
+
# uncomment this line if your project needs to run something other than `rake`:
|
5
|
+
script: bundle exec rspec spec
|
6
|
+
|
7
|
+
before_install:
|
8
|
+
- echo -e "Host github.com\n\tStrictHostKeyChecking no\n" >> ~/.ssh/config
|
9
|
+
- echo -e "Host heroku.com\n\tStrictHostKeyChecking no\n" >> ~/.ssh/config
|
data/CHANGELOG.md
ADDED
data/Gemfile
CHANGED
data/README.md
CHANGED
@@ -1,5 +1,8 @@
|
|
1
1
|
# Ulticoder
|
2
2
|
|
3
|
+
[![Build Status](https://travis-ci.org/klangfeld/ulticoder.png?branch=master)](https://travis-ci.org/klangfeld/ulticoder)
|
4
|
+
[![Dependency Status](https://gemnasium.com/klangfeld/ulticoder.png)](https://gemnasium.com/klangfeld/ulticoder)
|
5
|
+
|
3
6
|
TODO: Write a gem description
|
4
7
|
|
5
8
|
## Installation
|
@@ -0,0 +1,13 @@
|
|
1
|
+
require 'bundler'
|
2
|
+
begin
|
3
|
+
Bundler.setup(:default, :development)
|
4
|
+
rescue Bundler::BundlerError => e
|
5
|
+
$stderr.puts e.message
|
6
|
+
$stderr.puts "Run `bundle install` to install missing gems"
|
7
|
+
exit e.status_code
|
8
|
+
end
|
9
|
+
|
10
|
+
$LOAD_PATH.unshift(File.dirname(__FILE__) + '/../../lib')
|
11
|
+
require 'ulticoder'
|
12
|
+
|
13
|
+
require 'rspec/expectations'
|
data/lib/ulticoder.rb
CHANGED
data/lib/ulticoder/version.rb
CHANGED
data/spec/geodecoder_spec.rb
CHANGED
@@ -16,10 +16,4 @@ describe 'GeoDecoder' do
|
|
16
16
|
country = result.address_components[0]['long_name']
|
17
17
|
country.should == "United States"
|
18
18
|
end
|
19
|
-
|
20
|
-
it 'should list all cities of given Region' do
|
21
|
-
region = Geocoder.search("Österreich").first
|
22
|
-
cities = Ulticoder::GeoChain.list_all_regions(region)
|
23
|
-
|
24
|
-
end
|
25
19
|
end
|
data/spec/spec_helper.rb
ADDED
@@ -0,0 +1,20 @@
|
|
1
|
+
require 'rubygems'
|
2
|
+
require 'bundler/setup'
|
3
|
+
|
4
|
+
require 'ulticoder'
|
5
|
+
|
6
|
+
# load Helper files
|
7
|
+
Dir.glob(File.join(".", "spec", "support", "**", "*.rb")) {|f| require f }
|
8
|
+
|
9
|
+
RSpec.configure do |config|
|
10
|
+
config.treat_symbols_as_metadata_keys_with_true_values = true
|
11
|
+
config.run_all_when_everything_filtered = true
|
12
|
+
config.filter_run :focus
|
13
|
+
config.mock_with :rspec
|
14
|
+
#config.include Macros
|
15
|
+
# Run specs in random order to surface order dependencies. If you find an
|
16
|
+
# order dependency and want to debug it, you can fix the order by providing
|
17
|
+
# the seed, which is printed after each run.
|
18
|
+
# --seed 1234
|
19
|
+
config.order = 'random'
|
20
|
+
end
|
data/ulticoder.gemspec
CHANGED
@@ -18,9 +18,13 @@ Gem::Specification.new do |spec|
|
|
18
18
|
spec.require_paths = ["lib"]
|
19
19
|
|
20
20
|
spec.add_dependency 'geocoder'
|
21
|
-
spec.add_dependency '
|
21
|
+
spec.add_dependency 'geonames'
|
22
22
|
|
23
23
|
spec.add_development_dependency "rspec", ">= 2.0.0"
|
24
24
|
spec.add_development_dependency "bundler", "~> 1.3"
|
25
25
|
spec.add_development_dependency "rake"
|
26
|
+
spec.add_development_dependency "cucumber"
|
27
|
+
spec.add_development_dependency "guard"
|
28
|
+
spec.add_development_dependency "guard-rspec"
|
29
|
+
spec.add_development_dependency "guard-cucumber"
|
26
30
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ulticoder
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jan Jezek
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-07-
|
11
|
+
date: 2013-07-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: geocoder
|
@@ -25,7 +25,7 @@ dependencies:
|
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: '0'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
|
-
name:
|
28
|
+
name: geonames
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
31
|
- - ! '>='
|
@@ -80,6 +80,62 @@ dependencies:
|
|
80
80
|
- - ! '>='
|
81
81
|
- !ruby/object:Gem::Version
|
82
82
|
version: '0'
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: cucumber
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - ! '>='
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: '0'
|
90
|
+
type: :development
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - ! '>='
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: '0'
|
97
|
+
- !ruby/object:Gem::Dependency
|
98
|
+
name: guard
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
100
|
+
requirements:
|
101
|
+
- - ! '>='
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: '0'
|
104
|
+
type: :development
|
105
|
+
prerelease: false
|
106
|
+
version_requirements: !ruby/object:Gem::Requirement
|
107
|
+
requirements:
|
108
|
+
- - ! '>='
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: '0'
|
111
|
+
- !ruby/object:Gem::Dependency
|
112
|
+
name: guard-rspec
|
113
|
+
requirement: !ruby/object:Gem::Requirement
|
114
|
+
requirements:
|
115
|
+
- - ! '>='
|
116
|
+
- !ruby/object:Gem::Version
|
117
|
+
version: '0'
|
118
|
+
type: :development
|
119
|
+
prerelease: false
|
120
|
+
version_requirements: !ruby/object:Gem::Requirement
|
121
|
+
requirements:
|
122
|
+
- - ! '>='
|
123
|
+
- !ruby/object:Gem::Version
|
124
|
+
version: '0'
|
125
|
+
- !ruby/object:Gem::Dependency
|
126
|
+
name: guard-cucumber
|
127
|
+
requirement: !ruby/object:Gem::Requirement
|
128
|
+
requirements:
|
129
|
+
- - ! '>='
|
130
|
+
- !ruby/object:Gem::Version
|
131
|
+
version: '0'
|
132
|
+
type: :development
|
133
|
+
prerelease: false
|
134
|
+
version_requirements: !ruby/object:Gem::Requirement
|
135
|
+
requirements:
|
136
|
+
- - ! '>='
|
137
|
+
- !ruby/object:Gem::Version
|
138
|
+
version: '0'
|
83
139
|
description: ''
|
84
140
|
email:
|
85
141
|
- mail@mediatainment-productions.com
|
@@ -89,8 +145,28 @@ extra_rdoc_files: []
|
|
89
145
|
files:
|
90
146
|
- !binary |-
|
91
147
|
LmdpdGlnbm9yZQ==
|
148
|
+
- !binary |-
|
149
|
+
LmlkZWEvLm5hbWU=
|
150
|
+
- !binary |-
|
151
|
+
LmlkZWEvLnJha2VUYXNrcw==
|
152
|
+
- !binary |-
|
153
|
+
LmlkZWEvY3NzeGZpcmUueG1s
|
154
|
+
- !binary |-
|
155
|
+
LmlkZWEvZW5jb2RpbmdzLnhtbA==
|
156
|
+
- !binary |-
|
157
|
+
LmlkZWEvbWlzYy54bWw=
|
158
|
+
- !binary |-
|
159
|
+
LmlkZWEvbW9kdWxlcy54bWw=
|
160
|
+
- !binary |-
|
161
|
+
LmlkZWEvc2NvcGVzL3Njb3BlX3NldHRpbmdzLnhtbA==
|
162
|
+
- !binary |-
|
163
|
+
LmlkZWEvdmNzLnhtbA==
|
92
164
|
- !binary |-
|
93
165
|
LnJzcGVj
|
166
|
+
- !binary |-
|
167
|
+
LnRyYXZpcy55bWw=
|
168
|
+
- !binary |-
|
169
|
+
Q0hBTkdFTE9HLm1k
|
94
170
|
- !binary |-
|
95
171
|
R2VtZmlsZQ==
|
96
172
|
- !binary |-
|
@@ -100,15 +176,19 @@ files:
|
|
100
176
|
- !binary |-
|
101
177
|
UmFrZWZpbGU=
|
102
178
|
- !binary |-
|
103
|
-
|
179
|
+
ZmVhdHVyZXMvc3VwcG9ydC9lbnYucmI=
|
104
180
|
- !binary |-
|
105
|
-
|
181
|
+
bGliL3VsdGljb2Rlci5yYg==
|
106
182
|
- !binary |-
|
107
|
-
|
183
|
+
bGliL3VsdGljb2Rlci9yYWlsdGllLnJi
|
108
184
|
- !binary |-
|
109
185
|
bGliL3VsdGljb2Rlci92ZXJzaW9uLnJi
|
186
|
+
- !binary |-
|
187
|
+
bGliL3VsdGljb2Rlci92aWV3X2hlbHBlcnMucmI=
|
110
188
|
- !binary |-
|
111
189
|
c3BlYy9nZW9kZWNvZGVyX3NwZWMucmI=
|
190
|
+
- !binary |-
|
191
|
+
c3BlYy9zcGVjX2hlbHBlci5yYg==
|
112
192
|
- !binary |-
|
113
193
|
dWx0aWNvZGVyLmdlbXNwZWM=
|
114
194
|
homepage: http://www.github.com/klangfeld/ulticoder
|
@@ -126,9 +206,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
126
206
|
version: '0'
|
127
207
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
128
208
|
requirements:
|
129
|
-
- - ! '
|
209
|
+
- - ! '>='
|
130
210
|
- !ruby/object:Gem::Version
|
131
|
-
version:
|
211
|
+
version: '0'
|
132
212
|
requirements: []
|
133
213
|
rubyforge_project:
|
134
214
|
rubygems_version: 2.0.3
|
@@ -136,5 +216,10 @@ signing_key:
|
|
136
216
|
specification_version: 4
|
137
217
|
summary: Aggregation and expansion of geocoder and geonames gem
|
138
218
|
test_files:
|
219
|
+
- !binary |-
|
220
|
+
ZmVhdHVyZXMvc3VwcG9ydC9lbnYucmI=
|
139
221
|
- !binary |-
|
140
222
|
c3BlYy9nZW9kZWNvZGVyX3NwZWMucmI=
|
223
|
+
- !binary |-
|
224
|
+
c3BlYy9zcGVjX2hlbHBlci5yYg==
|
225
|
+
has_rdoc:
|
data/lib/ulticoder/geo_chain.rb
DELETED
@@ -1,15 +0,0 @@
|
|
1
|
-
module Ulticoder
|
2
|
-
|
3
|
-
# This class is used to chain Political Areas (United States, EU,... ) to countries,
|
4
|
-
# countries to regions, regions to cities,
|
5
|
-
# Also to find cities on a given country (bypassing the region step for example)
|
6
|
-
# Serves helper files for autocomplete
|
7
|
-
|
8
|
-
class GeoChain
|
9
|
-
|
10
|
-
def list_of_regions(country)
|
11
|
-
|
12
|
-
end
|
13
|
-
|
14
|
-
end
|
15
|
-
end
|