surus 0.6.0 → 0.6.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/surus/json/query.rb +4 -3
- data/lib/surus/version.rb +1 -1
- data/surus.gemspec +2 -2
- metadata +7 -18
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 673c1aa25cdc864726ef75d05c0b4c744e19ce46
|
4
|
+
data.tar.gz: dc9cce4603873ce8bd1dc82d1f1c4327c9781693
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b15ea86cc152a4394d8053fee9f480978586cf257eb7f3f4904d071a780a3904ef5fd4bab84ab951d72ef4bb4d8304a40d9b999c29cbe9fad7d8c086d7806702
|
7
|
+
data.tar.gz: 071aa66602f6d19db575cff2033f22341d9e51256d545a1fd6e22c3dda72d3095c2e8eb237ce742e419b4f1c37e045e15e8cef42d9335e0b371f8c7fcd76f796
|
data/CHANGELOG.md
CHANGED
data/lib/surus/json/query.rb
CHANGED
@@ -15,11 +15,12 @@ module Surus
|
|
15
15
|
end
|
16
16
|
|
17
17
|
def subquery_sql
|
18
|
-
if options.key?(:columns) || options.key?(:include)
|
19
|
-
select(columns.map(&:to_s).join(', '))
|
18
|
+
scope = if options.key?(:columns) || options.key?(:include)
|
19
|
+
select(columns.map(&:to_s).join(', '))
|
20
20
|
else
|
21
|
-
original_scope
|
21
|
+
original_scope
|
22
22
|
end
|
23
|
+
(scope.respond_to?(:to_sql_with_binding_params) ? scope.to_sql_with_binding_params : scope.to_sql)
|
23
24
|
end
|
24
25
|
|
25
26
|
def columns
|
data/lib/surus/version.rb
CHANGED
data/surus.gemspec
CHANGED
@@ -26,9 +26,9 @@ Gem::Specification.new do |s|
|
|
26
26
|
# specify any dependencies here; for example:
|
27
27
|
s.add_dependency 'activerecord', "~> 4.0"
|
28
28
|
|
29
|
-
s.add_development_dependency 'rspec', "~>
|
29
|
+
s.add_development_dependency 'rspec', "~> 3.1.0"
|
30
30
|
s.add_development_dependency 'guard', ">= 0.10.0"
|
31
|
-
s.add_development_dependency 'guard-rspec'
|
31
|
+
s.add_development_dependency 'guard-rspec'
|
32
32
|
s.add_development_dependency 'rb-fsevent', '~> 0.9.1'
|
33
33
|
s.add_development_dependency 'oj', '~> 2.0.2'
|
34
34
|
s.add_development_dependency 'pg'
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: surus
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.6.
|
4
|
+
version: 0.6.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jack Christensen
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-07-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activerecord
|
@@ -30,14 +30,14 @@ dependencies:
|
|
30
30
|
requirements:
|
31
31
|
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version:
|
33
|
+
version: 3.1.0
|
34
34
|
type: :development
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version:
|
40
|
+
version: 3.1.0
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: guard
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
@@ -58,14 +58,14 @@ dependencies:
|
|
58
58
|
requirements:
|
59
59
|
- - ">="
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version: 0
|
61
|
+
version: '0'
|
62
62
|
type: :development
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
66
|
- - ">="
|
67
67
|
- !ruby/object:Gem::Version
|
68
|
-
version: 0
|
68
|
+
version: '0'
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: rb-fsevent
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
@@ -247,15 +247,4 @@ rubygems_version: 2.4.5
|
|
247
247
|
signing_key:
|
248
248
|
specification_version: 4
|
249
249
|
summary: PostgreSQL Acceleration for ActiveRecord
|
250
|
-
test_files:
|
251
|
-
- spec/array/scope_spec.rb
|
252
|
-
- spec/database.yml
|
253
|
-
- spec/database.yml.travis
|
254
|
-
- spec/database_structure.sql
|
255
|
-
- spec/factories.rb
|
256
|
-
- spec/hstore/scope_spec.rb
|
257
|
-
- spec/hstore/serializer_spec.rb
|
258
|
-
- spec/json/json_spec.rb
|
259
|
-
- spec/spec_helper.rb
|
260
|
-
- spec/synchronous_commit/connection_spec.rb
|
261
|
-
- spec/synchronous_commit/model_spec.rb
|
250
|
+
test_files: []
|