lunartic 0.1.0 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -1,4 +1,6 @@
1
1
  # Lunartic
2
+ [![Gem Version](https://badge.fury.io/rb/lunartic.svg)](http://badge.fury.io/rb/lunartic)
3
+ [![Code Climate](https://codeclimate.com/github/brianokeefe/lunartic.png)](https://codeclimate.com/github/brianokeefe/lunartic)
2
4
 
3
5
  Calculate the approximate phase of the moon on a given date.
4
6
 
@@ -27,7 +29,7 @@ irb(main):001:0> require 'lunartic'
27
29
  => true
28
30
 
29
31
  # get moon data for today
30
- irb(main):002:0> moon = Lunartic.now
32
+ irb(main):002:0> moon = Lunartic.today
31
33
  => #<Lunartic::Moon:0x007fa5028e4dc0 @date=#<Date: 2014-06-25 ((2456834j,0s,0n),+0s,2299161j)>>
32
34
  irb(main):003:0> moon.day
33
35
  => 27
@@ -8,6 +8,8 @@ module Lunartic
8
8
  Lunartic::Moon.new Date.today
9
9
  end
10
10
 
11
+ alias_method :today, :now
12
+
11
13
  def on_date(date)
12
14
  Lunartic::Moon.new date
13
15
  end
@@ -1,3 +1,3 @@
1
1
  module Lunartic
2
- VERSION = "0.1.0"
2
+ VERSION = "0.2.0"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lunartic
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.2.0
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: 2014-06-25 00:00:00.000000000 Z
12
+ date: 2014-06-28 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rspec