pandocomatic 0.1.3.1 → 0.1.3.2

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: ef1a28605fb5fe7608dbffc13e11706bae28dabc
4
- data.tar.gz: 261bfea8ec9826ecd267af1dfa75715d9bf1fdc3
3
+ metadata.gz: de569bfe6daaf533904fc61b1da91b5a30e32959
4
+ data.tar.gz: afa69616175d11b142c4c48beafe90e7957e7cbf
5
5
  SHA512:
6
- metadata.gz: ad8cecdcca61b045df403448eb38b4e81a7e826a53063f559cab41585bd572f2eaf045179e43b641c9a66650c8c1db0ce1f744b2e1c19821453ffc4719ede159
7
- data.tar.gz: 28a042eb259571fc1803408375adf98dc400623813c64a8b9aa7c0081edaeada30a5b6b199751340062974d065af7f3bf312e08c972ae436dbfbc29f423a99af
6
+ metadata.gz: f586c040a3942b94a60cceb03817cc1440549c0388c5142b8ab9106b459b373e584078498779c53bdbb8ea0b421c4554ac58bc16491eefc8acc27a61aeb7694a
7
+ data.tar.gz: ac80ad63f6510a1a8dbf1d13658e2551528f7b9f39ee1e1d221e04d7e3339faa7457dfcb8ad9dafeb4b620472df1d99f57f63d0f4a800a86caea8bbae1317f9e
@@ -188,22 +188,26 @@ module Pandocomatic
188
188
  end
189
189
 
190
190
  def update_path(path, src_dir, check_executable = false)
191
- updated_path = path
192
- if path.start_with? './'
193
- # refers to a local (to file) dir
194
- updated_path = File.join src_dir, path
195
- else
196
- if check_executable
197
- updated_path = Configuration.which path
198
- end
191
+ updated_path = path
192
+ if path.start_with? './'
193
+ # refers to a local (to file) dir
194
+ updated_path = File.join src_dir, path
195
+ else
196
+ if path.start_with? '/'
197
+ updated_path = path
198
+ else
199
+ if check_executable
200
+ updated_path = Configuration.which path
201
+ end
199
202
 
200
- if not updated_path.start_with? '/' then
201
- # refers to data-dir
202
- updated_path = File.join @data_dir, updated_path
203
+ if updated_path.nil? or not updated_path.start_with? '/' then
204
+ # refers to data-dir
205
+ updated_path = File.join @data_dir, path
206
+ end
207
+ end
203
208
  end
204
- end
205
209
 
206
- updated_path
210
+ updated_path
207
211
  end
208
212
 
209
213
  private
@@ -151,6 +151,7 @@ module Pandocomatic
151
151
  # No data-dir option given: try to find the default one from pandoc
152
152
  begin
153
153
  data_dir = Paru::Pandoc.info()[:data_dir]
154
+ puts Paru::Pandoc.info()
154
155
  rescue Paru::Error => e
155
156
  # If pandoc cannot be run, continuing probably does not work out
156
157
  # anyway, so raise pandoc error
@@ -173,7 +174,9 @@ module Pandocomatic
173
174
 
174
175
  def self.configure(options)
175
176
  data_dir = determine_data_dir options
177
+ puts data_dir
176
178
  config_file = determine_config_file options, data_dir
179
+ puts config_file
177
180
  Configuration.new options, data_dir, config_file
178
181
  end
179
182
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pandocomatic
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3.1
4
+ version: 0.1.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Huub de Beer
@@ -16,20 +16,20 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: 0.2.4
19
+ version: 0.2.4.1
20
20
  - - ">="
21
21
  - !ruby/object:Gem::Version
22
- version: 0.2.4
22
+ version: 0.2.4.1
23
23
  type: :runtime
24
24
  prerelease: false
25
25
  version_requirements: !ruby/object:Gem::Requirement
26
26
  requirements:
27
27
  - - "~>"
28
28
  - !ruby/object:Gem::Version
29
- version: 0.2.4
29
+ version: 0.2.4.1
30
30
  - - ">="
31
31
  - !ruby/object:Gem::Version
32
- version: 0.2.4
32
+ version: 0.2.4.1
33
33
  - !ruby/object:Gem::Dependency
34
34
  name: trollop
35
35
  requirement: !ruby/object:Gem::Requirement