adam_signals 1.0.0 → 1.1.0

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: d4292649941f95e37f44cd91518c6d6d3bc57d04
4
- data.tar.gz: 11ef21b4b0b7695f4f919c8f5ab2690ea29db5a8
3
+ metadata.gz: 1b2559da16cb618c1b597fead4c657183f5e62fc
4
+ data.tar.gz: c380fa420e0064da2af609269076570c976c5426
5
5
  SHA512:
6
- metadata.gz: ce499d494862a08bf1e1361a481562a426450f73161f4a8e928a4c6f5e11bb3078a8d84fcabf99cfa5d6a5a59a2bd074e14247580d686dc26b7f2b12fba85425
7
- data.tar.gz: df786fe591f5e164583512c41f8d57965e1891f6cdd297530dd7fae28e205705c481b533bae2774954a22147d4516dffbc63cb500d8af7ba3c677fce82ce8ff7
6
+ metadata.gz: 81954d3f208a3ee0820db7415da13fa8f9e6161a6aea9fa24f184893822a01f721b54554afdf75a2e73e7e078e8faaf0893044504aa1af38caff281ce72befde
7
+ data.tar.gz: 0661f70d7bf2379bf08daf74101fe3270a71ab09b16cf136a5b65afd3220fc5b7fc6ba483832c18b6cc21192385e72a792940e20a3983c621085f2e0ca510f6a
@@ -1,4 +1,7 @@
1
1
  # [develop](https://github.com/mojolingo/adam_signals)
2
2
 
3
+ # [1.1.0](https://github.com/mojolingo/adam_signals/compare/v1.0.0...v1.1.0) - [2013-12-17](https://rubygems.org/gems/adam_signals/versions/1.1.0)
4
+ * Feature: Added an `action` attribute to `Response`
5
+
3
6
  # [1.0.0](https://github.com/mojolingo/adam_signals/compare/c05b045f041eb8e0364e8348e9e6fc868462cf40...v1.0.0) - [2013-11-12](https://rubygems.org/gems/adam_signals/versions/1.0.0)
4
7
  * Initial release
@@ -8,6 +8,7 @@ class AdamSignals::Response
8
8
  attribute :target_type, Symbol
9
9
  attribute :target_address, String
10
10
  attribute :body, String
11
+ attribute :action, String
11
12
  end
12
13
 
13
14
  def self.from_json(json)
@@ -1,3 +1,3 @@
1
1
  module AdamSignals
2
- VERSION = "1.0.0"
2
+ VERSION = "1.1.0"
3
3
  end
@@ -4,12 +4,14 @@ describe AdamSignals::Response do
4
4
  let(:target_type) { :xmpp }
5
5
  let(:target_address) { 'foo@bar.com' }
6
6
  let(:body) { 'Hello there' }
7
+ let(:action) { 'greet' }
7
8
 
8
- subject { described_class.new target_type: target_type, target_address: target_address, body: body }
9
+ subject { described_class.new target_type: target_type, target_address: target_address, body: body, action: action }
9
10
 
10
11
  its(:target_type) { should == target_type }
11
12
  its(:target_address) { should == target_address }
12
13
  its(:body) { should == body }
14
+ its(:action) { should == action }
13
15
 
14
16
  it "should be able to encode to and decode from JSON" do
15
17
  subject.should eql(described_class.from_json(subject.to_json))
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: adam_signals
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ben Langfeld
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-11-12 00:00:00.000000000 Z
11
+ date: 2013-12-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: virtus