attributes_for 0.5.1 → 0.6.0

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f98de193663ad21fdd67e034913e20de7fc7380e
4
- data.tar.gz: 08fe95989514035be3989bfdec0d55de83f13e08
3
+ metadata.gz: a82294606b29cf6e588bd910a8b2918ab1e0d22f
4
+ data.tar.gz: 32a9f842bb9d9264a6f7f83ccd4a05d1b2b059a3
5
5
  SHA512:
6
- metadata.gz: 7083887afbaee2cd6b45f1cf4985bc0748a24d9a1b839724662f7c61f29fa36b50a69b39ce54221fe76b3800c15ba379c36c9917b3ff7f2b958af525bc139be1
7
- data.tar.gz: 42d54c78a05cc5835cb9d97bccb102068547818cf18c1dc0b35c44d7118681c4975d4433d348a6ae4e0e418db85f98f4e264be6e25bad3bab75719a401ee02f2
6
+ metadata.gz: 80ea5536ddf98d6a4f688d54e74b33a11823fae42446c01af78e576d38e019aa36d76646a6094128b82912e5e3acafeb3b40e1b8f94d077d0e89e19a6d309b8d
7
+ data.tar.gz: 9b4ad83e60266c80225e458daf801766e176e9527f809ab6a7938ffdff888ad9f194f587192007016b8a51d970038e11d6f63abd517eb7cb95cbcd125cb552ee
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- attributes_for (0.5.1)
4
+ attributes_for (0.6.0)
5
5
  chronic_duration (~> 0.10)
6
6
  font-awesome-rails (~> 4.0)
7
7
  phony (~> 2.0)
@@ -73,7 +73,7 @@ GEM
73
73
  mime-types (>= 1.16, < 3)
74
74
  mime-types (2.6.1)
75
75
  mini_portile (0.6.2)
76
- minitest (5.8.0)
76
+ minitest (5.8.1)
77
77
  netrc (0.10.3)
78
78
  nokogiri (1.6.6.2)
79
79
  mini_portile (~> 0.6.0)
@@ -116,8 +116,8 @@ GEM
116
116
  json (~> 1.8)
117
117
  simplecov-html (~> 0.10.0)
118
118
  simplecov-html (0.10.0)
119
- sprockets (3.3.4)
120
- rack (~> 1.0)
119
+ sprockets (3.4.0)
120
+ rack (> 1, < 3)
121
121
  sprockets-rails (2.3.3)
122
122
  actionpack (>= 3.0)
123
123
  activesupport (>= 3.0)
@@ -46,6 +46,8 @@ module AttributesFor
46
46
  when :boolean
47
47
  I18n.t("attributes_for.#{value.to_s}")
48
48
  when :date
49
+ I18n.l(value.to_date, format: options[:format])
50
+ when :datetime
49
51
  I18n.l(value, format: options[:format])
50
52
  when :duration
51
53
  ChronicDuration.output(value, :keep_zero => true)
@@ -85,6 +87,7 @@ module AttributesFor
85
87
  {
86
88
  boolean: 'check',
87
89
  date: 'calendar',
90
+ datetime: 'calendar',
88
91
  duration: 'clock-o',
89
92
  email: 'envelope',
90
93
  phone: 'phone',
@@ -1,3 +1,5 @@
1
1
  require "attributes_for/version"
2
2
  require "attributes_for/engine"
3
3
  require "phony"
4
+ require 'font-awesome-rails'
5
+ require 'chronic_duration'
@@ -1,6 +1,4 @@
1
1
  module AttributesFor
2
2
  class Engine < Rails::Engine
3
- require 'font-awesome-rails'
4
- require 'chronic_duration'
5
3
  end
6
4
  end
@@ -1,3 +1,3 @@
1
1
  module AttributesFor
2
- VERSION = "0.5.1"
2
+ VERSION = "0.6.0"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: attributes_for
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.1
4
+ version: 0.6.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ole J. Rosendahl
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2015-10-13 00:00:00.000000000 Z
11
+ date: 2015-10-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails