delocalize 0.2.5 → 0.2.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 CHANGED
@@ -1 +1 @@
1
- 0.2.5
1
+ 0.2.6
@@ -1,4 +1,9 @@
1
1
  require 'active_record/connection_adapters/abstract/schema_definitions'
2
+ begin
3
+ require 'active_record/connection_adapters/column'
4
+ rescue LoadError
5
+ # Not Rails 3.1, it seems
6
+ end
2
7
 
3
8
  # let's hack into ActiveRecord a bit - everything at the lowest possible level, of course, so we minimalize side effects
4
9
  ActiveRecord::ConnectionAdapters::Column.class_eval do
@@ -1,7 +1,7 @@
1
1
  # Be sure to restart your server when you modify this file
2
2
 
3
3
  # Specifies gem version of Rails to use when vendor/rails is not present
4
- RAILS_GEM_VERSION = '2.3.8' unless defined? RAILS_GEM_VERSION
4
+ RAILS_GEM_VERSION = '2.3.11' unless defined? RAILS_GEM_VERSION
5
5
 
6
6
  # Bootstrap the Rails environment, frameworks, and default configuration
7
7
  require File.join(File.dirname(__FILE__), 'boot')
@@ -0,0 +1,3 @@
1
+ class ApplicationController < ActionController::Base
2
+ protect_from_forgery
3
+ end
@@ -0,0 +1,2 @@
1
+ module ApplicationHelper
2
+ end
@@ -0,0 +1,44 @@
1
+ require File.expand_path('../boot', __FILE__)
2
+
3
+ require 'rails/all'
4
+
5
+ # If you have a Gemfile, require the gems listed there, including any gems
6
+ # you've limited to :test, :development, or :production.
7
+ Bundler.require(:default, Rails.env) if defined?(Bundler)
8
+
9
+ module Rails3App
10
+ class Application < Rails::Application
11
+ # Settings in config/environments/* take precedence over those specified here.
12
+ # Application configuration should go into files in config/initializers
13
+ # -- all .rb files in that directory are automatically loaded.
14
+
15
+ # Custom directories with classes and modules you want to be autoloadable.
16
+ # config.autoload_paths += %W(#{config.root}/extras)
17
+
18
+ # Only load the plugins named here, in the order given (default is alphabetical).
19
+ # :all can be used as a placeholder for all plugins not explicitly named.
20
+ # config.plugins = [ :exception_notification, :ssl_requirement, :all ]
21
+
22
+ # Activate observers that should always be running.
23
+ # config.active_record.observers = :cacher, :garbage_collector, :forum_observer
24
+
25
+ # Set Time.zone default to the specified zone and make Active Record auto-convert to this zone.
26
+ # Run "rake -D time" for a list of tasks for finding time zone names. Default is UTC.
27
+ # config.time_zone = 'Central Time (US & Canada)'
28
+
29
+ # The default locale is :en and all translations from config/locales/*.rb,yml are auto loaded.
30
+ # config.i18n.load_path += Dir[Rails.root.join('my', 'locales', '*.{rb,yml}').to_s]
31
+ # config.i18n.default_locale = :de
32
+
33
+ # JavaScript files you want as :defaults (application.js is always included).
34
+ # config.action_view.javascript_expansions[:defaults] = %w(jquery rails)
35
+
36
+ config.paths.config.database = File.expand_path(File.dirname(__FILE__) + '../../../database.yml')
37
+
38
+ # Configure the default encoding used in templates for Ruby 1.9.
39
+ config.encoding = "utf-8"
40
+
41
+ # Configure sensitive parameters which will be filtered from the log file.
42
+ config.filter_parameters += [:password]
43
+ end
44
+ end
@@ -0,0 +1,13 @@
1
+ require 'rubygems'
2
+
3
+ # Set up gems listed in the Gemfile.
4
+ gemfile = File.expand_path('../../Gemfile', __FILE__)
5
+ begin
6
+ ENV['BUNDLE_GEMFILE'] = gemfile
7
+ require 'bundler'
8
+ Bundler.setup
9
+ rescue Bundler::GemNotFound => e
10
+ STDERR.puts e.message
11
+ STDERR.puts "Try running `bundle install`."
12
+ exit!
13
+ end if File.exist?(gemfile)
@@ -0,0 +1,5 @@
1
+ # Load the rails application
2
+ require File.expand_path('../application', __FILE__)
3
+
4
+ # Initialize the rails application
5
+ Rails3App::Application.initialize!
@@ -0,0 +1,35 @@
1
+ Rails3App::Application.configure do
2
+ # Settings specified here will take precedence over those in config/environment.rb
3
+
4
+ # The test environment is used exclusively to run your application's
5
+ # test suite. You never need to work with it otherwise. Remember that
6
+ # your test database is "scratch space" for the test suite and is wiped
7
+ # and recreated between test runs. Don't rely on the data there!
8
+ config.cache_classes = true
9
+
10
+ # Log error messages when you accidentally call methods on nil.
11
+ config.whiny_nils = true
12
+
13
+ # Show full error reports and disable caching
14
+ config.consider_all_requests_local = true
15
+ config.action_controller.perform_caching = false
16
+
17
+ # Raise exceptions instead of rendering exception templates
18
+ config.action_dispatch.show_exceptions = false
19
+
20
+ # Disable request forgery protection in test environment
21
+ config.action_controller.allow_forgery_protection = false
22
+
23
+ # Tell Action Mailer not to deliver emails to the real world.
24
+ # The :test delivery method accumulates sent emails in the
25
+ # ActionMailer::Base.deliveries array.
26
+ config.action_mailer.delivery_method = :test
27
+
28
+ # Use SQL instead of Active Record's schema dumper when creating the test database.
29
+ # This is necessary if your schema can't be completely dumped by the schema dumper,
30
+ # like if you have constraints or database-specific column types
31
+ # config.active_record.schema_format = :sql
32
+
33
+ # Print deprecation notices to the stderr
34
+ config.active_support.deprecation = :stderr
35
+ end
@@ -7,7 +7,7 @@ if rails_version.to_i == 2
7
7
  require File.expand_path(File.join(File.dirname(__FILE__), "rails2_app/config/environment"))
8
8
  require 'test_help'
9
9
  else
10
- require File.expand_path(File.join(File.dirname(__FILE__), "rails3_app/config/environment"))
10
+ require File.expand_path(File.join(File.dirname(__FILE__), "rails#{rails_version}_app/config/environment"))
11
11
  require 'rails/test_help'
12
12
  end
13
13
 
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: delocalize
3
3
  version: !ruby/object:Gem::Version
4
- hash: 29
5
- prerelease: false
4
+ hash: 27
5
+ prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 2
9
- - 5
10
- version: 0.2.5
9
+ - 6
10
+ version: 0.2.6
11
11
  platform: ruby
12
12
  authors:
13
13
  - Clemens Kofler
@@ -15,8 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-03-22 00:00:00 +01:00
19
- default_executable:
18
+ date: 2011-05-26 00:00:00 Z
20
19
  dependencies: []
21
20
 
22
21
  description: Delocalize is a tool for parsing localized dates/times and numbers.
@@ -57,6 +56,12 @@ files:
57
56
  - test/rails2_app/config/initializers/new_rails_defaults.rb
58
57
  - test/rails2_app/config/initializers/session_store.rb
59
58
  - test/rails2_app/config/routes.rb
59
+ - test/rails3.1_app/app/controllers/application_controller.rb
60
+ - test/rails3.1_app/app/helpers/application_helper.rb
61
+ - test/rails3.1_app/config/application.rb
62
+ - test/rails3.1_app/config/boot.rb
63
+ - test/rails3.1_app/config/environment.rb
64
+ - test/rails3.1_app/config/environments/test.rb
60
65
  - test/rails3_app/app/controllers/application_controller.rb
61
66
  - test/rails3_app/app/helpers/application_helper.rb
62
67
  - test/rails3_app/config/application.rb
@@ -64,7 +69,6 @@ files:
64
69
  - test/rails3_app/config/environment.rb
65
70
  - test/rails3_app/config/environments/test.rb
66
71
  - test/test_helper.rb
67
- has_rdoc: true
68
72
  homepage: http://github.com/clemens/delocalize
69
73
  licenses: []
70
74
 
@@ -94,7 +98,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
94
98
  requirements: []
95
99
 
96
100
  rubyforge_project:
97
- rubygems_version: 1.3.7
101
+ rubygems_version: 1.7.2
98
102
  signing_key:
99
103
  specification_version: 3
100
104
  summary: Localized date/time and number parsing
@@ -107,6 +111,12 @@ test_files:
107
111
  - test/rails2_app/config/initializers/new_rails_defaults.rb
108
112
  - test/rails2_app/config/initializers/session_store.rb
109
113
  - test/rails2_app/config/routes.rb
114
+ - test/rails3.1_app/app/controllers/application_controller.rb
115
+ - test/rails3.1_app/app/helpers/application_helper.rb
116
+ - test/rails3.1_app/config/application.rb
117
+ - test/rails3.1_app/config/boot.rb
118
+ - test/rails3.1_app/config/environment.rb
119
+ - test/rails3.1_app/config/environments/test.rb
110
120
  - test/rails3_app/app/controllers/application_controller.rb
111
121
  - test/rails3_app/app/helpers/application_helper.rb
112
122
  - test/rails3_app/config/application.rb