text-hyphen 1.4.1 → 1.5.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.standard.yml +5 -0
- data/Code-of-Conduct.md +73 -0
- data/Contributing.md +68 -0
- data/History.md +139 -0
- data/Licence.md +159 -0
- data/Manifest.txt +12 -5
- data/README.md +81 -0
- data/Rakefile +68 -19
- data/bin/ruby-hyphen +0 -0
- data/lib/text/hyphen/language/1.8/de1.rb +1307 -571
- data/lib/text/hyphen/language/1.8/en_us.rb +412 -453
- data/lib/text/hyphen/language/1.8/fr.rb +128 -334
- data/lib/text/hyphen/language/1.8/la.rb +1 -0
- data/lib/text/hyphen/language/1.8/lt.rb +115 -0
- data/lib/text/hyphen/language/1.8/pt.rb +2 -1
- data/lib/text/hyphen/language/1.8/sk.rb +277 -0
- data/lib/text/hyphen/language/1.9/ca.rb +2 -1
- data/lib/text/hyphen/language/1.9/cs.rb +2 -1
- data/lib/text/hyphen/language/1.9/da.rb +2 -1
- data/lib/text/hyphen/language/1.9/de1.rb +1382 -646
- data/lib/text/hyphen/language/1.9/de2.rb +110 -109
- data/lib/text/hyphen/language/1.9/en_uk.rb +2 -1
- data/lib/text/hyphen/language/1.9/en_us.rb +412 -454
- data/lib/text/hyphen/language/1.9/es.rb +2 -1
- data/lib/text/hyphen/language/1.9/et.rb +6 -5
- data/lib/text/hyphen/language/1.9/eu.rb +4 -3
- data/lib/text/hyphen/language/1.9/fi.rb +3 -2
- data/lib/text/hyphen/language/1.9/fr.rb +136 -343
- data/lib/text/hyphen/language/1.9/ga.rb +27 -26
- data/lib/text/hyphen/language/1.9/hr.rb +6 -5
- data/lib/text/hyphen/language/1.9/hsb.rb +3 -2
- data/lib/text/hyphen/language/1.9/hu1.rb +3 -2
- data/lib/text/hyphen/language/1.9/hu2.rb +5 -4
- data/lib/text/hyphen/language/1.9/ia.rb +2 -1
- data/lib/text/hyphen/language/1.9/id.rb +8 -7
- data/lib/text/hyphen/language/1.9/is.rb +2 -1
- data/lib/text/hyphen/language/1.9/it.rb +74 -74
- data/lib/text/hyphen/language/1.9/la.rb +54 -53
- data/lib/text/hyphen/language/1.9/lt.rb +116 -0
- data/lib/text/hyphen/language/1.9/mn.rb +7 -6
- data/lib/text/hyphen/language/1.9/nl.rb +2 -1
- data/lib/text/hyphen/language/1.9/no1.rb +3 -2
- data/lib/text/hyphen/language/1.9/no2.rb +3 -2
- data/lib/text/hyphen/language/1.9/pl.rb +2 -1
- data/lib/text/hyphen/language/1.9/pt.rb +3 -2
- data/lib/text/hyphen/language/1.9/ru.rb +2 -1
- data/lib/text/hyphen/language/1.9/sk.rb +280 -0
- data/lib/text/hyphen/language/1.9/sv.rb +4 -3
- data/lib/text/hyphen/language/cs.rb +1 -1
- data/lib/text/hyphen/language/de.rb +2 -1
- data/lib/text/hyphen/language/de1.rb +1 -1
- data/lib/text/hyphen/language/de2.rb +1 -1
- data/lib/text/hyphen/language/en_us.rb +1 -1
- data/lib/text/hyphen/language/eu.rb +1 -1
- data/lib/text/hyphen/language/fr.rb +1 -1
- data/lib/text/hyphen/language/hu.rb +1 -1
- data/lib/text/hyphen/language/hu1.rb +1 -1
- data/lib/text/hyphen/language/hu2.rb +1 -1
- data/lib/text/hyphen/language/is.rb +1 -1
- data/lib/text/hyphen/language/lt.rb +4 -0
- data/lib/text/hyphen/language/ms.rb +3 -3
- data/lib/text/hyphen/language/nl.rb +1 -1
- data/lib/text/hyphen/language/no.rb +1 -1
- data/lib/text/hyphen/language/sk.rb +4 -0
- data/lib/text/hyphen/language.rb +45 -45
- data/lib/text/hyphen.rb +139 -97
- data/lib/text-hyphen.rb +1 -1
- data/test/data/bug_9807_latin1.rb +2 -2
- data/test/data/bug_9807_utf-8.rb +1 -1
- data/test/test_bugs.rb +14 -13
- data/test/test_text_hyphen.rb +31 -21
- metadata +146 -96
- data/.autotest +0 -23
- data/.gemtest +0 -0
- data/History.rdoc +0 -99
- data/License.rdoc +0 -159
- data/README.rdoc +0 -95
- data/text-hyphen.gemspec +0 -51
data/Rakefile
CHANGED
@@ -1,28 +1,77 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
require
|
4
|
-
require 'hoe'
|
1
|
+
require "rubygems"
|
2
|
+
require "hoe"
|
3
|
+
require "rake/clean"
|
5
4
|
|
5
|
+
Hoe.plugin :cov
|
6
6
|
Hoe.plugin :doofus
|
7
|
-
Hoe.plugin :
|
8
|
-
Hoe.plugin :
|
9
|
-
|
7
|
+
Hoe.plugin :gemspec2
|
8
|
+
Hoe.plugin :git2
|
9
|
+
Hoe.plugin :test
|
10
|
+
# Hoe.plugin :minitest
|
11
|
+
Hoe.plugin :rubygems
|
12
|
+
|
13
|
+
TextHyphenSpec = Hoe.spec "text-hyphen" do
|
14
|
+
developer("Austin Ziegler", "halostatue@gmail.com")
|
15
|
+
|
16
|
+
self.licenses = ["MIT", "Various"]
|
17
|
+
|
18
|
+
self.history_file = "History.md"
|
19
|
+
self.readme_file = "README.md"
|
20
|
+
self.extra_rdoc_files = FileList["*.md"].to_a
|
21
|
+
self.testlib = :none
|
22
|
+
|
23
|
+
spec_extras[:metadata] = ->(val) { val["rubygems_mfa_required"] = "true" }
|
24
|
+
|
25
|
+
extra_dev_deps << ["hoe", ">= 3.0", "< 5"]
|
26
|
+
extra_dev_deps << ["hoe-doofus", "~> 1.0"]
|
27
|
+
extra_dev_deps << ["hoe-gemspec2", "~> 1.1"]
|
28
|
+
extra_dev_deps << ["hoe-git2", "~> 1.7"]
|
29
|
+
extra_dev_deps << ["hoe-rubygems", "~> 1.0"]
|
30
|
+
extra_dev_deps << ["test-unit", ">= 0"]
|
31
|
+
# extra_dev_deps << ["minitest", "~> 5.0"]
|
32
|
+
# extra_dev_deps << ["minitest-autotest", "~> 1.0"]
|
33
|
+
# extra_dev_deps << ["minitest-bonus-assertions", "~> 3.0"]
|
34
|
+
# extra_dev_deps << ["minitest-focus", "~> 1.0"]
|
35
|
+
# extra_dev_deps << ["minitest-hooks", "~> 1.4"]
|
36
|
+
extra_dev_deps << ["rake", ">= 10.0", "< 14.0"]
|
37
|
+
extra_dev_deps << ["standard", "~> 1.0"]
|
38
|
+
end
|
10
39
|
|
11
|
-
|
12
|
-
|
40
|
+
desc "Run the test suite. Use FILTER or TESTOPTS to add flags/args."
|
41
|
+
task :test do
|
42
|
+
ruby make_test_cmd
|
43
|
+
end
|
44
|
+
|
45
|
+
desc "Print out the test command. Good for profiling and other tools."
|
46
|
+
task :test_cmd do
|
47
|
+
puts make_test_cmd
|
48
|
+
end
|
49
|
+
|
50
|
+
desc "Show which test files fail when run alone."
|
51
|
+
task :test_deps do
|
52
|
+
tests = Dir[*TextHyphenSpec.test_globs].uniq
|
53
|
+
|
54
|
+
paths = %w[bin lib test].join(File::PATH_SEPARATOR)
|
55
|
+
null_dev = Hoe::WINDOZE ? "> NUL 2>&1" : "> /dev/null 2>&1"
|
56
|
+
|
57
|
+
tests.each do |test|
|
58
|
+
unless system "ruby -I#{paths} #{test} #{null_dev}"
|
59
|
+
puts "Dependency Issues: #{test}"
|
60
|
+
end
|
61
|
+
end
|
62
|
+
end
|
13
63
|
|
14
|
-
|
15
|
-
|
16
|
-
|
64
|
+
def make_test_cmd
|
65
|
+
tests = ["rubygems", "test/unit"]
|
66
|
+
tests << TextHyphenSpec.test_globs.sort.map { |g| Dir.glob(g) }
|
67
|
+
tests.flatten!
|
68
|
+
tests.map! { |f| %(require "#{f}") }
|
17
69
|
|
18
|
-
|
19
|
-
|
20
|
-
|
70
|
+
filter = (ENV["FILTER"] || ENV["TESTOPTS"] || "").dup
|
71
|
+
filter << " -n #{ENV["N"]}" if ENV["N"]
|
72
|
+
filter << " -e #{ENV["X"]}" if ENV["X"]
|
21
73
|
|
22
|
-
|
23
|
-
self.extra_dev_deps << ['hoe-gemspec', '~> 1.0']
|
24
|
-
self.extra_dev_deps << ['hoe-git', '~> 1.0']
|
25
|
-
self.extra_dev_deps << ['hoe-seattlerb', '~> 1.0']
|
74
|
+
"#{Hoe::RUBY_FLAGS} -e '#{tests.join("; ")}' -- #{filter}"
|
26
75
|
end
|
27
76
|
|
28
77
|
# vim: syntax=ruby
|
data/bin/ruby-hyphen
CHANGED
File without changes
|