cirneco 0.9.2 → 0.9.3

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 89239807e74798c6a3ca673c4cbced208ea25667
4
- data.tar.gz: 3900aa91452714e72d0e7a86968092225b80f534
3
+ metadata.gz: dd3065adc1cb6911df346e860c593b574dabd85b
4
+ data.tar.gz: 06411e0894e4d5da3a5ec90bdfa0d2bd6341f0a1
5
5
  SHA512:
6
- metadata.gz: f8177522d6ffeacbb9872f20ce2f1d5dfd198c2176c7689cf2cf05073df7f0435379bc4d2260b76e29b626dbfd760931dd694fb459bedf39ad600205eb29d3a5
7
- data.tar.gz: 95415e4c5353333015fc498435bd360b6f9ec56b639cb1f06664a0a63d6ae3fac0dfacbab6c539895ffee6b6051081466736ccbc5d331fdc722ae1357104a27c
6
+ metadata.gz: b5c3cb04cddf16c67508882eee5a20d2f49b092d38aa5aebddf855c8df6336d1b35533b7cb3cda01b0e1a9ed53b015ecda00cb97f08b611768cee912e2fa838f
7
+ data.tar.gz: c89fec1028b04d7c0833be8ba3ae47cfc9b172c4681cf5dfd592c7924c598e2fc5994ce1f9dc97661819b8d7584ddb20484073c7102dcae98c4a39d6288ab3aa
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- cirneco (0.9.2)
4
+ cirneco (0.9.3)
5
5
  activesupport (~> 4.2, >= 4.2.5)
6
6
  base32-crockford-checksum (~> 0.2.2)
7
7
  bergamasco (~> 0.3)
@@ -122,4 +122,4 @@ DEPENDENCIES
122
122
  webmock (~> 1.22, >= 1.22.3)
123
123
 
124
124
  BUNDLED WITH
125
- 1.12.5
125
+ 1.13.6
data/lib/cirneco/doi.rb CHANGED
@@ -158,6 +158,7 @@ module Cirneco
158
158
  method_option :sitepath, :default => ENV['SITE_SITEPATH']
159
159
  method_option :authorpath, :default => ENV['SITE_AUTHORPATH']
160
160
  method_option :referencespath, :default => ENV['SITE_REFERENCESPATH']
161
+ method_option :bibliography, :default => ENV['SITE_REFERENCESPATH']
161
162
  method_option :source_dir, :default => ENV['SOURCE_DIR']
162
163
  method_option :build_dir, :default => ENV['BUILD_DIR']
163
164
  method_option :posts_dir, :default => ENV['POSTS_DIR']
@@ -1,3 +1,3 @@
1
1
  module Cirneco
2
- VERSION = "0.9.2"
2
+ VERSION = "0.9.3"
3
3
  end
data/spec/utils_spec.rb CHANGED
@@ -5,6 +5,7 @@ describe Cirneco::DataCenter, vcr: true, :order => :defined do
5
5
  let(:username) { ENV['MDS_USERNAME'] }
6
6
  let(:password) { ENV['MDS_PASSWORD'] }
7
7
  let(:source_dir) { "/spec/fixtures/" }
8
+ let(:bibliography) { "spec/fixtures/references.yaml" }
8
9
  let(:options) { { username: username,
9
10
  password: password,
10
11
  sandbox: true,
@@ -206,7 +207,7 @@ describe Cirneco::DataCenter, vcr: true, :order => :defined do
206
207
 
207
208
  it 'should generate jats xml' do
208
209
  filepath = fixture_path + 'cool-dois/index.html'
209
- expect(subject.generate_jats_for_url(filepath, options)).to eq("JATS XML written for cool-dois.html.md")
210
+ expect(subject.generate_jats_for_url(filepath, options.merge(bibliography: bibliography))).to eq("JATS XML written for cool-dois.html.md")
210
211
  end
211
212
 
212
213
  it 'should generate jats for all urls' do
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cirneco
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.2
4
+ version: 0.9.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Martin Fenner