rbcli 0.2.5 → 0.2.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +11 -0
- data/Gemfile.lock +11 -11
- data/exe/rbcli +2 -2
- data/lib/rbcli/engine/command.rb +1 -1
- data/lib/rbcli/version.rb +1 -1
- data/lib/rbcli-tool/project.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6e3d78e4e6025e63c9fe9ae1716d5d7fa8e472c2fa5f4cc927daefc7daea9dce
|
4
|
+
data.tar.gz: 19830936b886a4e5a6474e2e8b3dfddae124fc2aca3a6edc2d9a6ccd2035055a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0d933d8ffc4df3f09f29e4d66e12dbddbd7916862f58e128ac55b7f62c77d8441546424349d9a94f45fbe549105bf1bce90b8c3c8e83089f4a5e859ca36b2eaa
|
7
|
+
data.tar.gz: fe2d9b14d5cac336794df192bdd38f8869be4a1daf031ed0d51cd4828bc48dc3e3e71953297320bbcaddc174a5be8256e697baffb47596592fffb3de07b3d9f0
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,16 @@
|
|
1
1
|
# Changelog
|
2
2
|
|
3
|
+
## 0.2.6 (UNRELEASED)
|
4
|
+
|
5
|
+
### Bugfixes
|
6
|
+
|
7
|
+
Fixed a bug that caused the rbcli tool not to detect project folders correctly.
|
8
|
+
Command parameter `prompt:` now works when `required` is set to `true`.
|
9
|
+
|
10
|
+
### Changes
|
11
|
+
|
12
|
+
The `rbcli init` command now initializes into the current working directory instead of creating a new one.
|
13
|
+
|
3
14
|
## 0.2.5 (Oct 8, 2018)
|
4
15
|
|
5
16
|
### Improvements
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
rbcli (0.2.
|
4
|
+
rbcli (0.2.6)
|
5
5
|
aws-sdk-dynamodb (~> 1.6)
|
6
6
|
colorize (~> 0.8)
|
7
7
|
deep_merge (~> 1.2)
|
@@ -18,24 +18,24 @@ GEM
|
|
18
18
|
addressable (2.5.2)
|
19
19
|
public_suffix (>= 2.0.2, < 4.0)
|
20
20
|
aws-eventstream (1.0.1)
|
21
|
-
aws-partitions (1.
|
22
|
-
aws-sdk-core (3.
|
21
|
+
aws-partitions (1.105.0)
|
22
|
+
aws-sdk-core (3.30.0)
|
23
23
|
aws-eventstream (~> 1.0)
|
24
24
|
aws-partitions (~> 1.0)
|
25
25
|
aws-sigv4 (~> 1.0)
|
26
26
|
jmespath (~> 1.0)
|
27
|
-
aws-sdk-dynamodb (1.
|
28
|
-
aws-sdk-core (~> 3)
|
27
|
+
aws-sdk-dynamodb (1.13.0)
|
28
|
+
aws-sdk-core (~> 3, >= 3.26.0)
|
29
29
|
aws-sigv4 (~> 1.0)
|
30
30
|
aws-sigv4 (1.0.3)
|
31
31
|
colorize (0.8.1)
|
32
32
|
deep_merge (1.2.1)
|
33
|
-
et-orbi (1.1.
|
33
|
+
et-orbi (1.1.6)
|
34
34
|
tzinfo
|
35
|
-
faraday (0.15.
|
35
|
+
faraday (0.15.3)
|
36
36
|
multipart-post (>= 1.2, < 3)
|
37
|
-
fugit (1.1.
|
38
|
-
et-orbi (~> 1.1, >= 1.1.
|
37
|
+
fugit (1.1.6)
|
38
|
+
et-orbi (~> 1.1, >= 1.1.6)
|
39
39
|
raabro (~> 1.1)
|
40
40
|
jmespath (1.4.0)
|
41
41
|
macaddr (1.7.1)
|
@@ -46,9 +46,9 @@ GEM
|
|
46
46
|
net-scp (1.2.1)
|
47
47
|
net-ssh (>= 2.6.5)
|
48
48
|
net-ssh (5.0.2)
|
49
|
-
octokit (4.
|
49
|
+
octokit (4.13.0)
|
50
50
|
sawyer (~> 0.8.0, >= 0.5.3)
|
51
|
-
public_suffix (3.0.
|
51
|
+
public_suffix (3.0.3)
|
52
52
|
raabro (1.1.6)
|
53
53
|
rake (10.5.0)
|
54
54
|
rufus-scheduler (3.5.2)
|
data/exe/rbcli
CHANGED
@@ -79,12 +79,12 @@ Micro: A single-file, minimal RBCli project. Similar to a mini project, but o
|
|
79
79
|
generated. Recommended for rapid prototyping of scripts, for advanced users only.
|
80
80
|
EOF
|
81
81
|
|
82
|
-
parameter :name, 'Name of project to generate', type: :string, required: true
|
82
|
+
parameter :name, 'Name of project to generate', type: :string, default: File.basename(Dir.pwd), required: true, prompt: 'Enter a name'
|
83
83
|
parameter :type, 'Specify project type', type: :string, permitted: %w(standard micro mini), default: 'standard'
|
84
84
|
parameter :description, 'A description of the project', type: :string, default: 'TODO: Description goes here'
|
85
85
|
|
86
86
|
action do |params, args, global_opts, config|
|
87
|
-
dest =
|
87
|
+
dest = Dir.pwd
|
88
88
|
|
89
89
|
# Prepare template vars
|
90
90
|
template_vars = {
|
data/lib/rbcli/engine/command.rb
CHANGED
@@ -159,7 +159,7 @@ Usage:
|
|
159
159
|
Command-specific Parameters:
|
160
160
|
EOS
|
161
161
|
params.each do |name, opts|
|
162
|
-
opt name, opts[:description], type: opts[:type], default: opts[:default], required: opts[:required], permitted: opts[:permitted], short: opts[:short]
|
162
|
+
opt name, opts[:description], type: opts[:type], default: opts[:default], required: (opts[:prompt].nil? and opts[:required]), permitted: opts[:permitted], short: opts[:short]
|
163
163
|
end if params.is_a? Hash
|
164
164
|
end
|
165
165
|
optx[:args] = ARGV
|
data/lib/rbcli/version.rb
CHANGED
data/lib/rbcli-tool/project.rb
CHANGED
@@ -106,7 +106,7 @@ module RBCliTool
|
|
106
106
|
|
107
107
|
def project_exists?
|
108
108
|
# If the specified file already exists...
|
109
|
-
return true if File.exists? @dest
|
109
|
+
#return true if File.exists? @dest
|
110
110
|
|
111
111
|
# Or if the .rbcli file exists anywhere in the tree, we know that we are in a subdirectory of a project
|
112
112
|
Project::find_root(@dest)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rbcli
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Andrew Khoury
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-10-
|
11
|
+
date: 2018-10-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|