interapp 0.0.3 → 6.1.0

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
- SHA1:
3
- metadata.gz: e2bb56699c39d2e3019847b3b96379e03f9844b9
4
- data.tar.gz: ca3fc7b3fba6f2aacb690e3d1ac821906353d0ff
2
+ SHA256:
3
+ metadata.gz: 8a89ce38942b6077d2e30c9c6dc7de4b5ac48f615f14d0ec208442f865416429
4
+ data.tar.gz: 659b765754e8d24d8e7337a2990cc173ef0fcdc360de98192cc7a09645da384b
5
5
  SHA512:
6
- metadata.gz: 0133fbdde193556a6404673aa0d487eefc4b04839aaec62007e49e645338cdc56e7ca5b5e6342a71393148cd169411bfeee205b26739e948811219a7ed6845d9
7
- data.tar.gz: 26df7c310f8a90975ce27f78f2373c3d7a4985e337e024bf4597dba0ef6fb9203203f8a42f3e29cdf3d39a6522ab4588d550fa826b6109b9755906a749248f46
6
+ metadata.gz: 9364bb56e351ff06d277113b3e9cdb4588db1b0b51fb3e344fa561aa2f296a3c5324562615e567ee32cc38842b5ffb9b9f15ec31b9221e3e7f4a75a7ff405b1a
7
+ data.tar.gz: f1e2ebac3e15fbe78ed8a95179b3dd4af1bc5ed115177fb646ccfe586d80c937b8fd4b2d384d6f8be2ff192a8333b81fffdb16c5440d8965ddfa1e157c5d7c3f
@@ -1,12 +1,14 @@
1
1
  module Interapp
2
2
  class MessagesController < Interapp::ApplicationController
3
3
  def create
4
- Interapp::ReceiveMessageService.new(
4
+ service = Interapp::ReceiveMessageService.new(
5
5
  payload: request.body.read,
6
6
  peer_identifier: request.headers["X-Interapp-Identifier"],
7
7
  signature: request.headers["X-Interapp-Signature"]
8
- ).perform
9
- render json: { received_at: Time.now.to_i }
8
+ )
9
+ service.perform
10
+ output = service.return_value || { received_at: Time.now.to_i }
11
+ render json: output
10
12
  end
11
13
  end
12
14
  end
@@ -1,6 +1,6 @@
1
1
  module Interapp
2
2
  class ReceiveMessageService
3
- attr :message, :peer, :data
3
+ attr :message, :peer, :data, :return_value
4
4
 
5
5
  def initialize(payload:, peer_identifier:, signature:)
6
6
  find_peer(peer_identifier)
@@ -10,7 +10,7 @@ module Interapp
10
10
 
11
11
  def perform
12
12
  if @message.verify
13
- Interapp.configuration.handler.call(data, message.peer.identifier)
13
+ @return_value = Interapp.configuration.handler.call(data, message.peer.identifier)
14
14
  else
15
15
  raise Interapp::SignatureInvalidError
16
16
  end
@@ -1,3 +1,6 @@
1
+ require 'net/http'
2
+ require 'uri'
3
+
1
4
  module Interapp
2
5
  class SendMessageService
3
6
  attr :message, :peer, :payload
@@ -10,11 +13,17 @@ module Interapp
10
13
  end
11
14
 
12
15
  def perform
13
- RestClient.post(peer.endpoint, message.payload, {
14
- content_type: 'application/json',
15
- "X-Interapp-Identifier" => Interapp.configuration.identifier,
16
- "X-Interapp-Signature" => message.signature
17
- })
16
+ response = Net::HTTP.post(
17
+ URI(peer.endpoint),
18
+ message.payload,
19
+ {
20
+ "X-Interapp-Identifier" => Interapp.configuration.identifier,
21
+ "X-Interapp-Signature" => message.signature,
22
+ "Content-Type" => "application/json",
23
+ "Accept" => "application/json"
24
+ }
25
+ )
26
+ JSON.parse(response.body) if response
18
27
  end
19
28
 
20
29
  private
data/lib/interapp.rb CHANGED
@@ -1,5 +1,4 @@
1
1
  require "ecdsa"
2
- require "rest-client"
3
2
  require "interapp/engine"
4
3
  require "interapp/configuration"
5
4
  require "interapp/cryptography"
@@ -1,5 +1,8 @@
1
1
  module Interapp
2
2
  class Engine < ::Rails::Engine
3
3
  isolate_namespace Interapp
4
+ config.after_initialize do
5
+ require 'interapp/application_controller'
6
+ end
4
7
  end
5
8
  end
@@ -1,3 +1,3 @@
1
1
  module Interapp
2
- VERSION = "0.0.3"
2
+ VERSION = '6.1.0'.freeze
3
3
  end
@@ -3,51 +3,51 @@ require 'spec_helper'
3
3
  describe Interapp::Message do
4
4
  let(:payload) { '{ "test": ["message", "payload"] }' }
5
5
  let(:keypair) { Interapp::Cryptography.generate_keypair }
6
- let(:peer) { Interapp::Peer.new(identifier: "test_peer", public_key: keypair[1])}
6
+ let(:peer) { Interapp::Peer.new(identifier: 'test_peer', public_key: keypair[1]) }
7
7
  subject(:message) { described_class.new(payload: payload, peer: peer) }
8
8
 
9
- describe ".new" do
10
- it "stores payload and peer in instance variable" do
9
+ describe '.new' do
10
+ it 'stores payload and peer in instance variable' do
11
11
  expect(subject.payload).to eq(payload)
12
12
  expect(subject.peer).to eq(peer)
13
13
  end
14
14
  end
15
15
 
16
- describe "#verify" do
17
- context "with a valid signature" do
16
+ describe '#verify' do
17
+ context 'with a valid signature' do
18
18
  before do
19
- subject.signature = Interapp::Cryptography.sign(payload, keypair[0].to_i(16)).unpack("H*").first
19
+ subject.signature = Interapp::Cryptography.sign(payload, keypair[0].to_i(16)).unpack('H*').first
20
20
  end
21
21
 
22
- it "verifies as true" do
23
- expect(subject.verify).to be_true
22
+ it 'verifies as true' do
23
+ expect(subject.verify).to be true
24
24
  end
25
25
  end
26
26
 
27
- context "with an invalid signature" do
27
+ context 'with an invalid signature' do
28
28
  before do
29
- subject.signature = Interapp::Cryptography.sign("foo bar baz", keypair[0].to_i(16)).unpack("H*").first
29
+ subject.signature = Interapp::Cryptography.sign('foo bar baz', keypair[0].to_i(16)).unpack('H*').first
30
30
  end
31
31
 
32
- it "verifies as false" do
33
- expect(subject.verify).to be_false
32
+ it 'verifies as false' do
33
+ expect(subject.verify).to be false
34
34
  end
35
35
  end
36
36
  end
37
37
 
38
- describe "#sign" do
38
+ describe '#sign' do
39
39
  before do
40
40
  Interapp.configure { |config| config.private_key = keypair[0] }
41
41
  subject.sign
42
42
  end
43
43
 
44
- it "stores the signature in hex" do
44
+ it 'stores the signature in hex' do
45
45
  expect(subject.signature).to be_present
46
46
  expect(subject.signature).to be_a(String)
47
47
  end
48
48
 
49
- it "verifies against itself" do
50
- expect(subject.verify).to be_true
49
+ it 'verifies against itself' do
50
+ expect(subject.verify).to be true
51
51
  end
52
52
  end
53
53
  end
@@ -1,59 +1,59 @@
1
1
  require 'spec_helper'
2
2
 
3
- describe "POST /interapp" do
4
- context "with valid signature" do
5
- let(:payload) { "{\"test\":[\"message\",\"payload\"]}" }
6
- let(:signature) { "304502210096e30cdca8d21ccd425eef825216dd65edb3fc4b3a6b401a7010c653208e864202201b442c03037c8deb6e3ff27cc33f6ddc338e02923d45ada41b5d57ee7d4b8a4a" }
7
- let(:identifier) { "dummy" }
3
+ describe 'POST /interapp', type: :request do
4
+ context 'with valid signature' do
5
+ let(:payload) { '{"test":["message","payload"]}' }
6
+ let(:signature) { '304502210096e30cdca8d21ccd425eef825216dd65edb3fc4b3a6b401a7010c653208e864202201b442c03037c8deb6e3ff27cc33f6ddc338e02923d45ada41b5d57ee7d4b8a4a' }
7
+ let(:identifier) { 'dummy' }
8
8
 
9
9
  before do
10
- @mock_handler = double("handler")
10
+ @mock_handler = double('handler')
11
11
  Interapp.configure do |config|
12
12
  config.on_receive do |data, peer_identifier|
13
- @mock_handler.receive(data, peer_identifier)
14
- end
13
+ @mock_handler.receive(data, peer_identifier)
14
+ end
15
15
  end
16
16
  end
17
17
 
18
- it "handles the message correctly" do
19
- expect(@mock_handler).to receive(:receive).with({ "test" => ["message", "payload"]}, "dummy")
20
- post "/interapp", payload, {
21
- "CONTENT_TYPE" => "application/json",
22
- "X-Interapp-Identifier" => identifier,
23
- "X-Interapp-Signature" => signature
18
+ it 'handles the message correctly' do
19
+ expect(@mock_handler).to receive(:receive).with({ 'test' => %w[message payload] }, 'dummy').and_return(dummy: 'response')
20
+ post '/interapp', params: payload, headers: {
21
+ 'CONTENT_TYPE' => 'application/json',
22
+ 'X-Interapp-Identifier' => identifier,
23
+ 'X-Interapp-Signature' => signature
24
24
  }
25
25
  expect(response.status).to eq(200)
26
+ expect(response.body).to eq('{"dummy":"response"}')
26
27
  end
27
28
  end
28
29
 
29
- context "with invalid signature" do
30
- let(:payload) { "{\"test\":[\"message\",\"payload\"]}" }
31
- let(:signature) { "blahblahblah" }
32
- let(:identifier) { "dummy" }
30
+ context 'with invalid signature' do
31
+ let(:payload) { '{"test":["message","payload"]}' }
32
+ let(:signature) { 'blahblahblah' }
33
+ let(:identifier) { 'dummy' }
33
34
 
34
- it "returns 403" do
35
- post "/interapp", payload, {
36
- "CONTENT_TYPE" => "application/json",
37
- "X-Interapp-Identifier" => identifier,
38
- "X-Interapp-Signature" => signature
35
+ it 'returns 403' do
36
+ post '/interapp', params: payload, headers: {
37
+ 'CONTENT_TYPE' => 'application/json',
38
+ 'X-Interapp-Identifier' => identifier,
39
+ 'X-Interapp-Signature' => signature
39
40
  }
40
41
  expect(response.status).to eq(403)
41
42
  end
42
43
  end
43
44
 
44
- context "with unknown peer" do
45
- let(:payload) { "{\"test\":[\"message\",\"payload\"]}" }
46
- let(:signature) { "304502210096e30cdca8d21ccd425eef825216dd65edb3fc4b3a6b401a7010c653208e864202201b442c03037c8deb6e3ff27cc33f6ddc338e02923d45ada41b5d57ee7d4b8a4a" }
47
- let(:identifier) { "foobar" }
45
+ context 'with unknown peer' do
46
+ let(:payload) { '{"test":["message","payload"]}' }
47
+ let(:signature) { '304502210096e30cdca8d21ccd425eef825216dd65edb3fc4b3a6b401a7010c653208e864202201b442c03037c8deb6e3ff27cc33f6ddc338e02923d45ada41b5d57ee7d4b8a4a' }
48
+ let(:identifier) { 'foobar' }
48
49
 
49
- it "returns 403" do
50
- post "/interapp", payload, {
51
- "CONTENT_TYPE" => "application/json",
52
- "X-Interapp-Identifier" => identifier,
53
- "X-Interapp-Signature" => signature
50
+ it 'returns 403' do
51
+ post '/interapp', params: payload, headers: {
52
+ 'CONTENT_TYPE' => 'application/json',
53
+ 'X-Interapp-Identifier' => identifier,
54
+ 'X-Interapp-Signature' => signature
54
55
  }
55
56
  expect(response.status).to eq(403)
56
57
  end
57
58
  end
58
-
59
59
  end
@@ -34,6 +34,12 @@ describe Interapp::ReceiveMessageService do
34
34
  expect(@mock_handler).to receive(:receive).with({ "test" => ["message", "payload"]}, "dummy")
35
35
  subject.perform
36
36
  end
37
+
38
+ it "sets the return value attribute" do
39
+ allow(@mock_handler).to receive(:receive).with({ "test" => ["message", "payload"]}, "dummy").and_return({ dummy: "response" })
40
+ subject.perform
41
+ expect(subject.return_value).to eq({ dummy: "response" })
42
+ end
37
43
  end
38
44
 
39
45
  context "with invalid signature" do
@@ -18,13 +18,22 @@ describe Interapp::SendMessageService do
18
18
  end
19
19
 
20
20
  describe "#perform" do
21
- it "sends the POST request" do
22
- expect(RestClient).to receive(:post).with(subject.peer.endpoint, subject.message.payload, {
23
- content_type: 'application/json',
24
- "X-Interapp-Identifier" => Interapp.configuration.identifier,
25
- "X-Interapp-Signature" => subject.message.signature
26
- })
27
- subject.perform
21
+ it "sends the POST request and return parsed json response" do
22
+ stub_request(:post, "https://dummy.example.com/interapp")
23
+ .with(
24
+ body: "{\"test\":[\"message\",\"payload\"]}",
25
+ headers: {
26
+ 'Content-Type' => 'application/json',
27
+ 'Accept' => 'application/json',
28
+ 'X-Interapp-Identifier' => Interapp.configuration.identifier,
29
+ 'X-Interapp-Signature' => subject.message.signature
30
+ }
31
+ ).to_return(
32
+ status: 200,
33
+ body: "{\"dummy\":\"response\"}",
34
+ headers: {}
35
+ )
36
+ expect(subject.perform).to eq({"dummy" => "response"})
28
37
  end
29
38
  end
30
39
  end
data/spec/spec_helper.rb CHANGED
@@ -1,8 +1,10 @@
1
1
  ENV['RAILS_ENV'] ||= 'test'
2
2
 
3
- require File.expand_path("../dummy/config/environment.rb", __FILE__)
3
+ require File.expand_path('dummy/config/environment.rb', __dir__)
4
4
  require 'rspec/rails'
5
- require 'rspec/autorun'
5
+ require 'webmock/rspec'
6
+
7
+ WebMock.disable_net_connect!
6
8
 
7
9
  Rails.backtrace_cleaner.remove_silencers!
8
10
 
@@ -10,5 +12,5 @@ RSpec.configure do |config|
10
12
  config.mock_with :rspec
11
13
  config.use_transactional_fixtures = true
12
14
  config.infer_base_class_for_anonymous_controllers = false
13
- config.order = "random"
15
+ config.order = 'random'
14
16
  end
metadata CHANGED
@@ -1,65 +1,65 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: interapp
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 6.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ryan Zhou
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-09-10 00:00:00.000000000 Z
11
+ date: 2021-05-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
- name: rails
14
+ name: ecdsa
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: 4.1.1
20
- - - ">="
21
- - !ruby/object:Gem::Version
22
- version: 4.1.1
19
+ version: 1.1.0
23
20
  type: :runtime
24
21
  prerelease: false
25
22
  version_requirements: !ruby/object:Gem::Requirement
26
23
  requirements:
27
24
  - - "~>"
28
25
  - !ruby/object:Gem::Version
29
- version: 4.1.1
30
- - - ">="
31
- - !ruby/object:Gem::Version
32
- version: 4.1.1
26
+ version: 1.1.0
33
27
  - !ruby/object:Gem::Dependency
34
- name: ecdsa
28
+ name: rails
35
29
  requirement: !ruby/object:Gem::Requirement
36
30
  requirements:
37
- - - "~>"
31
+ - - ">="
38
32
  - !ruby/object:Gem::Version
39
- version: 1.1.0
33
+ version: 5.0.0
34
+ - - "<"
35
+ - !ruby/object:Gem::Version
36
+ version: '7.0'
40
37
  type: :runtime
41
38
  prerelease: false
42
39
  version_requirements: !ruby/object:Gem::Requirement
43
40
  requirements:
44
- - - "~>"
41
+ - - ">="
45
42
  - !ruby/object:Gem::Version
46
- version: 1.1.0
43
+ version: 5.0.0
44
+ - - "<"
45
+ - !ruby/object:Gem::Version
46
+ version: '7.0'
47
47
  - !ruby/object:Gem::Dependency
48
- name: rest-client
48
+ name: rspec-rails
49
49
  requirement: !ruby/object:Gem::Requirement
50
50
  requirements:
51
- - - "~>"
51
+ - - ">="
52
52
  - !ruby/object:Gem::Version
53
- version: 1.7.2
54
- type: :runtime
53
+ version: '0'
54
+ type: :development
55
55
  prerelease: false
56
56
  version_requirements: !ruby/object:Gem::Requirement
57
57
  requirements:
58
- - - "~>"
58
+ - - ">="
59
59
  - !ruby/object:Gem::Version
60
- version: 1.7.2
60
+ version: '0'
61
61
  - !ruby/object:Gem::Dependency
62
- name: rspec-rails
62
+ name: sqlite3
63
63
  requirement: !ruby/object:Gem::Requirement
64
64
  requirements:
65
65
  - - ">="
@@ -73,7 +73,7 @@ dependencies:
73
73
  - !ruby/object:Gem::Version
74
74
  version: '0'
75
75
  - !ruby/object:Gem::Dependency
76
- name: sqlite3
76
+ name: webmock
77
77
  requirement: !ruby/object:Gem::Requirement
78
78
  requirements:
79
79
  - - ">="
@@ -138,14 +138,11 @@ files:
138
138
  - spec/dummy/config/locales/en.yml
139
139
  - spec/dummy/config/routes.rb
140
140
  - spec/dummy/config/secrets.yml
141
- - spec/dummy/db/development.sqlite3
142
141
  - spec/dummy/db/test.sqlite3
143
- - spec/dummy/log/test.log
144
142
  - spec/dummy/public/404.html
145
143
  - spec/dummy/public/422.html
146
144
  - spec/dummy/public/500.html
147
145
  - spec/dummy/public/favicon.ico
148
- - spec/dummy/tmp/pids/server.pid
149
146
  - spec/models/message_spec.rb
150
147
  - spec/requests/interapp_spec.rb
151
148
  - spec/services/receive_message_service_spec.rb
@@ -170,51 +167,47 @@ required_rubygems_version: !ruby/object:Gem::Requirement
170
167
  - !ruby/object:Gem::Version
171
168
  version: '0'
172
169
  requirements: []
173
- rubyforge_project:
174
- rubygems_version: 2.2.2
170
+ rubygems_version: 3.1.4
175
171
  signing_key:
176
172
  specification_version: 4
177
173
  summary: Interapp handles simple and secure inter-app messaging.
178
174
  test_files:
179
- - spec/dummy/app/assets/javascripts/application.js
180
- - spec/dummy/app/assets/stylesheets/application.css
181
- - spec/dummy/app/controllers/application_controller.rb
182
- - spec/dummy/app/helpers/application_helper.rb
183
- - spec/dummy/app/views/layouts/application.html.erb
184
- - spec/dummy/bin/bundle
185
- - spec/dummy/bin/rails
186
- - spec/dummy/bin/rake
187
- - spec/dummy/config/application.rb
175
+ - spec/services/receive_message_service_spec.rb
176
+ - spec/services/send_message_service_spec.rb
177
+ - spec/models/message_spec.rb
178
+ - spec/spec_helper.rb
179
+ - spec/requests/interapp_spec.rb
180
+ - spec/dummy/config/secrets.yml
188
181
  - spec/dummy/config/boot.rb
189
- - spec/dummy/config/database.yml
190
- - spec/dummy/config/environment.rb
182
+ - spec/dummy/config/environments/test.rb
191
183
  - spec/dummy/config/environments/development.rb
192
184
  - spec/dummy/config/environments/production.rb
193
- - spec/dummy/config/environments/test.rb
194
- - spec/dummy/config/initializers/backtrace_silencers.rb
185
+ - spec/dummy/config/routes.rb
186
+ - spec/dummy/config/database.yml
187
+ - spec/dummy/config/locales/en.yml
188
+ - spec/dummy/config/environment.rb
195
189
  - spec/dummy/config/initializers/cookies_serializer.rb
196
- - spec/dummy/config/initializers/filter_parameter_logging.rb
197
- - spec/dummy/config/initializers/inflections.rb
198
190
  - spec/dummy/config/initializers/interapp.rb
199
- - spec/dummy/config/initializers/mime_types.rb
191
+ - spec/dummy/config/initializers/backtrace_silencers.rb
200
192
  - spec/dummy/config/initializers/session_store.rb
201
193
  - spec/dummy/config/initializers/wrap_parameters.rb
202
- - spec/dummy/config/locales/en.yml
203
- - spec/dummy/config/routes.rb
204
- - spec/dummy/config/secrets.yml
205
- - spec/dummy/config.ru
206
- - spec/dummy/db/development.sqlite3
194
+ - spec/dummy/config/initializers/filter_parameter_logging.rb
195
+ - spec/dummy/config/initializers/mime_types.rb
196
+ - spec/dummy/config/initializers/inflections.rb
197
+ - spec/dummy/config/application.rb
207
198
  - spec/dummy/db/test.sqlite3
208
- - spec/dummy/log/test.log
199
+ - spec/dummy/config.ru
200
+ - spec/dummy/app/views/layouts/application.html.erb
201
+ - spec/dummy/app/helpers/application_helper.rb
202
+ - spec/dummy/app/assets/stylesheets/application.css
203
+ - spec/dummy/app/assets/javascripts/application.js
204
+ - spec/dummy/app/controllers/application_controller.rb
205
+ - spec/dummy/public/favicon.ico
209
206
  - spec/dummy/public/404.html
210
- - spec/dummy/public/422.html
211
207
  - spec/dummy/public/500.html
212
- - spec/dummy/public/favicon.ico
208
+ - spec/dummy/public/422.html
213
209
  - spec/dummy/Rakefile
214
210
  - spec/dummy/README.rdoc
215
- - spec/dummy/tmp/pids/server.pid
216
- - spec/models/message_spec.rb
217
- - spec/requests/interapp_spec.rb
218
- - spec/services/receive_message_service_spec.rb
219
- - spec/services/send_message_service_spec.rb
220
- - spec/spec_helper.rb
211
+ - spec/dummy/bin/bundle
212
+ - spec/dummy/bin/rails
213
+ - spec/dummy/bin/rake
File without changes
@@ -1,308 +0,0 @@
1
-  (0.2ms) begin transaction
2
-  (0.0ms) rollback transaction
3
-  (0.0ms) begin transaction
4
-  (0.0ms) rollback transaction
5
-  (0.0ms) begin transaction
6
-  (0.1ms) rollback transaction
7
-  (0.0ms) begin transaction
8
-  (0.0ms) rollback transaction
9
-  (0.0ms) begin transaction
10
-  (0.1ms) rollback transaction
11
-  (0.1ms) begin transaction
12
-  (0.1ms) rollback transaction
13
-  (0.0ms) begin transaction
14
-  (0.1ms) rollback transaction
15
-  (0.0ms) begin transaction
16
-  (0.1ms) rollback transaction
17
-  (0.0ms) begin transaction
18
-  (0.1ms) rollback transaction
19
-  (0.0ms) begin transaction
20
- Started POST "/interapp" for 127.0.0.1 at 2014-09-07 12:14:49 +1000
21
- Processing by Interapp::MessagesController#create as HTML
22
- Parameters: {"test"=>["message", "payload"], "message"=>{"test"=>["message", "payload"]}}
23
- Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
24
-  (0.0ms) rollback transaction
25
-  (0.0ms) begin transaction
26
- Started POST "/interapp" for 127.0.0.1 at 2014-09-07 12:14:49 +1000
27
- Processing by Interapp::MessagesController#create as HTML
28
- Parameters: {"test"=>["message", "payload"], "message"=>{"test"=>["message", "payload"]}}
29
- Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
30
-  (0.0ms) rollback transaction
31
-  (0.0ms) begin transaction
32
- Started POST "/interapp" for 127.0.0.1 at 2014-09-07 12:14:49 +1000
33
- Processing by Interapp::MessagesController#create as HTML
34
- Parameters: {"test"=>["message", "payload"], "message"=>{"test"=>["message", "payload"]}}
35
- Completed 200 OK in 208ms (Views: 0.1ms | ActiveRecord: 0.0ms)
36
-  (0.1ms) rollback transaction
37
-  (0.0ms) begin transaction
38
-  (0.1ms) rollback transaction
39
-  (0.0ms) begin transaction
40
-  (0.1ms) rollback transaction
41
-  (0.0ms) begin transaction
42
-  (0.1ms) rollback transaction
43
-  (0.0ms) begin transaction
44
-  (0.1ms) rollback transaction
45
-  (0.3ms) begin transaction
46
-  (0.2ms) rollback transaction
47
-  (0.1ms) begin transaction
48
-  (0.1ms) rollback transaction
49
-  (0.0ms) begin transaction
50
-  (0.1ms) rollback transaction
51
-  (0.0ms) begin transaction
52
-  (0.1ms) rollback transaction
53
-  (0.0ms) begin transaction
54
-  (0.1ms) rollback transaction
55
-  (0.0ms) begin transaction
56
-  (0.0ms) rollback transaction
57
-  (0.0ms) begin transaction
58
-  (0.0ms) rollback transaction
59
-  (0.0ms) begin transaction
60
-  (0.0ms) rollback transaction
61
-  (0.0ms) begin transaction
62
-  (0.0ms) rollback transaction
63
-  (0.0ms) begin transaction
64
- Started POST "/interapp" for 127.0.0.1 at 2014-09-07 13:10:43 +1000
65
- Processing by Interapp::MessagesController#create as HTML
66
- Parameters: {"test"=>["message", "payload"], "message"=>{"test"=>["message", "payload"]}}
67
- Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
68
-  (0.0ms) rollback transaction
69
-  (0.0ms) begin transaction
70
- Started POST "/interapp" for 127.0.0.1 at 2014-09-07 13:10:43 +1000
71
- Processing by Interapp::MessagesController#create as HTML
72
- Parameters: {"test"=>["message", "payload"], "message"=>{"test"=>["message", "payload"]}}
73
- Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
74
-  (0.0ms) rollback transaction
75
-  (0.0ms) begin transaction
76
- Started POST "/interapp" for 127.0.0.1 at 2014-09-07 13:10:43 +1000
77
- Processing by Interapp::MessagesController#create as HTML
78
- Parameters: {"test"=>["message", "payload"], "message"=>{"test"=>["message", "payload"]}}
79
- Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
80
-  (0.0ms) rollback transaction
81
-  (0.0ms) begin transaction
82
-  (0.0ms) rollback transaction
83
-  (0.0ms) begin transaction
84
-  (0.0ms) rollback transaction
85
-  (0.0ms) begin transaction
86
-  (0.0ms) rollback transaction
87
-  (0.0ms) begin transaction
88
-  (0.1ms) rollback transaction
89
-  (0.2ms) begin transaction
90
-  (0.1ms) rollback transaction
91
-  (0.1ms) begin transaction
92
-  (0.1ms) rollback transaction
93
-  (0.0ms) begin transaction
94
-  (0.1ms) rollback transaction
95
-  (0.0ms) begin transaction
96
-  (0.1ms) rollback transaction
97
-  (0.1ms) begin transaction
98
-  (0.1ms) rollback transaction
99
-  (0.0ms) begin transaction
100
-  (0.0ms) rollback transaction
101
-  (0.0ms) begin transaction
102
-  (0.0ms) rollback transaction
103
-  (0.0ms) begin transaction
104
-  (0.1ms) rollback transaction
105
-  (0.0ms) begin transaction
106
-  (0.0ms) rollback transaction
107
-  (0.0ms) begin transaction
108
-  (0.1ms) rollback transaction
109
-  (0.1ms) begin transaction
110
-  (0.1ms) rollback transaction
111
-  (0.0ms) begin transaction
112
-  (0.1ms) rollback transaction
113
-  (0.0ms) begin transaction
114
-  (0.1ms) rollback transaction
115
-  (0.0ms) begin transaction
116
- Started POST "/interapp" for 127.0.0.1 at 2014-09-07 13:11:26 +1000
117
- Processing by Interapp::MessagesController#create as HTML
118
- Parameters: {"test"=>["message", "payload"], "message"=>{"test"=>["message", "payload"]}}
119
- Completed 200 OK in 209ms (Views: 0.2ms | ActiveRecord: 0.0ms)
120
-  (0.1ms) rollback transaction
121
-  (0.0ms) begin transaction
122
- Started POST "/interapp" for 127.0.0.1 at 2014-09-07 13:11:26 +1000
123
- Processing by Interapp::MessagesController#create as HTML
124
- Parameters: {"test"=>["message", "payload"], "message"=>{"test"=>["message", "payload"]}}
125
- Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
126
-  (0.0ms) rollback transaction
127
-  (0.0ms) begin transaction
128
- Started POST "/interapp" for 127.0.0.1 at 2014-09-07 13:11:26 +1000
129
- Processing by Interapp::MessagesController#create as HTML
130
- Parameters: {"test"=>["message", "payload"], "message"=>{"test"=>["message", "payload"]}}
131
- Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
132
-  (0.0ms) rollback transaction
133
-  (0.2ms) begin transaction
134
-  (0.1ms) rollback transaction
135
-  (0.0ms) begin transaction
136
-  (0.1ms) rollback transaction
137
-  (0.0ms) begin transaction
138
-  (0.1ms) rollback transaction
139
-  (0.0ms) begin transaction
140
-  (0.1ms) rollback transaction
141
-  (0.0ms) begin transaction
142
-  (0.1ms) rollback transaction
143
-  (0.0ms) begin transaction
144
- Started POST "/interapp" for 127.0.0.1 at 2014-09-07 14:30:54 +1000
145
- Processing by Interapp::MessagesController#create as HTML
146
- Parameters: {"test"=>["message", "payload"], "message"=>{"test"=>["message", "payload"]}}
147
- Completed 200 OK in 215ms (Views: 0.2ms | ActiveRecord: 0.0ms)
148
-  (0.1ms) rollback transaction
149
-  (0.0ms) begin transaction
150
- Started POST "/interapp" for 127.0.0.1 at 2014-09-07 14:30:55 +1000
151
- Processing by Interapp::MessagesController#create as HTML
152
- Parameters: {"test"=>["message", "payload"], "message"=>{"test"=>["message", "payload"]}}
153
- Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
154
-  (0.0ms) rollback transaction
155
-  (0.0ms) begin transaction
156
- Started POST "/interapp" for 127.0.0.1 at 2014-09-07 14:30:55 +1000
157
- Processing by Interapp::MessagesController#create as HTML
158
- Parameters: {"test"=>["message", "payload"], "message"=>{"test"=>["message", "payload"]}}
159
- Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
160
-  (0.0ms) rollback transaction
161
-  (0.0ms) begin transaction
162
-  (0.0ms) rollback transaction
163
-  (0.0ms) begin transaction
164
-  (0.0ms) rollback transaction
165
-  (0.0ms) begin transaction
166
-  (0.1ms) rollback transaction
167
-  (0.0ms) begin transaction
168
-  (0.1ms) rollback transaction
169
-  (0.0ms) begin transaction
170
-  (0.1ms) rollback transaction
171
-  (0.0ms) begin transaction
172
-  (0.1ms) rollback transaction
173
-  (0.1ms) begin transaction
174
-  (0.1ms) rollback transaction
175
-  (0.0ms) begin transaction
176
-  (0.1ms) rollback transaction
177
-  (0.2ms) begin transaction
178
-  (0.1ms) rollback transaction
179
-  (0.0ms) begin transaction
180
-  (0.1ms) rollback transaction
181
-  (0.0ms) begin transaction
182
-  (0.1ms) rollback transaction
183
-  (0.0ms) begin transaction
184
-  (0.1ms) rollback transaction
185
-  (0.0ms) begin transaction
186
-  (0.1ms) rollback transaction
187
-  (0.0ms) begin transaction
188
-  (0.1ms) rollback transaction
189
-  (0.0ms) begin transaction
190
-  (0.1ms) rollback transaction
191
-  (0.1ms) begin transaction
192
-  (0.1ms) rollback transaction
193
-  (0.0ms) begin transaction
194
-  (0.1ms) rollback transaction
195
-  (0.0ms) begin transaction
196
-  (0.0ms) rollback transaction
197
-  (0.0ms) begin transaction
198
-  (0.0ms) rollback transaction
199
-  (0.0ms) begin transaction
200
-  (0.1ms) rollback transaction
201
-  (0.0ms) begin transaction
202
-  (0.0ms) rollback transaction
203
-  (0.0ms) begin transaction
204
- Started POST "/interapp" for 127.0.0.1 at 2014-09-07 14:31:01 +1000
205
- Processing by Interapp::MessagesController#create as HTML
206
- Parameters: {"test"=>["message", "payload"], "message"=>{"test"=>["message", "payload"]}}
207
- Completed 200 OK in 214ms (Views: 0.2ms | ActiveRecord: 0.0ms)
208
-  (0.0ms) rollback transaction
209
-  (0.0ms) begin transaction
210
- Started POST "/interapp" for 127.0.0.1 at 2014-09-07 14:31:01 +1000
211
- Processing by Interapp::MessagesController#create as HTML
212
- Parameters: {"test"=>["message", "payload"], "message"=>{"test"=>["message", "payload"]}}
213
- Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
214
-  (0.0ms) rollback transaction
215
-  (0.0ms) begin transaction
216
- Started POST "/interapp" for 127.0.0.1 at 2014-09-07 14:31:01 +1000
217
- Processing by Interapp::MessagesController#create as HTML
218
- Parameters: {"test"=>["message", "payload"], "message"=>{"test"=>["message", "payload"]}}
219
- Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
220
-  (0.0ms) rollback transaction
221
-  (0.2ms) begin transaction
222
-  (0.0ms) rollback transaction
223
-  (0.0ms) begin transaction
224
-  (0.1ms) rollback transaction
225
-  (0.0ms) begin transaction
226
-  (0.1ms) rollback transaction
227
-  (0.0ms) begin transaction
228
-  (0.0ms) rollback transaction
229
-  (0.0ms) begin transaction
230
-  (0.1ms) rollback transaction
231
-  (0.0ms) begin transaction
232
-  (0.1ms) rollback transaction
233
-  (0.0ms) begin transaction
234
-  (0.1ms) rollback transaction
235
-  (0.0ms) begin transaction
236
-  (0.1ms) rollback transaction
237
-  (0.0ms) begin transaction
238
-  (0.1ms) rollback transaction
239
-  (0.0ms) begin transaction
240
- Started POST "/interapp" for 127.0.0.1 at 2014-09-07 14:31:11 +1000
241
- Processing by Interapp::MessagesController#create as HTML
242
- Parameters: {"test"=>["message", "payload"], "message"=>{"test"=>["message", "payload"]}}
243
- Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
244
-  (0.0ms) rollback transaction
245
-  (0.0ms) begin transaction
246
- Started POST "/interapp" for 127.0.0.1 at 2014-09-07 14:31:11 +1000
247
- Processing by Interapp::MessagesController#create as HTML
248
- Parameters: {"test"=>["message", "payload"], "message"=>{"test"=>["message", "payload"]}}
249
- Completed 200 OK in 224ms (Views: 0.2ms | ActiveRecord: 0.0ms)
250
-  (0.1ms) rollback transaction
251
-  (0.0ms) begin transaction
252
- Started POST "/interapp" for 127.0.0.1 at 2014-09-07 14:31:12 +1000
253
- Processing by Interapp::MessagesController#create as HTML
254
- Parameters: {"test"=>["message", "payload"], "message"=>{"test"=>["message", "payload"]}}
255
- Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
256
-  (0.0ms) rollback transaction
257
-  (0.0ms) begin transaction
258
-  (0.1ms) rollback transaction
259
-  (0.0ms) begin transaction
260
-  (0.1ms) rollback transaction
261
-  (0.0ms) begin transaction
262
-  (0.1ms) rollback transaction
263
-  (0.0ms) begin transaction
264
-  (0.1ms) rollback transaction
265
-  (0.2ms) begin transaction
266
-  (0.1ms) rollback transaction
267
-  (0.0ms) begin transaction
268
-  (0.0ms) rollback transaction
269
-  (0.0ms) begin transaction
270
-  (0.1ms) rollback transaction
271
-  (0.1ms) begin transaction
272
-  (0.1ms) rollback transaction
273
-  (4.1ms) begin transaction
274
- Started POST "/interapp" for 127.0.0.1 at 2014-09-10 21:38:06 +1000
275
- Processing by Interapp::MessagesController#create as HTML
276
- Parameters: {"test"=>["message", "payload"], "message"=>{"test"=>["message", "payload"]}}
277
- Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
278
-  (0.0ms) rollback transaction
279
-  (0.0ms) begin transaction
280
- Started POST "/interapp" for 127.0.0.1 at 2014-09-10 21:38:06 +1000
281
- Processing by Interapp::MessagesController#create as HTML
282
- Parameters: {"test"=>["message", "payload"], "message"=>{"test"=>["message", "payload"]}}
283
- Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
284
-  (0.0ms) rollback transaction
285
-  (0.0ms) begin transaction
286
- Started POST "/interapp" for 127.0.0.1 at 2014-09-10 21:38:06 +1000
287
- Processing by Interapp::MessagesController#create as HTML
288
- Parameters: {"test"=>["message", "payload"], "message"=>{"test"=>["message", "payload"]}}
289
- Completed 200 OK in 220ms (Views: 0.1ms | ActiveRecord: 0.0ms)
290
-  (0.1ms) rollback transaction
291
-  (0.1ms) begin transaction
292
-  (0.1ms) rollback transaction
293
-  (0.1ms) begin transaction
294
-  (0.1ms) rollback transaction
295
-  (0.0ms) begin transaction
296
-  (0.1ms) rollback transaction
297
-  (0.0ms) begin transaction
298
-  (0.1ms) rollback transaction
299
-  (0.0ms) begin transaction
300
-  (0.1ms) rollback transaction
301
-  (0.0ms) begin transaction
302
-  (0.1ms) rollback transaction
303
-  (0.0ms) begin transaction
304
-  (0.1ms) rollback transaction
305
-  (0.1ms) begin transaction
306
-  (0.1ms) rollback transaction
307
-  (0.0ms) begin transaction
308
-  (0.1ms) rollback transaction
@@ -1 +0,0 @@
1
- 16398