sogoumap2pdf 0.0.11 → 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
data/History.txt CHANGED
@@ -22,3 +22,7 @@
22
22
  == 0.0.11 2008-09-09
23
23
  * 1 minor enhancement:
24
24
  * add command sogoumap2pdf_from_disk
25
+
26
+ == 0.1.0 2008-09-10
27
+ * 1 major enhancement:
28
+ fix crop! error
@@ -192,7 +192,10 @@ module Sogoumap2pdf
192
192
  end
193
193
  #crop
194
194
  #map2pdf.rb:339:in `crop!': bignum too big to convert into `long' (RangeError)
195
- resimg.crop!(SouthWestGravity,@page_width,@page_height)
195
+ x_string,y_string=resimg.density.split("x")
196
+ resx=x_string.to_i
197
+ resy=y_string.to_i
198
+ resimg.crop!(SouthWestGravity,resx<@page_width?resx:@page_width,resy<@page_height?resy:@page_height)
196
199
  resimg.write("itptmp#{@link_end}"){ self.quality = 70 }
197
200
  @pdf.add_image_from_file("itptmp#{@link_end}",0,0)
198
201
  ss = PDF::Writer::StrokeStyle.new(2)
@@ -1,8 +1,8 @@
1
1
  module Sogoumap2pdf
2
2
  module VERSION #:nodoc:
3
3
  MAJOR = 0
4
- MINOR = 0
5
- TINY = 11
4
+ MINOR = 1
5
+ TINY = 0
6
6
 
7
7
  STRING = [MAJOR, MINOR, TINY].join('.')
8
8
  end
data/website/index.html CHANGED
@@ -35,7 +35,7 @@
35
35
  <h1>sogoumap2pdf</h1>
36
36
  <div id="version" class="clickable" onclick='document.location = "http://rubyforge.org/projects/sogoumap2pdf"; return false'>
37
37
  <p>Get Version</p>
38
- <a href="http://rubyforge.org/projects/sogoumap2pdf" class="numbers">0.0.9</a>
38
+ <a href="http://rubyforge.org/projects/sogoumap2pdf" class="numbers">0.0.11</a>
39
39
  </div>
40
40
  <h2>What</h2>
41
41
  <p>download map from map.sogou.com and convert to pdf</p>
@@ -75,7 +75,7 @@ rake install_gem</pre>
75
75
  <h2>Screencast</h2>
76
76
  <object width="425" height="350"> <param name="movie" value="http://www.youtube.com/v/SxEZ1lhUDH4"> </param> <embed src="http://www.youtube.com/v/SxEZ1lhUDH4" type="application/x-shockwave-flash" width="425" height="350"> </embed> </object>
77
77
  <p class="coda">
78
- <a href="mailto:ruanwz@gmail.com">David Ruan</a>, 2nd September 2008<br>
78
+ <a href="mailto:ruanwz@gmail.com">David Ruan</a>, 4th September 2008<br>
79
79
  Theme extended from <a href="http://rb2js.rubyforge.org/">Paul Battley</a>
80
80
  </p>
81
81
  </div>
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sogoumap2pdf
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.11
4
+ version: 0.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Ruan