positionable 1.0.7 → 1.0.8

Sign up to get free protection for your applications and to get access to all the features.
@@ -66,7 +66,7 @@ module Positionable
66
66
  start = options[:start] || 0
67
67
  order = options[:order] || :asc
68
68
 
69
- default_scope order("`#{self.table_name}`.`position` #{order}")
69
+ default_scope order("\"#{self.table_name}\".\"position\" #{order}")
70
70
 
71
71
  before_create :add_to_bottom
72
72
  before_update :update_position
@@ -308,4 +308,4 @@ module Positionable
308
308
 
309
309
  ActiveRecord::Base.send(:include, Positionable)
310
310
 
311
- end
311
+ end
@@ -1,3 +1,3 @@
1
1
  module Positionable
2
- VERSION = "1.0.7"
2
+ VERSION = "1.0.8"
3
3
  end
@@ -20,7 +20,7 @@ Gem::Specification.new do |s|
20
20
 
21
21
  s.add_development_dependency "bundler", ">= 1.0.0"
22
22
  s.add_development_dependency "rspec", "~> 2.3"
23
- s.add_development_dependency "sqlite3-ruby"
23
+ s.add_development_dependency "sqlite3"
24
24
  s.add_development_dependency "simplecov"
25
25
  s.add_development_dependency "factory_girl"
26
26
 
@@ -28,7 +28,7 @@ describe Positionable do
28
28
  it "prepends the table name in SQL 'order by' clause" do
29
29
  sql = DefaultItem.where("1 = 1").to_sql
30
30
  table = DefaultItem.table_name
31
- sql.should include("ORDER BY `#{table}`.`position`")
31
+ sql.should include("ORDER BY \"#{table}\".\"position\"")
32
32
  end
33
33
 
34
34
  context "inheritance" do
@@ -638,4 +638,4 @@ describe Positionable do
638
638
 
639
639
  end
640
640
 
641
- end
641
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: positionable
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.7
4
+ version: 1.0.8
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-06-13 00:00:00.000000000 Z
12
+ date: 2012-12-11 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler
@@ -44,7 +44,7 @@ dependencies:
44
44
  - !ruby/object:Gem::Version
45
45
  version: '2.3'
46
46
  - !ruby/object:Gem::Dependency
47
- name: sqlite3-ruby
47
+ name: sqlite3
48
48
  requirement: !ruby/object:Gem::Requirement
49
49
  none: false
50
50
  requirements:
@@ -161,4 +161,3 @@ test_files:
161
161
  - spec/support/matchers/contiguity_matcher.rb
162
162
  - spec/support/models.rb
163
163
  - spec/support/schema.rb
164
- has_rdoc: