text_hyphen_rails 0.0.4 → 0.0.5

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: a1349b1d23da1677d97669eeb5b9d6c536004b0b
4
- data.tar.gz: 2b44bfcf8a999f624e91a8614d5de21bac2d68cc
2
+ SHA256:
3
+ metadata.gz: e0a05208622962913cb6dc35d361dae6f22f679d0539748a4ae578f50c6306a2
4
+ data.tar.gz: f18e82fe519e1918064d583044209df0a30cabbe90734b00fb4befb17e261347
5
5
  SHA512:
6
- metadata.gz: ee307fee9d10ac0c68eebbc6657a0ade8ea81923fa751cc73ce15d4add1a893e1df5cff7924b706ef180e26ca477bf28ec4f69d0a7407e2434de8cef13347d51
7
- data.tar.gz: c2e5b65212e66f7b4ccc7fc664f176d20ec0568d71a15f5d68b14ce63840a9aeae7bf6ea18c8d960763c2bf0bd767c0327c063f07cea69c7c6360cbf4fbddeee
6
+ metadata.gz: 3c0d56f5950c7f416148517556f216e52468bca1e2c6f5b20f2535192f313c88ed232f1b5d08c4fb50b7f21f230b7b3e5450ec0389df5bbe0fc5ca6705af584d
7
+ data.tar.gz: 04ef64eb82a0227f06001b65719f4388d642f4da04422f0dfccf44040e7bb5a850605a885d2a7747d42508836ad5bb6ee0508115bcc02b6851a4585b640d2d35
@@ -1,3 +1,4 @@
1
+ require 'nokogiri'
1
2
  require "text_hyphen_rails/active_record_extension"
2
3
  require "text_hyphen_rails/hyphenator"
3
4
  require "text_hyphen_rails/html_hyphenator"
@@ -18,12 +18,5 @@ module TextHyphenRails
18
18
  @doc.to_s
19
19
  end
20
20
 
21
- private
22
-
23
- def text_nodes
24
- # broken
25
- @doc.xpath('//text()')
26
- end
27
-
28
21
  end
29
22
  end
@@ -1,3 +1,3 @@
1
1
  module TextHyphenRails
2
- VERSION = '0.0.4'
2
+ VERSION = '0.0.5'
3
3
  end
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
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: 2016-03-02 00:00:00.000000000 Z
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
- rubyforge_project:
161
- rubygems_version: 2.2.3
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)