sparkql 1.1.5 → 1.1.6
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 +8 -8
- data/CHANGELOG.md +5 -1
- data/VERSION +1 -1
- data/lib/sparkql/function_resolver.rb +2 -2
- data/test/unit/function_resolver_test.rb +2 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
NWE5YjBiZTYwMzBmMDQ4YTIzNWRlNGE4YjM1YjdhNGQ5MjZmM2NhZg==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
MTE4MjA0YzNiMjQzNGUxMjQyYTU2NTk2NjQwMGJjMDRjMzkyNTcwZA==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
NjkxZjI0ZTYwMjZjMmNjMjI1MjAyMDRkZDVjYzRiMmMzMGE0NjNjODA4OWU3
|
10
|
+
MjNkZjI1NzM0ZTlkN2Q2OWFlZGQ5ZTg4ODMwYmNkMmE5NGE2MTU3ODAzZTIx
|
11
|
+
ZTA5ZjNkMmRlNGIxNjAwNDM2ZjU0OTVhZTgyNzk1MGMwYjExYTY=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
OWUzMjQwYzMyN2Y5MWEyM2UyZmIxZjY2NTc4NjRiYjQ1NjI4NmJmOTg0NWEy
|
14
|
+
MjU4YWUzNGQ4MDViNjQ5YTAwNjUxZWIwZjUyODg4NTk0ZDc5MzA1MTZiYzEw
|
15
|
+
NmExNWY2ZDk5YzQ0NzE1ZGI5ZmVlMGEyZTk2NGVkYzUwMWIxMDk=
|
data/CHANGELOG.md
CHANGED
@@ -1,4 +1,8 @@
|
|
1
|
-
v1.1.
|
1
|
+
v1.1.6, 2016-11-11 ([changes](https://github.com/sparkapi/sparkql/compare/v1.1.5...v1.1.6))
|
2
|
+
-------------------
|
3
|
+
* [BUGFIX] Properly pad return strings from toupper/tolower with single quotes
|
4
|
+
|
5
|
+
v1.1.5, 2016-11-11 ([changes](https://github.com/sparkapi/sparkql/compare/v1.1.4...v1.1.5))
|
2
6
|
-------------------
|
3
7
|
* [BUGFIX] Corrected levels for unary and conjunction elements of an expression
|
4
8
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.1.
|
1
|
+
1.1.6
|
@@ -243,7 +243,7 @@ class Sparkql::FunctionResolver
|
|
243
243
|
def tolower_character(string)
|
244
244
|
{
|
245
245
|
:type => :character,
|
246
|
-
:value => string.to_s.downcase
|
246
|
+
:value => "'#{string.to_s.downcase}'"
|
247
247
|
}
|
248
248
|
end
|
249
249
|
|
@@ -257,7 +257,7 @@ class Sparkql::FunctionResolver
|
|
257
257
|
def toupper_character(string)
|
258
258
|
{
|
259
259
|
:type => :character,
|
260
|
-
:value => string.to_s.upcase
|
260
|
+
:value => "'#{string.to_s.upcase}'"
|
261
261
|
}
|
262
262
|
end
|
263
263
|
|
@@ -30,7 +30,7 @@ class FunctionResolverTest < Test::Unit::TestCase
|
|
30
30
|
assert !f.errors?, "Errors #{f.errors.inspect}"
|
31
31
|
value = f.call
|
32
32
|
assert_equal :character, value[:type]
|
33
|
-
assert_equal 'string', value[:value]
|
33
|
+
assert_equal "'string'", value[:value]
|
34
34
|
end
|
35
35
|
|
36
36
|
test "toupper(SomeField)" do
|
@@ -49,7 +49,7 @@ class FunctionResolverTest < Test::Unit::TestCase
|
|
49
49
|
assert !f.errors?, "Errors #{f.errors.inspect}"
|
50
50
|
value = f.call
|
51
51
|
assert_equal :character, value[:type]
|
52
|
-
assert_equal 'STRING', value[:value]
|
52
|
+
assert_equal "'STRING'", value[:value]
|
53
53
|
end
|
54
54
|
|
55
55
|
test "now()" do
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sparkql
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Wade McEwen
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-12-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: georuby
|