documenter 0.0.0 → 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
data/.document CHANGED
@@ -1,5 +1,6 @@
1
1
  README.rdoc
2
- lib/**/*.rb
2
+ lib/**/*.*
3
+ lib/**/**/*.*
3
4
  bin/*
4
5
  features/**/*.feature
5
6
  LICENSE
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.0
1
+ 0.0.1
@@ -0,0 +1,61 @@
1
+ # Generated by jeweler
2
+ # DO NOT EDIT THIS FILE DIRECTLY
3
+ # Instead, edit Jeweler::Tasks in rakefile, and run the gemspec command
4
+ # -*- encoding: utf-8 -*-
5
+
6
+ Gem::Specification.new do |s|
7
+ s.name = %q{documenter}
8
+ s.version = "0.0.1"
9
+
10
+ s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
+ s.authors = ["A N"]
12
+ s.date = %q{2009-11-30}
13
+ s.description = %q{This gem uses OpenOffice and pdftk to convert, split, join, fill and copy files. It may be usefull if you have many documents to work with. It is not realy fast solution and it depend on istalled software}
14
+ s.email = %q{goremika@gmail.com}
15
+ s.extra_rdoc_files = [
16
+ "LICENSE",
17
+ "README.rdoc"
18
+ ]
19
+ s.files = [
20
+ ".document",
21
+ ".gitignore",
22
+ "LICENSE",
23
+ "README.rdoc",
24
+ "Rakefile",
25
+ "VERSION",
26
+ "documenter.gemspec",
27
+ "lib/documenter.rb",
28
+ "lib/documenter/pdf.rb",
29
+ "test/helper.rb",
30
+ "test/test_documenter.rb"
31
+ ]
32
+ s.homepage = %q{http://github.com/goremika/documenter}
33
+ s.rdoc_options = ["--charset=UTF-8"]
34
+ s.require_paths = ["lib"]
35
+ s.rubygems_version = %q{1.3.5}
36
+ s.summary = %q{api to some tools to work with documetns}
37
+ s.test_files = [
38
+ "test/helper.rb",
39
+ "test/test_documenter.rb"
40
+ ]
41
+
42
+ if s.respond_to? :specification_version then
43
+ current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
44
+ s.specification_version = 3
45
+
46
+ if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
47
+ s.add_development_dependency(%q<thoughtbot-shoulda>, [">= 0"])
48
+ s.add_runtime_dependency(%q<rubyzip>, [">= 0"])
49
+ s.add_runtime_dependency(%q<hpricot>, [">= 0.8.2"])
50
+ else
51
+ s.add_dependency(%q<thoughtbot-shoulda>, [">= 0"])
52
+ s.add_dependency(%q<rubyzip>, [">= 0"])
53
+ s.add_dependency(%q<hpricot>, [">= 0.8.2"])
54
+ end
55
+ else
56
+ s.add_dependency(%q<thoughtbot-shoulda>, [">= 0"])
57
+ s.add_dependency(%q<rubyzip>, [">= 0"])
58
+ s.add_dependency(%q<hpricot>, [">= 0.8.2"])
59
+ end
60
+ end
61
+
@@ -1,3 +1,4 @@
1
1
  module Documenter
2
2
  require 'documenter/pdf'
3
3
  end
4
+
@@ -0,0 +1,16 @@
1
+ class Pdf
2
+
3
+ def self.is_windows?
4
+ processor, platform, *rest = RUBY_PLATFORM.split("-")
5
+ platform == 'mswin32'
6
+ end
7
+
8
+
9
+ def self.join array_of_pdfs, output, extras = 'compress'
10
+ if is_windows?
11
+ system("pdftk/pdftk.exe #{array_of_pdfs*' '} cat output #{output} #{extras} dont_ask ")
12
+ else
13
+ raise "Currently only windows supported"
14
+ end
15
+ end
16
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: documenter
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.0
4
+ version: 0.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - A N
@@ -58,7 +58,9 @@ files:
58
58
  - README.rdoc
59
59
  - Rakefile
60
60
  - VERSION
61
+ - documenter.gemspec
61
62
  - lib/documenter.rb
63
+ - lib/documenter/pdf.rb
62
64
  - test/helper.rb
63
65
  - test/test_documenter.rb
64
66
  has_rdoc: true