smartkiosk-server 0.11.5 → 0.11.6
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.
@@ -48,11 +48,11 @@ class TerminalPingsController < ApplicationController
|
|
48
48
|
}
|
49
49
|
end
|
50
50
|
|
51
|
-
providers = ActiveSupport::
|
51
|
+
providers = ActiveSupport::JSON.encode(providers)
|
52
52
|
profile.cached_providers.value = providers
|
53
53
|
end
|
54
54
|
end
|
55
55
|
|
56
|
-
send_data providers, :type => 'application/
|
56
|
+
send_data providers, :type => 'application/json', :disposition => 'inline'
|
57
57
|
end
|
58
58
|
end
|
@@ -47,7 +47,7 @@ describe TerminalPingsController do
|
|
47
47
|
it "delivers correct data" do
|
48
48
|
get :providers, :terminal => 'test'
|
49
49
|
|
50
|
-
body = ActiveSupport::JSON.decode
|
50
|
+
body = ActiveSupport::JSON.decode response.body
|
51
51
|
DateTime.parse(body["updated_at"]).to_i.should == @terminal.terminal_profile.actual_timestamp.to_i
|
52
52
|
end
|
53
53
|
|
@@ -74,7 +74,7 @@ describe TerminalPingsController do
|
|
74
74
|
|
75
75
|
get :providers, :terminal => 'test'
|
76
76
|
|
77
|
-
body = ActiveSupport::JSON.decode
|
77
|
+
body = ActiveSupport::JSON.decode response.body
|
78
78
|
new_stamp = DateTime.parse(body["updated_at"])
|
79
79
|
new_stamp.should > initial_stamp
|
80
80
|
new_stamp.to_i.should == @terminal.terminal_profile.actual_timestamp.to_i
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: smartkiosk-server
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.11.
|
4
|
+
version: 0.11.6
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -334,7 +334,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
334
334
|
version: '0'
|
335
335
|
segments:
|
336
336
|
- 0
|
337
|
-
hash:
|
337
|
+
hash: 4539088124566055437
|
338
338
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
339
339
|
none: false
|
340
340
|
requirements:
|