simple_commander 0.3.0 → 0.3.1

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: 7c414ec6339e3510381d3fbd4de3fc44eb740c2e
4
- data.tar.gz: e6e77cf0768bd77f8a0667512bcd5fc3cf4e9b4f
3
+ metadata.gz: 3bbf86cc0372188d580bf80e84a32ae070322013
4
+ data.tar.gz: b96be38b0c451c255db5d4f42c689343535a623c
5
5
  SHA512:
6
- metadata.gz: 6cad3d40981082b29043c0930cf26d85e6bb57428da28b90797974fa2d99676825b73e01b26e5c0a7bd3f8c2352ff9d19b11660ecda1fe524d25118435864207
7
- data.tar.gz: 6c8b284f6f306074d597166df7219d1a5e072e1eca9b6f0bccbab83992e31edf563cd844cb4842fec65d50c67dc64fec5bf2426a877208fbb71f98ceac8b2eb8
6
+ metadata.gz: 0c31cc37d9eab8defc85e6862ff10f007ea1004301f398197013a47f7c9e0de8665c099cc4e0235ac3851fef01d65c9953ebea94ce134ab33b2d3ad7ec69fd30
7
+ data.tar.gz: 93cf2e20059ac74a336fc7c5cabfc208affc4e42b77486ea136479da847046fdf38b667e5ebe17a7e817570875882812407e6c0d734eec311feadcde1ffd8e28
data/bin/simple_commander CHANGED
@@ -14,7 +14,8 @@ command :init do
14
14
  description 'Add this folder to the simple commander path as the default folder for scripts'
15
15
 
16
16
  action do |args, options|
17
- SimpleCommander::CLI.init(args)
17
+ cli = SimpleCommander::CLI.new
18
+ cli.init
18
19
  end
19
20
  end
20
21
 
@@ -23,33 +24,15 @@ command 'show config' do
23
24
  description 'show the current configuration'
24
25
 
25
26
  action do |args, options|
26
- SimpleCommander::CLI.show_config
27
+ cli = SimpleCommander::CLI.new
28
+ cli.show_config
27
29
  end
28
30
  end
29
31
 
30
32
  command :new do
31
33
  action do |args, options|
32
- SimpleCommander::CLI.new(args)
33
- config_file = "#{File.dirname(__FILE__)}/config.yml"
34
- yml = YAML.load_file(config_file)
35
- sc_folder = yml[:path]
36
- temp_folder = "#{File.dirname(__FILE__)}/"
37
- s_path = "#{sc_folder}/#{args[0]}"
38
- if !sc_folder
39
- say <<-END
40
- You need to set a path to commander
41
- use simple_commander init <path> or cd to
42
- the folder you want and just simple_commander init
43
- END
44
- return
45
- end
46
- if File.directory?(s_path)
47
- say "The script #{args[0]} already exist!"
48
- return
49
- end
50
- mkdir s_path
51
- mkdir "#{s_path}/bin"
52
- mkdir "#{s_path}/spec"
34
+ cli = SimpleCommander::CLI.new
35
+ cli.new(args[0])
53
36
  end
54
37
  end
55
38
 
data/feature.list ADDED
@@ -0,0 +1,4 @@
1
+ - create new programers with simple_commander init, simple_commander new <program name>
2
+ - install programs with simple_commander install <hrl>
3
+ - crate HTTP helper
4
+ - create sequencial actions like in thor
data/gem.fish ADDED
@@ -0,0 +1,2 @@
1
+ gem build simple_commander.gemspec
2
+ gem push simple_commander.gem
@@ -26,6 +26,7 @@ require 'simple_commander/version'
26
26
  require 'simple_commander/blank'
27
27
  require 'simple_commander/user_interaction'
28
28
  require 'simple_commander/core_ext'
29
+ require 'simple_commander/cli'
29
30
  require 'simple_commander/runner.rb'
30
31
  require 'simple_commander/command'
31
32
  require 'simple_commander/help_formatters'
@@ -1,2 +1,2 @@
1
1
  ---
2
- :path: "/Users/marcell/Documents/github/simple_commander/spec/mock"
2
+ :path: "/Users/marcell/Documents/github/simple_commander"
@@ -1,3 +1,3 @@
1
1
  module SimpleCommander
2
- VERSION = '0.3.0'
2
+ VERSION = '0.3.1'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: simple_commander
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Marcell Monteiro Cruz
@@ -84,7 +84,6 @@ description:
84
84
  email:
85
85
  - 0000marcell@gmail.com
86
86
  executables:
87
- - config.yml
88
87
  - simple_commander
89
88
  extensions: []
90
89
  extra_rdoc_files: []
@@ -100,7 +99,6 @@ files:
100
99
  - Manifest
101
100
  - README.md
102
101
  - Rakefile
103
- - bin/config.yml
104
102
  - bin/simple_commander
105
103
  - config.yml
106
104
  - coverage/.last_run.json
@@ -108,6 +106,8 @@ files:
108
106
  - coverage/.resultset.json.lock
109
107
  - dir_glob.rb
110
108
  - ember_c
109
+ - feature.list
110
+ - gem.fish
111
111
  - helper.rb
112
112
  - helpers/http_helper.rb
113
113
  - ideal_spec.rb
data/bin/config.yml DELETED
@@ -1,2 +0,0 @@
1
- ---
2
- :path: "/Users/marcell/Documents/github/sc_scripts"