wherewolf 0.7.0 → 0.8.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 35721f5885f654c386fca49a3b277eab442f76b0
4
+ data.tar.gz: 1f668ca9b6a0f81deb498570ba2f1fd333a496f9
5
+ SHA512:
6
+ metadata.gz: f576638aa3e17ac22c7dc0d7d3b8b72e617216d3d1a5f4d3a9707080b2a1fecb665d32b57c9d5806bc529babb4cf85d00fd4b375577bad3172073da6980bb785
7
+ data.tar.gz: 2e7998b16fc20ec460c1d0176e11652519dbaff18c9b521de0404bfe471fc03a1e2eb9fe7e52233ae6d3006896b3f8c62c9bee5d5eb14b687bdbb9e1a662959c
@@ -1,12 +1,13 @@
1
1
  language: ruby
2
2
  rvm:
3
+ - 2.2.0
4
+ - 2.1.0
5
+ - 2.0.0
3
6
  - 1.9.3
4
- - rbx-18mode
5
- - rbx-19mode
6
- - 1.8.7
7
7
 
8
8
  env:
9
9
  - RAILS_VERSION=""
10
+ - RAILS_VERSION="~>4.0.0"
10
11
  - RAILS_VERSION="~>3.2.0"
11
12
  - RAILS_VERSION="~>3.1.0"
12
13
  - RAILS_VERSION="~>3.0.0"
@@ -1,122 +1,164 @@
1
1
  GEM
2
2
  remote: http://rubygems.org/
3
3
  specs:
4
- actionmailer (3.2.8)
5
- actionpack (= 3.2.8)
6
- mail (~> 2.4.4)
7
- actionpack (3.2.8)
8
- activemodel (= 3.2.8)
9
- activesupport (= 3.2.8)
10
- builder (~> 3.0.0)
4
+ actionmailer (4.2.5.2)
5
+ actionpack (= 4.2.5.2)
6
+ actionview (= 4.2.5.2)
7
+ activejob (= 4.2.5.2)
8
+ mail (~> 2.5, >= 2.5.4)
9
+ rails-dom-testing (~> 1.0, >= 1.0.5)
10
+ actionpack (4.2.5.2)
11
+ actionview (= 4.2.5.2)
12
+ activesupport (= 4.2.5.2)
13
+ rack (~> 1.6)
14
+ rack-test (~> 0.6.2)
15
+ rails-dom-testing (~> 1.0, >= 1.0.5)
16
+ rails-html-sanitizer (~> 1.0, >= 1.0.2)
17
+ actionview (4.2.5.2)
18
+ activesupport (= 4.2.5.2)
19
+ builder (~> 3.1)
11
20
  erubis (~> 2.7.0)
12
- journey (~> 1.0.4)
13
- rack (~> 1.4.0)
14
- rack-cache (~> 1.2)
15
- rack-test (~> 0.6.1)
16
- sprockets (~> 2.1.3)
17
- activemodel (3.2.8)
18
- activesupport (= 3.2.8)
19
- builder (~> 3.0.0)
20
- activerecord (3.2.8)
21
- activemodel (= 3.2.8)
22
- activesupport (= 3.2.8)
23
- arel (~> 3.0.2)
24
- tzinfo (~> 0.3.29)
25
- activeresource (3.2.8)
26
- activemodel (= 3.2.8)
27
- activesupport (= 3.2.8)
28
- activesupport (3.2.8)
29
- i18n (~> 0.6)
30
- multi_json (~> 1.0)
31
- arel (3.0.2)
32
- blankslate (2.1.2.4)
33
- builder (3.0.3)
21
+ rails-dom-testing (~> 1.0, >= 1.0.5)
22
+ rails-html-sanitizer (~> 1.0, >= 1.0.2)
23
+ activejob (4.2.5.2)
24
+ activesupport (= 4.2.5.2)
25
+ globalid (>= 0.3.0)
26
+ activerecord (1.6.0)
27
+ activesupport (4.2.5.2)
28
+ i18n (~> 0.7)
29
+ json (~> 1.7, >= 1.7.7)
30
+ minitest (~> 5.1)
31
+ thread_safe (~> 0.3, >= 0.3.4)
32
+ tzinfo (~> 1.1)
33
+ addressable (2.4.0)
34
+ arel (7.0.0)
35
+ blankslate (3.1.3)
36
+ builder (3.2.2)
37
+ coderay (1.1.1)
38
+ descendants_tracker (0.0.4)
39
+ thread_safe (~> 0.3, >= 0.3.1)
40
+ docile (1.1.5)
34
41
  erubis (2.7.0)
35
- ffi (1.1.5)
36
- git (1.2.5)
37
- guard (1.3.2)
38
- listen (>= 0.4.2)
39
- thor (>= 0.14.6)
40
- guard-test (0.5.0)
41
- guard (>= 1.1.0)
42
- test-unit (~> 2.2)
43
- hike (1.2.1)
44
- i18n (0.6.1)
45
- jeweler (1.8.4)
46
- bundler (~> 1.0)
42
+ faraday (0.9.2)
43
+ multipart-post (>= 1.2, < 3)
44
+ ffi (1.9.10)
45
+ formatador (0.2.5)
46
+ git (1.3.0)
47
+ github_api (0.13.1)
48
+ addressable (~> 2.4.0)
49
+ descendants_tracker (~> 0.0.4)
50
+ faraday (~> 0.8, < 0.10)
51
+ hashie (>= 3.4)
52
+ multi_json (>= 1.7.5, < 2.0)
53
+ oauth2
54
+ globalid (0.3.6)
55
+ activesupport (>= 4.1.0)
56
+ guard (2.13.0)
57
+ formatador (>= 0.2.4)
58
+ listen (>= 2.7, <= 4.0)
59
+ lumberjack (~> 1.0)
60
+ nenv (~> 0.1)
61
+ notiffany (~> 0.0)
62
+ pry (>= 0.9.12)
63
+ shellany (~> 0.0)
64
+ thor (>= 0.18.1)
65
+ guard-compat (1.2.1)
66
+ guard-test (2.0.6)
67
+ guard-compat (~> 1.2)
68
+ test-unit (~> 3.0)
69
+ hashie (3.4.3)
70
+ highline (1.7.8)
71
+ i18n (0.7.0)
72
+ jeweler (2.0.1)
73
+ builder
74
+ bundler (>= 1.0)
47
75
  git (>= 1.2.5)
76
+ github_api
77
+ highline (>= 1.6.15)
78
+ nokogiri (>= 1.5.10)
48
79
  rake
49
80
  rdoc
50
- journey (1.0.4)
51
- json (1.7.5)
52
- listen (0.4.7)
53
- rb-fchange (~> 0.0.5)
54
- rb-fsevent (~> 0.9.1)
55
- rb-inotify (~> 0.8.8)
56
- mail (2.4.4)
57
- i18n (>= 0.4.0)
58
- mime-types (~> 1.16)
59
- treetop (~> 1.4.8)
60
- metaclass (0.0.1)
61
- mime-types (1.19)
62
- mocha (0.12.4)
81
+ json (1.8.3)
82
+ jwt (1.5.1)
83
+ listen (3.0.6)
84
+ rb-fsevent (>= 0.9.3)
85
+ rb-inotify (>= 0.9.7)
86
+ loofah (2.0.3)
87
+ nokogiri (>= 1.5.9)
88
+ lumberjack (1.0.10)
89
+ mail (2.6.3)
90
+ mime-types (>= 1.16, < 3)
91
+ metaclass (0.0.4)
92
+ method_source (0.8.2)
93
+ mime-types (2.99.1)
94
+ mini_portile2 (2.0.0)
95
+ minitest (5.8.4)
96
+ mocha (1.1.0)
63
97
  metaclass (~> 0.0.1)
64
- multi_json (1.3.6)
65
- parslet (1.4.0)
66
- blankslate (~> 2.0)
67
- polyglot (0.3.3)
68
- rack (1.4.1)
69
- rack-cache (1.2)
70
- rack (>= 0.4)
71
- rack-ssl (1.3.2)
72
- rack
73
- rack-test (0.6.1)
98
+ multi_json (1.11.2)
99
+ multi_xml (0.5.5)
100
+ multipart-post (2.0.0)
101
+ nenv (0.3.0)
102
+ nokogiri (1.6.7.2)
103
+ mini_portile2 (~> 2.0.0.rc2)
104
+ notiffany (0.0.8)
105
+ nenv (~> 0.1)
106
+ shellany (~> 0.0)
107
+ oauth2 (1.1.0)
108
+ faraday (>= 0.8, < 0.10)
109
+ jwt (~> 1.0, < 1.5.2)
110
+ multi_json (~> 1.3)
111
+ multi_xml (~> 0.5)
112
+ rack (>= 1.2, < 3)
113
+ parslet (1.7.1)
114
+ blankslate (>= 2.0, <= 4.0)
115
+ power_assert (0.2.7)
116
+ pry (0.10.3)
117
+ coderay (~> 1.1.0)
118
+ method_source (~> 0.8.1)
119
+ slop (~> 3.4)
120
+ rack (1.6.4)
121
+ rack-test (0.6.3)
74
122
  rack (>= 1.0)
75
- rails (3.2.8)
76
- actionmailer (= 3.2.8)
77
- actionpack (= 3.2.8)
78
- activerecord (= 3.2.8)
79
- activeresource (= 3.2.8)
80
- activesupport (= 3.2.8)
81
- bundler (~> 1.0)
82
- railties (= 3.2.8)
83
- railties (3.2.8)
84
- actionpack (= 3.2.8)
85
- activesupport (= 3.2.8)
86
- rack-ssl (~> 1.3.2)
87
- rake (>= 0.8.7)
88
- rdoc (~> 3.4)
89
- thor (>= 0.14.6, < 2.0)
90
- rake (0.9.2.2)
91
- rb-fchange (0.0.5)
92
- ffi
93
- rb-fsevent (0.9.1)
94
- rb-inotify (0.8.8)
123
+ rails (0.9.5)
124
+ actionmailer (>= 0.6.1)
125
+ actionpack (>= 1.4.0)
126
+ activerecord (>= 1.6.0)
127
+ rake (>= 0.4.15)
128
+ rails-deprecated_sanitizer (1.0.3)
129
+ activesupport (>= 4.2.0.alpha)
130
+ rails-dom-testing (1.0.7)
131
+ activesupport (>= 4.2.0.beta, < 5.0)
132
+ nokogiri (~> 1.6.0)
133
+ rails-deprecated_sanitizer (>= 1.0.1)
134
+ rails-html-sanitizer (1.0.3)
135
+ loofah (~> 2.0)
136
+ rake (10.5.0)
137
+ rb-fsevent (0.9.7)
138
+ rb-inotify (0.9.7)
95
139
  ffi (>= 0.5.0)
96
- rdoc (3.12)
140
+ rdoc (4.2.2)
97
141
  json (~> 1.4)
98
- shoulda (3.3.0)
99
- shoulda-context (~> 1.0)
100
- shoulda-matchers (~> 1.4)
101
- shoulda-context (1.0.0)
102
- shoulda-matchers (1.4.0)
142
+ shellany (0.0.1)
143
+ shoulda (3.5.0)
144
+ shoulda-context (~> 1.0, >= 1.0.1)
145
+ shoulda-matchers (>= 1.4.1, < 3.0)
146
+ shoulda-context (1.2.1)
147
+ shoulda-matchers (2.8.0)
103
148
  activesupport (>= 3.0.0)
104
- simplecov (0.6.4)
105
- multi_json (~> 1.0)
106
- simplecov-html (~> 0.5.3)
107
- simplecov-html (0.5.3)
108
- sprockets (2.1.3)
109
- hike (~> 1.2)
110
- rack (~> 1.0)
111
- tilt (~> 1.1, != 1.3.0)
112
- sqlite3 (1.3.6)
113
- test-unit (2.5.2)
114
- thor (0.16.0)
115
- tilt (1.3.3)
116
- treetop (1.4.10)
117
- polyglot
118
- polyglot (>= 0.3.1)
119
- tzinfo (0.3.33)
149
+ simplecov (0.11.2)
150
+ docile (~> 1.1.0)
151
+ json (~> 1.8)
152
+ simplecov-html (~> 0.10.0)
153
+ simplecov-html (0.10.0)
154
+ slop (3.6.0)
155
+ sqlite3 (1.3.11)
156
+ test-unit (3.1.7)
157
+ power_assert
158
+ thor (0.19.1)
159
+ thread_safe (0.3.5)
160
+ tzinfo (1.2.2)
161
+ thread_safe (~> 0.1)
120
162
 
121
163
  PLATFORMS
122
164
  ruby
data/Rakefile CHANGED
@@ -22,7 +22,7 @@ Jeweler::Tasks.new do |gem|
22
22
  gem.description = %Q{Wherewolf allows you to consume search terms as strings without worrying about database injections. It parses the query and converts it into ARel. It's great for creating filterable REST APIs.}
23
23
  gem.email = "myles@madpilot.com.au"
24
24
  gem.authors = ["Myles Eftos"]
25
- gem.version = "0.7.0"
25
+ gem.version = "0.8.0"
26
26
  # dependencies defined in Gemfile
27
27
  end
28
28
  Jeweler::RubygemsDotOrgTasks.new
@@ -10,12 +10,12 @@ module Wherewolf
10
10
  unless columns(table).include?(value.to_sym)
11
11
  source = Parslet::Source.new(value.to_s)
12
12
  cause = Parslet::Cause.new('Column not found', source, value.offset, [])
13
- raise Parslet::ParseFailed.new('Column not found', cause)
13
+ raise Parslet::ParseFailed.new('Column not found', cause)
14
14
  end
15
15
  end
16
16
 
17
17
  def columns(table)
18
- columns = table.columns.map(&:name)
18
+ columns = table.engine.columns.map(&:name).map(&:to_sym)
19
19
  columns = columns & whitelist if whitelist
20
20
  columns -= blacklist if blacklist
21
21
  columns
@@ -2,14 +2,16 @@
2
2
  # DO NOT EDIT THIS FILE DIRECTLY
3
3
  # Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
4
4
  # -*- encoding: utf-8 -*-
5
+ # stub: wherewolf 0.8.0 ruby lib
5
6
 
6
7
  Gem::Specification.new do |s|
7
8
  s.name = "wherewolf"
8
- s.version = "0.7.0"
9
+ s.version = "0.8.0"
9
10
 
10
11
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
12
+ s.require_paths = ["lib"]
11
13
  s.authors = ["Myles Eftos"]
12
- s.date = "2013-08-16"
14
+ s.date = "2016-03-03"
13
15
  s.description = "Wherewolf allows you to consume search terms as strings without worrying about database injections. It parses the query and converts it into ARel. It's great for creating filterable REST APIs."
14
16
  s.email = "myles@madpilot.com.au"
15
17
  s.extra_rdoc_files = [
@@ -45,12 +47,11 @@ Gem::Specification.new do |s|
45
47
  ]
46
48
  s.homepage = "http://github.com/madpilot/wherewolf"
47
49
  s.licenses = ["MIT"]
48
- s.require_paths = ["lib"]
49
- s.rubygems_version = "1.8.15"
50
+ s.rubygems_version = "2.4.6"
50
51
  s.summary = "Makes filtering and searching to your REST API crazy easy."
51
52
 
52
53
  if s.respond_to? :specification_version then
53
- s.specification_version = 3
54
+ s.specification_version = 4
54
55
 
55
56
  if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
56
57
  s.add_runtime_dependency(%q<arel>, [">= 0"])
metadata CHANGED
@@ -1,104 +1,127 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: wherewolf
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.0
5
- prerelease:
4
+ version: 0.8.0
6
5
  platform: ruby
7
6
  authors:
8
7
  - Myles Eftos
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2013-08-16 00:00:00.000000000 Z
11
+ date: 2016-03-03 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: arel
16
- requirement: &70230414498620 !ruby/object:Gem::Requirement
17
- none: false
15
+ requirement: !ruby/object:Gem::Requirement
18
16
  requirements:
19
- - - ! '>='
17
+ - - ">="
20
18
  - !ruby/object:Gem::Version
21
19
  version: '0'
22
20
  type: :runtime
23
21
  prerelease: false
24
- version_requirements: *70230414498620
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ">="
25
+ - !ruby/object:Gem::Version
26
+ version: '0'
25
27
  - !ruby/object:Gem::Dependency
26
28
  name: parslet
27
- requirement: &70230414497280 !ruby/object:Gem::Requirement
28
- none: false
29
+ requirement: !ruby/object:Gem::Requirement
29
30
  requirements:
30
- - - ! '>='
31
+ - - ">="
31
32
  - !ruby/object:Gem::Version
32
33
  version: '0'
33
34
  type: :runtime
34
35
  prerelease: false
35
- version_requirements: *70230414497280
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ">="
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
36
41
  - !ruby/object:Gem::Dependency
37
42
  name: simplecov
38
- requirement: &70230414496000 !ruby/object:Gem::Requirement
39
- none: false
43
+ requirement: !ruby/object:Gem::Requirement
40
44
  requirements:
41
- - - ! '>='
45
+ - - ">="
42
46
  - !ruby/object:Gem::Version
43
47
  version: '0'
44
48
  type: :development
45
49
  prerelease: false
46
- version_requirements: *70230414496000
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ">="
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
47
55
  - !ruby/object:Gem::Dependency
48
56
  name: jeweler
49
- requirement: &70230414495000 !ruby/object:Gem::Requirement
50
- none: false
57
+ requirement: !ruby/object:Gem::Requirement
51
58
  requirements:
52
- - - ! '>='
59
+ - - ">="
53
60
  - !ruby/object:Gem::Version
54
61
  version: '0'
55
62
  type: :development
56
63
  prerelease: false
57
- version_requirements: *70230414495000
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - ">="
67
+ - !ruby/object:Gem::Version
68
+ version: '0'
58
69
  - !ruby/object:Gem::Dependency
59
70
  name: bundler
60
- requirement: &70230414494320 !ruby/object:Gem::Requirement
61
- none: false
71
+ requirement: !ruby/object:Gem::Requirement
62
72
  requirements:
63
- - - ! '>='
73
+ - - ">="
64
74
  - !ruby/object:Gem::Version
65
75
  version: '0'
66
76
  type: :development
67
77
  prerelease: false
68
- version_requirements: *70230414494320
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - ">="
81
+ - !ruby/object:Gem::Version
82
+ version: '0'
69
83
  - !ruby/object:Gem::Dependency
70
84
  name: rdoc
71
- requirement: &70230414493480 !ruby/object:Gem::Requirement
72
- none: false
85
+ requirement: !ruby/object:Gem::Requirement
73
86
  requirements:
74
- - - ! '>='
87
+ - - ">="
75
88
  - !ruby/object:Gem::Version
76
89
  version: '0'
77
90
  type: :development
78
91
  prerelease: false
79
- version_requirements: *70230414493480
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - ">="
95
+ - !ruby/object:Gem::Version
96
+ version: '0'
80
97
  - !ruby/object:Gem::Dependency
81
98
  name: guard
82
- requirement: &70230414526800 !ruby/object:Gem::Requirement
83
- none: false
99
+ requirement: !ruby/object:Gem::Requirement
84
100
  requirements:
85
- - - ! '>='
101
+ - - ">="
86
102
  - !ruby/object:Gem::Version
87
103
  version: '0'
88
104
  type: :development
89
105
  prerelease: false
90
- version_requirements: *70230414526800
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - ">="
109
+ - !ruby/object:Gem::Version
110
+ version: '0'
91
111
  - !ruby/object:Gem::Dependency
92
112
  name: guard-test
93
- requirement: &70230414526240 !ruby/object:Gem::Requirement
94
- none: false
113
+ requirement: !ruby/object:Gem::Requirement
95
114
  requirements:
96
- - - ! '>='
115
+ - - ">="
97
116
  - !ruby/object:Gem::Version
98
117
  version: '0'
99
118
  type: :development
100
119
  prerelease: false
101
- version_requirements: *70230414526240
120
+ version_requirements: !ruby/object:Gem::Requirement
121
+ requirements:
122
+ - - ">="
123
+ - !ruby/object:Gem::Version
124
+ version: '0'
102
125
  description: Wherewolf allows you to consume search terms as strings without worrying
103
126
  about database injections. It parses the query and converts it into ARel. It's great
104
127
  for creating filterable REST APIs.
@@ -109,8 +132,8 @@ extra_rdoc_files:
109
132
  - LICENSE.txt
110
133
  - README.md
111
134
  files:
112
- - .document
113
- - .travis.yml
135
+ - ".document"
136
+ - ".travis.yml"
114
137
  - Gemfile
115
138
  - Gemfile.lock
116
139
  - Guardfile
@@ -137,29 +160,25 @@ files:
137
160
  homepage: http://github.com/madpilot/wherewolf
138
161
  licenses:
139
162
  - MIT
163
+ metadata: {}
140
164
  post_install_message:
141
165
  rdoc_options: []
142
166
  require_paths:
143
167
  - lib
144
168
  required_ruby_version: !ruby/object:Gem::Requirement
145
- none: false
146
169
  requirements:
147
- - - ! '>='
170
+ - - ">="
148
171
  - !ruby/object:Gem::Version
149
172
  version: '0'
150
- segments:
151
- - 0
152
- hash: 2295607200233817462
153
173
  required_rubygems_version: !ruby/object:Gem::Requirement
154
- none: false
155
174
  requirements:
156
- - - ! '>='
175
+ - - ">="
157
176
  - !ruby/object:Gem::Version
158
177
  version: '0'
159
178
  requirements: []
160
179
  rubyforge_project:
161
- rubygems_version: 1.8.15
180
+ rubygems_version: 2.4.6
162
181
  signing_key:
163
- specification_version: 3
182
+ specification_version: 4
164
183
  summary: Makes filtering and searching to your REST API crazy easy.
165
184
  test_files: []