monthra 0.1.2 → 0.1.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 459cf4e50c36589149301a430695569974a4eea6
4
- data.tar.gz: 7caf36a6e5a77c3f60eb9edf21a7076b20f78106
3
+ metadata.gz: 6936e5423fa5df9234d5ff448291eaf7fc8983fc
4
+ data.tar.gz: 5c74fa7391f251f222044a4c0dbd4aa3d4228137
5
5
  SHA512:
6
- metadata.gz: e235434570082fcc7d8c59280c474fedca54535c402549516066ad100ed8bb9dd0c5a66020122a4c62c0647f62f7227ad0c63ca69fa02c75a3552450fad79d25
7
- data.tar.gz: 4cb10d2f35b6c7d89b14203ed39983828839921cf677c2d5c93e5278688d706b8f41e013a234f872852e99a0ec060796826916ac01373f7a57ace192fbac4460
6
+ metadata.gz: 9347016376adff348c70d04fd0622048d44e7d0fe0fd17c6fdee0d96f6bf5e0e99ffd68cc218547c54614af0299de12b1ae840083bce134d3b9d19d956692e55
7
+ data.tar.gz: 523595743d25e721fb18f5d8951f1fa73eba0f7a93d4f4fde64bd79fb2c4cc47e3d01f0b53014a169b503b79e471e2623e25457de8d2f1108954adb882d60159
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- monthra (0.1.2)
4
+ monthra (0.1.3)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -1,5 +1,6 @@
1
1
  require 'date'
2
2
  require 'time'
3
+ require 'forwardable'
3
4
 
4
5
  require 'monthra/monkey_patches.rb'
5
6
  require 'monthra/version'
@@ -7,5 +8,10 @@ require 'monthra/month'
7
8
  require 'monthra/month_range'
8
9
 
9
10
  module Monthra
10
- # Your code goes here...
11
+ class << self
12
+ extend Forwardable
13
+ def_delegators 'Monthra::Month', :new, :current, :at, :strpmonth
14
+
15
+ def_delegator 'Monthra::MonthRange', :new, :range
16
+ end
11
17
  end
@@ -2,12 +2,14 @@
2
2
 
3
3
  class Date
4
4
  def to_monthra_month
5
- Monthra::Month.at(self)
5
+ Monthra.at(self)
6
6
  end
7
+ alias to_monthra to_monthra_month
7
8
  end
8
9
 
9
10
  class Time
10
11
  def to_monthra_month
11
- Monthra::Month.at(self)
12
+ Monthra.at(self)
12
13
  end
14
+ alias to_monthra to_monthra_month
13
15
  end
@@ -1,3 +1,3 @@
1
1
  module Monthra
2
- VERSION = "0.1.2"
2
+ VERSION = "0.1.3"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: monthra
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - jeremiah.hemphill@gmail.com
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-07-26 00:00:00.000000000 Z
11
+ date: 2018-08-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler