project_madurai 0.0.8 → 0.0.9
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +2 -0
- data/lib/cover_page_generator/image.rb +1 -1
- data/lib/html_generator/html.rb +1 -1
- data/lib/project_madurai.rb +2 -6
- data/lib/project_madurai/version.rb +1 -1
- data/project_madurai.gemspec +0 -1
- data/public/html_files/1.html +1 -1
- metadata +1 -17
data/README.md
CHANGED
@@ -16,7 +16,7 @@ module CoverPageGenerator
|
|
16
16
|
@html_file.write(@html_content.to_html)
|
17
17
|
@html_file.close
|
18
18
|
system("phantomjs #{@public_folder}/phantomjs/rasterize.js #{@public_folder}/html_files/1.html project_madurai/#{@image_index}.jpg '450px*700px'")
|
19
|
-
"Generating project/madurai/#{@image_index}.jpg =>
|
19
|
+
"Generating project/madurai/#{@image_index}.jpg => #{title}"
|
20
20
|
end
|
21
21
|
end
|
22
22
|
end
|
data/lib/html_generator/html.rb
CHANGED
@@ -21,7 +21,7 @@ module HtmlGenerator
|
|
21
21
|
}
|
22
22
|
</style>
|
23
23
|
</head>
|
24
|
-
<body style='background:url(#{@bg}) no-repeat;text-align:center;color:#fff'>
|
24
|
+
<body style='background:url("#{@bg}") no-repeat;text-align:center;color:#fff'>
|
25
25
|
<div style='padding:10px'>
|
26
26
|
<h1 style="font-weight:bold">#{@title}</h1>
|
27
27
|
<p style='position:absolute;width:100%;bottom:100px;font-size:25px;color:#a00'>#{@author}</p>
|
data/lib/project_madurai.rb
CHANGED
@@ -11,12 +11,8 @@ class Extractor
|
|
11
11
|
Dir.mkdir("project_madurai") rescue true
|
12
12
|
image_index = 1
|
13
13
|
details.each do |detail|
|
14
|
-
|
15
|
-
|
16
|
-
image_index+=1
|
17
|
-
rescue Interrupt
|
18
|
-
puts "Bye"
|
19
|
-
end
|
14
|
+
puts CoverPageGenerator::Image.new(@image, detail[:title], detail[:author], image_index).generate
|
15
|
+
image_index+=1
|
20
16
|
end
|
21
17
|
end
|
22
18
|
end
|
data/project_madurai.gemspec
CHANGED
data/public/html_files/1.html
CHANGED
@@ -10,7 +10,7 @@
|
|
10
10
|
}
|
11
11
|
</style>
|
12
12
|
</head>
|
13
|
-
<body style='background:url(/Users/sathia/
|
13
|
+
<body style='background:url("/Users/sathia/Desktop/Apple Mac - 08 - Wallpapersshare.Blogspot.com.jpg") no-repeat;text-align:center;color:#fff'>
|
14
14
|
<div style='padding:10px'>
|
15
15
|
<h1 style="font-weight:bold">திருவாசகம் - 2 (11-51)</h1>
|
16
16
|
<p style='position:absolute;width:100%;bottom:100px;font-size:25px;color:#a00'>மாணிக்க வாசகர்</p>
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: project_madurai
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.9
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -59,22 +59,6 @@ dependencies:
|
|
59
59
|
- - ! '>='
|
60
60
|
- !ruby/object:Gem::Version
|
61
61
|
version: '0'
|
62
|
-
- !ruby/object:Gem::Dependency
|
63
|
-
name: rmagick
|
64
|
-
requirement: !ruby/object:Gem::Requirement
|
65
|
-
none: false
|
66
|
-
requirements:
|
67
|
-
- - ! '>='
|
68
|
-
- !ruby/object:Gem::Version
|
69
|
-
version: '0'
|
70
|
-
type: :runtime
|
71
|
-
prerelease: false
|
72
|
-
version_requirements: !ruby/object:Gem::Requirement
|
73
|
-
none: false
|
74
|
-
requirements:
|
75
|
-
- - ! '>='
|
76
|
-
- !ruby/object:Gem::Version
|
77
|
-
version: '0'
|
78
62
|
- !ruby/object:Gem::Dependency
|
79
63
|
name: commander
|
80
64
|
requirement: !ruby/object:Gem::Requirement
|