cirneco 0.9.2 → 0.9.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +2 -2
- data/lib/cirneco/doi.rb +1 -0
- data/lib/cirneco/version.rb +1 -1
- data/spec/utils_spec.rb +2 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: dd3065adc1cb6911df346e860c593b574dabd85b
|
4
|
+
data.tar.gz: 06411e0894e4d5da3a5ec90bdfa0d2bd6341f0a1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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.
|
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.
|
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']
|
data/lib/cirneco/version.rb
CHANGED
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
|