decompound 0.1.0

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 ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: d514bac5e7c40f6ae95cc0157513a6ab5b51766ff3d8e6406ba91f1c1a65cdd3
4
+ data.tar.gz: 2701a0f5c7cce99d46028786cd81663bc4c392f2cf46e0ad97a0b13b7927cc5e
5
+ SHA512:
6
+ metadata.gz: 107f5f864ac2bd43b7c5aae6bef4dd7757306d0e353046ca1c394417a4e647362c22cb2949b5629d8aa67d2b13ce522933a712a091bce469f7779a6424ae7283
7
+ data.tar.gz: 3f1f2d64dc32610c21a4fc196301388cf129e81d6abdfe1b322134c5a8d7a411e28d956f058e1a7ed80d86ffb3368ea42da926e2df269b91790be011ac37fc40
data/CHANGELOG.md ADDED
@@ -0,0 +1,5 @@
1
+ ## [Unreleased]
2
+
3
+ ## [0.1.0] - 2026-07-14
4
+
5
+ - Initial release
data/Justfile ADDED
@@ -0,0 +1,4 @@
1
+ test:
2
+ bundle exec standardrb
3
+ bundle exec rbs validate
4
+ rake test
data/LICENSE.txt ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2026 Camillo Visini
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.
data/README.md ADDED
@@ -0,0 +1 @@
1
+ # decompound
data/Rakefile ADDED
@@ -0,0 +1,10 @@
1
+ # frozen_string_literal: true
2
+
3
+ require "bundler/gem_tasks"
4
+ require "minitest/test_task"
5
+
6
+ Minitest::TestTask.create
7
+
8
+ require "standard/rake"
9
+
10
+ task default: %i[test standard]
@@ -0,0 +1,5 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Decompound
4
+ VERSION = "0.1.0"
5
+ end
data/lib/decompound.rb ADDED
@@ -0,0 +1,13 @@
1
+ # frozen_string_literal: true
2
+
3
+ require_relative "decompound/version"
4
+
5
+ module Decompound
6
+ def self.split(word)
7
+ # Naive implementation: split the word in the middle. Just a placeholder :)
8
+ word = word.downcase
9
+ middle = word.length / 2
10
+
11
+ [word[0...middle], word[middle..]]
12
+ end
13
+ end
@@ -0,0 +1,5 @@
1
+ module Decompound
2
+ VERSION: String
3
+
4
+ def self.split: (String word) -> Array[String]
5
+ end
metadata ADDED
@@ -0,0 +1,51 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: decompound
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - Camillo Visini
8
+ bindir: exe
9
+ cert_chain: []
10
+ date: 1980-01-02 00:00:00.000000000 Z
11
+ dependencies: []
12
+ description: A Ruby gem for splitting German compound words into their constituent
13
+ parts
14
+ executables: []
15
+ extensions: []
16
+ extra_rdoc_files: []
17
+ files:
18
+ - CHANGELOG.md
19
+ - Justfile
20
+ - LICENSE.txt
21
+ - README.md
22
+ - Rakefile
23
+ - lib/decompound.rb
24
+ - lib/decompound/version.rb
25
+ - sig/decompound.rbs
26
+ homepage: https://github.com/visini/decompound
27
+ licenses:
28
+ - MIT
29
+ metadata:
30
+ allowed_push_host: https://rubygems.org
31
+ homepage_uri: https://github.com/visini/decompound
32
+ source_code_uri: https://github.com/visini/decompound
33
+ changelog_uri: https://github.com/visini/decompound/CHANGELOG.md
34
+ rdoc_options: []
35
+ require_paths:
36
+ - lib
37
+ required_ruby_version: !ruby/object:Gem::Requirement
38
+ requirements:
39
+ - - ">="
40
+ - !ruby/object:Gem::Version
41
+ version: 3.4.0
42
+ required_rubygems_version: !ruby/object:Gem::Requirement
43
+ requirements:
44
+ - - ">="
45
+ - !ruby/object:Gem::Version
46
+ version: '0'
47
+ requirements: []
48
+ rubygems_version: 4.0.16
49
+ specification_version: 4
50
+ summary: German compound word splitter
51
+ test_files: []