medieval_latina 1.0.4 → 1.0.9
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 +4 -4
- data/.github/workflows/tests.yml +46 -0
- data/Gemfile.lock +1 -1
- data/lib/medieval_latina.rb +2 -2
- data/lib/medieval_latina/dictionary.rb +8 -1
- data/lib/medieval_latina/version.rb +1 -1
- data/medieval_latina.gemspec +1 -1
- metadata +7 -7
- data/.travis.yml +0 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f8c6d52f5556df5763cfd4057b281a75d332600d0296a989e1103657f7e4c023
|
4
|
+
data.tar.gz: 2afe685a09f176002e003f694b72026b99ed43a45922f65b5e26ea26a998de90
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c3265632997c23be75ad13229902b6f837489849960f0e0ae3ddd65c8cf177bfc2f036a3c42d4554c208725cfafbd1f93354e7d2bf79121c2c89a5f2190c4602
|
7
|
+
data.tar.gz: a5a2effe3a04840e3415aad3215aea6817b82512333611f5d4a42870009149ce2ae1082099e2d3ec5e3c0a76e804dbe3e3fbeca898ef7e202a5eb020c6d528f2
|
@@ -0,0 +1,46 @@
|
|
1
|
+
name: Tests
|
2
|
+
|
3
|
+
on:
|
4
|
+
pull_request:
|
5
|
+
branches:
|
6
|
+
- master
|
7
|
+
push:
|
8
|
+
branches:
|
9
|
+
- master
|
10
|
+
|
11
|
+
jobs:
|
12
|
+
unit_tests:
|
13
|
+
name: Unit Tests
|
14
|
+
if: "contains(github.event.commits[0].message, '[ci skip]') == false"
|
15
|
+
strategy:
|
16
|
+
fail-fast: false
|
17
|
+
matrix:
|
18
|
+
os:
|
19
|
+
- macos
|
20
|
+
- ubuntu
|
21
|
+
ruby:
|
22
|
+
- 2.4
|
23
|
+
- 2.5
|
24
|
+
- 2.6
|
25
|
+
- 2.7
|
26
|
+
allow_failures:
|
27
|
+
- false
|
28
|
+
include:
|
29
|
+
- os: ubuntu
|
30
|
+
ruby: ruby-head
|
31
|
+
allow_failures: true
|
32
|
+
env:
|
33
|
+
BUNDLE_GEMFILE: "${{ matrix.gemfile }}"
|
34
|
+
ALLOW_FAILURES: "${{ matrix.allow_failures }}"
|
35
|
+
runs-on: ${{ matrix.os }}-latest
|
36
|
+
continue-on-error: ${{ endsWith(matrix.ruby, 'head') || matrix.ruby == 'debug' }}
|
37
|
+
steps:
|
38
|
+
- name: Checkout
|
39
|
+
uses: actions/checkout@v2
|
40
|
+
- name: Setup Ruby
|
41
|
+
uses: ruby/setup-ruby@v1
|
42
|
+
with:
|
43
|
+
ruby-version: ${{ matrix.ruby }}
|
44
|
+
bundler-cache: true
|
45
|
+
- name: Test
|
46
|
+
run: bundle exec rake spec || $ALLOW_FAILURES
|
data/Gemfile.lock
CHANGED
data/lib/medieval_latina.rb
CHANGED
@@ -37,10 +37,10 @@ class MedievalLatina
|
|
37
37
|
j: ->(rest) { "y" },
|
38
38
|
x: ->(rest) { "ks" }
|
39
39
|
}
|
40
|
-
CONSONENT_TEAMS = {qu: "kw"}
|
40
|
+
CONSONENT_TEAMS = {gn: "n-y", qu: "kw"}
|
41
41
|
SOFT_C = ["e", "i", "ae", "oe"]
|
42
42
|
SOFT_G = SOFT_C
|
43
|
-
VOWEL_TEAMS = {ae: "ay", oe: "ay", au: "
|
43
|
+
VOWEL_TEAMS = {ae: "ay", oe: "ay", au: "ou"}
|
44
44
|
VOWELS = {a: "ah", e: "ay", i: "ee", o: "oh", u: "oo"}
|
45
45
|
|
46
46
|
Result = Struct.new(:substring, :increment_by)
|
@@ -1,6 +1,13 @@
|
|
1
1
|
class MedievalLatina
|
2
2
|
DICTIONARY = {
|
3
|
+
"alma" => "almuh",
|
4
|
+
"ego" => "ay-goh",
|
5
|
+
"et" => "ate",
|
6
|
+
"ex" => "ex",
|
3
7
|
"duo" => "doo-oh",
|
4
|
-
"
|
8
|
+
"mater" => "mah-tare",
|
9
|
+
"octo" => "awk-toh",
|
10
|
+
"optime" => "op-tee-may",
|
11
|
+
"quo" => "quo"
|
5
12
|
}.freeze
|
6
13
|
end
|
data/medieval_latina.gemspec
CHANGED
@@ -15,7 +15,7 @@ Gem::Specification.new do |spec|
|
|
15
15
|
spec.description = description
|
16
16
|
spec.homepage = "https://github.com/jaysonvirissimo/medieval_latina"
|
17
17
|
spec.license = "MIT"
|
18
|
-
spec.required_ruby_version = Gem::Requirement.new(">= 2.
|
18
|
+
spec.required_ruby_version = Gem::Requirement.new(">= 2.4.0")
|
19
19
|
spec.metadata["allowed_push_host"] = "https://rubygems.org/"
|
20
20
|
spec.metadata["homepage_uri"] = spec.homepage
|
21
21
|
spec.metadata["source_code_uri"] = github_uri
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: medieval_latina
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jayson Virissimo
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2021-02-21 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: |
|
14
14
|
There are good text-to-speech engines for English and classical Latin, but none for medieval Latin.
|
@@ -19,9 +19,9 @@ executables: []
|
|
19
19
|
extensions: []
|
20
20
|
extra_rdoc_files: []
|
21
21
|
files:
|
22
|
+
- ".github/workflows/tests.yml"
|
22
23
|
- ".gitignore"
|
23
24
|
- ".rspec"
|
24
|
-
- ".travis.yml"
|
25
25
|
- Gemfile
|
26
26
|
- Gemfile.lock
|
27
27
|
- LICENSE.txt
|
@@ -41,7 +41,7 @@ metadata:
|
|
41
41
|
homepage_uri: https://github.com/jaysonvirissimo/medieval_latina
|
42
42
|
source_code_uri: https://github.com/jaysonvirissimo/medieval_latina
|
43
43
|
changelog_uri: https://github.com/jaysonvirissimo/medieval_latina
|
44
|
-
post_install_message:
|
44
|
+
post_install_message:
|
45
45
|
rdoc_options: []
|
46
46
|
require_paths:
|
47
47
|
- lib
|
@@ -49,7 +49,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
49
49
|
requirements:
|
50
50
|
- - ">="
|
51
51
|
- !ruby/object:Gem::Version
|
52
|
-
version: 2.
|
52
|
+
version: 2.4.0
|
53
53
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
54
54
|
requirements:
|
55
55
|
- - ">="
|
@@ -57,7 +57,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
57
57
|
version: '0'
|
58
58
|
requirements: []
|
59
59
|
rubygems_version: 3.0.3
|
60
|
-
signing_key:
|
60
|
+
signing_key:
|
61
61
|
specification_version: 4
|
62
62
|
summary: Transform medieval Latin text into phonetic English
|
63
63
|
test_files: []
|