influxer 0.5.2 → 0.5.3

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
2
  SHA1:
3
- metadata.gz: 4a1ea06be51c4a1ef0994b986ac93b1e931329ff
4
- data.tar.gz: bf863f875e968bdbcfef1d5f6efe833637d7dc14
3
+ metadata.gz: fbd1c48babf418c779aa5544ba81a1afbff04c44
4
+ data.tar.gz: 6f5cd76d8bab0ddea496b7baa9ea4d47f4d6cd98
5
5
  SHA512:
6
- metadata.gz: 01a0afe32a47e09a7bcedfbaabc7df322542eee72f2c1d4835b09a8661e90ebe4c7cffcc82dcdae747fccc106a097a868fe8142aba8bd90e4a942dfbd35be5a7
7
- data.tar.gz: f564557f561ebd6553ef9d63592a6d877cf901877a0f2ea5c656a1e621396f7c4881c9ad120736b46acfc9640531d4bb96dcf2593dc4f252e8094939e27386f2
6
+ metadata.gz: d80b9c5d201d5deec8c1a5fcca21f3d581958d6631c395e861a9a7385984c0cb7e974117917c34a3cb0e3484ccbf6da6f6afd3cc521c9dee835f0d76dd745ffb
7
+ data.tar.gz: 14c99afa8346fa1c22b7639e1983e7f2245fd90c74ccd5a9433a05c3856b129e4119084367cc3a2d5a687e6218714ffe7add3949d57965f80982aff893d0e105
data/Changelog.md CHANGED
@@ -1,3 +1,6 @@
1
+ ## 0.5.3
2
+ - Fix `where.not` with ranges typo
3
+
1
4
  ## 0.5.2
2
5
  - Fix bug with query logging
3
6
 
@@ -59,7 +59,7 @@ module Influxer
59
59
 
60
60
  def build_range(key, val, negate)
61
61
  if negate
62
- "#{key} < #{quoted(val.begin)} and #{key} > #{quoted(val.end)}"
62
+ "#{key} < #{quoted(val.begin)} or #{key} > #{quoted(val.end)}"
63
63
  else
64
64
  "#{key} > #{quoted(val.begin)} and #{key} < #{quoted(val.end)}"
65
65
  end
@@ -1,3 +1,3 @@
1
1
  module Influxer # :nodoc:
2
- VERSION = "0.5.2".freeze
2
+ VERSION = "0.5.3".freeze
3
3
  end
@@ -111,7 +111,7 @@ describe Influxer::Relation, :query do
111
111
  end
112
112
 
113
113
  it "handle ranges" do
114
- expect(rel.where.not(user_id: 1..4).to_sql).to eq "select * from \"dummy\" where (user_id < 1 and user_id > 4)"
114
+ expect(rel.where.not(user_id: 1..4).to_sql).to eq "select * from \"dummy\" where (user_id < 1 or user_id > 4)"
115
115
  end
116
116
 
117
117
  it "handle arrays" do
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: influxer
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.2
4
+ version: 0.5.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Vlad Dem
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-08-27 00:00:00.000000000 Z
11
+ date: 2016-09-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activemodel
@@ -239,4 +239,3 @@ signing_key:
239
239
  specification_version: 4
240
240
  summary: InfluxDB for Rails
241
241
  test_files: []
242
- has_rdoc: