date_output 1.0.5 → 1.0.6

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.
data/README.md CHANGED
@@ -32,9 +32,9 @@ In your view use the helpers to output the formatted dates.
32
32
 
33
33
  self.short_date(date) #=> Thu 28th Mar 13
34
34
 
35
- You can also pass in some options to to customise the output.
35
+ You can also pass in some options to to customise the output. These are passes in as a hash. For example:
36
36
 
37
- self.numbered_date_with_time(date, options={:seperator => "-"}) #=> 28-03-2013 14:42pm
37
+ self.numbered_date_with_time(date, {:seperator => "-"}) #=> 28-03-2013 14:42pm
38
38
 
39
39
  Current options are:
40
40
 
@@ -1,3 +1,3 @@
1
1
  module DateOutput
2
- VERSION = "1.0.5"
2
+ VERSION = "1.0.6"
3
3
  end
data/lib/date_output.rb CHANGED
@@ -20,7 +20,7 @@ module DateOutput
20
20
 
21
21
  def self.numbered_date(date, options)
22
22
  set_options(options)
23
- date.strftime("%d/%m/%Y")
23
+ date.strftime("%d#{@seperator}%m#{@seperator}%Y")
24
24
  end
25
25
 
26
26
  def self.full_date(date, options)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: date_output
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.5
4
+ version: 1.0.6
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: