irkit 0.0.6 → 0.0.7

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: 159d711514fe1aacd1e99f8946598937879746cc
4
- data.tar.gz: 0ffe4e164544c6f4faeed227b4b65b8548917769
3
+ metadata.gz: 7d06c4e827211d1168e919035c6640370344e2be
4
+ data.tar.gz: c1247baf250cdc6ccced4a6871cb84c64c8e724b
5
5
  SHA512:
6
- metadata.gz: f954d196aa555638bca9f83d9b560b6b274de20f9339801a6b6c2a190f50bef988d6453d545ba4bd1f9fbdc9c632348af3ed19912b47606f55515337a443de1e
7
- data.tar.gz: 659263697097e0cf0a29c25b3b2835c869a70a6780c7b6054c1a041c5d81507a107dd9bbd35ed1a67b55704f2da724f61fe7b5f48efc62e2a6f207f55a507eb3
6
+ metadata.gz: 6bf8706d4d16e29b84c879a70cc74ea8cbb7bc90b49feaaa89bfd316470d08b8bd666d855ec0801f8dfcc895e922c141c3c4651c471df7970eacf77086fddb44
7
+ data.tar.gz: a2504b4369c3e428fc02dee0772822f1fa3ae79915af6a3d7cc7127def4bc7df8ab0c51a14856bcbc07d4c5f24a86f411f5f7a54dfcfceaddd045939409ed610
data/.gitignore CHANGED
@@ -6,6 +6,7 @@
6
6
  .bundle
7
7
  .config
8
8
  .yardoc
9
+ .ruby-version
9
10
  InstalledFiles
10
11
  _yardoc
11
12
  coverage
@@ -1,3 +1,7 @@
1
+ === 0.0.7 2014-04-08
2
+
3
+ * support Ruby1.9.3 #4
4
+
1
5
  === 0.0.6 2014-03-23
2
6
 
3
7
  * add gem dependency "args_parser" #3
@@ -3,8 +3,8 @@ module IRKit
3
3
 
4
4
  attr_accessor :address, :bonjour_name
5
5
 
6
- def initialize(address: nil)
7
- @address = address
6
+ def initialize(opts = {:address => nil})
7
+ @address = opts[:address]
8
8
  end
9
9
 
10
10
  def url
@@ -12,7 +12,7 @@ module IRKit
12
12
  end
13
13
 
14
14
  def to_s
15
- inspect
15
+ %Q{#<#{self.class} @address="#{@address}" @bonjour_name="#{@bonjour_name}">}
16
16
  end
17
17
 
18
18
  def get_messages
@@ -4,11 +4,11 @@ module IRKit
4
4
 
5
5
  attr_reader :clientkey, :deviceid
6
6
 
7
- def initialize(clientkey: nil, deviceid: nil)
8
- raise ArgumentError, "clientkey must be String" unless clientkey.kind_of? String
9
- raise ArgumentError, "deviceid must be String" unless deviceid.kind_of? String
10
- @clientkey = clientkey
11
- @deviceid = deviceid
7
+ def initialize(opts = {:clientkey => nil, :deviceid => nil})
8
+ raise ArgumentError, "clientkey must be String" unless opts[:clientkey].kind_of? String
9
+ raise ArgumentError, "deviceid must be String" unless opts[:deviceid].kind_of? String
10
+ @clientkey = opts[:clientkey]
11
+ @deviceid = opts[:deviceid]
12
12
  end
13
13
 
14
14
  def url
@@ -1,3 +1,3 @@
1
1
  module IRKit
2
- VERSION = "0.0.6"
2
+ VERSION = "0.0.7"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: irkit
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.6
4
+ version: 0.0.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sho Hashimoto
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-03-22 00:00:00.000000000 Z
11
+ date: 2014-04-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler