eucalypt 0.6.1 → 0.6.2

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: 31804e6504be9089c526a5e3b5b0c4ec50172124f4a62650fb596a446f7fc691
4
- data.tar.gz: 417dd142062272024f0342319e44b800d8e5c7ed345666b2ed118dfa3e9639d5
3
+ metadata.gz: 7ab583cd6586f8fa5488e4acad5a7cd902deb47a8ee586944f16812f4da6bde7
4
+ data.tar.gz: d09b77d7964404d74ace7f74200381e059c11d550f23f0da8ded4ddb1ad27cec
5
5
  SHA512:
6
- metadata.gz: cb206dc379b8259e90029ceb130758e55fc826ee539a9d8af65f116eba3501bb44bce796938f5bb1ba148b54ec4b324d6f7d40558e9a10cb235cf66643c6785f
7
- data.tar.gz: 12c3507422614bf56080f43d1e57a9263a721c0fcb4137a64c389fd983e70c41b16d9be59b686d6bfaeb741e9d99546f1a41be62ce21ec47640ca6afb560358d
6
+ metadata.gz: 8219536b06e3a61eb360b55b804bf3ef7163e9da23afe781dfaa8031458d3dc36264406f001d47774c3a64bbac7ffbbb6c82a881c323e234b28db9cdd174449f
7
+ data.tar.gz: 36e8d8a316c8e3597bb51a0a55226e5422e19fc7a7be4f8f121c88b75f386d3efc63f24507c96ebedf42ca838bb20badd5a650c65561b2cc0157b61ff039664f
data/README.md CHANGED
@@ -20,6 +20,10 @@ $ gem install eucalypt
20
20
 
21
21
  ## Usage
22
22
 
23
+ Running the top-level `eucalypt` command displays information about initializing a new application:
24
+
25
+ <p align="center"><img width="70%" src="gfx/cli-1.png"></p>
26
+
23
27
  Initialize a new application with:
24
28
 
25
29
  ```bash
@@ -32,7 +36,7 @@ $ eucalypt init my-new-app
32
36
 
33
37
  Move into your new application's directory and run the top-level `eucalypt` command to display a list of all available commands:
34
38
 
35
- <p align="center"><img width="70%" src="gfx/cli.png"></p>
39
+ <p align="center"><img width="70%" src="gfx/cli-2.png"></p>
36
40
 
37
41
  ## Documentation
38
42
 
data/lib/eucalypt/list.rb CHANGED
@@ -19,6 +19,8 @@ module Eucalypt
19
19
  cmd = l.first
20
20
  (/.*help.*/.match?(cmd) && /^(?!.*(helper))/.match?(cmd)) || cmd.include?('-H')
21
21
  end
22
+ list.reject! {|l| /^(?!.*(init))/.match? l.first} if !Eucalypt.app? Dir.pwd
23
+
22
24
  list.map {|l| l.last.sub!(?#, '·'.colorize(:pale_blue, :bold)+'›')}
23
25
 
24
26
  if defined?(@package_name) && @package_name
@@ -32,8 +34,12 @@ module Eucalypt
32
34
  shell.say
33
35
  class_options_help(shell)
34
36
 
35
- shell.say "For more information about a specific command, use #{"eucalypt -H".colorize(:pale_blue)}."
36
- shell.say "Example: eucalypt -H generate scaffold".colorize(:grey)
37
+ if !Eucalypt.app? Dir.pwd
38
+ shell.say "For more information about creating an application, use #{"eucalypt -H init".colorize(:pale_blue)}."
39
+ else
40
+ shell.say "For more information about a specific command, use #{"eucalypt -H".colorize(:pale_blue)}."
41
+ shell.say "Example: eucalypt -H generate scaffold".colorize(:grey)
42
+ end
37
43
  end
38
44
  end
39
45
  end
@@ -1,3 +1,8 @@
1
1
  module Eucalypt
2
- VERSION = '0.6.1'
2
+ VERSION = {
3
+ major: 0,
4
+ minor: 6,
5
+ patch: 2,
6
+ meta: nil
7
+ }.values.reject(&:nil?).map(&:to_s)*?.
3
8
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: eucalypt
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.1
4
+ version: 0.6.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Edwin Onuonga
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-02-08 00:00:00.000000000 Z
11
+ date: 2019-03-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -383,7 +383,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
383
383
  - !ruby/object:Gem::Version
384
384
  version: '0'
385
385
  requirements: []
386
- rubygems_version: 3.0.2
386
+ rubygems_version: 3.0.3
387
387
  signing_key:
388
388
  specification_version: 4
389
389
  summary: Micro-framework, application generator and CLI wrapped around the Sinatra