msales-carmen 0.1.3 → 0.1.4

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.
Files changed (4) hide show
  1. data/VERSION +1 -1
  2. data/lib/carmen.rb +4 -4
  3. data/msales-carmen.gemspec +76 -0
  4. metadata +2 -1
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.3
1
+ 0.1.4
@@ -53,14 +53,14 @@ module Carmen
53
53
 
54
54
  # Returns the country name corresponding to the supplied country code
55
55
  # Carmen::country_name('TV') => 'Tuvalu'
56
- def self.country_name(country_code)
57
- search_collection(countries, country_code, 1, 0)
56
+ def self.country_name(country_code, options={})
57
+ search_collection(countries(options), country_code, 1, 0)
58
58
  end
59
59
 
60
60
  # Returns the country code corresponding to the supplied country name
61
61
  # Carmen::country_code('Canada') => 'CA'
62
- def self.country_code(country_name)
63
- search_collection(countries, country_name, 0, 1)
62
+ def self.country_code(country_name, options={})
63
+ search_collection(countries(options), country_name, 0, 1)
64
64
  end
65
65
 
66
66
  # Returns an array of all country codes
@@ -0,0 +1,76 @@
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{msales-carmen}
8
+ s.version = "0.1.4"
9
+
10
+ s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
+ s.authors = ["Jim Benton", "Maximilian Schulz", "Urban Hafner"]
12
+ s.date = %q{2010-03-03}
13
+ s.description = %q{A collection of geographis country and state names for Ruby. Also includes replacements for Rails' country_select and state_select plugins.}
14
+ s.email = %q{max@jungeelite.de}
15
+ s.extra_rdoc_files = [
16
+ "README.rdoc"
17
+ ]
18
+ s.files = [
19
+ ".gitignore",
20
+ "MIT-LICENSE",
21
+ "README.rdoc",
22
+ "Rakefile",
23
+ "TRANSLATIONS-LICENSE",
24
+ "VERSION",
25
+ "carmen.gemspec",
26
+ "data/countries.cs.yml",
27
+ "data/countries.de.yml",
28
+ "data/countries.en.yml",
29
+ "data/countries.es.yml",
30
+ "data/countries.fi.yml",
31
+ "data/countries.hu.yml",
32
+ "data/countries.nl.yml",
33
+ "data/countries.no.yml",
34
+ "data/countries.pl.yml",
35
+ "data/countries.pt.yml",
36
+ "data/countries.sl.yml",
37
+ "data/countries.sv.yml",
38
+ "data/states/au.yml",
39
+ "data/states/br.yml",
40
+ "data/states/ca.yml",
41
+ "data/states/cu.yml",
42
+ "data/states/de.yml",
43
+ "data/states/dk.yml",
44
+ "data/states/es.yml",
45
+ "data/states/it.yml",
46
+ "data/states/mx.yml",
47
+ "data/states/ua.yml",
48
+ "data/states/us.yml",
49
+ "lib/carmen.rb",
50
+ "lib/carmen/action_view_helpers.rb",
51
+ "msales-carmen.gemspec",
52
+ "rails/init.rb",
53
+ "test/carmen_test.rb",
54
+ "test/carmen_view_helper_test.rb"
55
+ ]
56
+ s.homepage = %q{http://github.com/namxam/carmen}
57
+ s.rdoc_options = ["--charset=UTF-8"]
58
+ s.require_paths = ["lib"]
59
+ s.rubygems_version = %q{1.3.5}
60
+ s.summary = %q{A collection of geographis country and state names for Ruby}
61
+ s.test_files = [
62
+ "test/carmen_test.rb",
63
+ "test/carmen_view_helper_test.rb"
64
+ ]
65
+
66
+ if s.respond_to? :specification_version then
67
+ current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
68
+ s.specification_version = 3
69
+
70
+ if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
71
+ else
72
+ end
73
+ else
74
+ end
75
+ end
76
+
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: msales-carmen
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jim Benton
@@ -56,6 +56,7 @@ files:
56
56
  - data/states/us.yml
57
57
  - lib/carmen.rb
58
58
  - lib/carmen/action_view_helpers.rb
59
+ - msales-carmen.gemspec
59
60
  - rails/init.rb
60
61
  - test/carmen_test.rb
61
62
  - test/carmen_view_helper_test.rb