nib 1.5.1 → 1.6.0
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 +4 -4
- data/VERSION +1 -1
- data/lib/nib/history/compose.rb +7 -1
- data/lib/nib/history/config.rb +4 -2
- metadata +6 -6
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 58aa2c29124f701d6f0d76db5e8cfec85169ee60
|
|
4
|
+
data.tar.gz: d06840ca704e8393ecf568e70a4481cdd1825533
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: a0be8162ffe8fc2825159adefbdaaea649b5dd50dcdac87d8302c585d7489a6402185a8a657ddfeca42ca62962dcba7e5bc1f7c4e635eb97b3394c3459af9e51
|
|
7
|
+
data.tar.gz: 48a132d231c1ce401cdaf5e9c39dbee414cb5c4d91d895403e9fb1376cae551e961fedcbad9298e2a5b6ee888eaa9420130bf8e571e1ca1fd20b413e6e099f92
|
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
1.
|
|
1
|
+
1.6.0
|
data/lib/nib/history/compose.rb
CHANGED
|
@@ -70,7 +70,9 @@ class Nib::History::Compose
|
|
|
70
70
|
end
|
|
71
71
|
|
|
72
72
|
def config
|
|
73
|
-
original_config.merge(
|
|
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
|
data/lib/nib/history/config.rb
CHANGED
|
@@ -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
|
|
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("
|
|
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.
|
|
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-
|
|
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.
|
|
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.
|
|
27
|
+
version: '2.16'
|
|
28
28
|
- !ruby/object:Gem::Dependency
|
|
29
29
|
name: pry
|
|
30
30
|
requirement: !ruby/object:Gem::Requirement
|