scripref 1.1.0 → 1.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 18851c425f1c4a9504ede784a43a46d80a668c9059bc000d6f866b6ce3a5ffe2
4
- data.tar.gz: e7cdaa42c34785fd755dc747247ea100ca757c9fed062cca691060c8c5288c3b
3
+ metadata.gz: 5799e584189e442c2d2f4c5dbf56ae36e26a461280ac94f656527897d0995dab
4
+ data.tar.gz: 68e9ab8f3c1422eb2cc77a1d81e66390711b616b981556af1c9bd1ddf10d82f2
5
5
  SHA512:
6
- metadata.gz: 01c5874544e15524587022c02e5e3002fa170f07889248f1937410671f94e03db239ec8fd5cfd47db8dee687c7b41b9ba56a4fb8fd12ebffb6f050b3a64eb2c3
7
- data.tar.gz: 1745d52b620f5b71e9f12627a9b797f668f160e914de8869ab05c692218b87567aa08ff4eae6b2d04e9cad36dd43c1d868d5c8ac4f4b47cfcfeb19e41eea1063
6
+ metadata.gz: db67b8fc06cea9e737b7cbc89b7f0e26fb2c9604da8dbdb7dd871a3ea38c1ce2df6d154cdd7b6c74fd3e3be42ca870c59ff63f36a9f3f320e249f387995f2936
7
+ data.tar.gz: 6f65fe7594467f62542022e560f7f873f69dc2b7d0758cc8eca048583d16c59fec351803c9256be26834a52abd6184c2f908e28fd217cea5191364691431bdb4
data/Changelog CHANGED
@@ -1,3 +1,6 @@
1
+ 1.1.1
2
+ Fix Bookname#to_s and add license to gemspec.
3
+
1
4
  1.1.0
2
5
  Adapt German abbreviations.
3
6
 
data/LICENSE CHANGED
@@ -1,4 +1,4 @@
1
- Copyright (c) 2010-2017 Jan Friedrich
1
+ Copyright (c) 2010-2018, 2020, 2024 Jan Friedrich
2
2
 
3
3
  Permission is hereby granted, free of charge, to any person obtaining a copy
4
4
  of this software and associated documentation files (the "Software"), to deal
@@ -22,7 +22,7 @@ module Scripref
22
22
  end
23
23
 
24
24
  def to_s
25
- @osis_id
25
+ @osis_id.to_s
26
26
  end
27
27
 
28
28
  alias to_str to_s
data/lib/scripref.rb CHANGED
@@ -5,7 +5,7 @@ require 'delegate'
5
5
 
6
6
  module Scripref
7
7
 
8
- VERSION = '1.1.0'
8
+ VERSION = '1.1.1'
9
9
 
10
10
  autoload :Bookname, 'scripref/bookname'
11
11
  autoload :Bookorder, 'scripref/bookorder'
data/scripref.gemspec CHANGED
@@ -7,6 +7,7 @@ Gem::Specification.new do |s|
7
7
  s.version = Scripref::VERSION
8
8
  s.authors = 'Jan Friedrich'
9
9
  s.email = 'janfri26@gmail.com'
10
+ s.license = 'MIT'
10
11
 
11
12
  s.homepage = 'https://github.com/janfri/scripref'
12
13
  s.metadata = {
data/test/test_german.rb CHANGED
@@ -32,21 +32,21 @@ class TestGerman < Test::Unit::TestCase
32
32
  assert_match book_re, 'Off'
33
33
  end
34
34
 
35
- def test_book2num
36
- assert_book_num :Gen, '1. Mose'
37
- assert_book_num :Matt, 'Matthäus'
38
- assert_book_num :Rev, 'Offenbarung'
39
- assert_book_num :Gen, '1. Mo'
40
- assert_book_num :Gen, '1.Mo'
41
- assert_book_num :Gen, '1M'
42
- assert_book_num :Matt, 'Mat'
43
- assert_book_num :Phil, 'Phil'
44
- assert_book_num :Rev, 'Off'
35
+ def test_book2osis_id
36
+ assert_osis_book_id :Gen, '1. Mose'
37
+ assert_osis_book_id :Matt, 'Matthäus'
38
+ assert_osis_book_id :Rev, 'Offenbarung'
39
+ assert_osis_book_id :Gen, '1. Mo'
40
+ assert_osis_book_id :Gen, '1.Mo'
41
+ assert_osis_book_id :Gen, '1M'
42
+ assert_osis_book_id :Matt, 'Mat'
43
+ assert_osis_book_id :Phil, 'Phil'
44
+ assert_osis_book_id :Rev, 'Off'
45
45
  end
46
46
 
47
- def assert_book_num num, str
47
+ def assert_osis_book_id id, str
48
48
  @parser ||= Scripref::Parser.new(Scripref::German)
49
- assert_equal num, @parser.parse(str).first.b1
49
+ assert_equal id, @parser.parse(str).first.b1
50
50
  end
51
51
 
52
52
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: scripref
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.1.1
5
5
  platform: ruby
6
6
  original_platform: ''
7
7
  authors:
8
8
  - Jan Friedrich
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-11-14 00:00:00.000000000 Z
11
+ date: 2024-11-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake
@@ -92,7 +92,8 @@ files:
92
92
  - test/test_pipelining.rb
93
93
  - test/test_processor.rb
94
94
  homepage: https://github.com/janfri/scripref
95
- licenses: []
95
+ licenses:
96
+ - MIT
96
97
  metadata:
97
98
  homepage_uri: https://github.com/janfri/scripref
98
99
  source_code_uri: https://github.com/janfri/scripref