cbaoth 0.0.9 → 0.0.20

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: bf05da7e2ee1ac0a59aa0f6c238f9535e3213a0b
4
- data.tar.gz: b432351f49eddfa5f5a3eb981c67c72e7b3c72da
3
+ metadata.gz: 3ba2967c6fc5a03bb7b1d0a7cb474be0f1ca90e7
4
+ data.tar.gz: 5ce5bb03630f468254a2aced9e2cf019b1153081
5
5
  SHA512:
6
- metadata.gz: 87156d1356881b80d8c812217f338d415084e0ad119ae64ccb14a957e248ffe1383dc523e41abc19e15deeba1aa0d25a0cb9a69132c89ebc30dc7d44d38434b3
7
- data.tar.gz: 8d98bf8fb668f8cd6ac8c6872af8e4b92b8947b583f3b534d67995f6343dc57a1cb26eef78f82f0b2bbe1f73a4e3a06515c2142d2e6b72c473ed613dd876f2ec
6
+ metadata.gz: 36647c45ca9868ca284fe6939c256fa0036756f0f897bcf787665b179155c36d443bef341e7bc4ff9a256a9ac43ef7b1c6ef726aea8e9d9e0ec6438e63ef1399
7
+ data.tar.gz: 5acc0dd898fa8519f209cd8d81be887efdc58b733bb3cfc842283804b2991ed7ae8fe56b1b38db96b9ace73c96ada9e1e90a23b573a28cb98ceab7911ffa8f69
data/README.md CHANGED
@@ -30,7 +30,7 @@ To not initialize git:
30
30
  Replace *my_app* with the name of your app.
31
31
 
32
32
  ## Help/Info
33
- $ cbaoth --help
33
+ $ cbaoth --help or $ cbaoth -h
34
34
 
35
35
  ***
36
36
  ## Contributing
@@ -46,4 +46,4 @@ Replace *my_app* with the name of your app.
46
46
 
47
47
  The name, for those non Star Wars g33ks, comes from the [Timothy Zahn](http://starwars.wikia.com/wiki/Timothy_Zahn) books. The character [Joruus C'baoth](http://starwars.wikia.com/wiki/Joruus_C%27baoth) is a clone of a Jedi, yeah yeah they said you couldn't clone a Jedi.He is a dark Jedi.
48
48
 
49
- C'baoth, or in our case cbaoth, incidentally, is pronounced 'SA-bay-oth'
49
+ C'baoth, or in our case cbaoth, incidentally, is pronounced 'SA-bay-oth'
data/bin/cbaoth CHANGED
@@ -6,7 +6,7 @@ require 'cbaoth/version'
6
6
  app_name = ARGV.first
7
7
  flag = ARGV[1] || ""
8
8
 
9
- if app_name == '--help'
9
+ if app_name == '--help' || app_name == '-h'
10
10
  puts
11
11
  puts "cbaoth v#{Cbaoth::VERSION}"
12
12
  puts 'Author: Curtis Ovard'
@@ -16,6 +16,12 @@ if app_name == '--help'
16
16
  puts 'To create your app simply type the following from the command line. (replace my_app_name with your ruby app name)'
17
17
  puts 'It will generate a base ruby app within your current directory.'
18
18
  puts
19
+ puts "=" * 50
20
+ puts "Flags"
21
+ puts "-g\t\t\tThis flag will cause the app to not initialize git"
22
+ puts
23
+ puts "=" * 50
24
+ puts
19
25
  puts "\t $ cbaoth my_app_name"
20
26
  puts
21
27
  puts "Then follow the instructions output to the consel after that and you are set. The instructions just tell you to cd into"
@@ -23,4 +29,4 @@ if app_name == '--help'
23
29
  else
24
30
  gen = Cbaoth::Generator.new
25
31
  gen.generate app_name, flag
26
- end
32
+ end
@@ -1,15 +1,14 @@
1
1
  require "cbaoth/version"
2
2
 
3
3
  module Cbaoth
4
-
5
4
  class Generator
6
-
7
5
  def generate app_name, flag
8
6
  vars = init_variables app_name
9
7
  create_app_name_dir app_name
10
8
  create_dir_structure vars[:working_directory]
11
9
  generate_base_files vars[:working_directory], vars[:gem_directory], flag
12
10
  init_git app_name unless flag == '-g'
11
+ update_readme_file app_name, vars[:working_directory]
13
12
  alert_user app_name
14
13
  end
15
14
 
@@ -44,6 +43,14 @@ module Cbaoth
44
43
  system "touch #{wd}/process.rb"
45
44
  end
46
45
 
46
+ def update_readme_file app_name, app_dir
47
+ File.open(File.join(app_dir, 'README.md'), 'w') do |f|
48
+ f.puts "# App: #{app_name}"
49
+ f.puts '***'
50
+ f.puts "TODO: enter information about your app."
51
+ end
52
+ end
53
+
47
54
  def init_git app_name
48
55
  puts
49
56
  puts "\tInitializing git"
@@ -62,7 +69,5 @@ module Cbaoth
62
69
  puts "That's it. Thanks for using cbaoth."
63
70
  puts "Happy rubying =) - #{ENV["LOGNAME"]}"
64
71
  end
65
-
66
72
  end
67
-
68
73
  end
@@ -1,3 +1,3 @@
1
1
  module Cbaoth
2
- VERSION = "0.0.9"
2
+ VERSION = "0.0.20"
3
3
  end
metadata CHANGED
@@ -1,41 +1,41 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cbaoth
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.9
4
+ version: 0.0.20
5
5
  platform: ruby
6
6
  authors:
7
7
  - Curtis Ovard
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-09-24 00:00:00.000000000 Z
11
+ date: 2014-09-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ~>
17
+ - - "~>"
18
18
  - !ruby/object:Gem::Version
19
19
  version: '1.3'
20
20
  type: :development
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - ~>
24
+ - - "~>"
25
25
  - !ruby/object:Gem::Version
26
26
  version: '1.3'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rake
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - '>='
31
+ - - ">="
32
32
  - !ruby/object:Gem::Version
33
33
  version: '0'
34
34
  type: :development
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - '>='
38
+ - - ">="
39
39
  - !ruby/object:Gem::Version
40
40
  version: '0'
41
41
  description: Gem to create base ruby automation apps from cli.
@@ -46,8 +46,8 @@ executables:
46
46
  extensions: []
47
47
  extra_rdoc_files: []
48
48
  files:
49
- - .gitignore
50
- - .rspec
49
+ - ".gitignore"
50
+ - ".rspec"
51
51
  - Gemfile
52
52
  - Guardfile
53
53
  - LICENSE.txt
@@ -74,17 +74,17 @@ require_paths:
74
74
  - lib
75
75
  required_ruby_version: !ruby/object:Gem::Requirement
76
76
  requirements:
77
- - - '>='
77
+ - - ">="
78
78
  - !ruby/object:Gem::Version
79
79
  version: '0'
80
80
  required_rubygems_version: !ruby/object:Gem::Requirement
81
81
  requirements:
82
- - - '>='
82
+ - - ">="
83
83
  - !ruby/object:Gem::Version
84
84
  version: '0'
85
85
  requirements: []
86
86
  rubyforge_project:
87
- rubygems_version: 2.1.4
87
+ rubygems_version: 2.4.1
88
88
  signing_key:
89
89
  specification_version: 4
90
90
  summary: Gem to create a base ruby automation app from the command line. Simply typing