custom-attributes 0.2.22 → 0.2.23

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/Gemfile CHANGED
@@ -1,15 +1,15 @@
1
1
  source :gemcutter
2
2
 
3
3
  # Rails 3.0
4
- gem 'rails', '3.0.1'
5
- gem 'rspec', '2.0.0'
4
+ gem 'rails', '~> 3.0.1'
5
+ gem 'rspec', '~> 2.0.0'
6
6
  #gem 'validates_timeliness', '~> 3.0.0'
7
- gem 'sqlite3-ruby', :require => 'sqlite3'
8
- gem 'mysql'
9
- gem 'pg'
10
7
  gem 'jeweler'
11
8
  gem 'rcov'
12
9
 
13
10
  group :test do
11
+ gem 'sqlite3-ruby', :require => 'sqlite3'
12
+ gem 'mysql'
13
+ gem 'pg'
14
14
  gem 'formtastic'
15
15
  end
data/Rakefile CHANGED
@@ -13,18 +13,19 @@ begin
13
13
  t.rcov = true
14
14
  t.rcov_opts = ['--exclude', 'spec']
15
15
  end
16
-
16
+
17
17
  rescue LoadError
18
18
  # Rspec 2.0
19
+ require 'rspec'
19
20
  require 'rspec/core/rake_task'
20
21
 
21
22
  desc 'Default: run specs'
22
23
  task :default => :spec
23
- Rspec::Core::RakeTask.new do |t|
24
+ RSpec::Core::RakeTask.new do |t|
24
25
  t.pattern = "spec/**/*_spec.rb"
25
26
  end
26
27
 
27
- Rspec::Core::RakeTask.new('rcov') do |t|
28
+ RSpec::Core::RakeTask.new('rcov') do |t|
28
29
  t.pattern = "spec/**/*_spec.rb"
29
30
  t.rcov = true
30
31
  t.rcov_opts = ['--exclude', 'spec']
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.2.22
1
+ 0.2.23
@@ -177,7 +177,7 @@ module Formtastic
177
177
  def custom_date_input(attribute_type, value, index, options = {})
178
178
  i18n_scope = [:activerecord, :custom_attributes, @object.class.model_name.underscore.to_sym]
179
179
  attribute_human_name = ::I18n.t(attribute_type, :count => 1, :scope => i18n_scope + [:attribute_names]).capitalize
180
- format = options[:format] || I18n.t(:default, :scope => [:date, :formats]) || '%d %b %Y'
180
+ format = options[:format] || ::I18n.t(:default, :scope => [:date, :formats]) || '%d %b %Y'
181
181
 
182
182
  error_listing = ""
183
183
  if options[:errors]
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: custom-attributes
3
3
  version: !ruby/object:Gem::Version
4
- hash: 59
4
+ hash: 57
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 2
9
- - 22
10
- version: 0.2.22
9
+ - 23
10
+ version: 0.2.23
11
11
  platform: ruby
12
12
  authors:
13
13
  - Matthijs Groen
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2010-10-28 00:00:00 +02:00
18
+ date: 2010-11-02 00:00:00 +01:00
19
19
  default_executable:
20
20
  dependencies: []
21
21