rabbit_feed 2.3.2 → 2.3.3

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: bb3568ac0fb22611b9d73b0b1ffd3078d7a2f378
4
- data.tar.gz: 34f7bf50b5d0c47e8aa40603cdea8a1b43cf4c42
3
+ metadata.gz: b176593f03734d7f6bb37fd4e72d4689a40cb08d
4
+ data.tar.gz: b7bb7cf5c77e4dec54b5eeace384d77a3d459a63
5
5
  SHA512:
6
- metadata.gz: 997d107c3db5834ad0f8d75042af9f80aeb3070ec53a455cbfda8bf7004c658c96acc81dd33a540d10a39efa9d38ebca78e0c3f9539de35357a80ed1789550c3
7
- data.tar.gz: 6844f471ea911177451f98d4a45750406dae32de59d44d18af54301a8576f3ac77cde9d555f515f75486390ad9320666e7f8eeab65f4522ed33a4f1bcf2ac494
6
+ metadata.gz: 10e31f0644ded6301e9c4f83b3cfe235cde4dd28d2c0e6099443896b804841ca67b498e8aeef9b8e439ed0dcd41e1bf782aca716647b3461a616f364d78b7afc
7
+ data.tar.gz: 79f60e26e3351022e2d2fed04ed4852d30a6d4da3b950acdd4fb08200e7da5f4e1d348681bf8cee079da6342a2ffc597cfc570d4c8093f495e8ec07de903a376
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- rabbit_feed (2.3.2)
4
+ rabbit_feed (2.3.3)
5
5
  activemodel (>= 3.2.0, < 5.0.0)
6
6
  activesupport (>= 3.2.0, < 5.0.0)
7
7
  avro (>= 1.5.4, < 1.8.0)
@@ -18,8 +18,9 @@ module RabbitFeed
18
18
  rspec_config.before :each do
19
19
 
20
20
  TestingSupport.published_events = []
21
-
22
- allow(RabbitFeed::ProducerConnection.instance).to receive(:publish) do |serialized_event, routing_key|
21
+ mock_connection = double(:rabbitmq_connection)
22
+ allow(RabbitFeed::ProducerConnection).to receive(:instance).and_return(mock_connection)
23
+ allow(mock_connection).to receive(:publish) do |serialized_event, routing_key|
23
24
  TestingSupport.published_events << (Event.deserialize serialized_event)
24
25
  end
25
26
  end
@@ -1,3 +1,3 @@
1
1
  module RabbitFeed
2
- VERSION = '2.3.2'
2
+ VERSION = '2.3.3'
3
3
  end
data/lib/rabbit_feed.rb CHANGED
@@ -52,7 +52,7 @@ module RabbitFeed
52
52
  def set_defaults
53
53
  self.log = default_logger
54
54
  self.configuration_file_path = 'config/rabbit_feed.yml'
55
- self.environment = ENV['RAILS_ENV'] || ENV['RACK_ENV']
55
+ self.environment = ENV['RAILS_ENV'] || ENV['RACK_ENV'] || 'development'
56
56
  end
57
57
  private :set_defaults
58
58
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rabbit_feed
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.3.2
4
+ version: 2.3.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Simply Business
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-07-29 00:00:00.000000000 Z
11
+ date: 2015-08-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bunny