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.
- data/MIT-LICENSE +1 -1
- data/lib/date_time_formats.rb +1 -1
- data/lib/date_time_formats.yml +12 -0
- data/lib/date_time_formats/version.rb +1 -1
- data/test/dummy/log/test.log +62 -0
- metadata +7 -6
data/MIT-LICENSE
CHANGED
data/lib/date_time_formats.rb
CHANGED
@@ -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__)}
|
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
|
data/test/dummy/log/test.log
CHANGED
@@ -172,3 +172,65 @@
|
|
172
172
|
[1m[35m (0.0ms)[0m rollback transaction
|
173
173
|
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
174
174
|
[1m[35m (0.0ms)[0m rollback transaction
|
175
|
+
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
|
176
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
177
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
178
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
179
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
180
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
181
|
+
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
|
182
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
183
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
184
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
185
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
186
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
187
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
188
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
189
|
+
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
|
190
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
191
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
192
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
193
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
194
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
195
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
196
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
197
|
+
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
|
198
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
199
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
200
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
201
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
202
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
203
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
204
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
205
|
+
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
|
206
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
207
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
208
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
209
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
210
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
211
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
212
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
213
|
+
[1m[36m (0.4ms)[0m [1mbegin transaction[0m
|
214
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
215
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
216
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
217
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
218
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
219
|
+
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
|
220
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
221
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
222
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
223
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
224
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
225
|
+
[1m[36m (0.5ms)[0m [1mbegin transaction[0m
|
226
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
227
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
228
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
229
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
230
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
231
|
+
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
|
232
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
233
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
234
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
235
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
236
|
+
[1m[35m (0.0ms)[0m 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.
|
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-
|
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: &
|
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: *
|
24
|
+
version_requirements: *70108127359360
|
25
25
|
- !ruby/object:Gem::Dependency
|
26
26
|
name: sqlite3
|
27
|
-
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: *
|
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
|