date_format 0.3.0 → 0.3.1
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 +7 -0
- data/README.md +1 -0
- data/lib/date_format/base.rb +2 -0
- metadata +14 -20
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 4331c5ebcc7f750c20dc581635deec992f44f66b
|
4
|
+
data.tar.gz: 2c6f3314a51e8ebe82abc9336bce6c0e410e69a4
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 5e309ce374d843e081278811d7e81cb673f82790861667bfc3e66ad3c235a2970e8c7e0bc3d22c4bd8911bbfeb77123bab1c8408d98cfca24d8b622b747ba943
|
7
|
+
data.tar.gz: c4668c9d4ff49cb59f1c1983fa24b313b86d8b569d704895832205ae0a2b68649b6b6eafbc588cc4ce84bb5deea018ab9ef1644cf23f6dd59228adec23a0e4f0
|
data/README.md
CHANGED
@@ -40,6 +40,7 @@ Try this snippet of code on ruby irb
|
|
40
40
|
puts DateFormat.change_to(today_time, "LONG_DATE_SHORT") # => Sat, October 11, 2014
|
41
41
|
puts DateFormat.change_to(today_time, "ONLY_DATE_DEFAULT") # => 11/10/2014 (dd/mm/yy)
|
42
42
|
puts DateFormat.change_to(today_time, "ONLY_DATE_SHORT") # => Oct 11, 2014
|
43
|
+
puts DateFormat.change_to(today_time, "ONLY_DATE_SHORTEST") # => Sat, Oct 11, 2014
|
43
44
|
puts DateFormat.change_to(today_time, "") # => 11.10.14
|
44
45
|
puts DateFormat.change_to("", "") # => NA
|
45
46
|
|
data/lib/date_format/base.rb
CHANGED
metadata
CHANGED
@@ -1,49 +1,44 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: date_format
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
5
|
-
prerelease:
|
4
|
+
version: 0.3.1
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- Rahul Patil
|
9
8
|
autorequire:
|
10
9
|
bindir: bin
|
11
10
|
cert_chain: []
|
12
|
-
date: 2015-02-
|
11
|
+
date: 2015-02-19 00:00:00.000000000 Z
|
13
12
|
dependencies:
|
14
13
|
- !ruby/object:Gem::Dependency
|
15
14
|
name: bundler
|
16
15
|
requirement: !ruby/object:Gem::Requirement
|
17
|
-
none: false
|
18
16
|
requirements:
|
19
|
-
- - ~>
|
17
|
+
- - "~>"
|
20
18
|
- !ruby/object:Gem::Version
|
21
19
|
version: '1.6'
|
22
20
|
type: :development
|
23
21
|
prerelease: false
|
24
22
|
version_requirements: !ruby/object:Gem::Requirement
|
25
|
-
none: false
|
26
23
|
requirements:
|
27
|
-
- - ~>
|
24
|
+
- - "~>"
|
28
25
|
- !ruby/object:Gem::Version
|
29
26
|
version: '1.6'
|
30
27
|
- !ruby/object:Gem::Dependency
|
31
28
|
name: rake
|
32
29
|
requirement: !ruby/object:Gem::Requirement
|
33
|
-
none: false
|
34
30
|
requirements:
|
35
|
-
- - ~>
|
31
|
+
- - "~>"
|
36
32
|
- !ruby/object:Gem::Version
|
37
33
|
version: '0'
|
38
34
|
type: :development
|
39
35
|
prerelease: false
|
40
36
|
version_requirements: !ruby/object:Gem::Requirement
|
41
|
-
none: false
|
42
37
|
requirements:
|
43
|
-
- - ~>
|
38
|
+
- - "~>"
|
44
39
|
- !ruby/object:Gem::Version
|
45
40
|
version: '0'
|
46
|
-
description:
|
41
|
+
description: 'The library take raw date as input and adds a method to give formatted
|
47
42
|
date. By using same gem, user can find the date difference from start date to end
|
48
43
|
date in different format like seconds, minutes, hours, days, months and years. '
|
49
44
|
email:
|
@@ -52,36 +47,35 @@ executables: []
|
|
52
47
|
extensions: []
|
53
48
|
extra_rdoc_files: []
|
54
49
|
files:
|
55
|
-
- README.md
|
56
50
|
- Gemfile
|
51
|
+
- README.md
|
57
52
|
- Rakefile
|
53
|
+
- lib/date_format.rb
|
58
54
|
- lib/date_format/TestFile.txt
|
59
55
|
- lib/date_format/base.rb
|
60
56
|
- lib/date_format/version.rb
|
61
|
-
- lib/date_format.rb
|
62
57
|
homepage: ''
|
63
58
|
licenses:
|
64
59
|
- MIT
|
60
|
+
metadata: {}
|
65
61
|
post_install_message:
|
66
62
|
rdoc_options: []
|
67
63
|
require_paths:
|
68
64
|
- lib
|
69
65
|
required_ruby_version: !ruby/object:Gem::Requirement
|
70
|
-
none: false
|
71
66
|
requirements:
|
72
|
-
- -
|
67
|
+
- - ">="
|
73
68
|
- !ruby/object:Gem::Version
|
74
69
|
version: '0'
|
75
70
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
76
|
-
none: false
|
77
71
|
requirements:
|
78
|
-
- -
|
72
|
+
- - ">="
|
79
73
|
- !ruby/object:Gem::Version
|
80
74
|
version: '0'
|
81
75
|
requirements: []
|
82
76
|
rubyforge_project:
|
83
|
-
rubygems_version:
|
77
|
+
rubygems_version: 2.4.5
|
84
78
|
signing_key:
|
85
|
-
specification_version:
|
79
|
+
specification_version: 4
|
86
80
|
summary: Date Format
|
87
81
|
test_files: []
|