attributes_for 0.5.1 → 0.6.0
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a82294606b29cf6e588bd910a8b2918ab1e0d22f
|
4
|
+
data.tar.gz: 32a9f842bb9d9264a6f7f83ccd4a05d1b2b059a3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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.
|
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.
|
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.
|
120
|
-
rack (
|
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',
|
data/lib/attributes_for.rb
CHANGED
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.
|
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-
|
11
|
+
date: 2015-10-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|