glossarist 1.0.6 → 1.0.8

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: 79d43dceae558b747d74a01b42f0ca9b5092501cdc6a529ca8d90580e7772625
4
- data.tar.gz: 8bf3da4bee3131caf9782a6e20cb4da5976f7c8cbbc0032fef9ef7b5fcc8f377
3
+ metadata.gz: 1b9c24fe8cac3a89767546bdf30adc9f927f4d1e0981e245d35bef08654d9c28
4
+ data.tar.gz: 936351fa08da1ec9b0f6528e4c31ab4e3362e305fbaed9d9030b5a946e5777b3
5
5
  SHA512:
6
- metadata.gz: 7aafe34229df42657d84f8514db455e6e475da9474b7e8bd22582ce156a1ffc874726c453c7af489bfecfa363af834a09ffe57afb8ae8b21c56f541ac139f6ee
7
- data.tar.gz: dbe30c1a6d75d28a1064b6b4d6864f9592d96817c4345eb016720f51f299de5a46df6382c98178dffaec74aac808f00dcec9e9b4dc710808816a54f04f1a5901
6
+ metadata.gz: 16f57277fea7401f46dd1293b2a08715209b449d4eb0ed6f4971b9c94b75c16cd7af1528f665239c5d55bf79945ac250f626fde7a9075807883509b5ac1fba2e
7
+ data.tar.gz: 183fb995759607328a8c881cd2f15f88390ad7f465d8b0ed0634fc8f6ad919bb25d4ee9c8ff0350343248a74b02a91bc7a10b9c0907ce591bd46e10a464f7c82
data/glossarist.gemspec CHANGED
@@ -30,7 +30,7 @@ Gem::Specification.new do |spec|
30
30
  spec.executables = spec.files.grep(%r{\Aexe/}) { |f| File.basename(f) }
31
31
  spec.require_paths = ["lib"]
32
32
 
33
- spec.add_dependency "relaton", "~>1.14.0"
33
+ spec.add_dependency "relaton", "~> 1.15.0"
34
34
  spec.add_dependency "thor"
35
35
 
36
36
  spec.add_development_dependency "pry", "~> 0.14.0"
@@ -13,8 +13,14 @@ module Glossarist
13
13
  attr_reader :registered_classes
14
14
 
15
15
  def initialize
16
+ if File.exist?("glossarist.yaml")
17
+ @config = YAML.load_file("glossarist.yaml")
18
+ end
19
+
20
+ @config ||= {}
21
+
16
22
  @registered_classes = DEFAULT_CLASSES.dup
17
- @extension_attributes = []
23
+ @extension_attributes = @config["extension_attributes"] || []
18
24
  end
19
25
 
20
26
  def class_for(name)
@@ -4,5 +4,5 @@
4
4
  #
5
5
 
6
6
  module Glossarist
7
- VERSION = "1.0.6"
7
+ VERSION = "1.0.8"
8
8
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: glossarist
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.6
4
+ version: 1.0.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ribose
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2023-05-11 00:00:00.000000000 Z
11
+ date: 2023-07-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: relaton
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: 1.14.0
19
+ version: 1.15.0
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: 1.14.0
26
+ version: 1.15.0
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: thor
29
29
  requirement: !ruby/object:Gem::Requirement