traject_plus 1.2.0 → 1.2.1

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: d0bc939203fafce05e06266e0097c402acb732d565fcb5f0bc22f28a47c30a40
4
- data.tar.gz: 3eff7af52a93c94ea62c351bfd37cbefbd8389a62cfbc345c591739d39d1b94b
3
+ metadata.gz: 0b27a18435a3547cc2d7e8c89b881b19371312e3abc0670a7648eb25a0eec3ab
4
+ data.tar.gz: 34a5e4f57e063c19687dfdcb3e5be6fda683e040ce0401450ddd7453cb940522
5
5
  SHA512:
6
- metadata.gz: a2bf12720706f3f456837b4cbcc7d0d958ae7cdb0e072671d32a5e947b17b2947c37a74b9aee7201d64c6208d9258c8d586207a2c7eb547bfe2f46e783950ebb
7
- data.tar.gz: 924dbc06a905607d9da40ab5bb92f65d16edcd217f835b3e8630b1390c9c9420ac3ac92e7134e1fb820b7a3d199adda6a9a1dc474e033ff38586ddacb4297596
6
+ metadata.gz: e31021d1869a7d98f9b4f2f834eb77bcd7f8347d1b492cffd46f2817ea143492b7f3d057047f070a6e7ee3fde27f2b7c8ef5f8b15217b24c3eb10ff97a663829
7
+ data.tar.gz: 638cefd62dd2bca34952a37ab307a2209a6c5e621c08258647fe6f285ced151084d41af5a3901bfe78284bf0e4ab4136270c3ba16b73ce57f4e4f0aa474aa192
@@ -6,9 +6,7 @@ module TrajectPlus
6
6
  module FGDC
7
7
  NS = { fgdc: 'http://www.fgdc.gov/metadata/fgdc-std-001-1998.dtd' }.freeze
8
8
 
9
- def self.extended(mod)
10
- mod.extended Traject::Macros::NokogiriMacros
11
- end
9
+ include Traject::Macros::NokogiriMacros
12
10
 
13
11
  # @param xpath [String] the xpath query expression
14
12
  def extract_fgdc(xpath)
@@ -9,13 +9,11 @@ module TrajectPlus
9
9
  dc: 'http://purl.org/dc/elements/1.1/',
10
10
  xlink: 'http://www.w3.org/1999/xlink' }.freeze
11
11
 
12
- def self.extended(mod)
13
- mod.extended Traject::Macros::NokogiriMacros
14
- end
12
+ include Traject::Macros::NokogiriMacros
15
13
 
16
14
  # @param xpath [String] the xpath query expression
17
15
  def extract_mods(xpath)
18
- extract_xpath(xpath, NS)
16
+ extract_xpath(xpath, ns: NS)
19
17
  end
20
18
  end
21
19
  end
@@ -5,9 +5,7 @@ module TrajectPlus
5
5
  module Tei
6
6
  NS = { tei: 'http://www.tei-c.org/ns/1.0' }.freeze
7
7
 
8
- def self.extended(mod)
9
- mod.extended Traject::Macros::NokogiriMacros
10
- end
8
+ include Traject::Macros::NokogiriMacros
11
9
 
12
10
  # @param xpath [String] the xpath query expression
13
11
  def extract_tei(xpath)
@@ -1,3 +1,3 @@
1
1
  module TrajectPlus
2
- VERSION = "1.2.0".freeze
2
+ VERSION = '1.2.1'.freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: traject_plus
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.0
4
+ version: 1.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chris Beer
@@ -11,7 +11,7 @@ authors:
11
11
  autorequire:
12
12
  bindir: exe
13
13
  cert_chain: []
14
- date: 2019-09-19 00:00:00.000000000 Z
14
+ date: 2019-09-25 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: activesupport
@@ -178,7 +178,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
178
178
  - !ruby/object:Gem::Version
179
179
  version: '0'
180
180
  requirements: []
181
- rubygems_version: 3.0.3
181
+ rubygems_version: 3.0.1
182
182
  signing_key:
183
183
  specification_version: 4
184
184
  summary: Extensions to Traject for non-MARC formats