model_set 1.1.0 → 1.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.1.0
1
+ 1.1.1
@@ -109,7 +109,7 @@ class ModelSet
109
109
  def order_clause
110
110
  return unless @sort_order
111
111
  # Prevent SQL injection attacks.
112
- "ORDER BY #{@sort_order.join(', ').gsub(/[^\w_, \.\(\)\[\]'\"]/, '')}"
112
+ "ORDER BY #{@sort_order.join(', ').gsub(/[^\w_=<>+*\-\/, \.\(\)\[\]'\"]/, '')}"
113
113
  end
114
114
 
115
115
  def join_clause
data/test/test_helper.rb CHANGED
@@ -4,7 +4,6 @@ require 'shoulda'
4
4
  require 'mocha/setup'
5
5
  require 'pp'
6
6
 
7
- $LOAD_PATH.unshift File.dirname(__FILE__) + "/../lib"
8
7
  require 'model_set'
9
8
 
10
9
  class Test::Unit::TestCase
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: model_set
3
3
  version: !ruby/object:Gem::Version
4
- hash: 19
4
+ hash: 17
5
5
  prerelease:
6
6
  segments:
7
7
  - 1
8
8
  - 1
9
- - 0
10
- version: 1.1.0
9
+ - 1
10
+ version: 1.1.1
11
11
  platform: ruby
12
12
  authors:
13
13
  - Justin Balthrop
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2013-06-03 00:00:00 -07:00
18
+ date: 2013-07-02 00:00:00 -07:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency