hayfork 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +9 -0
- data/.ruby-version +1 -0
- data/.travis.yml +16 -0
- data/Gemfile +10 -0
- data/LICENSE.txt +21 -0
- data/README.md +200 -0
- data/Rakefile +10 -0
- data/bin/console +14 -0
- data/bin/setup +8 -0
- data/hayfork.gemspec +33 -0
- data/lib/generators/hayfork/haystack_generator.rb +45 -0
- data/lib/generators/hayfork/rebuild_generator.rb +49 -0
- data/lib/generators/hayfork/templates/migrations/create.rb +51 -0
- data/lib/generators/hayfork/templates/migrations/rebuild.rb +8 -0
- data/lib/generators/hayfork/templates/model.rb +14 -0
- data/lib/generators/hayfork/templates/query.rb +10 -0
- data/lib/generators/hayfork/templates/query/exact_phrase.rb +19 -0
- data/lib/generators/hayfork/templates/query/object.rb +4 -0
- data/lib/generators/hayfork/templates/query/parser.rb +33 -0
- data/lib/generators/hayfork/templates/triggers.rb +21 -0
- data/lib/hayfork.rb +35 -0
- data/lib/hayfork/binding.rb +67 -0
- data/lib/hayfork/delete_sql.rb +24 -0
- data/lib/hayfork/errors.rb +4 -0
- data/lib/hayfork/insert_sql.rb +22 -0
- data/lib/hayfork/join.rb +32 -0
- data/lib/hayfork/query_object.rb +38 -0
- data/lib/hayfork/query_parser.rb +35 -0
- data/lib/hayfork/statement.rb +132 -0
- data/lib/hayfork/statement_builder.rb +78 -0
- data/lib/hayfork/trigger_builder.rb +17 -0
- data/lib/hayfork/triggers.rb +76 -0
- data/lib/hayfork/unaccent.rb +12 -0
- data/lib/hayfork/update_sql.rb +112 -0
- data/lib/hayfork/version.rb +3 -0
- data/postgres/unaccent.rules +1049 -0
- metadata +227 -0
metadata
ADDED
@@ -0,0 +1,227 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: hayfork
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 1.0.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Bob Lail
|
8
|
+
autorequire:
|
9
|
+
bindir: exe
|
10
|
+
cert_chain: []
|
11
|
+
date: 2019-01-02 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: railties
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - ">="
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: 5.2.0
|
20
|
+
- - "<"
|
21
|
+
- !ruby/object:Gem::Version
|
22
|
+
version: '6.0'
|
23
|
+
type: :runtime
|
24
|
+
prerelease: false
|
25
|
+
version_requirements: !ruby/object:Gem::Requirement
|
26
|
+
requirements:
|
27
|
+
- - ">="
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
version: 5.2.0
|
30
|
+
- - "<"
|
31
|
+
- !ruby/object:Gem::Version
|
32
|
+
version: '6.0'
|
33
|
+
- !ruby/object:Gem::Dependency
|
34
|
+
name: bundler
|
35
|
+
requirement: !ruby/object:Gem::Requirement
|
36
|
+
requirements:
|
37
|
+
- - "~>"
|
38
|
+
- !ruby/object:Gem::Version
|
39
|
+
version: '1.16'
|
40
|
+
type: :development
|
41
|
+
prerelease: false
|
42
|
+
version_requirements: !ruby/object:Gem::Requirement
|
43
|
+
requirements:
|
44
|
+
- - "~>"
|
45
|
+
- !ruby/object:Gem::Version
|
46
|
+
version: '1.16'
|
47
|
+
- !ruby/object:Gem::Dependency
|
48
|
+
name: rake
|
49
|
+
requirement: !ruby/object:Gem::Requirement
|
50
|
+
requirements:
|
51
|
+
- - "~>"
|
52
|
+
- !ruby/object:Gem::Version
|
53
|
+
version: '10.0'
|
54
|
+
type: :development
|
55
|
+
prerelease: false
|
56
|
+
version_requirements: !ruby/object:Gem::Requirement
|
57
|
+
requirements:
|
58
|
+
- - "~>"
|
59
|
+
- !ruby/object:Gem::Version
|
60
|
+
version: '10.0'
|
61
|
+
- !ruby/object:Gem::Dependency
|
62
|
+
name: minitest
|
63
|
+
requirement: !ruby/object:Gem::Requirement
|
64
|
+
requirements:
|
65
|
+
- - "~>"
|
66
|
+
- !ruby/object:Gem::Version
|
67
|
+
version: '5.0'
|
68
|
+
type: :development
|
69
|
+
prerelease: false
|
70
|
+
version_requirements: !ruby/object:Gem::Requirement
|
71
|
+
requirements:
|
72
|
+
- - "~>"
|
73
|
+
- !ruby/object:Gem::Version
|
74
|
+
version: '5.0'
|
75
|
+
- !ruby/object:Gem::Dependency
|
76
|
+
name: minitest-reporters
|
77
|
+
requirement: !ruby/object:Gem::Requirement
|
78
|
+
requirements:
|
79
|
+
- - ">="
|
80
|
+
- !ruby/object:Gem::Version
|
81
|
+
version: '0'
|
82
|
+
type: :development
|
83
|
+
prerelease: false
|
84
|
+
version_requirements: !ruby/object:Gem::Requirement
|
85
|
+
requirements:
|
86
|
+
- - ">="
|
87
|
+
- !ruby/object:Gem::Version
|
88
|
+
version: '0'
|
89
|
+
- !ruby/object:Gem::Dependency
|
90
|
+
name: minitest-reporters-turn_reporter
|
91
|
+
requirement: !ruby/object:Gem::Requirement
|
92
|
+
requirements:
|
93
|
+
- - ">="
|
94
|
+
- !ruby/object:Gem::Version
|
95
|
+
version: '0'
|
96
|
+
type: :development
|
97
|
+
prerelease: false
|
98
|
+
version_requirements: !ruby/object:Gem::Requirement
|
99
|
+
requirements:
|
100
|
+
- - ">="
|
101
|
+
- !ruby/object:Gem::Version
|
102
|
+
version: '0'
|
103
|
+
- !ruby/object:Gem::Dependency
|
104
|
+
name: database_cleaner
|
105
|
+
requirement: !ruby/object:Gem::Requirement
|
106
|
+
requirements:
|
107
|
+
- - ">="
|
108
|
+
- !ruby/object:Gem::Version
|
109
|
+
version: '0'
|
110
|
+
type: :development
|
111
|
+
prerelease: false
|
112
|
+
version_requirements: !ruby/object:Gem::Requirement
|
113
|
+
requirements:
|
114
|
+
- - ">="
|
115
|
+
- !ruby/object:Gem::Version
|
116
|
+
version: '0'
|
117
|
+
- !ruby/object:Gem::Dependency
|
118
|
+
name: pg
|
119
|
+
requirement: !ruby/object:Gem::Requirement
|
120
|
+
requirements:
|
121
|
+
- - ">="
|
122
|
+
- !ruby/object:Gem::Version
|
123
|
+
version: '0'
|
124
|
+
type: :development
|
125
|
+
prerelease: false
|
126
|
+
version_requirements: !ruby/object:Gem::Requirement
|
127
|
+
requirements:
|
128
|
+
- - ">="
|
129
|
+
- !ruby/object:Gem::Version
|
130
|
+
version: '0'
|
131
|
+
- !ruby/object:Gem::Dependency
|
132
|
+
name: rr
|
133
|
+
requirement: !ruby/object:Gem::Requirement
|
134
|
+
requirements:
|
135
|
+
- - ">="
|
136
|
+
- !ruby/object:Gem::Version
|
137
|
+
version: '0'
|
138
|
+
type: :development
|
139
|
+
prerelease: false
|
140
|
+
version_requirements: !ruby/object:Gem::Requirement
|
141
|
+
requirements:
|
142
|
+
- - ">="
|
143
|
+
- !ruby/object:Gem::Version
|
144
|
+
version: '0'
|
145
|
+
- !ruby/object:Gem::Dependency
|
146
|
+
name: shoulda-context
|
147
|
+
requirement: !ruby/object:Gem::Requirement
|
148
|
+
requirements:
|
149
|
+
- - ">="
|
150
|
+
- !ruby/object:Gem::Version
|
151
|
+
version: '0'
|
152
|
+
type: :development
|
153
|
+
prerelease: false
|
154
|
+
version_requirements: !ruby/object:Gem::Requirement
|
155
|
+
requirements:
|
156
|
+
- - ">="
|
157
|
+
- !ruby/object:Gem::Version
|
158
|
+
version: '0'
|
159
|
+
description: " Hayfork generates triggers to maintain a Haystack of all searchable
|
160
|
+
fields that Postgres can index easily and efficiently "
|
161
|
+
email:
|
162
|
+
- bob.lailfamily@gmail.com
|
163
|
+
executables: []
|
164
|
+
extensions: []
|
165
|
+
extra_rdoc_files: []
|
166
|
+
files:
|
167
|
+
- ".gitignore"
|
168
|
+
- ".ruby-version"
|
169
|
+
- ".travis.yml"
|
170
|
+
- Gemfile
|
171
|
+
- LICENSE.txt
|
172
|
+
- README.md
|
173
|
+
- Rakefile
|
174
|
+
- bin/console
|
175
|
+
- bin/setup
|
176
|
+
- hayfork.gemspec
|
177
|
+
- lib/generators/hayfork/haystack_generator.rb
|
178
|
+
- lib/generators/hayfork/rebuild_generator.rb
|
179
|
+
- lib/generators/hayfork/templates/migrations/create.rb
|
180
|
+
- lib/generators/hayfork/templates/migrations/rebuild.rb
|
181
|
+
- lib/generators/hayfork/templates/model.rb
|
182
|
+
- lib/generators/hayfork/templates/query.rb
|
183
|
+
- lib/generators/hayfork/templates/query/exact_phrase.rb
|
184
|
+
- lib/generators/hayfork/templates/query/object.rb
|
185
|
+
- lib/generators/hayfork/templates/query/parser.rb
|
186
|
+
- lib/generators/hayfork/templates/triggers.rb
|
187
|
+
- lib/hayfork.rb
|
188
|
+
- lib/hayfork/binding.rb
|
189
|
+
- lib/hayfork/delete_sql.rb
|
190
|
+
- lib/hayfork/errors.rb
|
191
|
+
- lib/hayfork/insert_sql.rb
|
192
|
+
- lib/hayfork/join.rb
|
193
|
+
- lib/hayfork/query_object.rb
|
194
|
+
- lib/hayfork/query_parser.rb
|
195
|
+
- lib/hayfork/statement.rb
|
196
|
+
- lib/hayfork/statement_builder.rb
|
197
|
+
- lib/hayfork/trigger_builder.rb
|
198
|
+
- lib/hayfork/triggers.rb
|
199
|
+
- lib/hayfork/unaccent.rb
|
200
|
+
- lib/hayfork/update_sql.rb
|
201
|
+
- lib/hayfork/version.rb
|
202
|
+
- postgres/unaccent.rules
|
203
|
+
homepage: https://github.com/cph/hayfork
|
204
|
+
licenses:
|
205
|
+
- MIT
|
206
|
+
metadata: {}
|
207
|
+
post_install_message:
|
208
|
+
rdoc_options: []
|
209
|
+
require_paths:
|
210
|
+
- lib
|
211
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
212
|
+
requirements:
|
213
|
+
- - ">="
|
214
|
+
- !ruby/object:Gem::Version
|
215
|
+
version: '0'
|
216
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
217
|
+
requirements:
|
218
|
+
- - ">="
|
219
|
+
- !ruby/object:Gem::Version
|
220
|
+
version: '0'
|
221
|
+
requirements: []
|
222
|
+
rubyforge_project:
|
223
|
+
rubygems_version: 2.7.6
|
224
|
+
signing_key:
|
225
|
+
specification_version: 4
|
226
|
+
summary: Full-Text search for ActiveRecord and Postgres
|
227
|
+
test_files: []
|