text_hyphen_rails 0.0.4 → 0.0.5
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
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: e0a05208622962913cb6dc35d361dae6f22f679d0539748a4ae578f50c6306a2
|
4
|
+
data.tar.gz: f18e82fe519e1918064d583044209df0a30cabbe90734b00fb4befb17e261347
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3c0d56f5950c7f416148517556f216e52468bca1e2c6f5b20f2535192f313c88ed232f1b5d08c4fb50b7f21f230b7b3e5450ec0389df5bbe0fc5ca6705af584d
|
7
|
+
data.tar.gz: 04ef64eb82a0227f06001b65719f4388d642f4da04422f0dfccf44040e7bb5a850605a885d2a7747d42508836ad5bb6ee0508115bcc02b6851a4585b640d2d35
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: text_hyphen_rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Thelonius Kort
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2022-10-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -38,6 +38,20 @@ dependencies:
|
|
38
38
|
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '1.4'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: nokogiri
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - "~>"
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '1.6'
|
48
|
+
type: :runtime
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - "~>"
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '1.6'
|
41
55
|
- !ruby/object:Gem::Dependency
|
42
56
|
name: sqlite3
|
43
57
|
requirement: !ruby/object:Gem::Requirement
|
@@ -122,8 +136,8 @@ dependencies:
|
|
122
136
|
- - "~>"
|
123
137
|
- !ruby/object:Gem::Version
|
124
138
|
version: '1.6'
|
125
|
-
description:
|
126
|
-
email:
|
139
|
+
description:
|
140
|
+
email:
|
127
141
|
executables: []
|
128
142
|
extensions: []
|
129
143
|
extra_rdoc_files: []
|
@@ -135,14 +149,13 @@ files:
|
|
135
149
|
- lib/text_hyphen_rails/engine.rb
|
136
150
|
- lib/text_hyphen_rails/html_hyphenator.rb
|
137
151
|
- lib/text_hyphen_rails/hyphenator.rb
|
138
|
-
- lib/text_hyphen_rails/text_hyphen_extension.rb
|
139
152
|
- lib/text_hyphen_rails/text_hyphenator.rb
|
140
153
|
- lib/text_hyphen_rails/version.rb
|
141
154
|
homepage: https://github.com/tnt/text_hyphen_rails
|
142
155
|
licenses:
|
143
156
|
- Any GPL or MIT
|
144
157
|
metadata: {}
|
145
|
-
post_install_message:
|
158
|
+
post_install_message:
|
146
159
|
rdoc_options: []
|
147
160
|
require_paths:
|
148
161
|
- lib
|
@@ -157,9 +170,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
157
170
|
- !ruby/object:Gem::Version
|
158
171
|
version: '0'
|
159
172
|
requirements: []
|
160
|
-
|
161
|
-
|
162
|
-
signing_key:
|
173
|
+
rubygems_version: 3.2.15
|
174
|
+
signing_key:
|
163
175
|
specification_version: 4
|
164
176
|
summary: text-hyphen integration for Rails/ActiveRecord
|
165
177
|
test_files: []
|
@@ -1,12 +0,0 @@
|
|
1
|
-
module TextHyphenRails
|
2
|
-
module TextHyphenEntension
|
3
|
-
def add_exception exc
|
4
|
-
poss, off = [], 0
|
5
|
-
exc.chars.each_with_index {|c, n| c == '-' && poss << n - off && off += 1}
|
6
|
-
exc_arr = (0..exc.size-off).map {|i| poss.include?(i) ? 1 : 0}
|
7
|
-
language.exceptions[exc.gsub('-', '')] = exc_arr
|
8
|
-
end
|
9
|
-
end
|
10
|
-
end
|
11
|
-
|
12
|
-
::Text::Hyphen.send(:include, TextHyphenRails::TextHyphenEntension)
|