nib 1.7.0 → 2.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (5) hide show
  1. checksums.yaml +4 -4
  2. data/VERSION +1 -1
  3. data/bin/nib +4 -0
  4. data/lib/nib.rb +18 -0
  5. metadata +19 -19
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 0ae5c7c0fd0074c8bc59abecde13d264c9193b75
4
- data.tar.gz: 333886e4de7e6097560e04d17101be5df9eafc03
3
+ metadata.gz: 5c94574ceb002f4a62bae9dae565d4a9eb0f87cb
4
+ data.tar.gz: 4240d6bce285b3fec1f54d8620dc4728c4e101ca
5
5
  SHA512:
6
- metadata.gz: ebdc8d550836d01e26a6462c258d73d9e888b7789dd737df13dbd9e1021e1f7364cf847a44bd3d4b9e1ead7098461d42205851bab95ed05d2b3cec04a6320348
7
- data.tar.gz: 317dc1f2302bbcf859b4f15b20b28340ca32c766750ec4bdb84ca6a9f250f0f2572809a192e4389b4a37da3b3e7629c9f50d899172a536d9c2a06e62739914af
6
+ metadata.gz: 8127154d0d106487d3b6e6b27f4527bf4e8c07bd61d73b1bbbb0ad4745597296791e74f40e8a8b76fefacc18356375eb1718a91a4506f2fb5751a93e9fd8aeab
7
+ data.tar.gz: a89ecbee23a910e2ca8f8eec41144df1d5c2afc7049a83a74c6e98d5ae2254b8578038420c865f30d388d0e8be9ba3e66a7d39856c734be237c26ec6203357ac
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.7.0
1
+ 2.0.0
data/bin/nib CHANGED
@@ -197,4 +197,8 @@ command :update do |c|
197
197
  end
198
198
  end
199
199
 
200
+ Nib.available_plugins.each do |plugin|
201
+ load plugin
202
+ end
203
+
200
204
  exit run(ARGV)
data/lib/nib.rb CHANGED
@@ -26,6 +26,24 @@ module Nib
26
26
 
27
27
  module_function
28
28
 
29
+ def available_plugins
30
+ Gem.find_files('nib*_plugin.rb').sort.map do |plugin_path|
31
+ name = File.basename plugin_path, '_plugin.rb'
32
+
33
+ require plugin_path
34
+
35
+ next unless const_for(name).applies?
36
+
37
+ plugin_base_path = plugin_path[0..-"/lib/#{name}_plugin.rb".length]
38
+
39
+ "#{plugin_base_path}bin/#{name.tr('_', '-')}"
40
+ end.compact
41
+ end
42
+
43
+ def const_for(name)
44
+ Nib.const_get(name.split('_').map(&:capitalize).join('::'))
45
+ end
46
+
29
47
  def load_default_config(command, file_name)
30
48
  File.read("#{GEM_ROOT}/config/commands/#{command}/#{file_name}")
31
49
  end
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.7.0
4
+ version: 2.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - John Allen
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2017-06-06 00:00:00.000000000 Z
12
+ date: 2018-01-15 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: gli
@@ -26,21 +26,21 @@ dependencies:
26
26
  - !ruby/object:Gem::Version
27
27
  version: '2.16'
28
28
  - !ruby/object:Gem::Dependency
29
- name: pry
29
+ name: codeclimate-test-reporter
30
30
  requirement: !ruby/object:Gem::Requirement
31
31
  requirements:
32
- - - ">="
32
+ - - "~>"
33
33
  - !ruby/object:Gem::Version
34
- version: '0'
34
+ version: 1.0.7
35
35
  type: :development
36
36
  prerelease: false
37
37
  version_requirements: !ruby/object:Gem::Requirement
38
38
  requirements:
39
- - - ">="
39
+ - - "~>"
40
40
  - !ruby/object:Gem::Version
41
- version: '0'
41
+ version: 1.0.7
42
42
  - !ruby/object:Gem::Dependency
43
- name: serverspec
43
+ name: guard
44
44
  requirement: !ruby/object:Gem::Requirement
45
45
  requirements:
46
46
  - - ">="
@@ -54,7 +54,7 @@ dependencies:
54
54
  - !ruby/object:Gem::Version
55
55
  version: '0'
56
56
  - !ruby/object:Gem::Dependency
57
- name: rake
57
+ name: guard-rspec
58
58
  requirement: !ruby/object:Gem::Requirement
59
59
  requirements:
60
60
  - - ">="
@@ -68,7 +68,7 @@ dependencies:
68
68
  - !ruby/object:Gem::Version
69
69
  version: '0'
70
70
  - !ruby/object:Gem::Dependency
71
- name: guard
71
+ name: guard-rubocop
72
72
  requirement: !ruby/object:Gem::Requirement
73
73
  requirements:
74
74
  - - ">="
@@ -82,7 +82,7 @@ dependencies:
82
82
  - !ruby/object:Gem::Version
83
83
  version: '0'
84
84
  - !ruby/object:Gem::Dependency
85
- name: guard-rspec
85
+ name: pry
86
86
  requirement: !ruby/object:Gem::Requirement
87
87
  requirements:
88
88
  - - ">="
@@ -96,7 +96,7 @@ dependencies:
96
96
  - !ruby/object:Gem::Version
97
97
  version: '0'
98
98
  - !ruby/object:Gem::Dependency
99
- name: guard-rubocop
99
+ name: rake
100
100
  requirement: !ruby/object:Gem::Requirement
101
101
  requirements:
102
102
  - - ">="
@@ -110,7 +110,7 @@ dependencies:
110
110
  - !ruby/object:Gem::Version
111
111
  version: '0'
112
112
  - !ruby/object:Gem::Dependency
113
- name: simplecov
113
+ name: serverspec
114
114
  requirement: !ruby/object:Gem::Requirement
115
115
  requirements:
116
116
  - - ">="
@@ -124,19 +124,19 @@ dependencies:
124
124
  - !ruby/object:Gem::Version
125
125
  version: '0'
126
126
  - !ruby/object:Gem::Dependency
127
- name: codeclimate-test-reporter
127
+ name: simplecov
128
128
  requirement: !ruby/object:Gem::Requirement
129
129
  requirements:
130
- - - "~>"
130
+ - - ">="
131
131
  - !ruby/object:Gem::Version
132
- version: 1.0.7
132
+ version: '0'
133
133
  type: :development
134
134
  prerelease: false
135
135
  version_requirements: !ruby/object:Gem::Requirement
136
136
  requirements:
137
- - - "~>"
137
+ - - ">="
138
138
  - !ruby/object:Gem::Version
139
- version: 1.0.7
139
+ version: '0'
140
140
  description: " nib is a docker-compose wrapper geared towards Ruby/Rails development.\n"
141
141
  email:
142
142
  - noreply@technekes.com
@@ -191,7 +191,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
191
191
  version: '0'
192
192
  requirements: []
193
193
  rubyforge_project:
194
- rubygems_version: 2.5.2
194
+ rubygems_version: 2.5.2.2
195
195
  signing_key:
196
196
  specification_version: 4
197
197
  summary: The tip of the pen (compose)