bergamasco 0.3.7 → 0.3.8

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: b2d0f9240402129c78c23144ac147a6a53ae5999
4
- data.tar.gz: e1bf0d0595088ebbab265a14132ae65620b5b629
3
+ metadata.gz: 945bd3854bba6cc9504370a73c52f1ea8cb3bd1f
4
+ data.tar.gz: 234740b428bcfe53759ef9f9d536dd7e9bed4132
5
5
  SHA512:
6
- metadata.gz: 12b3e327c61272c94dbd66fd16d1cfe34dd69dde73af0088bff6544cbc810b0b956e6df6222c6554d9db93c88a1157ebb0b6f4c0ae212351a4a1f48084a15542
7
- data.tar.gz: b8bd3d49e48e8a1bea266de8f7f21e275425e4a7a628f93694d210a3469934c4b539d6932d63c6be4871742775defe7a0cee8ff2cef1edf7c94d6838b6c034a3
6
+ metadata.gz: ebc3607eca3a2f04baf81390dff3183c35c668dbe8bbd06a8b75ed4ad17c1f7ec26fd338da6acc88f26e9053e791552d961187ce4fb0738a20ce65a3c3df6d1d
7
+ data.tar.gz: 77e10d2d3ea74e9b79cebc09eb1ac71732eb072f504c8c4f3061cbde437585c37e01f08b1799eeab17a829c2cfeb2f09104ff67d007e2cca7c601c7981702649
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- bergamasco (0.3.7)
4
+ bergamasco (0.3.8)
5
5
  activesupport (~> 4.2, >= 4.2.5)
6
6
  addressable (~> 2.3.8)
7
7
  builder (~> 3.2, >= 3.2.2)
@@ -74,4 +74,4 @@ DEPENDENCIES
74
74
  simplecov
75
75
 
76
76
  BUNDLED WITH
77
- 1.13.6
77
+ 1.12.5
@@ -34,9 +34,11 @@ module Bergamasco
34
34
  end
35
35
 
36
36
  def self.convert_to_jats(text, options={})
37
- options = options.merge(template: "templates/default.jats",
38
- to: "lib/bergamasco/jats.lua",
39
- csl: "lib/bergamasco/jats.csl")
37
+ template = File.expand_path("../../../templates/default.jats", __FILE__)
38
+ to = File.expand_path("../jats.lua", __FILE__)
39
+ csl = File.expand_path("../jats.csl", __FILE__)
40
+
41
+ options = options.merge(template: template, to: to, csl: csl)
40
42
  options = options.merge(metadata: options[:metadata]) if options[:metadata].present?
41
43
 
42
44
  convert(text, options)
@@ -1,3 +1,3 @@
1
1
  module Bergamasco
2
- VERSION = "0.3.7"
2
+ VERSION = "0.3.8"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bergamasco
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.7
4
+ version: 0.3.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Martin Fenner