etcenv 0.5.2 → 0.5.3

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: 460b5f0a4b82307c9bfd3224a37df494265bdead
4
- data.tar.gz: 22ac3c59967d7a9766cb16b0dace8ef4846c9b86
3
+ metadata.gz: ef3ba8a65b7e8d55456eb22a2faef44ad053b95c
4
+ data.tar.gz: 27933666b02c825570d1313abe462c62c1647516
5
5
  SHA512:
6
- metadata.gz: 0aa90b628a0f906ad30b56177aa3af2701f8deff8b500e6db5c9141f9a61e0d8ba7d09a4ea2a3a626f09f3ee4e1b7cf86adb02071cbcb4e909e0224baf31f138
7
- data.tar.gz: 5afaeb02316ff65f46bc0fbe1a1e31a6aa9007a5e192c0cd7b75f066140f0f5bdabb498470904b5d76d79863e5bc238105b4139921e368295b3ca9d4548cb381
6
+ metadata.gz: f57501d9c9b012005fb8e7dedb899c55c1fb05f096f24641cd394e3cef7edb68d3b0a66cbf26157d1d5809a0624f7d2b82f8d12355ae51314b32b773ccca96ae
7
+ data.tar.gz: b0d80327aebb45812f38bf8cf38708744464e8a5642db8cbb604bbe5e123afe4e42d9db37d45a64e6847ae82bb5ae8bef1dc4977506b27c39d40b6d8ba130c59
@@ -54,7 +54,7 @@ module Etcenv
54
54
  end
55
55
 
56
56
  def detect_loop!
57
- if root_variables.empty?
57
+ if !variables.empty? && root_variables.empty?
58
58
  raise LoopError, "there's no possible root variables (variables which don't have dependee)"
59
59
  else
60
60
  dependees_by_variable.each do |k, deps|
@@ -1,3 +1,3 @@
1
1
  module Etcenv
2
- VERSION = "0.5.2"
2
+ VERSION = "0.5.3"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: etcenv
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.2
4
+ version: 0.5.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Shota Fukumori (sora_h)
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-04-13 00:00:00.000000000 Z
11
+ date: 2015-04-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler