sunstone 1.6.2 → 1.6.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: bf17442643c13c7e7d5a21c4f5f8bf6c0afcd337
4
- data.tar.gz: f0ea441085f6c6dbdb6454973886568ddd9eb8c8
3
+ metadata.gz: b256d6a7581179895f161977f4c9de5be4b26cae
4
+ data.tar.gz: 8c4c8fda5a10e3fec97c7b347bd1ff08a0b18241
5
5
  SHA512:
6
- metadata.gz: 41be6e134397902114966e2353e4f1890b756404e039fb42f5caf0de5f6429d2b7d72b1cb94d01345a5f86875ec3d159c233381ccd135d02e39936524476481b
7
- data.tar.gz: abcaea121f016bf8df9deed866f885c36532e8b48228ac05d3913032dcd42ad762c494af374e5fb894b4ef0fc76fb5653c274d91bdb1eb534da975c69f5873ae
6
+ metadata.gz: 23110a75c8f118ea4512b4e3ca68411293d2b2777fd7c9bec4a66c95686bdfad92f44ccc3fbbb03e3e6e95e6ac405bc31196d014c0e92760978864ee2ef6a5cb
7
+ data.tar.gz: 169c3f37eaa08874d23c3222b55f900bffb99d3b9e09ee006e348dc3e5499d5c98c1fa2d1253d949bfefe98036a313be2c77e567548cb94c4c6701243ff8bfc7
@@ -4,10 +4,10 @@ module ActiveRecord
4
4
  module DatabaseStatements
5
5
 
6
6
  # Converts an arel AST to a Sunstone API Request
7
- def to_sar(arel, bvs)
7
+ def to_sar(arel, bvs = [])
8
8
  if arel.respond_to?(:ast)
9
9
  collected = visitor.accept(arel.ast, collector)
10
- collected.compile(bvs)
10
+ collected.compile(bvs, self)
11
11
  else
12
12
  arel
13
13
  end
@@ -9,7 +9,11 @@ end
9
9
  module Arel
10
10
  module Visitors
11
11
  class Sunstone < Arel::Visitors::Reduce
12
-
12
+
13
+ def initialize
14
+ @dispatch = get_dispatch_cache
15
+ end
16
+
13
17
  def compile node, &block
14
18
  accept(node, Arel::Collectors::SQLString.new, &block).value
15
19
  end
data/sunstone.gemspec CHANGED
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = "sunstone"
3
- s.version = '1.6.2'
3
+ s.version = '1.6.3'
4
4
  s.authors = ["Jon Bracy"]
5
5
  s.email = ["jonbracy@gmail.com"]
6
6
  s.homepage = "http://sunstonerb.com"
@@ -29,7 +29,7 @@ Gem::Specification.new do |s|
29
29
  s.add_runtime_dependency 'wankel'
30
30
  s.add_runtime_dependency 'cookie_store'
31
31
  s.add_runtime_dependency 'arel', '6.0.0'
32
- s.add_runtime_dependency 'activesupport', '4.2.0.beta4'
33
- s.add_runtime_dependency 'activemodel', '4.2.0.beta4'
34
- s.add_runtime_dependency 'activerecord', '4.2.0.beta4'
32
+ s.add_runtime_dependency 'activesupport', '4.2.0.rc1'
33
+ s.add_runtime_dependency 'activemodel', '4.2.0.rc1'
34
+ s.add_runtime_dependency 'activerecord', '4.2.0.rc1'
35
35
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sunstone
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.6.2
4
+ version: 1.6.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jon Bracy
@@ -212,42 +212,42 @@ dependencies:
212
212
  requirements:
213
213
  - - '='
214
214
  - !ruby/object:Gem::Version
215
- version: 4.2.0.beta4
215
+ version: 4.2.0.rc1
216
216
  type: :runtime
217
217
  prerelease: false
218
218
  version_requirements: !ruby/object:Gem::Requirement
219
219
  requirements:
220
220
  - - '='
221
221
  - !ruby/object:Gem::Version
222
- version: 4.2.0.beta4
222
+ version: 4.2.0.rc1
223
223
  - !ruby/object:Gem::Dependency
224
224
  name: activemodel
225
225
  requirement: !ruby/object:Gem::Requirement
226
226
  requirements:
227
227
  - - '='
228
228
  - !ruby/object:Gem::Version
229
- version: 4.2.0.beta4
229
+ version: 4.2.0.rc1
230
230
  type: :runtime
231
231
  prerelease: false
232
232
  version_requirements: !ruby/object:Gem::Requirement
233
233
  requirements:
234
234
  - - '='
235
235
  - !ruby/object:Gem::Version
236
- version: 4.2.0.beta4
236
+ version: 4.2.0.rc1
237
237
  - !ruby/object:Gem::Dependency
238
238
  name: activerecord
239
239
  requirement: !ruby/object:Gem::Requirement
240
240
  requirements:
241
241
  - - '='
242
242
  - !ruby/object:Gem::Version
243
- version: 4.2.0.beta4
243
+ version: 4.2.0.rc1
244
244
  type: :runtime
245
245
  prerelease: false
246
246
  version_requirements: !ruby/object:Gem::Requirement
247
247
  requirements:
248
248
  - - '='
249
249
  - !ruby/object:Gem::Version
250
- version: 4.2.0.beta4
250
+ version: 4.2.0.rc1
251
251
  description: A library for interacting with REST APIs. Similar to ActiveResource
252
252
  email:
253
253
  - jonbracy@gmail.com