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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: cd4bbbf8c57e01cfb2627d2b0a3913006f1432c7
4
- data.tar.gz: 73504b7836c48ee52f43d62f91d93eeb0f52e733
3
+ metadata.gz: 673c1aa25cdc864726ef75d05c0b4c744e19ce46
4
+ data.tar.gz: dc9cce4603873ce8bd1dc82d1f1c4327c9781693
5
5
  SHA512:
6
- metadata.gz: ce79c2dabce1600a7a3503f992cd735e7eac90fd59c65ad557ee5a55e58cde0eb0eebfb91a8be97456479ca31c0efe88375b3cc0e8ae8f9ac7e699faf7b8cef0
7
- data.tar.gz: 498d6d89a59f5c2d49d0119a94ec76429a7a589f398050ab3a22824264ada83c886017f7e7e9632188fd8f37eccda0f585eeca579610cea9f7a8ab87a00966fa
6
+ metadata.gz: b15ea86cc152a4394d8053fee9f480978586cf257eb7f3f4904d071a780a3904ef5fd4bab84ab951d72ef4bb4d8304a40d9b999c29cbe9fad7d8c086d7806702
7
+ data.tar.gz: 071aa66602f6d19db575cff2033f22341d9e51256d545a1fd6e22c3dda72d3095c2e8eb237ce742e419b4f1c37e045e15e8cef42d9335e0b371f8c7fcd76f796
@@ -1,3 +1,7 @@
1
+ # 0.6.1 (July 18, 2015)
2
+
3
+ * Fix all_json and prepared statements (mathieumahe)
4
+
1
5
  # 0.6.0 (May 15, 2015)
2
6
 
3
7
  * find_json and all_json support has_one associations (Mathieu Dumont)
@@ -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(', ')).to_sql
18
+ scope = if options.key?(:columns) || options.key?(:include)
19
+ select(columns.map(&:to_s).join(', '))
20
20
  else
21
- original_scope.to_sql
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
@@ -1,3 +1,3 @@
1
1
  module Surus
2
- VERSION = "0.6.0"
2
+ VERSION = "0.6.1"
3
3
  end
@@ -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', "~> 2.12.0"
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', ">= 0.6.0"
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.0
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-05-15 00:00:00.000000000 Z
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: 2.12.0
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: 2.12.0
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.6.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.6.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: []