medieval_latina 1.0.8 → 1.0.12

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: 45b735835a2c1345bf1da784562e746892a2d74776273062bdac745209f28842
4
- data.tar.gz: d224ef50c68690706b1fa231139a9dd79601538920dcbf8301dc99230100e67a
3
+ metadata.gz: 3bc2011a5aa5b62ac66cce92d10e798b3f884e91f85c282ad052ca02766d9742
4
+ data.tar.gz: 566f84e01fc7d973a2915ca178947d07f3d9400f36ecb63e5b124461328c9394
5
5
  SHA512:
6
- metadata.gz: 11057b8b7c6065a3cbe2f5512bc63730a19b0aaab210a2180bee3537a3c581f913b67db65cb86f4f4765a9203cdec1dad4f2c3db782df7b90ce00ca8feef6412
7
- data.tar.gz: f9dc39ff12037f4bd6c56ee535dfc574fdcc911a5866e388da4038fc5131fd5f6fbd3e6b4b24fcfd10108a6220a1d2699a18e04e7f0c3526e939d01045a4d8cb
6
+ metadata.gz: 83ae89f90fceaed8dd351d6903e983d1fbc3af9f37c61fed34ff13af37d0b7206c0293b582d9d757167a29e91b9eae62ba94ca40bf40524e4ac144e4d22c45fd
7
+ data.tar.gz: ff52a6450f7d68945b1a1cf55e88a7391802453d128ddcdee2056f0a25bab8bb3eaeb55ea1acd364d83b6e1da2d7adde282813478345cf34ec587a77bed7a573
@@ -0,0 +1,47 @@
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
+ - 3.0
27
+ allow_failures:
28
+ - false
29
+ include:
30
+ - os: ubuntu
31
+ ruby: ruby-head
32
+ allow_failures: true
33
+ env:
34
+ BUNDLE_GEMFILE: "${{ matrix.gemfile }}"
35
+ ALLOW_FAILURES: "${{ matrix.allow_failures }}"
36
+ runs-on: ${{ matrix.os }}-latest
37
+ continue-on-error: ${{ endsWith(matrix.ruby, 'head') || matrix.ruby == 'debug' }}
38
+ steps:
39
+ - name: Checkout
40
+ uses: actions/checkout@v2
41
+ - name: Setup Ruby
42
+ uses: ruby/setup-ruby@v1
43
+ with:
44
+ ruby-version: ${{ matrix.ruby }}
45
+ bundler-cache: true
46
+ - name: Test
47
+ run: bundle exec rake spec || $ALLOW_FAILURES
data/.ruby-version ADDED
@@ -0,0 +1 @@
1
+ 3.0.0
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- medieval_latina (1.0.8)
4
+ medieval_latina (1.0.12)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -13,7 +13,7 @@ GEM
13
13
  ast (~> 2.4.0)
14
14
  rainbow (3.0.0)
15
15
  rake (12.3.3)
16
- rexml (3.2.4)
16
+ rexml (3.2.5)
17
17
  rspec (3.9.0)
18
18
  rspec-core (~> 3.9.0)
19
19
  rspec-expectations (~> 3.9.0)
@@ -52,4 +52,4 @@ DEPENDENCIES
52
52
  standard
53
53
 
54
54
  BUNDLED WITH
55
- 2.1.2
55
+ 2.2.13
data/README.md CHANGED
@@ -22,10 +22,10 @@ Or install it yourself as:
22
22
  ## Usage
23
23
 
24
24
  ```ruby
25
- ["deus", "luna", "via"].each { |word| puts MedievalLatina[word] }
26
- # "dayoos"
27
- # "loonah"
28
- # "veeah"
25
+ ["caelum", "omnia", "pugno"].each { |word| puts MedievalLatina[word] }
26
+ # "chay-loom"
27
+ # "onm-nee-ah"
28
+ # "poon-yoh"
29
29
  ```
30
30
 
31
31
  ## Development
@@ -10,7 +10,7 @@ class MedievalLatina
10
10
 
11
11
  def initialize(word)
12
12
  @index = 0
13
- @word = word
13
+ @word = word.downcase
14
14
  end
15
15
 
16
16
  def call
@@ -74,11 +74,11 @@ class MedievalLatina
74
74
 
75
75
  def initialize(text, index)
76
76
  @character = text[index]
77
- @rest = text.chars.drop(index + 1).join
77
+ @rest = text[index + 1..-1].chars.join
78
78
  end
79
79
 
80
80
  def to_team
81
- "#{character}#{rest.chars.first}".intern
81
+ "#{character}#{rest[0]}".intern
82
82
  end
83
83
  end
84
84
 
@@ -1,11 +1,16 @@
1
1
  class MedievalLatina
2
2
  DICTIONARY = {
3
3
  "alma" => "almuh",
4
+ "ego" => "ay-goh",
4
5
  "et" => "ate",
6
+ "es" => "es",
7
+ "est" => "est",
8
+ "estis" => "estees",
5
9
  "ex" => "ex",
6
10
  "duo" => "doo-oh",
7
11
  "mater" => "mah-tare",
8
12
  "octo" => "awk-toh",
13
+ "omnia" => "ohm-nee-ah",
9
14
  "optime" => "op-tee-may",
10
15
  "quo" => "quo"
11
16
  }.freeze
@@ -1,3 +1,3 @@
1
1
  class MedievalLatina
2
- VERSION = "1.0.8"
2
+ VERSION = "1.0.12"
3
3
  end
@@ -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.3.0")
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.8
4
+ version: 1.0.12
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: 2020-10-05 00:00:00.000000000 Z
11
+ date: 2021-08-18 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,10 @@ 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
+ - ".ruby-version"
25
26
  - Gemfile
26
27
  - Gemfile.lock
27
28
  - LICENSE.txt
@@ -41,7 +42,7 @@ metadata:
41
42
  homepage_uri: https://github.com/jaysonvirissimo/medieval_latina
42
43
  source_code_uri: https://github.com/jaysonvirissimo/medieval_latina
43
44
  changelog_uri: https://github.com/jaysonvirissimo/medieval_latina
44
- post_install_message:
45
+ post_install_message:
45
46
  rdoc_options: []
46
47
  require_paths:
47
48
  - lib
@@ -49,15 +50,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
49
50
  requirements:
50
51
  - - ">="
51
52
  - !ruby/object:Gem::Version
52
- version: 2.3.0
53
+ version: 2.4.0
53
54
  required_rubygems_version: !ruby/object:Gem::Requirement
54
55
  requirements:
55
56
  - - ">="
56
57
  - !ruby/object:Gem::Version
57
58
  version: '0'
58
59
  requirements: []
59
- rubygems_version: 3.0.3
60
- signing_key:
60
+ rubygems_version: 3.2.3
61
+ signing_key:
61
62
  specification_version: 4
62
63
  summary: Transform medieval Latin text into phonetic English
63
64
  test_files: []
data/.travis.yml DELETED
@@ -1,6 +0,0 @@
1
- ---
2
- language: ruby
3
- cache: bundler
4
- rvm:
5
- - 2.6.2
6
- before_install: gem install bundler -v 2.1.2