query-interface-server 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 9851eabedf2d29f362138071d37b7031791b9a14
4
+ data.tar.gz: ea422779dc7671b5d82a8467d9ef7cfbd05a5039
5
+ SHA512:
6
+ metadata.gz: 6504bfcff41ddc547ca77dbf6fa080ff79fe70ecc0bc1b97ead22689bb50e0b1498aa1f0bb83c9efd21b00d399de2175d7f736b655834536bed7711777672635
7
+ data.tar.gz: b54bb5b40f58dad6bd4e9ce14a7caba0710f80bdec2ae306d8bd918596fd1c7be8b38d095b3e37923b258baddb63fd0eb6acc39aff6f6de17df4fc7de007a437
data/Gemfile ADDED
@@ -0,0 +1,10 @@
1
+ source 'http://rubygems.org'
2
+
3
+ gem 'sequel'
4
+
5
+ group :development do
6
+ gem 'rake'
7
+ gem 'rspec'
8
+ gem 'rails'
9
+ gem 'rspec-rails'
10
+ end
data/Gemfile.lock ADDED
@@ -0,0 +1,101 @@
1
+ GEM
2
+ remote: http://rubygems.org/
3
+ specs:
4
+ actionmailer (4.0.0)
5
+ actionpack (= 4.0.0)
6
+ mail (~> 2.5.3)
7
+ actionpack (4.0.0)
8
+ activesupport (= 4.0.0)
9
+ builder (~> 3.1.0)
10
+ erubis (~> 2.7.0)
11
+ rack (~> 1.5.2)
12
+ rack-test (~> 0.6.2)
13
+ activemodel (4.0.0)
14
+ activesupport (= 4.0.0)
15
+ builder (~> 3.1.0)
16
+ activerecord (4.0.0)
17
+ activemodel (= 4.0.0)
18
+ activerecord-deprecated_finders (~> 1.0.2)
19
+ activesupport (= 4.0.0)
20
+ arel (~> 4.0.0)
21
+ activerecord-deprecated_finders (1.0.3)
22
+ activesupport (4.0.0)
23
+ i18n (~> 0.6, >= 0.6.4)
24
+ minitest (~> 4.2)
25
+ multi_json (~> 1.3)
26
+ thread_safe (~> 0.1)
27
+ tzinfo (~> 0.3.37)
28
+ arel (4.0.0)
29
+ atomic (1.1.10)
30
+ builder (3.1.4)
31
+ diff-lcs (1.2.4)
32
+ erubis (2.7.0)
33
+ hike (1.2.3)
34
+ i18n (0.6.4)
35
+ mail (2.5.4)
36
+ mime-types (~> 1.16)
37
+ treetop (~> 1.4.8)
38
+ mime-types (1.23)
39
+ minitest (4.7.5)
40
+ multi_json (1.7.7)
41
+ polyglot (0.3.3)
42
+ rack (1.5.2)
43
+ rack-test (0.6.2)
44
+ rack (>= 1.0)
45
+ rails (4.0.0)
46
+ actionmailer (= 4.0.0)
47
+ actionpack (= 4.0.0)
48
+ activerecord (= 4.0.0)
49
+ activesupport (= 4.0.0)
50
+ bundler (>= 1.3.0, < 2.0)
51
+ railties (= 4.0.0)
52
+ sprockets-rails (~> 2.0.0)
53
+ railties (4.0.0)
54
+ actionpack (= 4.0.0)
55
+ activesupport (= 4.0.0)
56
+ rake (>= 0.8.7)
57
+ thor (>= 0.18.1, < 2.0)
58
+ rake (10.1.0)
59
+ rspec (2.14.1)
60
+ rspec-core (~> 2.14.0)
61
+ rspec-expectations (~> 2.14.0)
62
+ rspec-mocks (~> 2.14.0)
63
+ rspec-core (2.14.2)
64
+ rspec-expectations (2.14.0)
65
+ diff-lcs (>= 1.1.3, < 2.0)
66
+ rspec-mocks (2.14.1)
67
+ rspec-rails (2.14.0)
68
+ actionpack (>= 3.0)
69
+ activesupport (>= 3.0)
70
+ railties (>= 3.0)
71
+ rspec-core (~> 2.14.0)
72
+ rspec-expectations (~> 2.14.0)
73
+ rspec-mocks (~> 2.14.0)
74
+ sequel (4.0.0)
75
+ sprockets (2.10.0)
76
+ hike (~> 1.2)
77
+ multi_json (~> 1.0)
78
+ rack (~> 1.0)
79
+ tilt (~> 1.1, != 1.3.0)
80
+ sprockets-rails (2.0.0)
81
+ actionpack (>= 3.0)
82
+ activesupport (>= 3.0)
83
+ sprockets (~> 2.8)
84
+ thor (0.18.1)
85
+ thread_safe (0.1.0)
86
+ atomic
87
+ tilt (1.4.1)
88
+ treetop (1.4.14)
89
+ polyglot
90
+ polyglot (>= 0.3.1)
91
+ tzinfo (0.3.37)
92
+
93
+ PLATFORMS
94
+ ruby
95
+
96
+ DEPENDENCIES
97
+ rails
98
+ rake
99
+ rspec
100
+ rspec-rails
101
+ sequel
data/LICENSE ADDED
@@ -0,0 +1,13 @@
1
+ Copyright (c) 2013 RadarServices Smart IT-Security <gems@radarservices.com>
2
+
3
+ Permission to use, copy, modify, and/or distribute this software for any
4
+ purpose with or without fee is hereby granted, provided that the above
5
+ copyright notice and this permission notice appear in all copies.
6
+
7
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
8
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND
9
+ FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
10
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
11
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
12
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
13
+ PERFORMANCE OF THIS SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,21 @@
1
+ # Query Interface Server
2
+
3
+ ``query-interface-server`` provides a server implementation for ``query-interface-client``.
4
+
5
+ ## Installation
6
+
7
+ ```
8
+ $ gem install query-interface-server
9
+ ```
10
+
11
+ ```ruby
12
+ require 'query-interface-server'
13
+ ```
14
+
15
+ or use ``gem 'query-interface-server'`` in your Gemfile when using bundler.
16
+
17
+ ##Examples
18
+
19
+
20
+ ### Usage
21
+
data/Rakefile ADDED
@@ -0,0 +1,7 @@
1
+ require 'bundler/gem_tasks'
2
+ require 'rspec/core/rake_task'
3
+
4
+ RSpec::Core::RakeTask.new
5
+
6
+ task default: :spec
7
+ task test: :spec
@@ -0,0 +1,3 @@
1
+ require 'sequel'
2
+
3
+ require 'query-interface-server/resource'
@@ -0,0 +1,93 @@
1
+ module QueryInterface
2
+ module Server
3
+ module Resource
4
+
5
+ def self.for(model)
6
+ Module.new do
7
+ define_singleton_method(:included) do |base|
8
+ base.send(:define_method, :query_model) { model }
9
+ end
10
+ include InstanceMethods
11
+ end
12
+ end
13
+
14
+ module InstanceMethods
15
+
16
+ def query_send(method_name, *args)
17
+ if respond_to?(method_name)
18
+ send(method_name, *args)
19
+ elsif @instances.respond_to?(method_name)
20
+ @instances.send(method_name, *args)
21
+ elsif block_given?
22
+ yield(*args)
23
+ else
24
+ raise Exception, "method #{method_name} not found"
25
+ end
26
+ end
27
+
28
+ def order_query(order)
29
+ order.each do |field|
30
+ direction = :asc
31
+ if field.starts_with?('-')
32
+ field = field[1..-1]
33
+ direction = :desc
34
+ end
35
+ @instances = query_send("order_#{field}_#{direction}") do
36
+ @instances.order_append(Sequel.send(direction, field.to_sym))
37
+ end
38
+ end
39
+ end
40
+
41
+ def query
42
+ default_data = {"conditions" => [], "with" => [], "order" => [] }
43
+ if query_data = params[:query_data]
44
+ unless query_data.is_a?(Hash)
45
+ query_data = JSON.parse(query_data)
46
+ end
47
+ query_data = default_data.merge(query_data)
48
+
49
+ @instances = query_model.filter.select_all(query_model.table_name)
50
+ query_data["conditions"].each do |key, value|
51
+ @instances = query_send("filter_#{key}", value)
52
+ end
53
+
54
+ query_data["with"].each do |field|
55
+ @instances = query_send("with_#{field}")
56
+ end
57
+
58
+ order = query_data['order'] << "#{query_model.table_name}__id"
59
+ order_query(order)
60
+
61
+ case query_data["mode"].to_sym
62
+ when :evaluate
63
+ @result = @instances
64
+ when :count
65
+ @result = {count: @instances.count}
66
+ when :ids
67
+ id_selector = "#{query_model.table_name}__id".to_sym
68
+ @result = @instances.select(id_selector).map(&:id)
69
+ when :paginate
70
+ page = query_data["page"].to_i
71
+ per_page = query_data["per_page"].to_i
72
+ @result = {total: @instances.count, objects: @instances.paginate(page, per_page)}
73
+ when :first
74
+ @result = @instances.first
75
+ when :last
76
+ @result = @instances.last
77
+ else
78
+ return head :unprocessable_entity
79
+ end
80
+ if @result
81
+ respond_with(@result)
82
+ else
83
+ head :not_found
84
+ end
85
+ else
86
+ head :unprocessable_entity
87
+ end
88
+ end
89
+ end
90
+
91
+ end
92
+ end
93
+ end
@@ -0,0 +1,7 @@
1
+ module QueryInterface
2
+ module Server
3
+
4
+ VERSION = '0.0.1'
5
+
6
+ end
7
+ end
@@ -0,0 +1,31 @@
1
+ # -*- encoding: utf-8 -*-
2
+
3
+ require File.join(File.dirname(__FILE__), 'lib', 'query-interface-server', 'version')
4
+
5
+ require 'date'
6
+
7
+ Gem::Specification.new do |s|
8
+ s.name = "query-interface-server"
9
+ s.version = QueryInterface::Server::VERSION
10
+
11
+ s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
12
+ s.authors = ["Andreas Kopecky <andreas.kopecky@radarservices.com>", "Anton Bangratz <anton.bangratz@radarservices.com>", "Martin Natano <martin.natano@radarservices.com"]
13
+ s.date = Date.today.strftime
14
+ s.description = "Server for the radar query interface"
15
+ s.email = "gems [a] radarservices [d] com"
16
+ s.files = `git ls-files`.split("\n").reject { |file| file == '.gitignore' }
17
+ s.test_files = `git ls-files -- {spec}/*`.split("\n")
18
+ s.extra_rdoc_files = %w[LICENSE README.md]
19
+
20
+ s.homepage = "http://github.com/rs-dev/query-interface-server"
21
+ s.require_paths = ["lib"]
22
+ # s.rubygems_version = "1.8.24"
23
+ s.summary = "Server for the radar query interface"
24
+ s.license = "ISC"
25
+
26
+ s.add_runtime_dependency(%q<sequel>)
27
+ s.add_development_dependency(%q<rake>)
28
+ s.add_development_dependency(%q<rspec>)
29
+ s.add_development_dependency(%q<rails>)
30
+ s.add_development_dependency(%q<rspec-rails>)
31
+ end
@@ -0,0 +1,195 @@
1
+ require "spec_helper"
2
+
3
+ class Foo; end
4
+
5
+ describe QueryInterface, type: :controller do
6
+ controller(ActionController::Base) do
7
+ respond_to :json
8
+ include QueryInterface::Server::Resource.for(Foo)
9
+ end
10
+ let(:foo){ double_model(Foo).as_null_object }
11
+ let(:foos){ double('foo instances', to_json: '{}') }
12
+
13
+ it "provides query_model as an instance method in the base class" do
14
+ controller.query_model.should == Foo
15
+ end
16
+
17
+ context "GET 'query'" do
18
+
19
+ context "invalid calls" do
20
+ before(:each) do
21
+ routes.draw { get "query" => "anonymous#query" }
22
+ end
23
+
24
+ context "without parameters" do
25
+ it "should return an error when there is no query_data in params" do
26
+ get :query, format: :json
27
+ response.status.should == 422
28
+ end
29
+ end
30
+ end
31
+
32
+ context "valid calls" do
33
+ before(:each) do
34
+ routes.draw { get "query" => "anonymous#query" }
35
+ Foo.stub(:filter).and_return(foos)
36
+ Foo.stub(:table_name).and_return(:foo_table)
37
+ controller.stub(:order_query)
38
+ foos.should_receive(:select_all).with(:foo_table).and_return(foos)
39
+ end
40
+
41
+ def query(query_data = {})
42
+ get :query, query_data: {conditions: {}, with: [], order: [], mode: :evaluate}.merge(query_data), format: :json
43
+ end
44
+
45
+ context "query_data['conditions']" do
46
+ let(:filtered) { double('filtered').as_null_object }
47
+
48
+ it "returns all instances when the conditions are empty" do
49
+ query
50
+ assigns(:instances).should == foos
51
+ response.should be_success
52
+ end
53
+
54
+ it "calls query_send with filter_* for every condition in query_data['conditions']" do
55
+ controller.should_receive(:query_send).with('filter_foo', 'bar').and_return(filtered)
56
+ query conditions: {foo: 'bar'}
57
+ assigns(:instances).should == filtered
58
+ response.should be_ok
59
+ end
60
+ end
61
+
62
+ context "query_data['with']" do
63
+ let(:decorated) { double('decorated').as_null_object }
64
+
65
+ it "returns the instances unmodified when 'with' is empty" do
66
+ query
67
+ assigns(:instances).should == foos
68
+ response.should be_ok
69
+ end
70
+
71
+ it "calls query_send with with_* for every field in query_data['with']" do
72
+ controller.should_receive(:query_send).with('with_foo').and_return(decorated)
73
+ query with: [:foo]
74
+ assigns(:instances).should == decorated
75
+ response.should be_ok
76
+ end
77
+ end
78
+
79
+ context "query_data['order']" do
80
+ let(:ordered) { double('ordered').as_null_object }
81
+
82
+ it "returns the instances unordered when 'order' is empty" do
83
+ query
84
+ assigns(:instances).should == foos
85
+ response.should be_ok
86
+ end
87
+
88
+ it "calls order_query with query_data['order'] and attaches default id ordering to the end" do
89
+ controller.should_receive(:order_query).with(['foo', '-bar', 'baz', 'foo_table__id']).and_return(ordered)
90
+ query order: ["foo", "-bar", "baz"]
91
+ response.should be_ok
92
+ end
93
+ end
94
+
95
+ context "query_data['mode']" do
96
+ it "should return an error when the mode is not known" do
97
+ query mode: 'frobnicate'
98
+ response.status.should == 422
99
+ end
100
+
101
+ it "should return a list of instances when mode == evaluate" do
102
+ query mode: 'evaluate'
103
+ response.should be_ok
104
+ assigns(:result).should == assigns(:instances)
105
+ end
106
+
107
+ it "should return a count of instances when mode == count" do
108
+ foos.should_receive(:count).and_return(42)
109
+ query mode: 'count'
110
+ response.should be_ok
111
+ assigns(:result).should == {count: 42}
112
+ end
113
+
114
+ it "should return a hash with objects and total when mode == paginate" do
115
+ foos.should_receive(:count).and_return(42)
116
+ foos.should_receive(:paginate).with(1, 10).and_return('paginated')
117
+ query mode: 'paginate', page: 1, per_page: 10
118
+ response.should be_ok
119
+ assigns(:result).should == {objects: 'paginated', total: 42}
120
+ end
121
+
122
+ it "should return a single object or nil when mode == first" do
123
+ foos.should_receive(:first).and_return('first object')
124
+ query mode: 'first'
125
+ assigns(:result).should == 'first object'
126
+ end
127
+
128
+ it "should return a single object or nil when mode == last" do
129
+ foos.should_receive(:last).and_return('last object')
130
+ query mode: 'last'
131
+ assigns(:result).should == 'last object'
132
+ end
133
+ end
134
+ end
135
+ end
136
+
137
+ context "query send" do
138
+ let(:send_result) {double("send result")}
139
+
140
+ before(:each) do
141
+ @instances = double("instances")
142
+ controller.instance_variable_set(:@instances, @instances)
143
+ end
144
+
145
+ it "should call the supplied method name on the controller if it responds to such a message" do
146
+ controller.should_receive(:respond_to?).with("method_name_foo").and_return(true)
147
+ controller.should_receive(:send).with("method_name_foo", "argument").and_return(send_result)
148
+ controller.query_send("method_name_foo", "argument").should eq(send_result)
149
+ end
150
+
151
+ it "should call the supplied method name on @instances if avaiable and controller doesnt provide the method" do
152
+ controller.should_receive(:respond_to?).with("method_name_foo").and_return(false)
153
+ @instances.should_receive(:respond_to?).with("method_name_foo").and_return(true)
154
+ @instances.should_receive(:send).with("method_name_foo", "argument").and_return(send_result)
155
+ controller.query_send("method_name_foo", "argument").should eq(send_result)
156
+ end
157
+
158
+ it "should yield arguments to a supplied block if neither instances nor controller provide the requested method" do
159
+ controller.should_receive(:respond_to?).with("method_name_foo").and_return(false)
160
+ @instances.should_receive(:respond_to?).with("method_name_foo").and_return(false)
161
+ controller.query_send("method_name_foo", "argument") {|*args| args[0].should eq("argument")}
162
+ end
163
+
164
+ it "should raise an exception if non of the above can be done" do
165
+ controller.should_receive(:respond_to?).with("method_name_foo").and_return(false)
166
+ @instances.should_receive(:respond_to?).with("method_name_foo").and_return(false)
167
+ expect {
168
+ controller.query_send("method_name_foo", "argument")
169
+ }.to raise_error(Exception, "method method_name_foo not found")
170
+ end
171
+ end
172
+
173
+ context "order_query" do
174
+ it "should call query_send with order_*_* for every order field" do
175
+ controller.instance_variable_set(:@instances, foos)
176
+ ordered_by_a = double('ordered by a')
177
+ ordered_by_a_b = double('ordered by a, b')
178
+ controller.should_receive(:query_send).with("order_a_asc").and_return(ordered_by_a)
179
+ controller.should_receive(:query_send).with("order_b_desc").and_return(ordered_by_a_b)
180
+ controller.order_query(['a', '-b'])
181
+ assigns(:instances).should == ordered_by_a_b
182
+ end
183
+
184
+ it "should guess the order parameters when no manual ordering is implemented" do
185
+ controller.instance_variable_set(:@instances, foos)
186
+ ordered_by_a = double('ordered by a')
187
+ ordered_by_a_b = double('ordered by a, b')
188
+ foos.should_receive(:order_append).with(Sequel.asc(:a)).and_return(ordered_by_a)
189
+ ordered_by_a.should_receive(:order_append).with(Sequel.desc(:b)).and_return(ordered_by_a_b)
190
+ controller.order_query(['a', '-b'])
191
+ assigns(:instances).should == ordered_by_a_b
192
+ end
193
+ end
194
+
195
+ end
@@ -0,0 +1,488 @@
1
+ DEPRECATION WARNING: You didn't set config.secret_key_base. Read the upgrade documentation to learn more about this new config option. (called from env_config at /home/natano/.rvm/gems/ruby-2.0.0-p247@query-interface-server/gems/railties-4.0.0/lib/rails/application.rb:141)
2
+ Processing by AnonymousController#query as JSON
3
+ Completed 422 Unprocessable Entity in 0ms
4
+ Processing by AnonymousController#query as JSON
5
+ Parameters: {"query_data"=>{"conditions"=>{}, "with"=>[], "order"=>[], "mode"=>:evaluate}}
6
+ Completed 500 Internal Server Error in 0ms
7
+ Processing by AnonymousController#query as JSON
8
+ Parameters: {"query_data"=>{"conditions"=>{"foo"=>"bar"}, "with"=>[], "order"=>[], "mode"=>:evaluate}}
9
+ Completed 500 Internal Server Error in 0ms
10
+ Processing by AnonymousController#query as JSON
11
+ Parameters: {"query_data"=>{"conditions"=>{}, "with"=>[], "order"=>[], "mode"=>:evaluate}}
12
+ Completed 500 Internal Server Error in 0ms
13
+ Processing by AnonymousController#query as JSON
14
+ Parameters: {"query_data"=>{"conditions"=>{}, "with"=>[:foo], "order"=>[], "mode"=>:evaluate}}
15
+ Completed 500 Internal Server Error in 0ms
16
+ Processing by AnonymousController#query as JSON
17
+ Parameters: {"query_data"=>{"conditions"=>{}, "with"=>[], "order"=>[], "mode"=>:evaluate}}
18
+ Completed 500 Internal Server Error in 0ms
19
+ Processing by AnonymousController#query as JSON
20
+ Parameters: {"query_data"=>{"conditions"=>{}, "with"=>[], "order"=>["foo", "-bar", "baz"], "mode"=>:evaluate}}
21
+ Completed 500 Internal Server Error in 0ms
22
+ Processing by AnonymousController#query as JSON
23
+ Parameters: {"query_data"=>{"conditions"=>{}, "with"=>[], "order"=>[], "mode"=>"frobnicate"}}
24
+ Completed 422 Unprocessable Entity in 0ms
25
+ Processing by AnonymousController#query as JSON
26
+ Parameters: {"query_data"=>{"conditions"=>{}, "with"=>[], "order"=>[], "mode"=>"evaluate"}}
27
+ Completed 500 Internal Server Error in 0ms
28
+ Processing by AnonymousController#query as JSON
29
+ Parameters: {"query_data"=>{"conditions"=>{}, "with"=>[], "order"=>[], "mode"=>"count"}}
30
+ Completed 500 Internal Server Error in 0ms
31
+ Processing by AnonymousController#query as JSON
32
+ Parameters: {"query_data"=>{"conditions"=>{}, "with"=>[], "order"=>[], "mode"=>"paginate", "page"=>1, "per_page"=>10}}
33
+ Completed 500 Internal Server Error in 20ms
34
+ Processing by AnonymousController#query as JSON
35
+ Parameters: {"query_data"=>{"conditions"=>{}, "with"=>[], "order"=>[], "mode"=>"first"}}
36
+ Completed 500 Internal Server Error in 0ms
37
+ Processing by AnonymousController#query as JSON
38
+ Parameters: {"query_data"=>{"conditions"=>{}, "with"=>[], "order"=>[], "mode"=>"last"}}
39
+ Completed 500 Internal Server Error in 0ms
40
+ DEPRECATION WARNING: You didn't set config.secret_key_base. Read the upgrade documentation to learn more about this new config option. (called from env_config at /home/natano/.rvm/gems/ruby-2.0.0-p247@query-interface-server/gems/railties-4.0.0/lib/rails/application.rb:141)
41
+ Processing by AnonymousController#query as JSON
42
+ Completed 422 Unprocessable Entity in 0ms
43
+ Processing by AnonymousController#query as JSON
44
+ Parameters: {"query_data"=>{"conditions"=>{}, "with"=>[], "order"=>[], "mode"=>:evaluate}}
45
+ Completed 200 OK in 3ms (Views: 0.1ms)
46
+ Processing by AnonymousController#query as JSON
47
+ Parameters: {"query_data"=>{"conditions"=>{"foo"=>"bar"}, "with"=>[], "order"=>[], "mode"=>:evaluate}}
48
+ Completed 200 OK in 1ms (Views: 0.1ms)
49
+ Processing by AnonymousController#query as JSON
50
+ Parameters: {"query_data"=>{"conditions"=>{}, "with"=>[], "order"=>[], "mode"=>:evaluate}}
51
+ Completed 200 OK in 1ms (Views: 0.0ms)
52
+ Processing by AnonymousController#query as JSON
53
+ Parameters: {"query_data"=>{"conditions"=>{}, "with"=>[:foo], "order"=>[], "mode"=>:evaluate}}
54
+ Completed 200 OK in 1ms (Views: 0.1ms)
55
+ Processing by AnonymousController#query as JSON
56
+ Parameters: {"query_data"=>{"conditions"=>{}, "with"=>[], "order"=>[], "mode"=>:evaluate}}
57
+ Completed 200 OK in 1ms (Views: 0.0ms)
58
+ Processing by AnonymousController#query as JSON
59
+ Parameters: {"query_data"=>{"conditions"=>{}, "with"=>[], "order"=>["foo", "-bar", "baz"], "mode"=>:evaluate}}
60
+ Completed 200 OK in 1ms (Views: 0.0ms)
61
+ Processing by AnonymousController#query as JSON
62
+ Parameters: {"query_data"=>{"conditions"=>{}, "with"=>[], "order"=>[], "mode"=>"frobnicate"}}
63
+ Completed 422 Unprocessable Entity in 0ms
64
+ Processing by AnonymousController#query as JSON
65
+ Parameters: {"query_data"=>{"conditions"=>{}, "with"=>[], "order"=>[], "mode"=>"evaluate"}}
66
+ Completed 200 OK in 1ms (Views: 0.0ms)
67
+ Processing by AnonymousController#query as JSON
68
+ Parameters: {"query_data"=>{"conditions"=>{}, "with"=>[], "order"=>[], "mode"=>"count"}}
69
+ Completed 200 OK in 1ms (Views: 0.1ms)
70
+ Processing by AnonymousController#query as JSON
71
+ Parameters: {"query_data"=>{"conditions"=>{}, "with"=>[], "order"=>[], "mode"=>"paginate", "page"=>1, "per_page"=>10}}
72
+ Completed 200 OK in 1ms (Views: 0.1ms)
73
+ Processing by AnonymousController#query as JSON
74
+ Parameters: {"query_data"=>{"conditions"=>{}, "with"=>[], "order"=>[], "mode"=>"first"}}
75
+ Completed 200 OK in 0ms (Views: 0.0ms)
76
+ Processing by AnonymousController#query as JSON
77
+ Parameters: {"query_data"=>{"conditions"=>{}, "with"=>[], "order"=>[], "mode"=>"last"}}
78
+ Completed 200 OK in 0ms (Views: 0.0ms)
79
+ DEPRECATION WARNING: You didn't set config.secret_key_base. Read the upgrade documentation to learn more about this new config option. (called from env_config at /home/natano/.rvm/gems/ruby-2.0.0-p247@query-interface-server/gems/railties-4.0.0/lib/rails/application.rb:141)
80
+ Processing by AnonymousController#query as JSON
81
+ Completed 422 Unprocessable Entity in 0ms
82
+ Processing by AnonymousController#query as JSON
83
+ Parameters: {"query_data"=>{"conditions"=>{}, "with"=>[], "order"=>[], "mode"=>:evaluate}}
84
+ Completed 200 OK in 3ms (Views: 0.1ms)
85
+ Processing by AnonymousController#query as JSON
86
+ Parameters: {"query_data"=>{"conditions"=>{"foo"=>"bar"}, "with"=>[], "order"=>[], "mode"=>:evaluate}}
87
+ Completed 200 OK in 1ms (Views: 0.1ms)
88
+ Processing by AnonymousController#query as JSON
89
+ Parameters: {"query_data"=>{"conditions"=>{}, "with"=>[], "order"=>[], "mode"=>:evaluate}}
90
+ Completed 200 OK in 0ms (Views: 0.0ms)
91
+ Processing by AnonymousController#query as JSON
92
+ Parameters: {"query_data"=>{"conditions"=>{}, "with"=>[:foo], "order"=>[], "mode"=>:evaluate}}
93
+ Completed 200 OK in 1ms (Views: 0.1ms)
94
+ Processing by AnonymousController#query as JSON
95
+ Parameters: {"query_data"=>{"conditions"=>{}, "with"=>[], "order"=>[], "mode"=>:evaluate}}
96
+ Completed 200 OK in 0ms (Views: 0.0ms)
97
+ Processing by AnonymousController#query as JSON
98
+ Parameters: {"query_data"=>{"conditions"=>{}, "with"=>[], "order"=>["foo", "-bar", "baz"], "mode"=>:evaluate}}
99
+ Completed 200 OK in 1ms (Views: 0.0ms)
100
+ Processing by AnonymousController#query as JSON
101
+ Parameters: {"query_data"=>{"conditions"=>{}, "with"=>[], "order"=>[], "mode"=>"frobnicate"}}
102
+ Completed 422 Unprocessable Entity in 0ms
103
+ Processing by AnonymousController#query as JSON
104
+ Parameters: {"query_data"=>{"conditions"=>{}, "with"=>[], "order"=>[], "mode"=>"evaluate"}}
105
+ Completed 200 OK in 1ms (Views: 0.0ms)
106
+ Processing by AnonymousController#query as JSON
107
+ Parameters: {"query_data"=>{"conditions"=>{}, "with"=>[], "order"=>[], "mode"=>"count"}}
108
+ Completed 200 OK in 1ms (Views: 0.1ms)
109
+ Processing by AnonymousController#query as JSON
110
+ Parameters: {"query_data"=>{"conditions"=>{}, "with"=>[], "order"=>[], "mode"=>"paginate", "page"=>1, "per_page"=>10}}
111
+ Completed 200 OK in 1ms (Views: 0.1ms)
112
+ Processing by AnonymousController#query as JSON
113
+ Parameters: {"query_data"=>{"conditions"=>{}, "with"=>[], "order"=>[], "mode"=>"first"}}
114
+ Completed 200 OK in 1ms (Views: 0.0ms)
115
+ Processing by AnonymousController#query as JSON
116
+ Parameters: {"query_data"=>{"conditions"=>{}, "with"=>[], "order"=>[], "mode"=>"last"}}
117
+ Completed 200 OK in 1ms (Views: 0.0ms)
118
+ DEPRECATION WARNING: You didn't set config.secret_key_base. Read the upgrade documentation to learn more about this new config option. (called from env_config at /home/natano/.rvm/gems/ruby-2.0.0-p247@query-interface-server/gems/railties-4.0.0/lib/rails/application.rb:141)
119
+ Processing by AnonymousController#query as JSON
120
+ Completed 422 Unprocessable Entity in 0ms
121
+ Processing by AnonymousController#query as JSON
122
+ Parameters: {"query_data"=>{"conditions"=>{}, "with"=>[], "order"=>[], "mode"=>:evaluate}}
123
+ Completed 200 OK in 21ms (Views: 0.1ms)
124
+ Processing by AnonymousController#query as JSON
125
+ Parameters: {"query_data"=>{"conditions"=>{"foo"=>"bar"}, "with"=>[], "order"=>[], "mode"=>:evaluate}}
126
+ Completed 200 OK in 1ms (Views: 0.1ms)
127
+ Processing by AnonymousController#query as JSON
128
+ Parameters: {"query_data"=>{"conditions"=>{}, "with"=>[], "order"=>[], "mode"=>:evaluate}}
129
+ Completed 200 OK in 0ms (Views: 0.0ms)
130
+ Processing by AnonymousController#query as JSON
131
+ Parameters: {"query_data"=>{"conditions"=>{}, "with"=>[:foo], "order"=>[], "mode"=>:evaluate}}
132
+ Completed 200 OK in 0ms (Views: 0.1ms)
133
+ Processing by AnonymousController#query as JSON
134
+ Parameters: {"query_data"=>{"conditions"=>{}, "with"=>[], "order"=>[], "mode"=>:evaluate}}
135
+ Completed 200 OK in 0ms (Views: 0.0ms)
136
+ Processing by AnonymousController#query as JSON
137
+ Parameters: {"query_data"=>{"conditions"=>{}, "with"=>[], "order"=>["foo", "-bar", "baz"], "mode"=>:evaluate}}
138
+ Completed 200 OK in 0ms (Views: 0.0ms)
139
+ Processing by AnonymousController#query as JSON
140
+ Parameters: {"query_data"=>{"conditions"=>{}, "with"=>[], "order"=>[], "mode"=>"frobnicate"}}
141
+ Completed 422 Unprocessable Entity in 0ms
142
+ Processing by AnonymousController#query as JSON
143
+ Parameters: {"query_data"=>{"conditions"=>{}, "with"=>[], "order"=>[], "mode"=>"evaluate"}}
144
+ Completed 200 OK in 0ms (Views: 0.0ms)
145
+ Processing by AnonymousController#query as JSON
146
+ Parameters: {"query_data"=>{"conditions"=>{}, "with"=>[], "order"=>[], "mode"=>"count"}}
147
+ Completed 200 OK in 1ms (Views: 0.1ms)
148
+ Processing by AnonymousController#query as JSON
149
+ Parameters: {"query_data"=>{"conditions"=>{}, "with"=>[], "order"=>[], "mode"=>"paginate", "page"=>1, "per_page"=>10}}
150
+ Completed 200 OK in 1ms (Views: 0.1ms)
151
+ Processing by AnonymousController#query as JSON
152
+ Parameters: {"query_data"=>{"conditions"=>{}, "with"=>[], "order"=>[], "mode"=>"first"}}
153
+ Completed 200 OK in 0ms (Views: 0.0ms)
154
+ Processing by AnonymousController#query as JSON
155
+ Parameters: {"query_data"=>{"conditions"=>{}, "with"=>[], "order"=>[], "mode"=>"last"}}
156
+ Completed 200 OK in 0ms (Views: 0.0ms)
157
+ DEPRECATION WARNING: You didn't set config.secret_key_base. Read the upgrade documentation to learn more about this new config option. (called from env_config at /home/natano/.rvm/gems/ruby-2.0.0-p247@query-interface-server/gems/railties-4.0.0/lib/rails/application.rb:141)
158
+ Processing by AnonymousController#query as JSON
159
+ Completed 422 Unprocessable Entity in 0ms
160
+ Processing by AnonymousController#query as JSON
161
+ Parameters: {"query_data"=>{"conditions"=>{}, "with"=>[], "order"=>[], "mode"=>:evaluate}}
162
+ Completed 200 OK in 21ms (Views: 0.1ms)
163
+ Processing by AnonymousController#query as JSON
164
+ Parameters: {"query_data"=>{"conditions"=>{"foo"=>"bar"}, "with"=>[], "order"=>[], "mode"=>:evaluate}}
165
+ Completed 200 OK in 1ms (Views: 0.1ms)
166
+ Processing by AnonymousController#query as JSON
167
+ Parameters: {"query_data"=>{"conditions"=>{}, "with"=>[], "order"=>[], "mode"=>:evaluate}}
168
+ Completed 200 OK in 0ms (Views: 0.0ms)
169
+ Processing by AnonymousController#query as JSON
170
+ Parameters: {"query_data"=>{"conditions"=>{}, "with"=>[:foo], "order"=>[], "mode"=>:evaluate}}
171
+ Completed 200 OK in 0ms (Views: 0.1ms)
172
+ Processing by AnonymousController#query as JSON
173
+ Parameters: {"query_data"=>{"conditions"=>{}, "with"=>[], "order"=>[], "mode"=>:evaluate}}
174
+ Completed 200 OK in 0ms (Views: 0.0ms)
175
+ Processing by AnonymousController#query as JSON
176
+ Parameters: {"query_data"=>{"conditions"=>{}, "with"=>[], "order"=>["foo", "-bar", "baz"], "mode"=>:evaluate}}
177
+ Completed 200 OK in 0ms (Views: 0.0ms)
178
+ Processing by AnonymousController#query as JSON
179
+ Parameters: {"query_data"=>{"conditions"=>{}, "with"=>[], "order"=>[], "mode"=>"frobnicate"}}
180
+ Completed 422 Unprocessable Entity in 0ms
181
+ Processing by AnonymousController#query as JSON
182
+ Parameters: {"query_data"=>{"conditions"=>{}, "with"=>[], "order"=>[], "mode"=>"evaluate"}}
183
+ Completed 200 OK in 0ms (Views: 0.0ms)
184
+ Processing by AnonymousController#query as JSON
185
+ Parameters: {"query_data"=>{"conditions"=>{}, "with"=>[], "order"=>[], "mode"=>"count"}}
186
+ Completed 200 OK in 1ms (Views: 0.1ms)
187
+ Processing by AnonymousController#query as JSON
188
+ Parameters: {"query_data"=>{"conditions"=>{}, "with"=>[], "order"=>[], "mode"=>"paginate", "page"=>1, "per_page"=>10}}
189
+ Completed 200 OK in 1ms (Views: 0.1ms)
190
+ Processing by AnonymousController#query as JSON
191
+ Parameters: {"query_data"=>{"conditions"=>{}, "with"=>[], "order"=>[], "mode"=>"first"}}
192
+ Completed 200 OK in 0ms (Views: 0.0ms)
193
+ Processing by AnonymousController#query as JSON
194
+ Parameters: {"query_data"=>{"conditions"=>{}, "with"=>[], "order"=>[], "mode"=>"last"}}
195
+ Completed 200 OK in 0ms (Views: 0.0ms)
196
+ DEPRECATION WARNING: You didn't set config.secret_key_base. Read the upgrade documentation to learn more about this new config option. (called from env_config at /home/natano/.rvm/gems/ruby-2.0.0-p247@query-interface-server/gems/railties-4.0.0/lib/rails/application.rb:141)
197
+ DEPRECATION WARNING: You didn't set config.secret_key_base. Read the upgrade documentation to learn more about this new config option. (called from env_config at /home/natano/.rvm/gems/ruby-2.0.0-p247@query-interface-server/gems/railties-4.0.0/lib/rails/application.rb:141)
198
+ DEPRECATION WARNING: You didn't set config.secret_key_base. Read the upgrade documentation to learn more about this new config option. (called from env_config at /home/natano/.rvm/gems/ruby-2.0.0-p247@query-interface-server/gems/railties-4.0.0/lib/rails/application.rb:141)
199
+ DEPRECATION WARNING: You didn't set config.secret_key_base. Read the upgrade documentation to learn more about this new config option. (called from env_config at /home/natano/.rvm/gems/ruby-2.0.0-p247@query-interface-server/gems/railties-4.0.0/lib/rails/application.rb:141)
200
+ DEPRECATION WARNING: You didn't set config.secret_key_base. Read the upgrade documentation to learn more about this new config option. (called from env_config at /home/natano/.rvm/gems/ruby-2.0.0-p247@query-interface-server/gems/railties-4.0.0/lib/rails/application.rb:141)
201
+ DEPRECATION WARNING: You didn't set config.secret_key_base. Read the upgrade documentation to learn more about this new config option. (called from env_config at /home/natano/.rvm/gems/ruby-2.0.0-p247@query-interface-server/gems/railties-4.0.0/lib/rails/application.rb:141)
202
+ DEPRECATION WARNING: You didn't set config.secret_key_base. Read the upgrade documentation to learn more about this new config option. (called from env_config at /home/natano/.rvm/gems/ruby-2.0.0-p247@query-interface-server/gems/railties-4.0.0/lib/rails/application.rb:141)
203
+ DEPRECATION WARNING: You didn't set config.secret_key_base. Read the upgrade documentation to learn more about this new config option. (called from env_config at /home/natano/.rvm/gems/ruby-2.0.0-p247@query-interface-server/gems/railties-4.0.0/lib/rails/application.rb:141)
204
+ DEPRECATION WARNING: You didn't set config.secret_key_base. Read the upgrade documentation to learn more about this new config option. (called from env_config at /home/natano/.rvm/gems/ruby-2.0.0-p247@query-interface-server/gems/railties-4.0.0/lib/rails/application.rb:141)
205
+ DEPRECATION WARNING: You didn't set config.secret_key_base. Read the upgrade documentation to learn more about this new config option. (called from env_config at /home/natano/.rvm/gems/ruby-2.0.0-p247@query-interface-server/gems/railties-4.0.0/lib/rails/application.rb:141)
206
+ DEPRECATION WARNING: You didn't set config.secret_key_base. Read the upgrade documentation to learn more about this new config option. (called from env_config at /home/natano/.rvm/gems/ruby-2.0.0-p247@query-interface-server/gems/railties-4.0.0/lib/rails/application.rb:141)
207
+ DEPRECATION WARNING: You didn't set config.secret_key_base. Read the upgrade documentation to learn more about this new config option. (called from env_config at /home/natano/.rvm/gems/ruby-2.0.0-p247@query-interface-server/gems/railties-4.0.0/lib/rails/application.rb:141)
208
+ DEPRECATION WARNING: You didn't set config.secret_key_base. Read the upgrade documentation to learn more about this new config option. (called from env_config at /home/natano/.rvm/gems/ruby-2.0.0-p247@query-interface-server/gems/railties-4.0.0/lib/rails/application.rb:141)
209
+ DEPRECATION WARNING: You didn't set config.secret_key_base. Read the upgrade documentation to learn more about this new config option. (called from env_config at /home/natano/.rvm/gems/ruby-2.0.0-p247@query-interface-server/gems/railties-4.0.0/lib/rails/application.rb:141)
210
+ DEPRECATION WARNING: You didn't set config.secret_key_base. Read the upgrade documentation to learn more about this new config option. (called from env_config at /home/natano/.rvm/gems/ruby-2.0.0-p247@query-interface-server/gems/railties-4.0.0/lib/rails/application.rb:141)
211
+ DEPRECATION WARNING: You didn't set config.secret_key_base. Read the upgrade documentation to learn more about this new config option. (called from env_config at /home/natano/.rvm/gems/ruby-2.0.0-p247@query-interface-server/gems/railties-4.0.0/lib/rails/application.rb:141)
212
+ DEPRECATION WARNING: You didn't set config.secret_key_base. Read the upgrade documentation to learn more about this new config option. (called from env_config at /home/natano/.rvm/gems/ruby-2.0.0-p247@query-interface-server/gems/railties-4.0.0/lib/rails/application.rb:141)
213
+ DEPRECATION WARNING: You didn't set config.secret_key_base. Read the upgrade documentation to learn more about this new config option. (called from env_config at /home/natano/.rvm/gems/ruby-2.0.0-p247@query-interface-server/gems/railties-4.0.0/lib/rails/application.rb:141)
214
+ DEPRECATION WARNING: You didn't set config.secret_key_base. Read the upgrade documentation to learn more about this new config option. (called from env_config at /home/natano/.rvm/gems/ruby-2.0.0-p247@query-interface-server/gems/railties-4.0.0/lib/rails/application.rb:141)
215
+ DEPRECATION WARNING: You didn't set config.secret_key_base. Read the upgrade documentation to learn more about this new config option. (called from env_config at /home/natano/.rvm/gems/ruby-2.0.0-p247@query-interface-server/gems/railties-4.0.0/lib/rails/application.rb:141)
216
+ DEPRECATION WARNING: You didn't set config.secret_key_base. Read the upgrade documentation to learn more about this new config option. (called from env_config at /home/natano/.rvm/gems/ruby-2.0.0-p247@query-interface-server/gems/railties-4.0.0/lib/rails/application.rb:141)
217
+ Processing by AnonymousController#query as JSON
218
+ Completed 422 Unprocessable Entity in 0ms
219
+ Processing by AnonymousController#query as JSON
220
+ Parameters: {"query_data"=>{"conditions"=>{}, "with"=>[], "order"=>[], "mode"=>:evaluate}}
221
+ Completed 200 OK in 21ms (Views: 0.1ms)
222
+ Processing by AnonymousController#query as JSON
223
+ Parameters: {"query_data"=>{"conditions"=>{"foo"=>"bar"}, "with"=>[], "order"=>[], "mode"=>:evaluate}}
224
+ Completed 200 OK in 1ms (Views: 0.1ms)
225
+ Processing by AnonymousController#query as JSON
226
+ Parameters: {"query_data"=>{"conditions"=>{}, "with"=>[], "order"=>[], "mode"=>:evaluate}}
227
+ Completed 200 OK in 0ms (Views: 0.0ms)
228
+ Processing by AnonymousController#query as JSON
229
+ Parameters: {"query_data"=>{"conditions"=>{}, "with"=>[:foo], "order"=>[], "mode"=>:evaluate}}
230
+ Completed 200 OK in 0ms (Views: 0.1ms)
231
+ Processing by AnonymousController#query as JSON
232
+ Parameters: {"query_data"=>{"conditions"=>{}, "with"=>[], "order"=>[], "mode"=>:evaluate}}
233
+ Completed 200 OK in 0ms (Views: 0.0ms)
234
+ Processing by AnonymousController#query as JSON
235
+ Parameters: {"query_data"=>{"conditions"=>{}, "with"=>[], "order"=>["foo", "-bar", "baz"], "mode"=>:evaluate}}
236
+ Completed 200 OK in 0ms (Views: 0.0ms)
237
+ Processing by AnonymousController#query as JSON
238
+ Parameters: {"query_data"=>{"conditions"=>{}, "with"=>[], "order"=>[], "mode"=>"frobnicate"}}
239
+ Completed 422 Unprocessable Entity in 0ms
240
+ Processing by AnonymousController#query as JSON
241
+ Parameters: {"query_data"=>{"conditions"=>{}, "with"=>[], "order"=>[], "mode"=>"evaluate"}}
242
+ Completed 200 OK in 0ms (Views: 0.0ms)
243
+ Processing by AnonymousController#query as JSON
244
+ Parameters: {"query_data"=>{"conditions"=>{}, "with"=>[], "order"=>[], "mode"=>"count"}}
245
+ Completed 200 OK in 1ms (Views: 0.1ms)
246
+ Processing by AnonymousController#query as JSON
247
+ Parameters: {"query_data"=>{"conditions"=>{}, "with"=>[], "order"=>[], "mode"=>"paginate", "page"=>1, "per_page"=>10}}
248
+ Completed 200 OK in 1ms (Views: 0.1ms)
249
+ Processing by AnonymousController#query as JSON
250
+ Parameters: {"query_data"=>{"conditions"=>{}, "with"=>[], "order"=>[], "mode"=>"first"}}
251
+ Completed 200 OK in 0ms (Views: 0.0ms)
252
+ Processing by AnonymousController#query as JSON
253
+ Parameters: {"query_data"=>{"conditions"=>{}, "with"=>[], "order"=>[], "mode"=>"last"}}
254
+ Completed 200 OK in 0ms (Views: 0.0ms)
255
+ DEPRECATION WARNING: You didn't set config.secret_key_base. Read the upgrade documentation to learn more about this new config option. (called from env_config at /home/natano/.rvm/gems/ruby-2.0.0-p247@query-interface-server/gems/railties-4.0.0/lib/rails/application.rb:141)
256
+ Processing by AnonymousController#query as JSON
257
+ Completed 422 Unprocessable Entity in 0ms
258
+ Processing by AnonymousController#query as JSON
259
+ Parameters: {"query_data"=>{"conditions"=>{}, "with"=>[], "order"=>[], "mode"=>:evaluate}}
260
+ Completed 200 OK in 21ms (Views: 0.1ms)
261
+ Processing by AnonymousController#query as JSON
262
+ Parameters: {"query_data"=>{"conditions"=>{"foo"=>"bar"}, "with"=>[], "order"=>[], "mode"=>:evaluate}}
263
+ Completed 200 OK in 1ms (Views: 0.1ms)
264
+ Processing by AnonymousController#query as JSON
265
+ Parameters: {"query_data"=>{"conditions"=>{}, "with"=>[], "order"=>[], "mode"=>:evaluate}}
266
+ Completed 200 OK in 0ms (Views: 0.0ms)
267
+ Processing by AnonymousController#query as JSON
268
+ Parameters: {"query_data"=>{"conditions"=>{}, "with"=>[:foo], "order"=>[], "mode"=>:evaluate}}
269
+ Completed 200 OK in 0ms (Views: 0.1ms)
270
+ Processing by AnonymousController#query as JSON
271
+ Parameters: {"query_data"=>{"conditions"=>{}, "with"=>[], "order"=>[], "mode"=>:evaluate}}
272
+ Completed 200 OK in 0ms (Views: 0.0ms)
273
+ Processing by AnonymousController#query as JSON
274
+ Parameters: {"query_data"=>{"conditions"=>{}, "with"=>[], "order"=>["foo", "-bar", "baz"], "mode"=>:evaluate}}
275
+ Completed 200 OK in 0ms (Views: 0.0ms)
276
+ Processing by AnonymousController#query as JSON
277
+ Parameters: {"query_data"=>{"conditions"=>{}, "with"=>[], "order"=>[], "mode"=>"frobnicate"}}
278
+ Completed 422 Unprocessable Entity in 0ms
279
+ Processing by AnonymousController#query as JSON
280
+ Parameters: {"query_data"=>{"conditions"=>{}, "with"=>[], "order"=>[], "mode"=>"evaluate"}}
281
+ Completed 200 OK in 0ms (Views: 0.0ms)
282
+ Processing by AnonymousController#query as JSON
283
+ Parameters: {"query_data"=>{"conditions"=>{}, "with"=>[], "order"=>[], "mode"=>"count"}}
284
+ Completed 200 OK in 1ms (Views: 0.1ms)
285
+ Processing by AnonymousController#query as JSON
286
+ Parameters: {"query_data"=>{"conditions"=>{}, "with"=>[], "order"=>[], "mode"=>"paginate", "page"=>1, "per_page"=>10}}
287
+ Completed 200 OK in 1ms (Views: 0.1ms)
288
+ Processing by AnonymousController#query as JSON
289
+ Parameters: {"query_data"=>{"conditions"=>{}, "with"=>[], "order"=>[], "mode"=>"first"}}
290
+ Completed 200 OK in 0ms (Views: 0.0ms)
291
+ Processing by AnonymousController#query as JSON
292
+ Parameters: {"query_data"=>{"conditions"=>{}, "with"=>[], "order"=>[], "mode"=>"last"}}
293
+ Completed 200 OK in 0ms (Views: 0.0ms)
294
+ DEPRECATION WARNING: You didn't set config.secret_key_base. Read the upgrade documentation to learn more about this new config option. (called from env_config at /home/natano/.rvm/gems/ruby-2.0.0-p247@query-interface-server/gems/railties-4.0.0/lib/rails/application.rb:141)
295
+ Processing by AnonymousController#query as JSON
296
+ Completed 422 Unprocessable Entity in 0ms
297
+ Processing by AnonymousController#query as JSON
298
+ Parameters: {"query_data"=>{"conditions"=>{}, "with"=>[], "order"=>[], "mode"=>:evaluate}}
299
+ Completed 200 OK in 21ms (Views: 0.1ms)
300
+ Processing by AnonymousController#query as JSON
301
+ Parameters: {"query_data"=>{"conditions"=>{"foo"=>"bar"}, "with"=>[], "order"=>[], "mode"=>:evaluate}}
302
+ Completed 200 OK in 1ms (Views: 0.1ms)
303
+ Processing by AnonymousController#query as JSON
304
+ Parameters: {"query_data"=>{"conditions"=>{}, "with"=>[], "order"=>[], "mode"=>:evaluate}}
305
+ Completed 200 OK in 0ms (Views: 0.0ms)
306
+ Processing by AnonymousController#query as JSON
307
+ Parameters: {"query_data"=>{"conditions"=>{}, "with"=>[:foo], "order"=>[], "mode"=>:evaluate}}
308
+ Completed 200 OK in 0ms (Views: 0.1ms)
309
+ Processing by AnonymousController#query as JSON
310
+ Parameters: {"query_data"=>{"conditions"=>{}, "with"=>[], "order"=>[], "mode"=>:evaluate}}
311
+ Completed 200 OK in 0ms (Views: 0.0ms)
312
+ Processing by AnonymousController#query as JSON
313
+ Parameters: {"query_data"=>{"conditions"=>{}, "with"=>[], "order"=>["foo", "-bar", "baz"], "mode"=>:evaluate}}
314
+ Completed 200 OK in 0ms (Views: 0.0ms)
315
+ Processing by AnonymousController#query as JSON
316
+ Parameters: {"query_data"=>{"conditions"=>{}, "with"=>[], "order"=>[], "mode"=>"frobnicate"}}
317
+ Completed 422 Unprocessable Entity in 0ms
318
+ Processing by AnonymousController#query as JSON
319
+ Parameters: {"query_data"=>{"conditions"=>{}, "with"=>[], "order"=>[], "mode"=>"evaluate"}}
320
+ Completed 200 OK in 0ms (Views: 0.0ms)
321
+ Processing by AnonymousController#query as JSON
322
+ Parameters: {"query_data"=>{"conditions"=>{}, "with"=>[], "order"=>[], "mode"=>"count"}}
323
+ Completed 200 OK in 1ms (Views: 0.1ms)
324
+ Processing by AnonymousController#query as JSON
325
+ Parameters: {"query_data"=>{"conditions"=>{}, "with"=>[], "order"=>[], "mode"=>"paginate", "page"=>1, "per_page"=>10}}
326
+ Completed 200 OK in 1ms (Views: 0.1ms)
327
+ Processing by AnonymousController#query as JSON
328
+ Parameters: {"query_data"=>{"conditions"=>{}, "with"=>[], "order"=>[], "mode"=>"first"}}
329
+ Completed 200 OK in 0ms (Views: 0.0ms)
330
+ Processing by AnonymousController#query as JSON
331
+ Parameters: {"query_data"=>{"conditions"=>{}, "with"=>[], "order"=>[], "mode"=>"last"}}
332
+ Completed 200 OK in 0ms (Views: 0.0ms)
333
+ DEPRECATION WARNING: You didn't set config.secret_key_base. Read the upgrade documentation to learn more about this new config option. (called from env_config at /home/natano/.rvm/gems/ruby-2.0.0-p247@query-interface-server/gems/railties-4.0.0/lib/rails/application.rb:141)
334
+ Processing by AnonymousController#query as JSON
335
+ Completed 422 Unprocessable Entity in 0ms
336
+ Processing by AnonymousController#query as JSON
337
+ Parameters: {"query_data"=>{"conditions"=>{}, "with"=>[], "order"=>[], "mode"=>:evaluate}}
338
+ Completed 200 OK in 3ms (Views: 0.1ms)
339
+ Processing by AnonymousController#query as JSON
340
+ Parameters: {"query_data"=>{"conditions"=>{"foo"=>"bar"}, "with"=>[], "order"=>[], "mode"=>:evaluate}}
341
+ Completed 200 OK in 0ms (Views: 0.1ms)
342
+ Processing by AnonymousController#query as JSON
343
+ Parameters: {"query_data"=>{"conditions"=>{}, "with"=>[], "order"=>[], "mode"=>:evaluate}}
344
+ Completed 200 OK in 0ms (Views: 0.0ms)
345
+ Processing by AnonymousController#query as JSON
346
+ Parameters: {"query_data"=>{"conditions"=>{}, "with"=>[:foo], "order"=>[], "mode"=>:evaluate}}
347
+ Completed 200 OK in 0ms (Views: 0.1ms)
348
+ Processing by AnonymousController#query as JSON
349
+ Parameters: {"query_data"=>{"conditions"=>{}, "with"=>[], "order"=>[], "mode"=>:evaluate}}
350
+ Completed 200 OK in 1ms (Views: 0.0ms)
351
+ Processing by AnonymousController#query as JSON
352
+ Parameters: {"query_data"=>{"conditions"=>{}, "with"=>[], "order"=>["foo", "-bar", "baz"], "mode"=>:evaluate}}
353
+ Completed 200 OK in 0ms (Views: 0.0ms)
354
+ Processing by AnonymousController#query as JSON
355
+ Parameters: {"query_data"=>{"conditions"=>{}, "with"=>[], "order"=>[], "mode"=>"frobnicate"}}
356
+ Completed 422 Unprocessable Entity in 0ms
357
+ Processing by AnonymousController#query as JSON
358
+ Parameters: {"query_data"=>{"conditions"=>{}, "with"=>[], "order"=>[], "mode"=>"evaluate"}}
359
+ Completed 200 OK in 1ms (Views: 0.0ms)
360
+ Processing by AnonymousController#query as JSON
361
+ Parameters: {"query_data"=>{"conditions"=>{}, "with"=>[], "order"=>[], "mode"=>"count"}}
362
+ Completed 200 OK in 1ms (Views: 0.1ms)
363
+ Processing by AnonymousController#query as JSON
364
+ Parameters: {"query_data"=>{"conditions"=>{}, "with"=>[], "order"=>[], "mode"=>"paginate", "page"=>1, "per_page"=>10}}
365
+ Completed 200 OK in 1ms (Views: 0.1ms)
366
+ Processing by AnonymousController#query as JSON
367
+ Parameters: {"query_data"=>{"conditions"=>{}, "with"=>[], "order"=>[], "mode"=>"first"}}
368
+ Completed 200 OK in 0ms (Views: 0.0ms)
369
+ Processing by AnonymousController#query as JSON
370
+ Parameters: {"query_data"=>{"conditions"=>{}, "with"=>[], "order"=>[], "mode"=>"last"}}
371
+ Completed 200 OK in 0ms (Views: 0.0ms)
372
+ DEPRECATION WARNING: You didn't set config.secret_key_base. Read the upgrade documentation to learn more about this new config option. (called from env_config at /home/natano/.rvm/gems/ruby-2.0.0-p247@query-interface-server/gems/railties-4.0.0/lib/rails/application.rb:141)
373
+ Processing by AnonymousController#query as JSON
374
+ Completed 422 Unprocessable Entity in 0ms
375
+ Processing by AnonymousController#query as JSON
376
+ Parameters: {"query_data"=>{"conditions"=>{}, "with"=>[], "order"=>[], "mode"=>:evaluate}}
377
+ Completed 200 OK in 3ms (Views: 0.1ms)
378
+ Processing by AnonymousController#query as JSON
379
+ Parameters: {"query_data"=>{"conditions"=>{"foo"=>"bar"}, "with"=>[], "order"=>[], "mode"=>:evaluate}}
380
+ Completed 200 OK in 1ms (Views: 0.1ms)
381
+ Processing by AnonymousController#query as JSON
382
+ Parameters: {"query_data"=>{"conditions"=>{}, "with"=>[], "order"=>[], "mode"=>:evaluate}}
383
+ Completed 200 OK in 0ms (Views: 0.0ms)
384
+ Processing by AnonymousController#query as JSON
385
+ Parameters: {"query_data"=>{"conditions"=>{}, "with"=>[:foo], "order"=>[], "mode"=>:evaluate}}
386
+ Completed 200 OK in 0ms (Views: 0.1ms)
387
+ Processing by AnonymousController#query as JSON
388
+ Parameters: {"query_data"=>{"conditions"=>{}, "with"=>[], "order"=>[], "mode"=>:evaluate}}
389
+ Completed 200 OK in 0ms (Views: 0.0ms)
390
+ Processing by AnonymousController#query as JSON
391
+ Parameters: {"query_data"=>{"conditions"=>{}, "with"=>[], "order"=>["foo", "-bar", "baz"], "mode"=>:evaluate}}
392
+ Completed 200 OK in 0ms (Views: 0.0ms)
393
+ Processing by AnonymousController#query as JSON
394
+ Parameters: {"query_data"=>{"conditions"=>{}, "with"=>[], "order"=>[], "mode"=>"frobnicate"}}
395
+ Completed 422 Unprocessable Entity in 0ms
396
+ Processing by AnonymousController#query as JSON
397
+ Parameters: {"query_data"=>{"conditions"=>{}, "with"=>[], "order"=>[], "mode"=>"evaluate"}}
398
+ Completed 200 OK in 1ms (Views: 0.0ms)
399
+ Processing by AnonymousController#query as JSON
400
+ Parameters: {"query_data"=>{"conditions"=>{}, "with"=>[], "order"=>[], "mode"=>"count"}}
401
+ Completed 200 OK in 1ms (Views: 0.1ms)
402
+ Processing by AnonymousController#query as JSON
403
+ Parameters: {"query_data"=>{"conditions"=>{}, "with"=>[], "order"=>[], "mode"=>"paginate", "page"=>1, "per_page"=>10}}
404
+ Completed 200 OK in 2ms (Views: 0.1ms)
405
+ Processing by AnonymousController#query as JSON
406
+ Parameters: {"query_data"=>{"conditions"=>{}, "with"=>[], "order"=>[], "mode"=>"first"}}
407
+ Completed 200 OK in 1ms (Views: 0.0ms)
408
+ Processing by AnonymousController#query as JSON
409
+ Parameters: {"query_data"=>{"conditions"=>{}, "with"=>[], "order"=>[], "mode"=>"last"}}
410
+ Completed 200 OK in 0ms (Views: 0.0ms)
411
+ DEPRECATION WARNING: You didn't set config.secret_key_base. Read the upgrade documentation to learn more about this new config option. (called from env_config at /home/natano/.rvm/gems/ruby-2.0.0-p247@query-interface-server/gems/railties-4.0.0/lib/rails/application.rb:141)
412
+ Processing by AnonymousController#query as JSON
413
+ Completed 422 Unprocessable Entity in 0ms
414
+ Processing by AnonymousController#query as JSON
415
+ Parameters: {"query_data"=>{"conditions"=>{}, "with"=>[], "order"=>[], "mode"=>:evaluate}}
416
+ Completed 200 OK in 3ms (Views: 0.1ms)
417
+ Processing by AnonymousController#query as JSON
418
+ Parameters: {"query_data"=>{"conditions"=>{"foo"=>"bar"}, "with"=>[], "order"=>[], "mode"=>:evaluate}}
419
+ Completed 200 OK in 1ms (Views: 0.1ms)
420
+ Processing by AnonymousController#query as JSON
421
+ Parameters: {"query_data"=>{"conditions"=>{}, "with"=>[], "order"=>[], "mode"=>:evaluate}}
422
+ Completed 200 OK in 0ms (Views: 0.0ms)
423
+ Processing by AnonymousController#query as JSON
424
+ Parameters: {"query_data"=>{"conditions"=>{}, "with"=>[:foo], "order"=>[], "mode"=>:evaluate}}
425
+ Completed 200 OK in 1ms (Views: 0.1ms)
426
+ Processing by AnonymousController#query as JSON
427
+ Parameters: {"query_data"=>{"conditions"=>{}, "with"=>[], "order"=>[], "mode"=>:evaluate}}
428
+ Completed 200 OK in 0ms (Views: 0.0ms)
429
+ Processing by AnonymousController#query as JSON
430
+ Parameters: {"query_data"=>{"conditions"=>{}, "with"=>[], "order"=>["foo", "-bar", "baz"], "mode"=>:evaluate}}
431
+ Completed 200 OK in 1ms (Views: 0.0ms)
432
+ Processing by AnonymousController#query as JSON
433
+ Parameters: {"query_data"=>{"conditions"=>{}, "with"=>[], "order"=>[], "mode"=>"frobnicate"}}
434
+ Completed 422 Unprocessable Entity in 0ms
435
+ Processing by AnonymousController#query as JSON
436
+ Parameters: {"query_data"=>{"conditions"=>{}, "with"=>[], "order"=>[], "mode"=>"evaluate"}}
437
+ Completed 200 OK in 0ms (Views: 0.0ms)
438
+ Processing by AnonymousController#query as JSON
439
+ Parameters: {"query_data"=>{"conditions"=>{}, "with"=>[], "order"=>[], "mode"=>"count"}}
440
+ Completed 200 OK in 1ms (Views: 0.1ms)
441
+ Processing by AnonymousController#query as JSON
442
+ Parameters: {"query_data"=>{"conditions"=>{}, "with"=>[], "order"=>[], "mode"=>"paginate", "page"=>1, "per_page"=>10}}
443
+ Completed 200 OK in 2ms (Views: 0.1ms)
444
+ Processing by AnonymousController#query as JSON
445
+ Parameters: {"query_data"=>{"conditions"=>{}, "with"=>[], "order"=>[], "mode"=>"first"}}
446
+ Completed 200 OK in 0ms (Views: 0.0ms)
447
+ Processing by AnonymousController#query as JSON
448
+ Parameters: {"query_data"=>{"conditions"=>{}, "with"=>[], "order"=>[], "mode"=>"last"}}
449
+ Completed 200 OK in 0ms (Views: 0.0ms)
450
+ DEPRECATION WARNING: You didn't set config.secret_key_base. Read the upgrade documentation to learn more about this new config option. (called from env_config at /home/natano/.rvm/gems/ruby-2.0.0-p247@query-interface-server/gems/railties-4.0.0/lib/rails/application.rb:141)
451
+ Processing by AnonymousController#query as JSON
452
+ Completed 422 Unprocessable Entity in 0ms
453
+ Processing by AnonymousController#query as JSON
454
+ Parameters: {"query_data"=>{"conditions"=>{}, "with"=>[], "order"=>[], "mode"=>:evaluate}}
455
+ Completed 200 OK in 3ms (Views: 0.1ms)
456
+ Processing by AnonymousController#query as JSON
457
+ Parameters: {"query_data"=>{"conditions"=>{"foo"=>"bar"}, "with"=>[], "order"=>[], "mode"=>:evaluate}}
458
+ Completed 200 OK in 1ms (Views: 0.1ms)
459
+ Processing by AnonymousController#query as JSON
460
+ Parameters: {"query_data"=>{"conditions"=>{}, "with"=>[], "order"=>[], "mode"=>:evaluate}}
461
+ Completed 200 OK in 0ms (Views: 0.0ms)
462
+ Processing by AnonymousController#query as JSON
463
+ Parameters: {"query_data"=>{"conditions"=>{}, "with"=>[:foo], "order"=>[], "mode"=>:evaluate}}
464
+ Completed 200 OK in 0ms (Views: 0.1ms)
465
+ Processing by AnonymousController#query as JSON
466
+ Parameters: {"query_data"=>{"conditions"=>{}, "with"=>[], "order"=>[], "mode"=>:evaluate}}
467
+ Completed 200 OK in 0ms (Views: 0.0ms)
468
+ Processing by AnonymousController#query as JSON
469
+ Parameters: {"query_data"=>{"conditions"=>{}, "with"=>[], "order"=>["foo", "-bar", "baz"], "mode"=>:evaluate}}
470
+ Completed 200 OK in 0ms (Views: 0.0ms)
471
+ Processing by AnonymousController#query as JSON
472
+ Parameters: {"query_data"=>{"conditions"=>{}, "with"=>[], "order"=>[], "mode"=>"frobnicate"}}
473
+ Completed 422 Unprocessable Entity in 0ms
474
+ Processing by AnonymousController#query as JSON
475
+ Parameters: {"query_data"=>{"conditions"=>{}, "with"=>[], "order"=>[], "mode"=>"evaluate"}}
476
+ Completed 200 OK in 0ms (Views: 0.0ms)
477
+ Processing by AnonymousController#query as JSON
478
+ Parameters: {"query_data"=>{"conditions"=>{}, "with"=>[], "order"=>[], "mode"=>"count"}}
479
+ Completed 200 OK in 1ms (Views: 0.1ms)
480
+ Processing by AnonymousController#query as JSON
481
+ Parameters: {"query_data"=>{"conditions"=>{}, "with"=>[], "order"=>[], "mode"=>"paginate", "page"=>1, "per_page"=>10}}
482
+ Completed 200 OK in 2ms (Views: 0.2ms)
483
+ Processing by AnonymousController#query as JSON
484
+ Parameters: {"query_data"=>{"conditions"=>{}, "with"=>[], "order"=>[], "mode"=>"first"}}
485
+ Completed 200 OK in 0ms (Views: 0.0ms)
486
+ Processing by AnonymousController#query as JSON
487
+ Parameters: {"query_data"=>{"conditions"=>{}, "with"=>[], "order"=>[], "mode"=>"last"}}
488
+ Completed 200 OK in 0ms (Views: 0.0ms)
@@ -0,0 +1,13 @@
1
+ require 'action_controller/railtie'
2
+ require 'rspec/rails'
3
+
4
+ require 'query-interface-server'
5
+
6
+ app = Class.new(Rails::Application)
7
+ app.config.secret_token = 'aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa'
8
+ app.config.session_store :cookie_store, :key => '_myapp_session'
9
+ app.config.active_support.deprecation = :log
10
+ app.config.eager_load = false
11
+ app.config.root = File.dirname(__FILE__)
12
+ Rails.backtrace_cleaner.remove_silencers!
13
+ app.initialize!
metadata ADDED
@@ -0,0 +1,129 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: query-interface-server
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ platform: ruby
6
+ authors:
7
+ - Andreas Kopecky <andreas.kopecky@radarservices.com>
8
+ - Anton Bangratz <anton.bangratz@radarservices.com>
9
+ - Martin Natano <martin.natano@radarservices.com
10
+ autorequire:
11
+ bindir: bin
12
+ cert_chain: []
13
+ date: 2013-07-11 00:00:00.000000000 Z
14
+ dependencies:
15
+ - !ruby/object:Gem::Dependency
16
+ name: sequel
17
+ requirement: !ruby/object:Gem::Requirement
18
+ requirements:
19
+ - - '>='
20
+ - !ruby/object:Gem::Version
21
+ version: '0'
22
+ type: :runtime
23
+ prerelease: false
24
+ version_requirements: !ruby/object:Gem::Requirement
25
+ requirements:
26
+ - - '>='
27
+ - !ruby/object:Gem::Version
28
+ version: '0'
29
+ - !ruby/object:Gem::Dependency
30
+ name: rake
31
+ requirement: !ruby/object:Gem::Requirement
32
+ requirements:
33
+ - - '>='
34
+ - !ruby/object:Gem::Version
35
+ version: '0'
36
+ type: :development
37
+ prerelease: false
38
+ version_requirements: !ruby/object:Gem::Requirement
39
+ requirements:
40
+ - - '>='
41
+ - !ruby/object:Gem::Version
42
+ version: '0'
43
+ - !ruby/object:Gem::Dependency
44
+ name: rspec
45
+ requirement: !ruby/object:Gem::Requirement
46
+ requirements:
47
+ - - '>='
48
+ - !ruby/object:Gem::Version
49
+ version: '0'
50
+ type: :development
51
+ prerelease: false
52
+ version_requirements: !ruby/object:Gem::Requirement
53
+ requirements:
54
+ - - '>='
55
+ - !ruby/object:Gem::Version
56
+ version: '0'
57
+ - !ruby/object:Gem::Dependency
58
+ name: rails
59
+ requirement: !ruby/object:Gem::Requirement
60
+ requirements:
61
+ - - '>='
62
+ - !ruby/object:Gem::Version
63
+ version: '0'
64
+ type: :development
65
+ prerelease: false
66
+ version_requirements: !ruby/object:Gem::Requirement
67
+ requirements:
68
+ - - '>='
69
+ - !ruby/object:Gem::Version
70
+ version: '0'
71
+ - !ruby/object:Gem::Dependency
72
+ name: rspec-rails
73
+ requirement: !ruby/object:Gem::Requirement
74
+ requirements:
75
+ - - '>='
76
+ - !ruby/object:Gem::Version
77
+ version: '0'
78
+ type: :development
79
+ prerelease: false
80
+ version_requirements: !ruby/object:Gem::Requirement
81
+ requirements:
82
+ - - '>='
83
+ - !ruby/object:Gem::Version
84
+ version: '0'
85
+ description: Server for the radar query interface
86
+ email: gems [a] radarservices [d] com
87
+ executables: []
88
+ extensions: []
89
+ extra_rdoc_files:
90
+ - LICENSE
91
+ - README.md
92
+ files:
93
+ - Gemfile
94
+ - Gemfile.lock
95
+ - LICENSE
96
+ - README.md
97
+ - Rakefile
98
+ - lib/query-interface-server.rb
99
+ - lib/query-interface-server/resource.rb
100
+ - lib/query-interface-server/version.rb
101
+ - query-interface-server.gemspec
102
+ - spec/lib/query_interface_spec.rb
103
+ - spec/log/development.log
104
+ - spec/spec_helper.rb
105
+ homepage: http://github.com/rs-dev/query-interface-server
106
+ licenses:
107
+ - ISC
108
+ metadata: {}
109
+ post_install_message:
110
+ rdoc_options: []
111
+ require_paths:
112
+ - lib
113
+ required_ruby_version: !ruby/object:Gem::Requirement
114
+ requirements:
115
+ - - '>='
116
+ - !ruby/object:Gem::Version
117
+ version: '0'
118
+ required_rubygems_version: !ruby/object:Gem::Requirement
119
+ requirements:
120
+ - - '>='
121
+ - !ruby/object:Gem::Version
122
+ version: '0'
123
+ requirements: []
124
+ rubyforge_project:
125
+ rubygems_version: 2.0.3
126
+ signing_key:
127
+ specification_version: 4
128
+ summary: Server for the radar query interface
129
+ test_files: []