carmen 0.2.2 → 0.2.4

Sign up to get free protection for your applications and to get access to all the features.
@@ -80,6 +80,7 @@ Currently included localizations are: English (:en), German (:de)
80
80
  * Split the Rails-specific view helpers out into a separate gem (carmen-rails)
81
81
 
82
82
  == Changelog
83
+ * 0.2.4 Fixed autoloading under Rails 3
83
84
  * 0.2.2 Added state and country exclusion (kalafut)
84
85
  * 0.2.1 Added regions for New Zealand (yehezkielbs)
85
86
  * 0.2.0 Merge in Maximilian Schulz's locale fork, refactor internals to better support locales, and update documentation.
data/Rakefile CHANGED
@@ -6,8 +6,8 @@ begin
6
6
  require 'jeweler'
7
7
  Jeweler::Tasks.new do |gem|
8
8
  gem.name = "carmen"
9
- gem.summary = %Q{A collection of geographis country and state names for Ruby}
10
- gem.description = %Q{A collection of geographis country and state names for Ruby. Also includes replacements for Rails' country_select and state_select plugins}
9
+ gem.summary = %Q{A collection of geographic country and state names for Ruby}
10
+ gem.description = %Q{A collection of geographic country and state names for Ruby. Also includes replacements for Rails' country_select and state_select plugins}
11
11
  gem.email = "jim@autonomousmachine.com"
12
12
  gem.homepage = "http://github.com/jim/carmen"
13
13
  gem.authors = ["Jim Benton"]
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.2.2
1
+ 0.2.4
@@ -1,59 +1,58 @@
1
1
  # Generated by jeweler
2
2
  # DO NOT EDIT THIS FILE DIRECTLY
3
- # Instead, edit Jeweler::Tasks in Rakefile, and run the gemspec command
3
+ # Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
4
4
  # -*- encoding: utf-8 -*-
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{carmen}
8
- s.version = "0.2.2"
8
+ s.version = "0.2.4"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Jim Benton"]
12
- s.date = %q{2010-12-28}
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}
12
+ s.date = %q{2011-01-10}
13
+ s.description = %q{A collection of geographic country and state names for Ruby. Also includes replacements for Rails' country_select and state_select plugins}
14
14
  s.email = %q{jim@autonomousmachine.com}
15
15
  s.extra_rdoc_files = [
16
16
  "README.rdoc"
17
17
  ]
18
18
  s.files = [
19
- ".gitignore",
20
- "MIT-LICENSE",
21
- "README.rdoc",
22
- "Rakefile",
23
- "VERSION",
24
- "carmen.gemspec",
25
- "data/countries/de.yml",
26
- "data/countries/en.yml",
27
- "data/states/au.yml",
28
- "data/states/br.yml",
29
- "data/states/ca.yml",
30
- "data/states/cu.yml",
31
- "data/states/de.yml",
32
- "data/states/dk.yml",
33
- "data/states/es.yml",
34
- "data/states/hr.yml",
35
- "data/states/it.yml",
36
- "data/states/mx.yml",
37
- "data/states/no.yml",
38
- "data/states/nz.yml",
39
- "data/states/ua.yml",
40
- "data/states/us.yml",
41
- "lib/carmen.rb",
42
- "lib/carmen/action_view_helpers.rb",
43
- "rails/init.rb",
44
- "test/carmen_test.rb",
45
- "test/carmen_view_helper_test.rb",
46
- "test/test_helper.rb"
19
+ "MIT-LICENSE",
20
+ "README.rdoc",
21
+ "Rakefile",
22
+ "VERSION",
23
+ "carmen.gemspec",
24
+ "data/countries/de.yml",
25
+ "data/countries/en.yml",
26
+ "data/states/au.yml",
27
+ "data/states/br.yml",
28
+ "data/states/ca.yml",
29
+ "data/states/cu.yml",
30
+ "data/states/de.yml",
31
+ "data/states/dk.yml",
32
+ "data/states/es.yml",
33
+ "data/states/hr.yml",
34
+ "data/states/it.yml",
35
+ "data/states/mx.yml",
36
+ "data/states/no.yml",
37
+ "data/states/nz.yml",
38
+ "data/states/ua.yml",
39
+ "data/states/us.yml",
40
+ "lib/carmen.rb",
41
+ "lib/carmen/action_view_helpers.rb",
42
+ "lib/carmen/railtie.rb",
43
+ "rails/init.rb",
44
+ "test/carmen_test.rb",
45
+ "test/carmen_view_helper_test.rb",
46
+ "test/test_helper.rb"
47
47
  ]
48
48
  s.homepage = %q{http://github.com/jim/carmen}
49
- s.rdoc_options = ["--charset=UTF-8"]
50
49
  s.require_paths = ["lib"]
51
50
  s.rubygems_version = %q{1.3.7}
52
- s.summary = %q{A collection of geographis country and state names for Ruby}
51
+ s.summary = %q{A collection of geographic country and state names for Ruby}
53
52
  s.test_files = [
54
53
  "test/carmen_test.rb",
55
- "test/carmen_view_helper_test.rb",
56
- "test/test_helper.rb"
54
+ "test/carmen_view_helper_test.rb",
55
+ "test/test_helper.rb"
57
56
  ]
58
57
 
59
58
  if s.respond_to? :specification_version then
@@ -5,6 +5,11 @@ rescue LoadError
5
5
  require 'fileutils' # ftools is now fileutils in Ruby 1.9
6
6
  end
7
7
 
8
+ # Fix to autoload in Rails 3
9
+ if defined?(Rails) && Rails::VERSION::MAJOR > 2
10
+ require 'carmen/railtie'
11
+ end
12
+
8
13
  module Carmen
9
14
 
10
15
  class << self
@@ -0,0 +1,17 @@
1
+ require 'carmen'
2
+
3
+ module Carmen
4
+
5
+ class Railtie < Rails::Railtie
6
+ if defined? Rails::Railtie
7
+ require 'rails'
8
+
9
+ class Railtie < Rails::Railtie
10
+ config.after_initialize do
11
+ require 'carmen/action_view_helpers'
12
+ end
13
+ end
14
+ end
15
+
16
+ end
17
+ end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: carmen
3
3
  version: !ruby/object:Gem::Version
4
- hash: 19
4
+ hash: 31
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 2
9
- - 2
10
- version: 0.2.2
9
+ - 4
10
+ version: 0.2.4
11
11
  platform: ruby
12
12
  authors:
13
13
  - Jim Benton
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2010-12-28 00:00:00 -06:00
18
+ date: 2011-01-10 00:00:00 -06:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency
@@ -60,7 +60,7 @@ dependencies:
60
60
  version: "0"
61
61
  type: :development
62
62
  version_requirements: *id003
63
- description: A collection of geographis country and state names for Ruby. Also includes replacements for Rails' country_select and state_select plugins
63
+ description: A collection of geographic country and state names for Ruby. Also includes replacements for Rails' country_select and state_select plugins
64
64
  email: jim@autonomousmachine.com
65
65
  executables: []
66
66
 
@@ -69,7 +69,6 @@ extensions: []
69
69
  extra_rdoc_files:
70
70
  - README.rdoc
71
71
  files:
72
- - .gitignore
73
72
  - MIT-LICENSE
74
73
  - README.rdoc
75
74
  - Rakefile
@@ -93,6 +92,7 @@ files:
93
92
  - data/states/us.yml
94
93
  - lib/carmen.rb
95
94
  - lib/carmen/action_view_helpers.rb
95
+ - lib/carmen/railtie.rb
96
96
  - rails/init.rb
97
97
  - test/carmen_test.rb
98
98
  - test/carmen_view_helper_test.rb
@@ -102,8 +102,8 @@ homepage: http://github.com/jim/carmen
102
102
  licenses: []
103
103
 
104
104
  post_install_message:
105
- rdoc_options:
106
- - --charset=UTF-8
105
+ rdoc_options: []
106
+
107
107
  require_paths:
108
108
  - lib
109
109
  required_ruby_version: !ruby/object:Gem::Requirement
@@ -130,7 +130,7 @@ rubyforge_project:
130
130
  rubygems_version: 1.3.7
131
131
  signing_key:
132
132
  specification_version: 3
133
- summary: A collection of geographis country and state names for Ruby
133
+ summary: A collection of geographic country and state names for Ruby
134
134
  test_files:
135
135
  - test/carmen_test.rb
136
136
  - test/carmen_view_helper_test.rb
data/.gitignore DELETED
@@ -1,5 +0,0 @@
1
- doc
2
- pkg
3
- tags
4
- tmp
5
- .DS_Store