query-interface-server 1.2.1 → 1.2.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +1 -1
- data/Gemfile.lock +72 -52
- data/lib/query-interface-server/resource.rb +4 -2
- data/lib/query-interface-server/version.rb +1 -1
- data/query-interface-server.gemspec +1 -1
- data/spec/lib/resource_spec.rb +0 -1
- data/spec/lib/transformations_spec.rb +1 -1
- metadata +6 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 06e5b9fe5c2329eecfcb035b04408e20b625a089
|
4
|
+
data.tar.gz: a5961df699248db8d7792f4273c30ec9f6c05341
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bd32de6afa70c88e329aef0943f027e9953eb4d0dbe7c7063f77eac537941fea088ccb0b97b826978f3c26493d0e44c9851f997dc38d78d72eec1947d08af89f
|
7
|
+
data.tar.gz: ba3e557eb3b0e27d31c023416e3b270664c5bbd1d034874303443ebd483ca4c3c2e01cc84abf7851054d3a27047c5a0d858f7506d45b42355df1b675df8bfb43
|
data/Gemfile
CHANGED
data/Gemfile.lock
CHANGED
@@ -1,67 +1,90 @@
|
|
1
1
|
GEM
|
2
2
|
remote: http://rubygems.org/
|
3
3
|
specs:
|
4
|
-
actionmailer (4.
|
5
|
-
actionpack (= 4.
|
6
|
-
actionview (= 4.
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
4
|
+
actionmailer (4.2.0)
|
5
|
+
actionpack (= 4.2.0)
|
6
|
+
actionview (= 4.2.0)
|
7
|
+
activejob (= 4.2.0)
|
8
|
+
mail (~> 2.5, >= 2.5.4)
|
9
|
+
rails-dom-testing (~> 1.0, >= 1.0.5)
|
10
|
+
actionpack (4.2.0)
|
11
|
+
actionview (= 4.2.0)
|
12
|
+
activesupport (= 4.2.0)
|
13
|
+
rack (~> 1.6.0)
|
12
14
|
rack-test (~> 0.6.2)
|
13
|
-
|
14
|
-
|
15
|
+
rails-dom-testing (~> 1.0, >= 1.0.5)
|
16
|
+
rails-html-sanitizer (~> 1.0, >= 1.0.1)
|
17
|
+
actionview (4.2.0)
|
18
|
+
activesupport (= 4.2.0)
|
15
19
|
builder (~> 3.1)
|
16
20
|
erubis (~> 2.7.0)
|
17
|
-
|
18
|
-
|
21
|
+
rails-dom-testing (~> 1.0, >= 1.0.5)
|
22
|
+
rails-html-sanitizer (~> 1.0, >= 1.0.1)
|
23
|
+
activejob (4.2.0)
|
24
|
+
activesupport (= 4.2.0)
|
25
|
+
globalid (>= 0.3.0)
|
26
|
+
activemodel (4.2.0)
|
27
|
+
activesupport (= 4.2.0)
|
19
28
|
builder (~> 3.1)
|
20
|
-
activerecord (4.
|
21
|
-
activemodel (= 4.
|
22
|
-
activesupport (= 4.
|
23
|
-
arel (~>
|
24
|
-
activesupport (4.
|
25
|
-
i18n (~> 0.
|
29
|
+
activerecord (4.2.0)
|
30
|
+
activemodel (= 4.2.0)
|
31
|
+
activesupport (= 4.2.0)
|
32
|
+
arel (~> 6.0)
|
33
|
+
activesupport (4.2.0)
|
34
|
+
i18n (~> 0.7)
|
26
35
|
json (~> 1.7, >= 1.7.7)
|
27
36
|
minitest (~> 5.1)
|
28
|
-
thread_safe (~> 0.
|
37
|
+
thread_safe (~> 0.3, >= 0.3.4)
|
29
38
|
tzinfo (~> 1.1)
|
30
|
-
arel (
|
39
|
+
arel (6.0.0)
|
31
40
|
autotest-standalone (4.5.11)
|
32
41
|
builder (3.2.2)
|
33
42
|
diff-lcs (1.2.5)
|
34
43
|
docile (1.1.3)
|
35
44
|
erubis (2.7.0)
|
45
|
+
globalid (0.3.0)
|
46
|
+
activesupport (>= 4.1.0)
|
36
47
|
hike (1.2.3)
|
37
|
-
i18n (0.
|
38
|
-
json (1.8.
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
48
|
+
i18n (0.7.0)
|
49
|
+
json (1.8.2)
|
50
|
+
loofah (2.0.1)
|
51
|
+
nokogiri (>= 1.5.9)
|
52
|
+
mail (2.6.3)
|
53
|
+
mime-types (>= 1.16, < 3)
|
54
|
+
mime-types (2.4.3)
|
55
|
+
mini_portile (0.6.2)
|
56
|
+
minitest (5.5.0)
|
57
|
+
multi_json (1.10.1)
|
58
|
+
nokogiri (1.6.5)
|
59
|
+
mini_portile (~> 0.6.0)
|
60
|
+
rack (1.6.0)
|
47
61
|
rack-test (0.6.2)
|
48
62
|
rack (>= 1.0)
|
49
|
-
rails (4.
|
50
|
-
actionmailer (= 4.
|
51
|
-
actionpack (= 4.
|
52
|
-
actionview (= 4.
|
53
|
-
|
54
|
-
|
55
|
-
|
63
|
+
rails (4.2.0)
|
64
|
+
actionmailer (= 4.2.0)
|
65
|
+
actionpack (= 4.2.0)
|
66
|
+
actionview (= 4.2.0)
|
67
|
+
activejob (= 4.2.0)
|
68
|
+
activemodel (= 4.2.0)
|
69
|
+
activerecord (= 4.2.0)
|
70
|
+
activesupport (= 4.2.0)
|
56
71
|
bundler (>= 1.3.0, < 2.0)
|
57
|
-
railties (= 4.
|
58
|
-
sprockets-rails
|
59
|
-
|
60
|
-
|
61
|
-
|
72
|
+
railties (= 4.2.0)
|
73
|
+
sprockets-rails
|
74
|
+
rails-deprecated_sanitizer (1.0.3)
|
75
|
+
activesupport (>= 4.2.0.alpha)
|
76
|
+
rails-dom-testing (1.0.5)
|
77
|
+
activesupport (>= 4.2.0.beta, < 5.0)
|
78
|
+
nokogiri (~> 1.6.0)
|
79
|
+
rails-deprecated_sanitizer (>= 1.0.1)
|
80
|
+
rails-html-sanitizer (1.0.1)
|
81
|
+
loofah (~> 2.0)
|
82
|
+
railties (4.2.0)
|
83
|
+
actionpack (= 4.2.0)
|
84
|
+
activesupport (= 4.2.0)
|
62
85
|
rake (>= 0.8.7)
|
63
86
|
thor (>= 0.18.1, < 2.0)
|
64
|
-
rake (10.
|
87
|
+
rake (10.4.2)
|
65
88
|
rspec (2.14.1)
|
66
89
|
rspec-core (~> 2.14.0)
|
67
90
|
rspec-expectations (~> 2.14.0)
|
@@ -84,22 +107,19 @@ GEM
|
|
84
107
|
multi_json
|
85
108
|
simplecov-html (~> 0.8.0)
|
86
109
|
simplecov-html (0.8.0)
|
87
|
-
sprockets (2.12.
|
110
|
+
sprockets (2.12.3)
|
88
111
|
hike (~> 1.2)
|
89
112
|
multi_json (~> 1.0)
|
90
113
|
rack (~> 1.0)
|
91
114
|
tilt (~> 1.1, != 1.3.0)
|
92
|
-
sprockets-rails (2.
|
115
|
+
sprockets-rails (2.2.2)
|
93
116
|
actionpack (>= 3.0)
|
94
117
|
activesupport (>= 3.0)
|
95
|
-
sprockets (
|
118
|
+
sprockets (>= 2.8, < 4.0)
|
96
119
|
thor (0.19.1)
|
97
|
-
thread_safe (0.3.
|
120
|
+
thread_safe (0.3.4)
|
98
121
|
tilt (1.4.1)
|
99
|
-
|
100
|
-
polyglot
|
101
|
-
polyglot (>= 0.3.1)
|
102
|
-
tzinfo (1.1.0)
|
122
|
+
tzinfo (1.2.2)
|
103
123
|
thread_safe (~> 0.1)
|
104
124
|
|
105
125
|
PLATFORMS
|
@@ -107,7 +127,7 @@ PLATFORMS
|
|
107
127
|
|
108
128
|
DEPENDENCIES
|
109
129
|
autotest-standalone
|
110
|
-
rails
|
130
|
+
rails (>= 4.2)
|
111
131
|
rake
|
112
132
|
rspec
|
113
133
|
rspec-rails
|
@@ -18,9 +18,11 @@ module QueryInterface
|
|
18
18
|
transformations = JSON.parse(transformations) unless transformations.is_a?(Array)
|
19
19
|
result = transformer.run(transformations)
|
20
20
|
unless result.nil?
|
21
|
-
|
21
|
+
respond_to do |format|
|
22
|
+
format.json { render json: result }
|
23
|
+
end
|
22
24
|
else
|
23
|
-
|
25
|
+
head :not_found
|
24
26
|
end
|
25
27
|
end
|
26
28
|
end
|
@@ -26,6 +26,6 @@ Gem::Specification.new do |s|
|
|
26
26
|
s.add_runtime_dependency(%q<sequel>, '~> 4.10')
|
27
27
|
s.add_development_dependency(%q<rake>, '~> 10.1')
|
28
28
|
s.add_development_dependency(%q<rspec>, '~> 2.14')
|
29
|
-
s.add_development_dependency(%q<rails>, '~> 4.
|
29
|
+
s.add_development_dependency(%q<rails>, '~> 4.2')
|
30
30
|
s.add_development_dependency(%q<rspec-rails>, '~> 2.14')
|
31
31
|
end
|
data/spec/lib/resource_spec.rb
CHANGED
@@ -34,7 +34,7 @@ describe QueryInterface::Server::Transformations do
|
|
34
34
|
|
35
35
|
it "adds a @query_transformations hash as class instance variable" do
|
36
36
|
Foo.instance_variable_get(:@query_transformations).should eq({
|
37
|
-
|
37
|
+
:exclude=>{}, :filter=>{}, :with=>{}, :order=>{}, :update=>{}
|
38
38
|
})
|
39
39
|
end
|
40
40
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: query-interface-server
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.2.
|
4
|
+
version: 1.2.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Andreas Kopecky <andreas.kopecky@radarservices.com>
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date:
|
13
|
+
date: 2015-01-09 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: sequel
|
@@ -60,14 +60,14 @@ dependencies:
|
|
60
60
|
requirements:
|
61
61
|
- - "~>"
|
62
62
|
- !ruby/object:Gem::Version
|
63
|
-
version: '4.
|
63
|
+
version: '4.2'
|
64
64
|
type: :development
|
65
65
|
prerelease: false
|
66
66
|
version_requirements: !ruby/object:Gem::Requirement
|
67
67
|
requirements:
|
68
68
|
- - "~>"
|
69
69
|
- !ruby/object:Gem::Version
|
70
|
-
version: '4.
|
70
|
+
version: '4.2'
|
71
71
|
- !ruby/object:Gem::Dependency
|
72
72
|
name: rspec-rails
|
73
73
|
requirement: !ruby/object:Gem::Requirement
|
@@ -126,8 +126,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
126
126
|
version: '0'
|
127
127
|
requirements: []
|
128
128
|
rubyforge_project:
|
129
|
-
rubygems_version: 2.
|
129
|
+
rubygems_version: 2.4.3
|
130
130
|
signing_key:
|
131
131
|
specification_version: 4
|
132
132
|
summary: Server for the radar query interface
|
133
133
|
test_files: []
|
134
|
+
has_rdoc:
|