rebel 0.3.0 → 0.3.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/rebel/sql.rb +4 -0
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 10809e6c0a432430cd14bff789a33f4e931d8d19
4
- data.tar.gz: f09ec1c343f3202fdec996cbea89cc8b5c88eccc
3
+ metadata.gz: 7d262d3ed145f67f44bf3c9de0af99dcfc5a2280
4
+ data.tar.gz: fa05685e659ce214faec51f874d3a2ca05265916
5
5
  SHA512:
6
- metadata.gz: bb6c20a31bac4c52a5b2dba793608c53544b5abe713540b733e614009747a4f7e216e6bf998aee9b56985d4becc7c3b9552f35f93241c9cd50b462696a2a8c5a
7
- data.tar.gz: dac1d09cbbc44bc324441295848757be87f77b48e362eda69417d15c770e8ceb8dd9a359bead9072c2d2173cc0a7d45320da7cbc4cc9888c43013c7c0acebeef
6
+ metadata.gz: 90ae79e04c0536963e83aebe2010beb63fe3d23eb26d4f59a3a41e1aa2b55ce12be583d172bac8a1dd55c0c3fc7486d8645e9cae990b9a7009f03f70fdb70845
7
+ data.tar.gz: c7707252470d83166c006c07599774d6b99d4243c518b6714961d095fe249324162019dcf5b647cda8d85a5259b7e5b2c0cf9dcda007485a5a86fb43a7d0b58b
data/lib/rebel/sql.rb CHANGED
@@ -137,6 +137,10 @@ module Rebel::SQL
137
137
  def in(*v)
138
138
  Raw.new("#{self} IN (#{Rebel::SQL.values(*v)})")
139
139
  end
140
+
141
+ def like(n)
142
+ Raw.new("#{self} LIKE #{Rebel::SQL.value(n)}")
143
+ end
140
144
  end
141
145
 
142
146
  @identifier_quote = '"'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rebel
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Loic Nageleisen
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-03-06 00:00:00.000000000 Z
11
+ date: 2017-03-20 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: SQL-flavoured Ruby, or is it the other way around?
14
14
  email: loic.nageleisen@gmail.com