zircon 0.0.7 → 0.0.8

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: f01d103a0a765b334709fe66a63f3af41a089c7f
4
- data.tar.gz: 19289f2022eae9da1de5837b3bfd8e7e9bb7bf30
3
+ metadata.gz: 2510d086c5a0685cec76317017255c76930ceaec
4
+ data.tar.gz: 85bf59ab23ae2c3f4a8175daad9873a529a0264d
5
5
  SHA512:
6
- metadata.gz: fabb0d76ea1a593206b7242fe65131ca89ae956b94eef57ac7fa3779cf295fefc2de16d5ff2e50421630a6a97dd69d88f65465fc550e849d29c4c913e7e99124
7
- data.tar.gz: 406d83e168766d0a7262a3dff5c68ad6c8cdaf21f4cb25e73501eca17e373aeb95e47748e402b1fd60b8efbceed4163960ee3b35329d72df9c5c5966c52b2691
6
+ metadata.gz: cd7582df13fbc6515fdae0c564773066bb6f003848d8d7312543ca1ddbec4552d02e9679cf2e65d5fed8fee2dffb127c57d5551865bc0a34fc46e43063eff143
7
+ data.tar.gz: 2cfae077c1766c8841be07dfcc320e6f0d6ccb5fac0f7cd1d4876a9cb396deeca0205d45f377c903abbe6a7f13217a659661c3ba05936b574d2b7a8393a9d518
@@ -0,0 +1,2 @@
1
+ ### 0.0.8
2
+ * Add `Zircon::Message#to_hash` as a utility method
data/README.md CHANGED
@@ -16,7 +16,8 @@ client = Zircon.new(
16
16
  :server => "example.com",
17
17
  :port => "6667",
18
18
  :channel => "#chatroid",
19
- :username => "zircon"
19
+ :username => "zircon",
20
+ :password => "optional password",
20
21
  )
21
22
 
22
23
  client.on_privmsg do |message|
@@ -15,6 +15,15 @@ class Zircon
15
15
  end
16
16
  end
17
17
 
18
+ def to_hash
19
+ {
20
+ body: body,
21
+ from: from,
22
+ to: to,
23
+ type: type,
24
+ }
25
+ end
26
+
18
27
  def type
19
28
  @type ||= @command.to_s.downcase
20
29
  end
@@ -1,3 +1,3 @@
1
1
  class Zircon
2
- VERSION = "0.0.7"
2
+ VERSION = "0.0.8"
3
3
  end
metadata CHANGED
@@ -1,27 +1,27 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: zircon
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.7
4
+ version: 0.0.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ryo NAKAMURA
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-10-20 00:00:00.000000000 Z
11
+ date: 2014-04-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rspec
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - '>='
17
+ - - ">="
18
18
  - !ruby/object:Gem::Version
19
19
  version: '0'
20
20
  type: :development
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - '>='
24
+ - - ">="
25
25
  - !ruby/object:Gem::Version
26
26
  version: '0'
27
27
  description: Zircon is a mineral belonging to the group of nesosilicates.
@@ -31,7 +31,8 @@ executables: []
31
31
  extensions: []
32
32
  extra_rdoc_files: []
33
33
  files:
34
- - .gitignore
34
+ - ".gitignore"
35
+ - CHANGELOG.md
35
36
  - Gemfile
36
37
  - LICENSE
37
38
  - README.md
@@ -54,17 +55,17 @@ require_paths:
54
55
  - lib
55
56
  required_ruby_version: !ruby/object:Gem::Requirement
56
57
  requirements:
57
- - - '>='
58
+ - - ">="
58
59
  - !ruby/object:Gem::Version
59
60
  version: '0'
60
61
  required_rubygems_version: !ruby/object:Gem::Requirement
61
62
  requirements:
62
- - - '>='
63
+ - - ">="
63
64
  - !ruby/object:Gem::Version
64
65
  version: '0'
65
66
  requirements: []
66
67
  rubyforge_project:
67
- rubygems_version: 2.0.3
68
+ rubygems_version: 2.2.2
68
69
  signing_key:
69
70
  specification_version: 4
70
71
  summary: IRC client library written in Pure Ruby
@@ -72,4 +73,3 @@ test_files:
72
73
  - spec/spec_helper.rb
73
74
  - spec/zircon/message_spec.rb
74
75
  - spec/zircon_spec.rb
75
- has_rdoc: