fsp_harvester 0.1.19 → 0.1.20

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: 548e58dcb21d312f32780345f954f523e253c8fffaa4fbe9598032c3081adb1a
4
- data.tar.gz: 7bea92aa5809b6651acb76aa2ea470c069e480783eb9d1acfd407a8a5fbd261c
3
+ metadata.gz: 72df31c63580f2b47676bb719c860cd26cab4290346f20bd481f67d18b29f765
4
+ data.tar.gz: 477bfe524de0a1822790eac1caefb642a5e881734e8f1bc3c8f46c1a91b3e1e0
5
5
  SHA512:
6
- metadata.gz: 5da8243a22e50244b30f5672b34e5d2f484a6dbf4125fb80a5c93cf1580dd561d6fb4c9354dcce44588f8223d5ec9eb7a8a70bd4904a67b0b59c34196194db0b
7
- data.tar.gz: dfdc907ba268b0e509256000a0bd36adbcafe70a1490066acc91deef0255bc13cfe74dad3ddc31352ab6d6eff80fde6a8c3669924c9cb58febd8684a902c06a7
6
+ metadata.gz: 328b1bf4531034b38f325ec7c2dfb682007ed8ef5fb4f9ea72a4776ffdb49bbdde280bd959f9adddcfb93f6a065b77af68ab6d5222942bc16b5d50901f771770
7
+ data.tar.gz: d5bc1e2e88be865c17aa12bca0a4308f3bc8e476bc0f49f40ca7a48a4e92142d8613c8e12823d9bb5e2735ea4d4cc492d6740481fdbebd513cb4f0be0c8114c8
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- fsp_harvester (0.1.19)
4
+ fsp_harvester (0.1.20)
5
5
  json (~> 2.0)
6
6
  linkeddata (~> 3.2)
7
7
  linkheaders-processor (~> 0.1.18)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module FspHarvester
4
- VERSION = "0.1.19"
4
+ VERSION = "0.1.20"
5
5
  end
data/lib/harvester.rb CHANGED
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- #require_relative 'fsp_harvester/version'
3
+ require_relative './fsp_harvester/version'
4
4
  require 'json/ld'
5
5
  require 'json/ld/preloaded'
6
6
  require 'json'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fsp_harvester
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.19
4
+ version: 0.1.20
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mark Wilkinson
@@ -180,7 +180,6 @@ files:
180
180
  - Rakefile
181
181
  - bin/console
182
182
  - bin/setup
183
- - example_test.rb
184
183
  - launch.json
185
184
  - lib/constants.rb
186
185
  - lib/external_tools.rb
data/example_test.rb DELETED
@@ -1,24 +0,0 @@
1
- # frozen string literal = false
2
- require 'cgi'
3
- require 'json'
4
- require 'uri'
5
- require 'rdf'
6
- require 'rdf/turtle'
7
- require 'sparql'
8
- require 'fsp_harvester'
9
-
10
- def test_guid(guid:)
11
- _links, metadata = FspHarvester::Utils.resolve_guid(guid: guid) # [LinkHeader::Link], FspHarvester::MetadataObject
12
-
13
- metadata.comments << if metadata.guidtype == 'unknown'
14
- "FAILURE: The identifier #{guid} did not match any known identification system.\n"
15
- else
16
- "SUCCESS: The identifier #{guid} matched known GUID type system #{metadata.guidtype}.\n"
17
- end
18
- metadata.comments
19
- end
20
-
21
- guid = ARGV[0] || 'https://s11.no/2022/a2a-fair-metrics/07-http-describedby-citeas-linkset-json/'
22
- response = test_guid(guid: guid)
23
-
24
- puts response