bolognese 0.9.70 → 0.9.71

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
  SHA256:
3
- metadata.gz: fa532a527dc2408faeaec9458938092aab74a2a3997e264ec50afb6a767dd8ba
4
- data.tar.gz: b3aa0fbb08121d749a8673fc81ed2c384e592056b7cddf9a0ca34d8cfb0b3388
3
+ metadata.gz: 27fa08f0cba20d70f70c8709c515c73429e654e312e4ce423b14b0945f99e752
4
+ data.tar.gz: 2612b3851f969a1c9601ed0829c9d15ca323936ce1893165428166373f34c9e5
5
5
  SHA512:
6
- metadata.gz: f1af79419bab8c30d6b5deb494a2a79435b5c202fac74595f69e2a74e156de56e9d8ece89d47aa1c3edcf598918555915ca8d55cbae298ab3d527a7f7611c187
7
- data.tar.gz: 2e390863f9735f84326d9546e459f16a02079b37308a107143db3dd24ba6503f65fa0167bd1905365104875ec1ef019a60d57d668ba2a4b9742f5fd71cb2ba72
6
+ metadata.gz: 19d1353aa529869aebeb96243334ce073a9a81895aed9a14b5293b12f48f30a5583a9624f9f450c6e59a521430e0ca6e60413f43567a36d2d46f1614395532f3
7
+ data.tar.gz: 9388a935ad023229179832f289c2067e975af6b8d653ec5b45c1a5e400c5a11adbae01484bc4d109fc40830542ece84c22268db869f1da24386262f10b2ef590
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- bolognese (0.9.70)
4
+ bolognese (0.9.71)
5
5
  activesupport (>= 4.2.5, < 6)
6
6
  benchmark_methods (~> 0.7)
7
7
  bibtex-ruby (~> 4.1)
@@ -74,7 +74,7 @@ module Bolognese
74
74
  :is_documented_by, :documents, :is_compiled_by, :compiles,
75
75
  :is_variant_form_of, :is_original_form_of, :is_reviewed_by, :reviews,
76
76
  :is_derived_from, :is_source_of, :format, :funding, :type, :bibtex_type,
77
- :citeproc_type, :ris_type, :style, :locale, :state, :is_active
77
+ :citeproc_type, :ris_type, :style, :locale, :state
78
78
 
79
79
  attr_reader :id, :from, :raw, :metadata, :doc, :provider,
80
80
  :page_start, :page_end, :should_passthru, :errors,
@@ -101,7 +101,6 @@ module Bolognese
101
101
  else
102
102
  hsh = { "url" => options[:url],
103
103
  "state" => options[:state],
104
- "is_active" => options[:is_active],
105
104
  "date_registered" => options[:date_registered],
106
105
  "date_updated" => options[:date_updated],
107
106
  "provider_id" => options[:provider_id],
@@ -126,7 +125,6 @@ module Bolognese
126
125
 
127
126
  @url = hsh.to_h["url"].presence
128
127
  @state = hsh.to_h["state"].presence
129
- @is_active = hsh.to_h["is_active"].presence
130
128
  @date_registered = hsh.to_h["date_registered"].presence
131
129
  @date_updated = hsh.to_h["date_updated"].presence
132
130
  @provider_id = hsh.to_h["provider_id"].presence
@@ -191,10 +189,6 @@ module Bolognese
191
189
  @state ||= metadata.fetch("state", nil)
192
190
  end
193
191
 
194
- def is_active
195
- @is_active ||= metadata.fetch("is_active", nil)
196
- end
197
-
198
192
  def title
199
193
  @title ||= metadata.fetch("title", nil)
200
194
  end
@@ -35,7 +35,6 @@ module Bolognese
35
35
  { "string" => string,
36
36
  "url" => attributes.fetch("url", nil),
37
37
  "state" => attributes.fetch("state", nil),
38
- "is_active" => attributes.fetch("is-active", nil),
39
38
  "date_registered" => attributes.fetch("registered", nil),
40
39
  "date_updated" => attributes.fetch("updated", nil),
41
40
  "provider_id" => provider_id,
@@ -1,3 +1,3 @@
1
1
  module Bolognese
2
- VERSION = "0.9.70"
2
+ VERSION = "0.9.71"
3
3
  end
@@ -47,8 +47,7 @@ module Bolognese
47
47
  "provider_id" => provider_id,
48
48
  "client_id" => client_id,
49
49
  "provider" => provider,
50
- "state" => state,
51
- "is_active" => is_active
50
+ "state" => state
52
51
  }.compact
53
52
  JSON.pretty_generate hsh.presence
54
53
  end
@@ -340,7 +340,6 @@ describe Bolognese::Metadata, vcr: true do
340
340
  expect(subject.provider).to eq("DataCite")
341
341
  expect(subject.schema_version).to eq("http://datacite.org/schema/kernel-4")
342
342
  expect(subject.state).to eq("inactive")
343
- expect(subject.is_active).to be true
344
343
  end
345
344
 
346
345
  it "BlogPosting in test system" do
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bolognese
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.70
4
+ version: 0.9.71
5
5
  platform: ruby
6
6
  authors:
7
7
  - Martin Fenner
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-01-12 00:00:00.000000000 Z
11
+ date: 2018-01-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: maremma