naginata 0.1.6 → 0.1.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: 296d63cea8244f8e1ef896897968fd395333b3b9
4
- data.tar.gz: 3ab61aaceb73e324c45d9fcfbf2f296ff6b4964e
3
+ metadata.gz: 33e22575dceeb95a2786b8500b2b282907ac1e75
4
+ data.tar.gz: 491009f7c0db0500b495263efae04b6bb1dd292d
5
5
  SHA512:
6
- metadata.gz: 9041cf3dfa2fc4662319611d9eb574004c0926f112a582fe3956762fdc9b80d1ea319aa8d80ee8f906fff15b6b824ea71f9cafddddbd9cd54f4d0f23df94d0b4
7
- data.tar.gz: 878b29c91d420a0e2cd2b121622b14f8d17435d0d2c0966e6ee52e645c1c971af4cf46a2686be8632fe817b9a205579bb592fb4c0e6c7d9fc67319a7c7d423e8
6
+ metadata.gz: 0605de3b891226b765e68fb0d2a36a97f7f86d1521a78732b01a282579f5a76c3be1443140dbcb6c2d3effaa067fc26dcadbf724624af7603670d47538827781
7
+ data.tar.gz: 260208cc2d72c8253be0a13e66c6f75ccf93070b4e4e829877f3034105a0852d6fe233ce4a2ad71de81cebb41fedd54754580302d5655b4909edbae0b52637a3
@@ -1,3 +1,9 @@
1
+ ### 0.1.7 - 2015/08/05
2
+
3
+ Fixes:
4
+
5
+ * Path instance_eval() a filename
6
+
1
7
  ### 0.1.6 - 2015/08/05
2
8
 
3
9
  CLI:
@@ -12,13 +12,14 @@ module Naginata
12
12
 
13
13
  def load_configuration
14
14
  # Load defaults.rb
15
- instance_eval File.read(File.join(File.dirname(__FILE__), 'defaults.rb'))
15
+ default = File.join(File.dirname(__FILE__), 'defaults.rb')
16
+ instance_eval File.read(default), default
16
17
  # Load Naginatafile
17
18
  naginatafile_path = ::Naginata::Configuration.env.fetch(:naginatafile) || find_naginatafile
18
19
  if naginatafile_path.nil? or !File.file?(naginatafile_path)
19
20
  raise NaginatafileNotFound, 'Could not locate Naginatafile'
20
21
  else
21
- instance_eval File.read naginatafile_path
22
+ instance_eval File.read(naginatafile_path), naginatafile_path
22
23
  end
23
24
  end
24
25
 
@@ -7,7 +7,7 @@ module Naginata
7
7
  ~/.naginata/Naginatafile
8
8
  /etc/naginata/Naginatafile
9
9
  ).map{ |path| File.expand_path(path) }.find { |path| File.file?(path) }
10
- raise NaginatafileNotFound, "Could not locate Gemfile" unless file
10
+ raise NaginatafileNotFound, "Could not locate Naginatafile" unless file
11
11
  return file
12
12
  end
13
13
 
@@ -1,3 +1,3 @@
1
1
  module Naginata
2
- VERSION = "0.1.6"
2
+ VERSION = "0.1.7"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: naginata
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.6
4
+ version: 0.1.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nobuhiro Nikushi