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 +4 -4
- data/lib/astro_calc/moon_phases.rb +2 -3
- data/lib/astro_calc/version.rb +1 -1
- data/vendor/assets/stylesheets/astro.css.scss +4 -4
- 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: 1771b47d01aa24fcd2106446fcdb567c5475661c
|
4
|
+
data.tar.gz: c8e877296c5bb0c2f11f615cea3854af23b155e5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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='
|
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='
|
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
|
data/lib/astro_calc/version.rb
CHANGED
@@ -1,7 +1,10 @@
|
|
1
|
-
.
|
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
|
-
}
|