nib 1.5.1 → 1.6.0

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: 360435427ba5331294db59eda3f8f289cf4defbd
4
- data.tar.gz: 528f23ef39487e9ea2369cbb0a1e242aedd83d0f
3
+ metadata.gz: 58aa2c29124f701d6f0d76db5e8cfec85169ee60
4
+ data.tar.gz: d06840ca704e8393ecf568e70a4481cdd1825533
5
5
  SHA512:
6
- metadata.gz: 30ea8dd7c8872dd85c95de17ca33830247c41f43f7c32d7c7a5f0fe7dea4dae92f86e62c2ac0bdd8fe4c5dd037882e6b2cc628ea56ba0816ab2ca437f336b4e3
7
- data.tar.gz: d7d1b3ab2975a3348231969a55428d14d4837d1f2fcf02031346b59c935982e2599d1795fe10cf988891b082b11582ac23b96bfd2c416b65b3829fe2d3d73cc1
6
+ metadata.gz: a0be8162ffe8fc2825159adefbdaaea649b5dd50dcdac87d8302c585d7489a6402185a8a657ddfeca42ca62962dcba7e5bc1f7c4e635eb97b3394c3459af9e51
7
+ data.tar.gz: 48a132d231c1ce401cdaf5e9c39dbee414cb5c4d91d895403e9fb1376cae551e961fedcbad9298e2a5b6ee888eaa9420130bf8e571e1ca1fd20b413e6e099f92
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.5.1
1
+ 1.6.0
@@ -70,7 +70,9 @@ class Nib::History::Compose
70
70
  end
71
71
 
72
72
  def config
73
- original_config.merge('volumes' => volumes_config << history_config)
73
+ original_config.merge(
74
+ 'volumes' => volumes_config | [history_config, rc_config]
75
+ )
74
76
  end
75
77
 
76
78
  private
@@ -82,6 +84,10 @@ class Nib::History::Compose
82
84
  def history_config
83
85
  "#{volume_name}:#{Nib::History::PATH}"
84
86
  end
87
+
88
+ def rc_config
89
+ "#{Nib::History::Config::PATH}:#{Nib::History::Config::PATH}"
90
+ end
85
91
  end
86
92
 
87
93
  class Volumes
@@ -1,6 +1,8 @@
1
1
  require 'fileutils'
2
2
 
3
3
  class Nib::History::Config
4
+ PATH = '/tmp/nib/config'.freeze
5
+
4
6
  attr_reader :type, :history_command, :host_path
5
7
 
6
8
  def initialize(type, history_command)
@@ -8,7 +10,7 @@ class Nib::History::Config
8
10
  @history_command = history_command
9
11
  @host_path = "#{ENV['HOME']}/.#{type}"
10
12
 
11
- FileUtils.mkdir_p './tmp'
13
+ FileUtils.mkdir_p PATH
12
14
  end
13
15
 
14
16
  def container_path
@@ -26,7 +28,7 @@ class Nib::History::Config
26
28
  end
27
29
 
28
30
  def config_file
29
- @config_file ||= File.open("./tmp/#{type}", 'w+') do |file|
31
+ @config_file ||= File.open("#{PATH}/#{type}", 'w+') do |file|
30
32
  file.write(config)
31
33
  file.write(history_command + "\n")
32
34
  file
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: nib
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.5.1
4
+ version: 1.6.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - John Allen
@@ -9,22 +9,22 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2017-03-21 00:00:00.000000000 Z
12
+ date: 2017-03-22 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: gli
16
16
  requirement: !ruby/object:Gem::Requirement
17
17
  requirements:
18
- - - '='
18
+ - - "~>"
19
19
  - !ruby/object:Gem::Version
20
- version: 2.15.0
20
+ version: '2.16'
21
21
  type: :runtime
22
22
  prerelease: false
23
23
  version_requirements: !ruby/object:Gem::Requirement
24
24
  requirements:
25
- - - '='
25
+ - - "~>"
26
26
  - !ruby/object:Gem::Version
27
- version: 2.15.0
27
+ version: '2.16'
28
28
  - !ruby/object:Gem::Dependency
29
29
  name: pry
30
30
  requirement: !ruby/object:Gem::Requirement