astro_calc 0.2.4 → 0.2.5

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: 4a8e0b60b8e1b16a575cb20d2efa86f535aecffa
4
- data.tar.gz: 0f136bbcfc26c4e90fd905ada9fbbefa2907b902
3
+ metadata.gz: b36abe83bfd780740046d46707655c90d0507807
4
+ data.tar.gz: b35f662e93f1583631f3467347c2cac3b8b6ed87
5
5
  SHA512:
6
- metadata.gz: d3dab24f219f3fd660223073ee66a52a2e966628261d1a5686cc7c73fde3c13f3d16eacbb5535cbdd0c3005c00ba3b61448aa5b57acef14f6a7aa347e441a6be
7
- data.tar.gz: 1f990ba295a59e20ae0c27bb8014676b5f7d9169dc12411e4d6832bcd1832a0b68fb16fc2560df624b9ba4d9d360c958c8d1b82123adf275c6882313da6d5823
6
+ metadata.gz: 79aabcfb105aa08ffe99f8d92e22ce23dab8a8676411e25908e124b79052c89a6f27bc08cdff53a6899ca8e3b5582614cbeb7454547f3e3ea14936b64f787bb2
7
+ data.tar.gz: 6f614e12d97e470c1aa7fe9aa707ec252a38bb161b758d783fae9d9800ad6900fec9c47e6d14e92c67dd10934c190b747e73ad63636a65c829083594ef8b3cbe
@@ -134,8 +134,8 @@ class MoonPhases
134
134
  # @return [String] the SVG output
135
135
  def svg
136
136
  output = ""
137
- output << "<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100% 100%' version='1.1' id='moon_phase'>"
138
- output << "<path d='m100,0 a20,20 0 1,1 0,150 a20,20 0 1,1 0,-150' class='moon_back'></path>"
137
+ output << "<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100% 100%' version='1.1' class='moon_phase'>"
138
+ #output << "<path d='m100,0 a20,20 0 1,1 0,150 a20,20 0 1,1 0,-150' class='moon_back'></path>"
139
139
  output << "<image xlink:href='moon.jpg; x='0' y='0' height='200px' width='200px'/>"
140
140
  output << "<path d='m100,0 a#{@magnitude.round(2)},20 0 1,#{@sweep[0]} 0,150 a20,20 0 1,#{@sweep[1]} 0,-150' class='moon'></path>"
141
141
  output << "</svg>"
@@ -1,3 +1,3 @@
1
1
  module AstroCalc
2
- VERSION = "0.2.4"
2
+ VERSION = "0.2.5"
3
3
  end
@@ -1,5 +1,14 @@
1
- .moon_back { background-image: image-url('starfield.png') !important; height: 200px; }
2
- .moon { background-image: image-url("moon.png"); }
3
-
4
- .moon_back { height: 200px; background-color: #000000; }
5
- .moon_phase { position:absolute; left:35%; top:75px; stroke: #999999; stroke-width: 1px; height: 180px; }
1
+ .moon_phase {
2
+ background-image: image-url('starfield.png') !important;
3
+ height: 200px;
4
+ background-color: #000000;
5
+ position: absolute;
6
+ left: 35%;
7
+ top: 75px;
8
+ stroke: #999999;
9
+ stroke-width: 1px;
10
+ height: 180px;
11
+ }
12
+ .moon {
13
+ background-image: image-url("moon.png");
14
+ }
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: astro_calc
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.4
4
+ version: 0.2.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Reuben Mallaby