ventana 0.9.1 → 0.9.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/ventana/method.rb +1 -7
- data/lib/ventana/version.rb +1 -1
- data/test/examples.csv +10 -10
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e8ea6ae61b3094a51b943cff3b2d8e162858e1fe
|
4
|
+
data.tar.gz: 986bb34cf21c6fee0bb7937d6281bf5b9177cd94
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 691400d5fcdbe4a661d2e6b6f96d92d7c618ed1a6f4dcd3731eaba57b3dc4b20175a507388feecb4fac166fd5fb2cf0cdbd76265d2b1cb8a96ea98fe207baf87
|
7
|
+
data.tar.gz: 663531cacf3e7d958cc93b8aa98e8de40a85d98ed4c38c725893e66f31cb3cc5095fcf4ab895982cc270acd3b59d0c6d47cbbddfdef9cb3dfd87e388b96b8af6
|
data/lib/ventana/method.rb
CHANGED
@@ -45,13 +45,7 @@ module Ventana
|
|
45
45
|
end
|
46
46
|
|
47
47
|
def time_format(date)
|
48
|
-
|
49
|
-
if date.min > 0
|
50
|
-
str << ":" << date.strftime("%M")
|
51
|
-
end
|
52
|
-
str << "" << date.strftime("%p")
|
53
|
-
|
54
|
-
str.strip
|
48
|
+
date.strftime("%l:%M %P").strip
|
55
49
|
end
|
56
50
|
|
57
51
|
def show_time?(from,to)
|
data/lib/ventana/version.rb
CHANGED
data/test/examples.csv
CHANGED
@@ -1,11 +1,11 @@
|
|
1
1
|
locale,from,to,expectation
|
2
|
-
en,2014-06-06 12:00:00,2014-06-06 15:00:00,"June 6, 2014 from
|
3
|
-
en,2014-06-05 12:00:00,2014-06-10 15:00:00,"June 5 to 10, 2014 from
|
4
|
-
en,2014-06-01 12:00:00,2014-06-30 15:00:00,"June 2014 from
|
5
|
-
en,2014-06-01 12:00:00,2014-07-31 15:00:00,"June to July 2014 from
|
6
|
-
en,2014-06-05 12:00:00,2014-07-10 15:00:00,"June 5 to July 10, 2014 from
|
7
|
-
es,2014-06-06 12:00:00,2014-06-06 15:00:00,"6 de junio del 2014 entre
|
8
|
-
es,2014-06-05 12:00:00,2014-06-10 15:00:00,"5 al 10 de junio del 2014 entre
|
9
|
-
es,2014-06-01 12:00:00,2014-06-30 15:00:00,"junio del 2014 entre
|
10
|
-
es,2014-06-01 12:00:00,2014-07-31 15:00:00,"junio a julio del 2014 entre
|
11
|
-
es,2014-06-05 12:00:00,2014-07-10 15:00:00,"5 de junio al 10 de julio del 2014 entre
|
2
|
+
en,2014-06-06 12:00:00,2014-06-06 15:00:00,"June 6, 2014 from 12:00 pm to 3:00 pm"
|
3
|
+
en,2014-06-05 12:00:00,2014-06-10 15:00:00,"June 5 to 10, 2014 from 12:00 pm to 3:00 pm"
|
4
|
+
en,2014-06-01 12:00:00,2014-06-30 15:00:00,"June 2014 from 12:00 pm to 3:00 pm"
|
5
|
+
en,2014-06-01 12:00:00,2014-07-31 15:00:00,"June to July 2014 from 12:00 pm to 3:00 pm"
|
6
|
+
en,2014-06-05 12:00:00,2014-07-10 15:00:00,"June 5 to July 10, 2014 from 12:00 pm to 3:00 pm"
|
7
|
+
es,2014-06-06 12:00:00,2014-06-06 15:00:00,"6 de junio del 2014 entre 12:00 pm y 3:00 pm"
|
8
|
+
es,2014-06-05 12:00:00,2014-06-10 15:00:00,"5 al 10 de junio del 2014 entre 12:00 pm y 3:00 pm"
|
9
|
+
es,2014-06-01 12:00:00,2014-06-30 15:00:00,"junio del 2014 entre 12:00 pm y 3:00 pm"
|
10
|
+
es,2014-06-01 12:00:00,2014-07-31 15:00:00,"junio a julio del 2014 entre 12:00 pm y 3:00 pm"
|
11
|
+
es,2014-06-05 12:00:00,2014-07-10 15:00:00,"5 de junio al 10 de julio del 2014 entre 12:00 pm y 3:00 pm"
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ventana
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.9.
|
4
|
+
version: 0.9.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Seba Gamboa
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-10-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: i18n
|