astro_calc 0.2.5 → 0.2.6

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: b36abe83bfd780740046d46707655c90d0507807
4
- data.tar.gz: b35f662e93f1583631f3467347c2cac3b8b6ed87
3
+ metadata.gz: 1771b47d01aa24fcd2106446fcdb567c5475661c
4
+ data.tar.gz: c8e877296c5bb0c2f11f615cea3854af23b155e5
5
5
  SHA512:
6
- metadata.gz: 79aabcfb105aa08ffe99f8d92e22ce23dab8a8676411e25908e124b79052c89a6f27bc08cdff53a6899ca8e3b5582614cbeb7454547f3e3ea14936b64f787bb2
7
- data.tar.gz: 6f614e12d97e470c1aa7fe9aa707ec252a38bb161b758d783fae9d9800ad6900fec9c47e6d14e92c67dd10934c190b747e73ad63636a65c829083594ef8b3cbe
6
+ metadata.gz: fa0e7225e9bd9743d68a2a028304b9eaf2dca477902c0bdac580c965d8f271fb227e03c476fb2ea8da484608866140710960c0bff3b0dbcce86b4016dfefc9b4
7
+ data.tar.gz: 7b5bb848897ad1cae44b4c6cbfb7055dad6d89feafc2a9756785d676ddcae14ba05922cd95c2c3f09ba393388ab132c7b1940f7844360573ad31c69ea1ed45ec
@@ -134,10 +134,9 @@ 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' 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>"
137
+ output << "<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100% 100%' version='1.1' class='astro_moon_phase'>"
139
138
  output << "<image xlink:href='moon.jpg; x='0' y='0' height='200px' width='200px'/>"
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>"
139
+ 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='astro_moon'></path>"
141
140
  output << "</svg>"
142
141
  output.html_safe
143
142
  end
@@ -1,3 +1,3 @@
1
1
  module AstroCalc
2
- VERSION = "0.2.5"
2
+ VERSION = "0.2.6"
3
3
  end
@@ -1,7 +1,10 @@
1
- .moon_phase {
1
+ .astro_moon_phase {
2
2
  background-image: image-url('starfield.png') !important;
3
3
  height: 200px;
4
4
  background-color: #000000;
5
+ }
6
+ .astro_moon {
7
+ background-image: image-url("moon.png");
5
8
  position: absolute;
6
9
  left: 35%;
7
10
  top: 75px;
@@ -9,6 +12,3 @@
9
12
  stroke-width: 1px;
10
13
  height: 180px;
11
14
  }
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.5
4
+ version: 0.2.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Reuben Mallaby