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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 21a28b9d0c9eb5ffba2ea1b5a2011df06eb09b3714b0b3a0cf9b7f938480eea9
4
- data.tar.gz: 7d5cbe7ad6066c0b094b08363da431af7d3fd2a276ac242044ef913cb043ad18
3
+ metadata.gz: 6e3d78e4e6025e63c9fe9ae1716d5d7fa8e472c2fa5f4cc927daefc7daea9dce
4
+ data.tar.gz: 19830936b886a4e5a6474e2e8b3dfddae124fc2aca3a6edc2d9a6ccd2035055a
5
5
  SHA512:
6
- metadata.gz: 488dd5a8a7130314c557897297e952e3ae1d6c65218ccafa533f543a1b81b3a6d2bbf012432db67519536e8a2f99e7177864029cccd2dde47a5a20b5cbe99d0f
7
- data.tar.gz: 5d39c367eb6e765dac0e24308f278d2e6c3d38b17a9df4c7f20e04eb88f92e2a22b429ca5436e29a59902dc544706c8622ea49ad6a7f05cb24dfb129c9ebb095
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.5)
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.97.0)
22
- aws-sdk-core (3.24.0)
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.10.0)
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.4)
33
+ et-orbi (1.1.6)
34
34
  tzinfo
35
- faraday (0.15.2)
35
+ faraday (0.15.3)
36
36
  multipart-post (>= 1.2, < 3)
37
- fugit (1.1.5)
38
- et-orbi (~> 1.1, >= 1.1.3)
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.9.0)
49
+ octokit (4.13.0)
50
50
  sawyer (~> 0.8.0, >= 0.5.3)
51
- public_suffix (3.0.2)
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 = "#{Dir.pwd}/#{params[:name]}"
87
+ dest = Dir.pwd
88
88
 
89
89
  # Prepare template vars
90
90
  template_vars = {
@@ -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
@@ -19,5 +19,5 @@
19
19
  ##################################################################################
20
20
 
21
21
  module Rbcli
22
- VERSION = "0.2.5"
22
+ VERSION = "0.2.6"
23
23
  end
@@ -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.5
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-08 00:00:00.000000000 Z
11
+ date: 2018-10-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler