date_time_formats 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,4 +1,4 @@
1
- Copyright 2012 YOURNAME
1
+ Copyright 2012 Gristmill.io
2
2
 
3
3
  Permission is hereby granted, free of charge, to any person obtaining
4
4
  a copy of this software and associated documentation files (the
@@ -2,7 +2,7 @@ module DateTimeFormats
2
2
 
3
3
  def self.formats
4
4
  rails, default = {}, {}
5
- default = YAML.load_file("#{File.dirname(__FILE__)}/../date_time_formats.yml")
5
+ default = YAML.load_file("#{File.dirname(__FILE__)}/date_time_formats.yml")
6
6
  rails = YAML.load_file("#{Rails.root}/config/date_time_formats.yml") if defined?(Rails) && File.exists?("#{Rails.root}/config/date_time_formats.yml")
7
7
 
8
8
  default.merge(rails) # Rails.root/config/date_time_formats.yml override defaults
@@ -0,0 +1,12 @@
1
+ year: "%Y"
2
+ month: "%m"
3
+ day: "%d"
4
+
5
+ dash: "%m-%d-%Y"
6
+ dash_with_time: "%m-%d-%Y %H:%M"
7
+
8
+ slash: "%m/%d/%Y"
9
+ slash_with_time: "%m/%d/%Y %H:%M"
10
+
11
+ full: "%A %B %d, %Y"
12
+ full_with_time: "%A %B %d, %Y %H:%M"
@@ -1,3 +1,3 @@
1
1
  module DateTimeFormats
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
@@ -172,3 +172,65 @@
172
172
   (0.0ms) rollback transaction
173
173
   (0.0ms) begin transaction
174
174
   (0.0ms) rollback transaction
175
+  (0.3ms) begin transaction
176
+  (0.0ms) rollback transaction
177
+  (0.0ms) begin transaction
178
+  (0.0ms) rollback transaction
179
+  (0.0ms) begin transaction
180
+  (0.0ms) rollback transaction
181
+  (0.3ms) begin transaction
182
+  (0.0ms) rollback transaction
183
+  (0.1ms) begin transaction
184
+  (0.0ms) rollback transaction
185
+  (0.0ms) begin transaction
186
+  (0.0ms) rollback transaction
187
+  (0.0ms) begin transaction
188
+  (0.0ms) rollback transaction
189
+  (0.3ms) begin transaction
190
+  (0.0ms) rollback transaction
191
+  (0.0ms) begin transaction
192
+  (0.0ms) rollback transaction
193
+  (0.0ms) begin transaction
194
+  (0.0ms) rollback transaction
195
+  (0.0ms) begin transaction
196
+  (0.0ms) rollback transaction
197
+  (0.3ms) begin transaction
198
+  (0.0ms) rollback transaction
199
+  (0.1ms) begin transaction
200
+  (0.0ms) rollback transaction
201
+  (0.0ms) begin transaction
202
+  (0.0ms) rollback transaction
203
+  (0.0ms) begin transaction
204
+  (0.0ms) rollback transaction
205
+  (0.3ms) begin transaction
206
+  (0.0ms) rollback transaction
207
+  (0.0ms) begin transaction
208
+  (0.0ms) rollback transaction
209
+  (0.0ms) begin transaction
210
+  (0.0ms) rollback transaction
211
+  (0.0ms) begin transaction
212
+  (0.0ms) rollback transaction
213
+  (0.4ms) begin transaction
214
+  (0.1ms) rollback transaction
215
+  (0.1ms) begin transaction
216
+  (0.0ms) rollback transaction
217
+  (0.1ms) begin transaction
218
+  (0.1ms) rollback transaction
219
+  (0.3ms) begin transaction
220
+  (0.0ms) rollback transaction
221
+  (0.1ms) begin transaction
222
+  (0.0ms) rollback transaction
223
+  (0.0ms) begin transaction
224
+  (0.0ms) rollback transaction
225
+  (0.5ms) begin transaction
226
+  (0.1ms) rollback transaction
227
+  (0.1ms) begin transaction
228
+  (0.0ms) rollback transaction
229
+  (0.0ms) begin transaction
230
+  (0.1ms) rollback transaction
231
+  (0.3ms) begin transaction
232
+  (0.0ms) rollback transaction
233
+  (0.1ms) begin transaction
234
+  (0.0ms) rollback transaction
235
+  (0.1ms) begin transaction
236
+  (0.0ms) rollback transaction
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: date_time_formats
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-05-02 00:00:00.000000000 Z
12
+ date: 2012-05-20 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails
16
- requirement: &70210376664480 !ruby/object:Gem::Requirement
16
+ requirement: &70108127359360 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ~>
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: 3.2.3
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *70210376664480
24
+ version_requirements: *70108127359360
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: sqlite3
27
- requirement: &70210376663940 !ruby/object:Gem::Requirement
27
+ requirement: &70108127358860 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ! '>='
@@ -32,7 +32,7 @@ dependencies:
32
32
  version: '0'
33
33
  type: :development
34
34
  prerelease: false
35
- version_requirements: *70210376663940
35
+ version_requirements: *70108127358860
36
36
  description: Common formats for Time in Rails apps using YAML configuration.
37
37
  email:
38
38
  - sean@gristmill.io
@@ -42,6 +42,7 @@ extra_rdoc_files: []
42
42
  files:
43
43
  - lib/date_time_formats/version.rb
44
44
  - lib/date_time_formats.rb
45
+ - lib/date_time_formats.yml
45
46
  - lib/tasks/date_time_formats_tasks.rake
46
47
  - MIT-LICENSE
47
48
  - Rakefile