merb-helpers 1.0 → 1.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.
@@ -17,7 +17,16 @@ module DateAndTimeFormatting
17
17
  # format<Symbol>:: of the format key from Date.date_formats
18
18
  #
19
19
  # ==== Returns
20
- # String:: formattred string
20
+ # String:: formatted string
21
+ #
22
+ # ==== Example
23
+ # Time.now.formatted(:rfc822) # => "Sun, 16 Nov 2007 00:21:16 -0800"
24
+ # Time.now.formatted(:db) # => "2008-11-16 00:22:09"
25
+ #
26
+ # You can also add your own formats using +Date.add_format+
27
+ #
28
+ # Date.add_format(:matt, "%H:%M:%S %Y-%m-%d")
29
+ # Time.now.formatted(:matt) # => "00:00:00 2007-11-02"
21
30
  #
22
31
  #--
23
32
  # @public
@@ -56,6 +65,12 @@ module DateAndTimeFormatting
56
65
  #
57
66
  # ==== Returns
58
67
  # Hash:: a hash with all formats available
68
+ #
69
+ # ==== Example
70
+ #
71
+ # Date.add_format(:matt, "%H:%M:%S %Y-%m-%d")
72
+ # Time.now.formatted(:matt) # => "00:00:00 2007-11-02"
73
+ #
59
74
  # --
60
75
  # @public
61
76
  def add_format(key, format)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: merb-helpers
3
3
  version: !ruby/object:Gem::Version
4
- version: "1.0"
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael D. Ivey
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2008-11-08 00:00:00 -05:00
12
+ date: 2008-11-18 00:00:00 -08:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
@@ -20,7 +20,7 @@ dependencies:
20
20
  requirements:
21
21
  - - ">="
22
22
  - !ruby/object:Gem::Version
23
- version: "1.0"
23
+ version: 1.0.1
24
24
  version:
25
25
  description: Helper support for Merb
26
26
  email: ivey@gweezlebur.com