irkit 0.0.8 → 0.0.9

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: 02f5a177ebba1edee4ae2b91f7f131fc2fc99f0b
4
- data.tar.gz: eb05dc3c838446258f9ce0295d71907088ac9090
3
+ metadata.gz: 43a48c7ecaeca29d05133e2151b3cbf6238a0cee
4
+ data.tar.gz: 812100e201949ef7f60fb825685a11b5f9b816ea
5
5
  SHA512:
6
- metadata.gz: 607400679a90a271f825d681c0a2e9f6d3dab69b9d87eebbf7134b296ce77252558a5883f4c1162b0e143ecff717d73b51878c0db49670cbe1381c6e99309460
7
- data.tar.gz: 0d3903b208cfc4a1c7c4e88b533d512a16a1579be3210a63ff6690c3036816a761bd99a97f42a8869cec0b22ce86805940a07c7d3bc16cabdc9e25638b25d836
6
+ metadata.gz: 5970fb486fa6931f03fb967956153d65c70b2f3b96447fed07927c57592bfae1488ef49945f6dfe9ce22401f84d0b56364e5fce36f09f78fb5f20ec83d004e64
7
+ data.tar.gz: 88a80728058f926ba4520c1f2542ba5ee5a5c19acc1f543513ff3d757d17f7c0982405c635430e98092acd8b9ff83d9fc3d6a4fe0466269293a3ad91ea6ee427
@@ -1,3 +1,8 @@
1
+ === 0.0.9 2015-01-03
2
+
3
+ * Use open-uri for IRKit::App::Data #6
4
+ * thank you for contributing @riywo
5
+
1
6
  === 0.0.8 2014-04-13
2
7
 
3
8
  * add -rename NAME -to NEWNAME option on irkit command #5
@@ -1,4 +1,4 @@
1
- Copyright (c) 2014 Sho Hashimoto
1
+ Copyright (c) 2014-2015 Sho Hashimoto
2
2
 
3
3
  MIT License
4
4
 
@@ -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(File.open(DATA_FILE).read)
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
@@ -1,3 +1,3 @@
1
1
  module IRKit
2
- VERSION = "0.0.8"
2
+ VERSION = "0.0.9"
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.8
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: 2014-04-13 00:00:00.000000000 Z
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.0.14
176
+ rubygems_version: 2.2.2
177
177
  signing_key:
178
178
  specification_version: 4
179
179
  summary: IRKit Client for Ruby