miu 0.2.2 → 0.2.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: 58c2dddc2ca86a827f04b870dcee1bea659bae1d
4
- data.tar.gz: a9a44a16e4c1bd40ec58ad638777152a2914d4c3
3
+ metadata.gz: 8245deb4a10072f4998d6071795d7ee646e4a3f7
4
+ data.tar.gz: 811d66201ab23f337c0bfd1eadf4debad8395e14
5
5
  SHA512:
6
- metadata.gz: df03bea1e55a265700af27b46a1917de3bf2ac62640a4434269d8c9ac1d34ac89a3b39241ee8f10aea5431c17638fc2a5920aa2d3007c4df065b9afdddd339a3
7
- data.tar.gz: bd9d1f074c1acf7a79575ef4cd4555bd727ff30c2b031568ace6d77b5563fdcd79df8a30450a05d63551f7840461c355604970c6ebb6f62b1362af0bc46f0531
6
+ metadata.gz: 2ae488727e75035d6d023514fcf9c94fe969e2112220aec343f290c8a80e154a19882e6659ee5cc1b0cb80ae377f38142f559b038e1337e5507d15ef8b0134d9
7
+ data.tar.gz: 730cf6ee26d8a6af6fd48c5ffeaa0d8416bce544e75cd63ee68836b1ce30ec063c503e52984b271dae05158b7f263c2deb171b7fa4cde87565a9153e7d1bdf4c
@@ -19,6 +19,8 @@ module Miu
19
19
 
20
20
  def to_h
21
21
  {
22
+ :id => @id,
23
+ :time => @time,
22
24
  :network => @network.to_h,
23
25
  :type => @type,
24
26
  :content => @content ? @content.to_h : {}
@@ -1,3 +1,3 @@
1
1
  module Miu
2
- VERSION = '0.2.2'
2
+ VERSION = '0.2.3'
3
3
  end
@@ -36,6 +36,8 @@ describe Miu::Messages::Base do
36
36
  let(:hash) { Miu::Messages::Base.new(:type => 'test').to_h }
37
37
 
38
38
  it { expect(hash).to be_instance_of ::Hash }
39
+ it { expect(hash).to have_key :id }
40
+ it { expect(hash).to have_key :time }
39
41
  it { expect(hash).to have_key :network }
40
42
  it { expect(hash).to have_key :type }
41
43
  it { expect(hash).to have_key :content }
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: miu
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.2
4
+ version: 0.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - mashiro
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-05-13 00:00:00.000000000 Z
11
+ date: 2013-05-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thor