sewell 0.1.4 → 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/sewell.rb +7 -2
- data/lib/sewell/version.rb +1 -1
- data/sewell.gemspec +1 -0
- metadata +16 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9c700b7d47666b475114f8e92250db63d5cc16f8
|
4
|
+
data.tar.gz: f3305c43f4175eabe4e16c7f4466426498ecfc1c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 996c144f8b53ec9c5a0b6aa65d52735adfc0b29dbc1098fcbdc704e915e12196cefe742e1421f081069555c798a8a5b12acff8103eb98b46fff9c675c3f4eef5
|
7
|
+
data.tar.gz: 1fdb89067b6da83d11cbfbd4fcd33cad1f2239ee2a4055207428f87b0785927052eaec4ad9cfd2ba276019e3d76122ef8192b462fdf1064fb98fba79850de3ed
|
data/lib/sewell.rb
CHANGED
@@ -40,7 +40,12 @@ module Sewell
|
|
40
40
|
end
|
41
41
|
|
42
42
|
def self.escape_groonga str
|
43
|
-
str.
|
43
|
+
s = str.dup
|
44
|
+
s.gsub!(/\"|\'|\\/, '\\&')
|
45
|
+
s.gsub!("(", '\(')
|
46
|
+
s.gsub!(")", '\)')
|
47
|
+
puts s
|
48
|
+
s
|
44
49
|
end
|
45
50
|
|
46
51
|
def self.from_str str, tables
|
@@ -107,6 +112,6 @@ module Sewell
|
|
107
112
|
if ex.first
|
108
113
|
query.gsub!(ex.first, '')
|
109
114
|
end
|
110
|
-
query.gsub(/(:|<|>|\[|\]
|
115
|
+
query.gsub(/(:|<|>|\[|\])/, '')
|
111
116
|
end
|
112
117
|
end
|
data/lib/sewell/version.rb
CHANGED
data/sewell.gemspec
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sewell
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 1.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- ssig33
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2014-03-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rspec
|
@@ -24,6 +24,20 @@ dependencies:
|
|
24
24
|
- - '>='
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: '0'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: rake
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - '>='
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '0'
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - '>='
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '0'
|
27
41
|
description: Generator for Groonga's query
|
28
42
|
email:
|
29
43
|
- mail@ssig33.com
|