source2pdf 0.2.3 → 0.2.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 25e7eadfab3ac7a559a5d171c584c232aacb06c5
4
- data.tar.gz: af3deba0d59d2dfe105c6c6ebe12778822142039
3
+ metadata.gz: 51f398238271bb24527bdef70af62832b515610d
4
+ data.tar.gz: 0ea5f49bf2981523d875c79b3540534e575f7f38
5
5
  SHA512:
6
- metadata.gz: dd6b864abdffb7e19e14b7cc41e670507c8fe14c789ad0a6b3e72f72f50bdaf0b5acd97ad182ba865a9ea5f4bea14bc0e24d009ef127bbe557baf9bc76b42d4e
7
- data.tar.gz: 8bfe48eb679bbb463d21c95dfa10bc1bbb25cd7e04b68ad71aaff57d4e9096cd4635094536af839d5e4e986ba26b278890ebf457d85c80f9b7d4b8801320d8d8
6
+ metadata.gz: 90ab748a29449c463f00d4ff9cf8a389b34b9c4627450932f2809cb5bc6164b534d62bd9db09d74c46dfd3482bb599be8d515474ae0a6790b29733f67ec5785a
7
+ data.tar.gz: 791edd66c11482902331151210b65d365646420d39d8d673033f8fd75f8abec87f87febf724c8abbfc6af1e5513143f2232b81f72089057a735f2f48c49537ab
data/CHANGELOG.md CHANGED
@@ -1,3 +1,8 @@
1
+ #### 0.2.4
2
+
3
+ - Use `require` instead of `require_relative` when possible
4
+ - Misc code cleanup
5
+
1
6
  #### 0.2.3
2
7
 
3
8
  - Update gem dependency
data/bin/source2pdf CHANGED
@@ -1,6 +1,5 @@
1
1
  #!/usr/bin/env ruby
2
2
  require_relative "../lib/source2pdf"
3
- include Source2Pdf
4
3
  if ARGV.empty?
5
4
  Source2Pdf::CLI.start(%w[usage])
6
5
  else
@@ -1,9 +1,3 @@
1
- require "thor"
2
- require "vim_printer"
3
- require "html2pdf"
4
- require "pdfs2pdf"
5
- require "agile_utils"
6
- require_relative "source2pdf"
7
1
  module Source2Pdf
8
2
  class CLI < Thor
9
3
  desc "export", "Export a given Git's project or a local project to a single pdf file"
@@ -1,6 +1,3 @@
1
- require "uri"
2
- require "agile_utils"
3
- require_relative "../source2pdf"
4
1
  module Source2Pdf
5
2
  TMP_DIR = "source2pdf_tmp"
6
3
  # rubocop:disable ClassLength, MethodLength
@@ -1,6 +1,3 @@
1
- require "tmpdir"
2
- require "git"
3
- require "code_lister"
4
1
  module Source2Pdf
5
2
  CustomError = Class.new(StandardError)
6
3
  class << self
@@ -1,3 +1,3 @@
1
1
  module Source2Pdf
2
- VERSION = "0.2.3"
2
+ VERSION = "0.2.4"
3
3
  end
data/lib/source2pdf.rb CHANGED
@@ -1,3 +1,12 @@
1
+ require "tmpdir"
2
+ require "git"
3
+ require "uri"
4
+ require "thor"
5
+ require "agile_utils"
6
+ require "code_lister"
7
+ require "vim_printer"
8
+ require "html2pdf"
9
+ require "pdfs2pdf"
1
10
  require_relative "source2pdf/version"
2
11
  require_relative "source2pdf/source2pdf"
3
12
  require_relative "source2pdf/exporter"
data/source2pdf.gemspec CHANGED
@@ -25,21 +25,19 @@ Gem::Specification.new do |spec|
25
25
  spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
26
26
  spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
27
27
  spec.require_paths = ["lib"]
28
-
29
28
  spec.add_runtime_dependency "thor", "~> 0.19.1"
30
29
  spec.add_runtime_dependency "git", "~> 1.2.8"
31
- spec.add_runtime_dependency "agile_utils", "~> 0.2.2"
32
- spec.add_runtime_dependency "code_lister", "~> 0.2.2"
33
- spec.add_runtime_dependency "vim_printer", "~> 0.2.3"
34
- spec.add_runtime_dependency "html2pdf", "~> 0.2.3"
35
- spec.add_runtime_dependency "pdfs2pdf", "~> 0.2.2"
36
-
30
+ spec.add_runtime_dependency "agile_utils", "~> 0.2.3"
31
+ spec.add_runtime_dependency "code_lister", "~> 0.2.4"
32
+ spec.add_runtime_dependency "vim_printer", "~> 0.2.5"
33
+ spec.add_runtime_dependency "html2pdf", "~> 0.2.4"
34
+ spec.add_runtime_dependency "pdfs2pdf", "~> 0.2.3"
37
35
  spec.add_development_dependency "awesome_print", "~> 1.2.0"
38
36
  spec.add_development_dependency "bundler", "~> 1.7.3"
39
37
  spec.add_development_dependency "gem-ctags", "~> 1.0.6"
40
38
  spec.add_development_dependency "guard", "~> 2.6.1"
41
39
  spec.add_development_dependency "guard-minitest", "~> 2.3.2"
42
- spec.add_development_dependency "minitest", "~> 5.4.1"
40
+ spec.add_development_dependency "minitest", "~> 5.4.2"
43
41
  spec.add_development_dependency "minitest-spec-context", "~> 0.0.3"
44
42
  spec.add_development_dependency "pry", "~> 0.10.1"
45
43
  spec.add_development_dependency "pry-theme", "~> 1.1.3"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: source2pdf
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.3
4
+ version: 0.2.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Burin Choomnuan
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-09-25 00:00:00.000000000 Z
11
+ date: 2014-10-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thor
@@ -44,70 +44,70 @@ dependencies:
44
44
  requirements:
45
45
  - - "~>"
46
46
  - !ruby/object:Gem::Version
47
- version: 0.2.2
47
+ version: 0.2.3
48
48
  type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
52
  - - "~>"
53
53
  - !ruby/object:Gem::Version
54
- version: 0.2.2
54
+ version: 0.2.3
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: code_lister
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
59
  - - "~>"
60
60
  - !ruby/object:Gem::Version
61
- version: 0.2.2
61
+ version: 0.2.4
62
62
  type: :runtime
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
66
  - - "~>"
67
67
  - !ruby/object:Gem::Version
68
- version: 0.2.2
68
+ version: 0.2.4
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: vim_printer
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
73
  - - "~>"
74
74
  - !ruby/object:Gem::Version
75
- version: 0.2.3
75
+ version: 0.2.5
76
76
  type: :runtime
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
80
  - - "~>"
81
81
  - !ruby/object:Gem::Version
82
- version: 0.2.3
82
+ version: 0.2.5
83
83
  - !ruby/object:Gem::Dependency
84
84
  name: html2pdf
85
85
  requirement: !ruby/object:Gem::Requirement
86
86
  requirements:
87
87
  - - "~>"
88
88
  - !ruby/object:Gem::Version
89
- version: 0.2.3
89
+ version: 0.2.4
90
90
  type: :runtime
91
91
  prerelease: false
92
92
  version_requirements: !ruby/object:Gem::Requirement
93
93
  requirements:
94
94
  - - "~>"
95
95
  - !ruby/object:Gem::Version
96
- version: 0.2.3
96
+ version: 0.2.4
97
97
  - !ruby/object:Gem::Dependency
98
98
  name: pdfs2pdf
99
99
  requirement: !ruby/object:Gem::Requirement
100
100
  requirements:
101
101
  - - "~>"
102
102
  - !ruby/object:Gem::Version
103
- version: 0.2.2
103
+ version: 0.2.3
104
104
  type: :runtime
105
105
  prerelease: false
106
106
  version_requirements: !ruby/object:Gem::Requirement
107
107
  requirements:
108
108
  - - "~>"
109
109
  - !ruby/object:Gem::Version
110
- version: 0.2.2
110
+ version: 0.2.3
111
111
  - !ruby/object:Gem::Dependency
112
112
  name: awesome_print
113
113
  requirement: !ruby/object:Gem::Requirement
@@ -184,14 +184,14 @@ dependencies:
184
184
  requirements:
185
185
  - - "~>"
186
186
  - !ruby/object:Gem::Version
187
- version: 5.4.1
187
+ version: 5.4.2
188
188
  type: :development
189
189
  prerelease: false
190
190
  version_requirements: !ruby/object:Gem::Requirement
191
191
  requirements:
192
192
  - - "~>"
193
193
  - !ruby/object:Gem::Version
194
- version: 5.4.1
194
+ version: 5.4.2
195
195
  - !ruby/object:Gem::Dependency
196
196
  name: minitest-spec-context
197
197
  requirement: !ruby/object:Gem::Requirement