simple_commander 0.0.1 → 0.1.0
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 +4 -4
- data/.byebug_history +15 -0
- data/.rubocop.yml +9 -0
- data/.rubocop_todo.yml +77 -0
- data/.travis.yml +6 -0
- data/Gemfile +1 -0
- data/History.rdoc +3 -0
- data/bin/simple_commander +1 -1
- data/coverage/.last_run.json +5 -0
- data/coverage/.resultset.json +1660 -0
- data/coverage/.resultset.json.lock +0 -0
- data/dir_glob.rb +7 -8
- data/ember_c +7 -38
- data/helper.rb +5 -0
- data/helpers/http_helper.rb +5 -0
- data/lib/simple_commander/command.rb +3 -3
- data/lib/simple_commander/configure.rb +2 -2
- data/lib/simple_commander/core_ext.rb +2 -2
- data/lib/simple_commander/delegates.rb +4 -3
- data/lib/simple_commander/help_formatters/base.rb +1 -1
- data/lib/simple_commander/help_formatters/terminal.rb +1 -1
- data/lib/simple_commander/help_formatters/terminal_compact.rb +1 -1
- data/lib/simple_commander/help_formatters.rb +4 -4
- data/lib/simple_commander/helpers/io.rb +128 -0
- data/lib/simple_commander/helpers.rb +1 -0
- data/lib/simple_commander/import.rb +1 -1
- data/lib/simple_commander/methods.rb +4 -4
- data/lib/simple_commander/platform.rb +1 -1
- data/lib/simple_commander/runner.rb +28 -6
- data/lib/simple_commander/user_interaction.rb +2 -2
- data/lib/simple_commander/version.rb +2 -2
- data/lib/simple_commander.rb +1 -0
- data/simple_commander.gemspec +2 -1
- data/spec/command_spec.rb +157 -0
- data/spec/configure_spec.rb +37 -0
- data/spec/core_ext/array_spec.rb +18 -0
- data/spec/core_ext/object_spec.rb +19 -0
- data/spec/help_formatters/terminal_compact_spec.rb +69 -0
- data/spec/help_formatters/terminal_spec.rb +67 -0
- data/spec/methods_spec.rb +20 -0
- data/spec/runner_spec.rb +659 -0
- data/spec/spec_helper.rb +82 -0
- data/spec/ui_spec.rb +30 -0
- data/test.rb +24 -0
- data/todo.yml +16 -4
- metadata +37 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: aa8330db4e2c448416d2849e550721fcaaca077b
|
4
|
+
data.tar.gz: 4d847aed5b7444ca5dfc8836db8bbd313c6b90f3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 49dc2496199371cf94f50618b985e4f5c5de5a46be190a83f1672322efc5f033652b8874690d123d9cb1f29c03a855da4fb25d14a68af95a8c267a74cc057e30
|
7
|
+
data.tar.gz: 509473a4eacd6c4781ef03585ec5a1c2f7a93a7bade05166162434f3e47b0f12cdfb22fef271a37a0d86d4e36b18b0bfa17af709d0bf6901d741de809ee05b85
|
data/.byebug_history
CHANGED
data/.rubocop.yml
ADDED
data/.rubocop_todo.yml
ADDED
@@ -0,0 +1,77 @@
|
|
1
|
+
# This configuration was generated by `rubocop --auto-gen-config`
|
2
|
+
# on 2015-02-16 16:08:54 -0800 using RuboCop version 0.29.0.
|
3
|
+
# The point is for the user to remove these configuration records
|
4
|
+
# one by one as the offenses are removed from the code base.
|
5
|
+
# Note that changes in the inspected code, or installation of new
|
6
|
+
# versions of RuboCop, may require this file to be generated again.
|
7
|
+
|
8
|
+
# Offense count: 2
|
9
|
+
Lint/Eval:
|
10
|
+
Enabled: false
|
11
|
+
|
12
|
+
# Offense count: 2
|
13
|
+
Lint/HandleExceptions:
|
14
|
+
Enabled: false
|
15
|
+
|
16
|
+
# Offense count: 5
|
17
|
+
Metrics/AbcSize:
|
18
|
+
Max: 29
|
19
|
+
|
20
|
+
# Offense count: 1
|
21
|
+
# Configuration parameters: CountComments.
|
22
|
+
Metrics/ClassLength:
|
23
|
+
Enabled: false
|
24
|
+
|
25
|
+
# Offense count: 4
|
26
|
+
Metrics/CyclomaticComplexity:
|
27
|
+
Max: 13
|
28
|
+
|
29
|
+
# Offense count: 89
|
30
|
+
# Configuration parameters: AllowURI, URISchemes.
|
31
|
+
Metrics/LineLength:
|
32
|
+
Max: 242
|
33
|
+
|
34
|
+
# Offense count: 7
|
35
|
+
# Configuration parameters: CountComments.
|
36
|
+
Metrics/MethodLength:
|
37
|
+
Max: 36
|
38
|
+
|
39
|
+
# Offense count: 4
|
40
|
+
Metrics/PerceivedComplexity:
|
41
|
+
Max: 14
|
42
|
+
|
43
|
+
# Offense count: 1
|
44
|
+
Style/AccessorMethodName:
|
45
|
+
Enabled: false
|
46
|
+
|
47
|
+
# Offense count: 18
|
48
|
+
Style/Documentation:
|
49
|
+
Enabled: false
|
50
|
+
|
51
|
+
# Offense count: 12
|
52
|
+
# Configuration parameters: AllowedVariables.
|
53
|
+
Style/GlobalVars:
|
54
|
+
Enabled: false
|
55
|
+
|
56
|
+
# Offense count: 1
|
57
|
+
# Configuration parameters: MaxLineLength.
|
58
|
+
Style/IfUnlessModifier:
|
59
|
+
Enabled: false
|
60
|
+
|
61
|
+
# Offense count: 1
|
62
|
+
Style/MultilineBlockChain:
|
63
|
+
Enabled: false
|
64
|
+
|
65
|
+
# Offense count: 1
|
66
|
+
Style/MultilineTernaryOperator:
|
67
|
+
Enabled: false
|
68
|
+
|
69
|
+
# Offense count: 5
|
70
|
+
Style/RescueModifier:
|
71
|
+
Enabled: false
|
72
|
+
|
73
|
+
# Offense count: 2
|
74
|
+
# Cop supports --auto-correct.
|
75
|
+
# Configuration parameters: ExactNameMatch, AllowPredicates, AllowDSLWriters, Whitelist.
|
76
|
+
Style/TrivialAccessors:
|
77
|
+
Enabled: false
|
data/.travis.yml
ADDED
data/Gemfile
CHANGED
data/History.rdoc
CHANGED
data/bin/simple_commander
CHANGED