sunstone 1.6.6 → 1.6.7

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: f0bc7d6df4f23ab82eaa404ab02afe5f04d5af61
4
- data.tar.gz: 0a972a79093170282a35fe96d456bbf137139d0a
3
+ metadata.gz: e7c685f5bbc67b0a8e32d4198047d49167013ba0
4
+ data.tar.gz: bb61492a6994d5dfa7df099e2d4032a51022f9f2
5
5
  SHA512:
6
- metadata.gz: b8bc42eef49879d0b41e9db21f61ab8c11dbcc968cef141e8316dda3c3e11f9560f9971b31e210b564da801c72e8924aea17b380bd4243e4441088d821ed117e
7
- data.tar.gz: 59fb72f30acbbe4040ba0281225723c325103883bb879c80bdf02429d2c5df33f1285d2dc2933bed74513040809c1482c8edaf5994cb20f7765401d6fc92b8d2
6
+ metadata.gz: 1e94e34eaac36f9c206a120fdfd270f1e6f830b5aa3e3d16355f9ee4802fd190b716fa8d190f7f9eb8414fc0888a6aa20ca4270458aa707382c64c866a2097a7
7
+ data.tar.gz: 521e2503cb4d49ab17f49dbd8e84665cd04c44a457075f1d9ad3ffce2c17915b6dcaa4bf011f403198e7de33d5a53ca36d605b344d98e90bd88d77697875b2c8
@@ -58,10 +58,12 @@ module Arel
58
58
  get_params[:limit] = limit if limit
59
59
  get_params[:offset] = offset if offset
60
60
  get_params[:order] = order if order
61
- get_params[:columns] = columns if columns
62
61
 
63
62
  case operation
64
- when :count, :average, :min, :max
63
+ when :count
64
+ path += "/#{operation}"
65
+ when :average, :min, :max
66
+ get_params[:column] = columns.first
65
67
  path += "/#{operation}"
66
68
  when :update, :delete
67
69
  path += "/#{get_params[:where]['id']}"
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = "sunstone"
3
- s.version = '1.6.6'
3
+ s.version = '1.6.7'
4
4
  s.authors = ["Jon Bracy"]
5
5
  s.email = ["jonbracy@gmail.com"]
6
6
  s.homepage = "http://sunstonerb.com"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sunstone
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.6.6
4
+ version: 1.6.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jon Bracy
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-01-08 00:00:00.000000000 Z
11
+ date: 2015-01-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake