active_spy 1.4.3 → 1.4.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 54f7b646c087efbd2da9eddef6892657e11e48b7
4
- data.tar.gz: 2fd4c4a5b553747e6bd385fcb477b005fcc1753e
3
+ metadata.gz: a1ddcb7f321e2de4343d3c6b8fac8fc482780a81
4
+ data.tar.gz: 8eae88906c367052ef622c376360fa47a7266eb7
5
5
  SHA512:
6
- metadata.gz: efab2439161262cca3a25be24a3d7b748dd990fc073594e66151505b2d75117b5d8c8e1177a6088434a623973de85db2f3d96b42d393406ae434026ecb121192
7
- data.tar.gz: 287de2bf28b7b19fd3f86174c76b0ea1fe86fd5aa4174e5c93887736a74745da9a714540fbe49269340ce90fe95db2377e59e9e78a9feb548f744d902d0fe0b2
6
+ metadata.gz: a58b1135f6df45d1ba10d49079dd1dc7289e23494a02a75996b67770c82f507031e4b6e4487039017c1d17e4c4ab3fff517d71fe8e89268fc186b7a3d2a958ee
7
+ data.tar.gz: 294d03f553b35481e356c2c2f7fa8a31cdcca2b010eafad3fe2b4668048ec2aa4a2fdd710c5be6a08faf8643d8ead76dab758427b689642ad10194d94c9e7ec3
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.4.3
1
+ 1.4.4
data/active_spy.gemspec CHANGED
@@ -2,16 +2,16 @@
2
2
  # DO NOT EDIT THIS FILE DIRECTLY
3
3
  # Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
4
4
  # -*- encoding: utf-8 -*-
5
- # stub: active_spy 1.4.3 ruby lib
5
+ # stub: active_spy 1.4.4 ruby lib
6
6
 
7
7
  Gem::Specification.new do |s|
8
8
  s.name = "active_spy"
9
- s.version = "1.4.3"
9
+ s.version = "1.4.4"
10
10
 
11
11
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
12
12
  s.require_paths = ["lib"]
13
13
  s.authors = ["Douglas Camata"]
14
- s.date = "2015-06-01"
14
+ s.date = "2015-06-02"
15
15
  s.description = " Watch for a method call in any class and run before/after callbacks.\n You can even watch your Rails models for events (like create, update,\n destroy), send these events to a event-runner instance and it redirect these\n events to other apps that are subscrived for them. This gem also provides\n classes that you can use to process the received events too.\n"
16
16
  s.email = "d.camata@gmail.com"
17
17
  s.extra_rdoc_files = [
data/lib/active_spy.rb CHANGED
@@ -39,7 +39,7 @@ module ActiveSpy
39
39
  return if self.service_registered?
40
40
  service = { service: ActiveSpy::Configuration.settings }.to_json
41
41
 
42
- params = { content_type: :json, method: :post, url: @base_url, payload: service }
42
+ params = { headers: { content_type: :json }, method: :post, url: @base_url, payload: service }
43
43
  params[:verify_ssl] = verify_ssl if verify_ssl
44
44
 
45
45
  RestClient::Request.execute(params)
@@ -87,7 +87,7 @@ module ActiveSpy
87
87
  verify_ssl = ActiveSpy::Configuration.event_verify_ssl
88
88
  url = "#{host}:#{port}/events"
89
89
 
90
- params = { content_type: :json, method: :post, url: url, payload: @event_json }
90
+ params = { headers: { content_type: :json }, method: :post, url: url, payload: @event_json }
91
91
  params[:verify_ssl] = verify_ssl if verify_ssl
92
92
 
93
93
  begin
@@ -129,8 +129,8 @@ module ActiveSpy
129
129
  }
130
130
 
131
131
  if @verify_ssl
132
- RestClient::Request.execute(content_type: :json, method: :post,
133
- url: url, payload: hook.to_json, verify_ssl: @verify_ssl)
132
+ RestClient::Request.execute(method: :post, url: url, payload: hook.to_json,
133
+ headers: { content_type: :json }, verify_ssl: @verify_ssl)
134
134
  else
135
135
  RestClient.post url, hook.to_json, content_type: :json
136
136
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: active_spy
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.3
4
+ version: 1.4.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Douglas Camata
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-06-01 00:00:00.000000000 Z
11
+ date: 2015-06-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport