wkhtmltopdf_32_amd64 0.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,7 @@
1
+ Rakefile
2
+ bin/test.rb
3
+ bin/wkhtmltopdf
4
+ bin/wkhtmltopdf_darwin_386
5
+ bin/wkhtmltopdf_linux_386
6
+ bin/wkhtmltopdf_linux_amd64
7
+ Manifest
@@ -0,0 +1,39 @@
1
+ require 'rubygems'
2
+ require 'rake'
3
+ require 'echoe'
4
+
5
+ desc 'Clean up files.'
6
+ task :clean do |t|
7
+ FileUtils.rm_rf "doc"
8
+ FileUtils.rm_rf "tmp"
9
+ FileUtils.rm_rf "pkg"
10
+ FileUtils.rm_rf "public"
11
+ FileUtils.rm "test/debug.log" rescue nil
12
+ FileUtils.rm "test/paperclip.db" rescue nil
13
+ Dir.glob("paperclip-*.gem").each{|f| FileUtils.rm f }
14
+ end
15
+
16
+ desc 'Build the gemspec.'
17
+ task :gemspec do |t|
18
+ exec 'gem build paperclip.gemspec'
19
+ end
20
+
21
+ desc "Print a list of the files to be put into the gem"
22
+ task :manifest => :clean do
23
+ spec.files.each do |file|
24
+ puts file
25
+ end
26
+ end
27
+
28
+ desc "Generate a gemspec file for GitHub"
29
+ task :gemspec => :clean do
30
+ File.open("#{spec.name}.gemspec", 'w') do |f|
31
+ f.write spec.to_ruby
32
+ end
33
+ end
34
+
35
+ desc "Build the gem into the current directory"
36
+ task :gem => :gemspec do
37
+ `gem build #{spec.name}.gemspec`
38
+ end
39
+
@@ -0,0 +1 @@
1
+ puts $*
@@ -0,0 +1,15 @@
1
+ #!/usr/bin/ruby
2
+
3
+ if RUBY_PLATFORM =~ /x86_64-linux/
4
+ executable = 'wkhtmltopdf_linux_amd64'
5
+ elsif RUBY_PLATFORM =~ /linux/
6
+ executable = 'wkhtmltopdf_linux_386'
7
+ elsif RUBY_PLATFORM =~ /darwin/
8
+ executable = 'wkhtmltopdf_darwin_386'
9
+ else
10
+ raise "Invalid platform. Must be running linux or intel-based Mac OS."
11
+ end
12
+
13
+ executable = File.join(File.dirname(__FILE__), executable)
14
+ system(executable + " " + $*.join(" "))
15
+
Binary file
@@ -0,0 +1,31 @@
1
+ # -*- encoding: utf-8 -*-
2
+
3
+ Gem::Specification.new do |s|
4
+ s.name = %q{wkhtmltopdf_32_amd64}
5
+ s.version = "0.0.1"
6
+
7
+ s.required_rubygems_version = Gem::Requirement.new(">= 1.2") if s.respond_to? :required_rubygems_version=
8
+ s.authors = ["Sloan Wu"]
9
+ s.date = %q{2010-09-09}
10
+ s.description = %q{wkhtmltopdf support linux 32,64 and OSX 32}
11
+ s.email = %q{sloanwu@gmail.com}
12
+ s.executables = ["wkhtmltopdf"]
13
+ s.extra_rdoc_files = ["bin/test.rb", "bin/wkhtmltopdf", "bin/wkhtmltopdf_darwin_386", "bin/wkhtmltopdf_linux_386", "bin/wkhtmltopdf_linux_amd64"]
14
+ s.files = ["Rakefile", "bin/test.rb", "bin/wkhtmltopdf", "bin/wkhtmltopdf_darwin_386", "bin/wkhtmltopdf_linux_386", "bin/wkhtmltopdf_linux_amd64", "Manifest", "wkhtmltopdf_32_amd64.gemspec"]
15
+ s.homepage = %q{http://github.com/sloanwu/wkhtmltopdf_32_amd64.git}
16
+ s.rdoc_options = ["--line-numbers", "--inline-source", "--title", "Wkhtmltopdf_32_amd64"]
17
+ s.require_paths = ["lib"]
18
+ s.rubyforge_project = %q{wkhtmltopdf_32_amd64}
19
+ s.rubygems_version = %q{1.3.7}
20
+ s.summary = %q{wkhtmltopdf support linux 32,64 and OSX 32}
21
+
22
+ if s.respond_to? :specification_version then
23
+ current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
24
+ s.specification_version = 3
25
+
26
+ if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
27
+ else
28
+ end
29
+ else
30
+ end
31
+ end
metadata ADDED
@@ -0,0 +1,79 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: wkhtmltopdf_32_amd64
3
+ version: !ruby/object:Gem::Version
4
+ prerelease: false
5
+ segments:
6
+ - 0
7
+ - 0
8
+ - 1
9
+ version: 0.0.1
10
+ platform: ruby
11
+ authors:
12
+ - Sloan Wu
13
+ autorequire:
14
+ bindir: bin
15
+ cert_chain: []
16
+
17
+ date: 2010-09-09 00:00:00 +08:00
18
+ default_executable:
19
+ dependencies: []
20
+
21
+ description: wkhtmltopdf support linux 32,64 and OSX 32
22
+ email: sloanwu@gmail.com
23
+ executables:
24
+ - wkhtmltopdf
25
+ extensions: []
26
+
27
+ extra_rdoc_files:
28
+ - bin/test.rb
29
+ - bin/wkhtmltopdf
30
+ - bin/wkhtmltopdf_darwin_386
31
+ - bin/wkhtmltopdf_linux_386
32
+ - bin/wkhtmltopdf_linux_amd64
33
+ files:
34
+ - Rakefile
35
+ - bin/test.rb
36
+ - bin/wkhtmltopdf
37
+ - bin/wkhtmltopdf_darwin_386
38
+ - bin/wkhtmltopdf_linux_386
39
+ - bin/wkhtmltopdf_linux_amd64
40
+ - Manifest
41
+ - wkhtmltopdf_32_amd64.gemspec
42
+ has_rdoc: true
43
+ homepage: http://github.com/sloanwu/wkhtmltopdf_32_amd64.git
44
+ licenses: []
45
+
46
+ post_install_message:
47
+ rdoc_options:
48
+ - --line-numbers
49
+ - --inline-source
50
+ - --title
51
+ - Wkhtmltopdf_32_amd64
52
+ require_paths:
53
+ - lib
54
+ required_ruby_version: !ruby/object:Gem::Requirement
55
+ none: false
56
+ requirements:
57
+ - - ">="
58
+ - !ruby/object:Gem::Version
59
+ segments:
60
+ - 0
61
+ version: "0"
62
+ required_rubygems_version: !ruby/object:Gem::Requirement
63
+ none: false
64
+ requirements:
65
+ - - ">="
66
+ - !ruby/object:Gem::Version
67
+ segments:
68
+ - 1
69
+ - 2
70
+ version: "1.2"
71
+ requirements: []
72
+
73
+ rubyforge_project: wkhtmltopdf_32_amd64
74
+ rubygems_version: 1.3.7
75
+ signing_key:
76
+ specification_version: 3
77
+ summary: wkhtmltopdf support linux 32,64 and OSX 32
78
+ test_files: []
79
+