irkit 0.0.8 → 0.0.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/History.txt +5 -0
- data/LICENSE.txt +1 -1
- data/lib/irkit/app/data.rb +3 -2
- data/lib/irkit/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 43a48c7ecaeca29d05133e2151b3cbf6238a0cee
|
4
|
+
data.tar.gz: 812100e201949ef7f60fb825685a11b5f9b816ea
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5970fb486fa6931f03fb967956153d65c70b2f3b96447fed07927c57592bfae1488ef49945f6dfe9ce22401f84d0b56364e5fce36f09f78fb5f20ec83d004e64
|
7
|
+
data.tar.gz: 88a80728058f926ba4520c1f2542ba5ee5a5c19acc1f543513ff3d757d17f7c0982405c635430e98092acd8b9ff83d9fc3d6a4fe0466269293a3ad91ea6ee427
|
data/History.txt
CHANGED
data/LICENSE.txt
CHANGED
data/lib/irkit/app/data.rb
CHANGED
@@ -1,12 +1,13 @@
|
|
1
1
|
require 'yaml'
|
2
|
+
require 'open-uri'
|
2
3
|
|
3
4
|
module IRKit
|
4
5
|
module App
|
5
6
|
|
6
7
|
DATA_FILE = ENV["IRKIT_DATA_FILE"] || File.expand_path('.irkit.json', ENV['HOME'])
|
7
8
|
|
8
|
-
if File.exists?(DATA_FILE)
|
9
|
-
Data = Hashie::Mash.new JSON.parse(
|
9
|
+
if File.exists?(DATA_FILE) || DATA_FILE =~ /\A#{URI::regexp(['http', 'https'])}\z/
|
10
|
+
Data = Hashie::Mash.new JSON.parse(open(DATA_FILE).read)
|
10
11
|
else
|
11
12
|
Data = Hashie::Mash.new("IR" => {}, "Device" => {})
|
12
13
|
end
|
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.9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sho Hashimoto
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2015-01-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -173,7 +173,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
173
173
|
version: '0'
|
174
174
|
requirements: []
|
175
175
|
rubyforge_project:
|
176
|
-
rubygems_version: 2.
|
176
|
+
rubygems_version: 2.2.2
|
177
177
|
signing_key:
|
178
178
|
specification_version: 4
|
179
179
|
summary: IRKit Client for Ruby
|