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 +4 -4
- data/lib/astro_calc/moon_phases.rb +2 -2
- data/lib/astro_calc/version.rb +1 -1
- data/vendor/assets/stylesheets/astro.css.scss +14 -5
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b36abe83bfd780740046d46707655c90d0507807
|
4
|
+
data.tar.gz: b35f662e93f1583631f3467347c2cac3b8b6ed87
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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'
|
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>"
|
data/lib/astro_calc/version.rb
CHANGED
@@ -1,5 +1,14 @@
|
|
1
|
-
.
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
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
|
+
}
|