query-interface-server 1.2.1 → 1.2.2

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 33c670952d4f59776a596f71ad0c869dee0bb503
4
- data.tar.gz: c1b99d139f74ddee12001e1ded36adfda531beb1
3
+ metadata.gz: 06e5b9fe5c2329eecfcb035b04408e20b625a089
4
+ data.tar.gz: a5961df699248db8d7792f4273c30ec9f6c05341
5
5
  SHA512:
6
- metadata.gz: 15a94bb68fe650dadc9b950b3310162855239949a42c810115d74a22b32e739b7320835b68a4edde121b587d57ef9ea8ed365537f2338388c30da04accc5331f
7
- data.tar.gz: 28ee4e540bd1a7479e8066f65de1f6259fc2be4aadaef9be2229af1bc987b155f855eda839bd6ab5ed10967d42a880e7d336a6d78881533cd02119bc15aa2010
6
+ metadata.gz: bd32de6afa70c88e329aef0943f027e9953eb4d0dbe7c7063f77eac537941fea088ccb0b97b826978f3c26493d0e44c9851f997dc38d78d72eec1947d08af89f
7
+ data.tar.gz: ba3e557eb3b0e27d31c023416e3b270664c5bbd1d034874303443ebd483ca4c3c2e01cc84abf7851054d3a27047c5a0d858f7506d45b42355df1b675df8bfb43
data/Gemfile CHANGED
@@ -5,7 +5,7 @@ gem 'sequel'
5
5
  group :development do
6
6
  gem 'rake'
7
7
  gem 'rspec'
8
- gem 'rails'
8
+ gem 'rails', '>= 4.2'
9
9
  gem 'rspec-rails'
10
10
  gem 'autotest-standalone'
11
11
  gem 'simplecov', :require => false, :group => :test
data/Gemfile.lock CHANGED
@@ -1,67 +1,90 @@
1
1
  GEM
2
2
  remote: http://rubygems.org/
3
3
  specs:
4
- actionmailer (4.1.1)
5
- actionpack (= 4.1.1)
6
- actionview (= 4.1.1)
7
- mail (~> 2.5.4)
8
- actionpack (4.1.1)
9
- actionview (= 4.1.1)
10
- activesupport (= 4.1.1)
11
- rack (~> 1.5.2)
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
- actionview (4.1.1)
14
- activesupport (= 4.1.1)
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
- activemodel (4.1.1)
18
- activesupport (= 4.1.1)
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.1.1)
21
- activemodel (= 4.1.1)
22
- activesupport (= 4.1.1)
23
- arel (~> 5.0.0)
24
- activesupport (4.1.1)
25
- i18n (~> 0.6, >= 0.6.9)
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.1)
37
+ thread_safe (~> 0.3, >= 0.3.4)
29
38
  tzinfo (~> 1.1)
30
- arel (5.0.1.20140414130214)
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.6.9)
38
- json (1.8.1)
39
- mail (2.5.4)
40
- mime-types (~> 1.16)
41
- treetop (~> 1.4.8)
42
- mime-types (1.25.1)
43
- minitest (5.3.3)
44
- multi_json (1.10.0)
45
- polyglot (0.3.4)
46
- rack (1.5.2)
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.1.1)
50
- actionmailer (= 4.1.1)
51
- actionpack (= 4.1.1)
52
- actionview (= 4.1.1)
53
- activemodel (= 4.1.1)
54
- activerecord (= 4.1.1)
55
- activesupport (= 4.1.1)
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.1.1)
58
- sprockets-rails (~> 2.0)
59
- railties (4.1.1)
60
- actionpack (= 4.1.1)
61
- activesupport (= 4.1.1)
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.3.1)
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.1)
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.1.3)
115
+ sprockets-rails (2.2.2)
93
116
  actionpack (>= 3.0)
94
117
  activesupport (>= 3.0)
95
- sprockets (~> 2.8)
118
+ sprockets (>= 2.8, < 4.0)
96
119
  thor (0.19.1)
97
- thread_safe (0.3.3)
120
+ thread_safe (0.3.4)
98
121
  tilt (1.4.1)
99
- treetop (1.4.15)
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
- respond_with(result)
21
+ respond_to do |format|
22
+ format.json { render json: result }
23
+ end
22
24
  else
23
- render text: "", status: :not_found
25
+ head :not_found
24
26
  end
25
27
  end
26
28
  end
@@ -1,7 +1,7 @@
1
1
  module QueryInterface
2
2
  module Server
3
3
 
4
- VERSION = '1.2.1'
4
+ VERSION = '1.2.2'
5
5
 
6
6
  end
7
7
  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.0')
29
+ s.add_development_dependency(%q<rails>, '~> 4.2')
30
30
  s.add_development_dependency(%q<rspec-rails>, '~> 2.14')
31
31
  end
@@ -6,7 +6,6 @@ describe QueryInterface::Server::Resource, type: :controller do
6
6
  end
7
7
 
8
8
  controller(ActionController::Base) do
9
- respond_to :json
10
9
  include QueryInterface::Server::Resource.for(Foo)
11
10
  end
12
11
 
@@ -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
- filter: {}, with: {}, order: {}
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.1
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: 2014-09-18 00:00:00.000000000 Z
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.0'
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.0'
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.2.1
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: