string_formatted_date 0.0.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 +15 -0
- data/lib/string_formatted_date.rb +8 -0
- metadata +73 -0
checksums.yaml
ADDED
@@ -0,0 +1,15 @@
|
|
1
|
+
---
|
2
|
+
!binary "U0hBMQ==":
|
3
|
+
metadata.gz: !binary |-
|
4
|
+
YzdlOWRjNTE1MzA5M2QyNDY3ODVhYzIxYjQxZDU1MjJkY2U3YTU3Yw==
|
5
|
+
data.tar.gz: !binary |-
|
6
|
+
ZTkwOGFjMWFhYTBlMmYzNmJjYWIwMTM5OTgwMTEyMjM0ZDAyOTFkYw==
|
7
|
+
!binary "U0hBNTEy":
|
8
|
+
metadata.gz: !binary |-
|
9
|
+
ZWJlNTg4YTkwZmJmMWRkZjcwYjQwMmZiYzRiZTMxMjRhNmYzNWVhZjBhNDEx
|
10
|
+
Nzk5OGM0YTBmZDlhMDE5OGU4N2ViMjViZWEwODAzOTUyNGJiMWQxNmJmZjlj
|
11
|
+
ZGViMTY2MjUyZjViYzc0MzcxN2I3MTYzMTRiMjhkYWI0NzU1MDY=
|
12
|
+
data.tar.gz: !binary |-
|
13
|
+
YzJkOTljNGVmZTMwMDk1NTM3OTlkYjM1NGZlMDUzYzYwZmExZjE2ZTE0Njc1
|
14
|
+
MWM3ZGEyM2FjNmIyZjc5NjIwYmU5NWJjNTA5MWYxOTgwYzA0M2EzN2U5Mjkx
|
15
|
+
OGJkZDViOWNkZmUwNTVjZmMxNmEzNTFhOWEwZjk4NzNhMWRlNTY=
|
@@ -0,0 +1,8 @@
|
|
1
|
+
class Date
|
2
|
+
def formatted(format_string)
|
3
|
+
strftime_hash = {"YYYY" => "%Y", "YY" => "%y", "MM" => "%m", "DD" => "%d", "D" => "%-d", "MONTH" => "%^B", "Month" => "%B", "MON." => "%^b", "Mon." => "%b" }
|
4
|
+
strftime_hash.each{|k,v| format_string.gsub!(k,v)}
|
5
|
+
self.strftime(format_string)
|
6
|
+
end
|
7
|
+
end
|
8
|
+
|
metadata
ADDED
@@ -0,0 +1,73 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: string_formatted_date
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.1
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Sean Larkin
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2013-10-18 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: bundler
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - ~>
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '1.3'
|
20
|
+
type: :development
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - ~>
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '1.3'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: rake
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - ! '>='
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '0'
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - ! '>='
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '0'
|
41
|
+
description: Formatted Date allows you to use comfortable string arguments to format
|
42
|
+
your dates.
|
43
|
+
email: sean.larkin@cuw.edu
|
44
|
+
executables: []
|
45
|
+
extensions: []
|
46
|
+
extra_rdoc_files: []
|
47
|
+
files:
|
48
|
+
- lib/string_formatted_date.rb
|
49
|
+
homepage: https://github.com/TheLarkInn/string_formatted_date
|
50
|
+
licenses:
|
51
|
+
- MIT
|
52
|
+
metadata: {}
|
53
|
+
post_install_message:
|
54
|
+
rdoc_options: []
|
55
|
+
require_paths:
|
56
|
+
- lib
|
57
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - ! '>='
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '0'
|
62
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
63
|
+
requirements:
|
64
|
+
- - ! '>='
|
65
|
+
- !ruby/object:Gem::Version
|
66
|
+
version: '0'
|
67
|
+
requirements: []
|
68
|
+
rubyforge_project:
|
69
|
+
rubygems_version: 2.0.6
|
70
|
+
signing_key:
|
71
|
+
specification_version: 4
|
72
|
+
summary: Formatted Date! Easy date formatting
|
73
|
+
test_files: []
|