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 +4 -4
- data/.gitignore +1 -0
- data/History.txt +4 -0
- data/lib/irkit/device.rb +3 -3
- data/lib/irkit/internet_api.rb +5 -5
- data/lib/irkit/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7d06c4e827211d1168e919035c6640370344e2be
|
4
|
+
data.tar.gz: c1247baf250cdc6ccced4a6871cb84c64c8e724b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6bf8706d4d16e29b84c879a70cc74ea8cbb7bc90b49feaaa89bfd316470d08b8bd666d855ec0801f8dfcc895e922c141c3c4651c471df7970eacf77086fddb44
|
7
|
+
data.tar.gz: a2504b4369c3e428fc02dee0772822f1fa3ae79915af6a3d7cc7127def4bc7df8ab0c51a14856bcbc07d4c5f24a86f411f5f7a54dfcfceaddd045939409ed610
|
data/.gitignore
CHANGED
data/History.txt
CHANGED
data/lib/irkit/device.rb
CHANGED
@@ -3,8 +3,8 @@ module IRKit
|
|
3
3
|
|
4
4
|
attr_accessor :address, :bonjour_name
|
5
5
|
|
6
|
-
def initialize(address
|
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
|
-
|
15
|
+
%Q{#<#{self.class} @address="#{@address}" @bonjour_name="#{@bonjour_name}">}
|
16
16
|
end
|
17
17
|
|
18
18
|
def get_messages
|
data/lib/irkit/internet_api.rb
CHANGED
@@ -4,11 +4,11 @@ module IRKit
|
|
4
4
|
|
5
5
|
attr_reader :clientkey, :deviceid
|
6
6
|
|
7
|
-
def initialize(clientkey
|
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
|
data/lib/irkit/version.rb
CHANGED
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.
|
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-
|
11
|
+
date: 2014-04-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|