superbolt 0.1.3 → 0.1.4

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: 375a012f6ce91497e6bab8f2761e921737b3235b
4
- data.tar.gz: c60a72e470b43cd69747e9d433e34d3cf5eea73a
3
+ metadata.gz: f44da3407881b86b5233df9f6cc6f1966d75a1db
4
+ data.tar.gz: f32e4e2ca360106248d1a0a0d06ce81cedc2a56b
5
5
  SHA512:
6
- metadata.gz: df2be7ede62f9240b4b2cef79cb95f521f316e44c872013658f0b12d88bde93b7711b29cb07ab7e8b6cda37e2e3eba88cb9cd98c0a87df6196ce56a64c51bbe5
7
- data.tar.gz: 386f3350d9d97b93ffb208a233ba145d15c2695e68cedf809f9781c78ba184c654fad6c51e11381cb685ebcb0a16b41eec0be9c5de02f9f1ce8b721af7a95772
6
+ metadata.gz: 3d746bcbd113d463b276be9115418f6eccf47a6f2c3a909e0528b90575f9455380e971e823d914870729572b9aac3e7193d476222351302646fbb56f143a45a9
7
+ data.tar.gz: 83b03a7bf7b92f3891e2527a269f4266f5097b826ebfa0a09dcdc531d5262379e926ae33512b5effec29271d758c625d8438eafee593d8e191d9fe483e5ad037
data/README.md CHANGED
@@ -1,3 +1,5 @@
1
+ [![Code Climate](https://codeclimate.com/github/socialchorus/superbolt.png)](https://codeclimate.com/github/socialchorus/superbolt)
2
+
1
3
  # Superbolt
2
4
 
3
5
  Superbolt is an easy intra-app communication system for sending messages
data/lib/superbolt.rb CHANGED
@@ -18,5 +18,6 @@ require "superbolt/app"
18
18
  require "superbolt/processor"
19
19
  require "superbolt/facade"
20
20
  require "superbolt/messenger"
21
+ require "superbolt/spec_helpers"
21
22
 
22
23
  $stdout.sync = true
@@ -0,0 +1,26 @@
1
+ module Superbolt
2
+ module SpecHelpers
3
+ def superbolt_message
4
+ return @superbolt_message if @superbolt_message
5
+
6
+ @superbolt_message = Superbolt::Messenger.new
7
+ @superbolt_message.stub(:send!) do |m|
8
+ superbolt_messages << @superbolt_message
9
+ end
10
+
11
+ @superbolt_message
12
+ end
13
+
14
+ def last_superbolt_message
15
+ superbolt_messages.last
16
+ end
17
+
18
+ def superbolt_messages
19
+ @superbolt_messages ||= []
20
+ end
21
+
22
+ def stub_superbolt_messenger
23
+ Superbolt.stub(:message).and_return(superbolt_message)
24
+ end
25
+ end
26
+ end
@@ -1,3 +1,3 @@
1
1
  module Superbolt
2
- VERSION = "0.1.3"
2
+ VERSION = "0.1.4"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: superbolt
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - socialchorus
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-07-17 00:00:00.000000000 Z
11
+ date: 2013-09-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -121,6 +121,7 @@ files:
121
121
  - lib/superbolt/messenger.rb
122
122
  - lib/superbolt/processor.rb
123
123
  - lib/superbolt/queue.rb
124
+ - lib/superbolt/spec_helpers.rb
124
125
  - lib/superbolt/version.rb
125
126
  - spec/app_spec.rb
126
127
  - spec/config_spec.rb