moonphases 1.0.1 → 1.0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/MIT-LICENSE +8 -0
  2. data/README.md +24 -0
  3. metadata +6 -4
@@ -0,0 +1,8 @@
1
+ The MIT License (MIT)
2
+ Copyright (c) 2012 GrassRoots Gamer.com, LLC
3
+
4
+ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
5
+
6
+ The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
7
+
8
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@@ -0,0 +1,24 @@
1
+ MoonPhases
2
+ ====================
3
+ A simple way to estimate the phase of the moon on any date in the past or future. This parses the data made available by NASA at http://eclipse.gsfc.nasa.gov/phase/phasecat.html.
4
+ Note that this is for entertainment purposes only - I'm rounding times to the nearest day, and using linear interpolation where sinusoidal is clearly more appropriate. If you use this for navigation, astronomy, astrology, or lycanthropy, you do so at your own risk.
5
+
6
+ Installation
7
+ ------------
8
+ gem install moonphases
9
+
10
+ Sample Usage
11
+ ----------------------------
12
+ toko:MoonPhases cmlacy$ irb
13
+ >> require 'moonphases'
14
+ => true
15
+ >> moon = MoonPhases.new
16
+ => #<MoonPhases:0x101380db8 @documentLog=[], @documentCache={}>
17
+ >> moon.getMoonFullness( Date.new 2012, 4, 22 )
18
+ => #<Fullness:0x10161fb28 @direction="+", @percent=Rational(25, 4)>
19
+ >> moon.getMoonFullness( Date.new 2012, 4, 21 )
20
+ => #<Fullness:0x1016067b8 @direction="+", @percent=0>
21
+ >> moon.getMoonFullness( Date.new 2012, 4, 23 )
22
+ => #<Fullness:0x101594320 @direction="+", @percent=Rational(25, 2)>
23
+ >> moon.getMoonFullness( Date.new 2012, 4, 24 )
24
+ => #<Fullness:0x101516f60 @direction="+", @percent=Rational(75, 4)>
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 1
7
7
  - 0
8
- - 1
9
- version: 1.0.1
8
+ - 2
9
+ version: 1.0.2
10
10
  platform: ruby
11
11
  authors:
12
12
  - Curtis Lacy
@@ -14,7 +14,7 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2012-04-21 00:00:00 -04:00
17
+ date: 2012-04-22 00:00:00 -04:00
18
18
  default_executable:
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
@@ -44,6 +44,8 @@ files:
44
44
  - test/test_moonphases.rb
45
45
  - Rakefile
46
46
  - Gemfile
47
+ - MIT-LICENSE
48
+ - README.md
47
49
  has_rdoc: true
48
50
  homepage:
49
51
  licenses: []
@@ -73,6 +75,6 @@ rubyforge_project:
73
75
  rubygems_version: 1.3.6
74
76
  signing_key:
75
77
  specification_version: 3
76
- summary: MoonPhases-1.0.1
78
+ summary: MoonPhases-1.0.2
77
79
  test_files: []
78
80