rmthemegen 0.0.14 → 0.0.15
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/rmthemegen/rmthemegen_to_css.rb +5 -5
- data/lib/rmthemegen/version.rb +1 -1
- data/rmthemegen.gemspec +1 -1
- metadata +3 -3
@@ -22,10 +22,10 @@ module RMThemeGen
|
|
22
22
|
class ThemeGenerator < RMThemeParent
|
23
23
|
|
24
24
|
def to_css
|
25
|
-
fout = File.new("index.html", "w+")
|
25
|
+
#fout = File.new("index.html", "w+")
|
26
26
|
s = ' <style type="text/css"> '
|
27
27
|
s+= "#"+ @xmlout[:scheme][0][:name].to_s
|
28
|
-
s+=" { background-color: \##{@
|
28
|
+
s+=" { background-color: \##{@backgroundcolor.to_s}; } "
|
29
29
|
@xmlout[:scheme][0][:attributes][0][:option].each do |o|
|
30
30
|
if @@tokens_for_css.include? o[:name]
|
31
31
|
s+= "#"+ @xmlout[:scheme][0][:name].to_s
|
@@ -41,9 +41,9 @@ module RMThemeGen
|
|
41
41
|
y+= "<span class='#{o[:name]}'>"+ o[:name]+"</span>"
|
42
42
|
end #if
|
43
43
|
end
|
44
|
-
fout.puts( s)
|
45
|
-
fout.puts( y)
|
46
|
-
fout.close
|
44
|
+
#fout.puts( s)
|
45
|
+
#fout.puts( y)
|
46
|
+
#fout.close
|
47
47
|
return s
|
48
48
|
end
|
49
49
|
end #class ThemeGenerator < RMThemeParent
|
data/lib/rmthemegen/version.rb
CHANGED
data/rmthemegen.gemspec
CHANGED
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rmthemegen
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 1
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 0.0.
|
9
|
+
- 15
|
10
|
+
version: 0.0.15
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- David Heitzman
|