campfire_logic 2.0.5 → 2.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/VERSION +1 -1
- data/app/models/locale.rb +2 -2
- data/campfire_logic.gemspec +2 -2
- metadata +4 -4
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
2.0.
|
|
1
|
+
2.0.6
|
data/app/models/locale.rb
CHANGED
|
@@ -42,11 +42,11 @@ class Locale
|
|
|
42
42
|
end
|
|
43
43
|
|
|
44
44
|
def self.find_or_create_country_for(location)
|
|
45
|
-
Locale.
|
|
45
|
+
Locale.countries.where(:name => location.country_long_name).first || Locale.create_country_for(location)
|
|
46
46
|
end
|
|
47
47
|
|
|
48
48
|
def self.find_or_create_state_for(location)
|
|
49
|
-
Locale.
|
|
49
|
+
Locale.states.where(:name => location.state_long_name).first || Locale.find_or_create_country_for(location).children.create(:abbreviation => location.state, :name => location.state_long_name)
|
|
50
50
|
end
|
|
51
51
|
|
|
52
52
|
# Instance methods: Initialization ===============================================================
|
data/campfire_logic.gemspec
CHANGED
|
@@ -5,11 +5,11 @@
|
|
|
5
5
|
|
|
6
6
|
Gem::Specification.new do |s|
|
|
7
7
|
s.name = "campfire_logic"
|
|
8
|
-
s.version = "2.0.
|
|
8
|
+
s.version = "2.0.6"
|
|
9
9
|
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
|
11
11
|
s.authors = ["Roderick Monje"]
|
|
12
|
-
s.date = "2012-
|
|
12
|
+
s.date = "2012-03-23"
|
|
13
13
|
s.description = "Users can browse locations by country, city, and state and search locations by string or zip code. Administrators can manage locations and the services they offer."
|
|
14
14
|
s.email = "rod@seologic.com"
|
|
15
15
|
s.extra_rdoc_files = [
|
metadata
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: campfire_logic
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
hash:
|
|
4
|
+
hash: 3
|
|
5
5
|
prerelease:
|
|
6
6
|
segments:
|
|
7
7
|
- 2
|
|
8
8
|
- 0
|
|
9
|
-
-
|
|
10
|
-
version: 2.0.
|
|
9
|
+
- 6
|
|
10
|
+
version: 2.0.6
|
|
11
11
|
platform: ruby
|
|
12
12
|
authors:
|
|
13
13
|
- Roderick Monje
|
|
@@ -15,7 +15,7 @@ autorequire:
|
|
|
15
15
|
bindir: bin
|
|
16
16
|
cert_chain: []
|
|
17
17
|
|
|
18
|
-
date: 2012-
|
|
18
|
+
date: 2012-03-23 00:00:00 Z
|
|
19
19
|
dependencies:
|
|
20
20
|
- !ruby/object:Gem::Dependency
|
|
21
21
|
name: bson_ext
|