date_extended 0.0.1 → 0.0.2

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
@@ -18,11 +18,13 @@ Or install it yourself as:
18
18
 
19
19
  ## Usage
20
20
 
21
- Use as regular Date class with extra methods like
21
+ Require as regular Date class with extra methods:
22
22
 
23
- Date.year will give the current year
23
+ require 'date_extended'
24
+
25
+ Date.year # It will give the current year
24
26
 
25
- Date.month will give the current month
27
+ Date.month # It will give the current month
26
28
 
27
29
  ## Contributing
28
30
 
data/lib/date_extended.rb CHANGED
@@ -1,3 +1,5 @@
1
+ require 'date'
2
+
1
3
  class Date
2
4
  class << self
3
5
  def year
@@ -1,3 +1,3 @@
1
1
  module DateExtended
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: date_extended
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-09-06 00:00:00.000000000 Z
12
+ date: 2013-09-08 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler