botanicus-rango 0.0.2 → 0.0.3

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.
Files changed (2) hide show
  1. data/bin/rango +30 -0
  2. metadata +4 -14
data/bin/rango ADDED
@@ -0,0 +1,30 @@
1
+ #!/usr/bin/env ruby1.9
2
+ # coding: utf-8
3
+
4
+ rango_root = File.join(File.dirname(__FILE__), '..')
5
+ $:.unshift("#{rango_root}/lib")
6
+
7
+ require "rango/ext/colored_string"
8
+
9
+ def help(command, description, indentation = 40)
10
+ indentation = indentation - command.length
11
+ spaces = " " * indentation
12
+ STDERR.puts(command + spaces + description)
13
+ end
14
+
15
+ case command = ARGV.first
16
+ when "create"
17
+ require "rango/cli/generators"
18
+ Rango::Generator.new(ARGV)
19
+ when "-i"
20
+ require "rango"
21
+ Rango.boot
22
+ Rango.interactive
23
+ else
24
+ # STDERR.puts(ColoredString.template("=== <green.bold>Usage</green.bold> ==="))
25
+ STDERR.puts("=== Usage ===")
26
+ help "rango create project mycoolproject", "Generate new site"
27
+ help "rango create app mycoolapp", "Generate new application"
28
+ help "rango -i", "Start Rango console"
29
+ exit 1
30
+ end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: botanicus-rango
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - "Jakub \xC5\xA0\xC5\xA5astn\xC3\xBD aka Botanicus"
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain:
11
- date: 2009-04-08 00:00:00 -07:00
11
+ date: 2009-05-16 00:00:00 -07:00
12
12
  default_executable: rango
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
@@ -21,16 +21,6 @@ dependencies:
21
21
  - !ruby/object:Gem::Version
22
22
  version: "0"
23
23
  version:
24
- - !ruby/object:Gem::Dependency
25
- name: thor
26
- type: :runtime
27
- version_requirement:
28
- version_requirements: !ruby/object:Gem::Requirement
29
- requirements:
30
- - - ">="
31
- - !ruby/object:Gem::Version
32
- version: "0"
33
- version:
34
24
  - !ruby/object:Gem::Dependency
35
25
  name: extlib
36
26
  type: :runtime
@@ -43,8 +33,8 @@ dependencies:
43
33
  version:
44
34
  description: ""
45
35
  email: knava.bestvinensis@gmail.com
46
- executables: []
47
-
36
+ executables:
37
+ - rango
48
38
  extensions: []
49
39
 
50
40
  extra_rdoc_files: []