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.
Files changed (46) hide show
  1. checksums.yaml +4 -4
  2. data/.byebug_history +15 -0
  3. data/.rubocop.yml +9 -0
  4. data/.rubocop_todo.yml +77 -0
  5. data/.travis.yml +6 -0
  6. data/Gemfile +1 -0
  7. data/History.rdoc +3 -0
  8. data/bin/simple_commander +1 -1
  9. data/coverage/.last_run.json +5 -0
  10. data/coverage/.resultset.json +1660 -0
  11. data/coverage/.resultset.json.lock +0 -0
  12. data/dir_glob.rb +7 -8
  13. data/ember_c +7 -38
  14. data/helper.rb +5 -0
  15. data/helpers/http_helper.rb +5 -0
  16. data/lib/simple_commander/command.rb +3 -3
  17. data/lib/simple_commander/configure.rb +2 -2
  18. data/lib/simple_commander/core_ext.rb +2 -2
  19. data/lib/simple_commander/delegates.rb +4 -3
  20. data/lib/simple_commander/help_formatters/base.rb +1 -1
  21. data/lib/simple_commander/help_formatters/terminal.rb +1 -1
  22. data/lib/simple_commander/help_formatters/terminal_compact.rb +1 -1
  23. data/lib/simple_commander/help_formatters.rb +4 -4
  24. data/lib/simple_commander/helpers/io.rb +128 -0
  25. data/lib/simple_commander/helpers.rb +1 -0
  26. data/lib/simple_commander/import.rb +1 -1
  27. data/lib/simple_commander/methods.rb +4 -4
  28. data/lib/simple_commander/platform.rb +1 -1
  29. data/lib/simple_commander/runner.rb +28 -6
  30. data/lib/simple_commander/user_interaction.rb +2 -2
  31. data/lib/simple_commander/version.rb +2 -2
  32. data/lib/simple_commander.rb +1 -0
  33. data/simple_commander.gemspec +2 -1
  34. data/spec/command_spec.rb +157 -0
  35. data/spec/configure_spec.rb +37 -0
  36. data/spec/core_ext/array_spec.rb +18 -0
  37. data/spec/core_ext/object_spec.rb +19 -0
  38. data/spec/help_formatters/terminal_compact_spec.rb +69 -0
  39. data/spec/help_formatters/terminal_spec.rb +67 -0
  40. data/spec/methods_spec.rb +20 -0
  41. data/spec/runner_spec.rb +659 -0
  42. data/spec/spec_helper.rb +82 -0
  43. data/spec/ui_spec.rb +30 -0
  44. data/test.rb +24 -0
  45. data/todo.yml +16 -4
  46. metadata +37 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c53e558ab6300e527b954dafaa1077b638383087
4
- data.tar.gz: c4ad0caa9f87b07554bf386c6a2b2f6998e33f98
3
+ metadata.gz: aa8330db4e2c448416d2849e550721fcaaca077b
4
+ data.tar.gz: 4d847aed5b7444ca5dfc8836db8bbd313c6b90f3
5
5
  SHA512:
6
- metadata.gz: 1f20308f929f4bf542fab1309f10b7e7a4313c04758b9af7cf3edb262fc914b68ec22e945c52b035594e030be0c0d386d4fba509abfbbb0051cf621638ade6dd
7
- data.tar.gz: c02f5ddae4504653c890aa693cd8e8a12981c6cedeadf363371ffd67e4abd82ff5f9e210cb5a3c93f38b87a375d462fd856003025da9b5f3aa69eddccf46b53c
6
+ metadata.gz: 49dc2496199371cf94f50618b985e4f5c5de5a46be190a83f1672322efc5f033652b8874690d123d9cb1f29c03a855da4fb25d14a68af95a8c267a74cc057e30
7
+ data.tar.gz: 509473a4eacd6c4781ef03585ec5a1c2f7a93a7bade05166162434f3e47b0f12cdfb22fef271a37a0d86d4e36b18b0bfa17af709d0bf6901d741de809ee05b85
data/.byebug_history CHANGED
@@ -1,4 +1,19 @@
1
1
  c
2
+ n
3
+ $LOAD_PATH
4
+ n
5
+ continue
6
+ $LOAD_PATH
7
+ n
8
+ continue
9
+ n
10
+ $LOAD_PATH
11
+ File.dirname(__FILE__)
12
+ n
13
+ continue
14
+ $terminal
15
+ @output.string
16
+ c
2
17
  path
3
18
  q
4
19
  continue
data/.rubocop.yml ADDED
@@ -0,0 +1,9 @@
1
+ inherit_from: .rubocop_todo.yml
2
+
3
+ # Offense count: 5
4
+ Encoding:
5
+ Enabled: false
6
+
7
+ # Enforce trailing comma after last item of multiline hashes.
8
+ Style/TrailingCommaInLiteral:
9
+ EnforcedStyleForMultiline: comma
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
@@ -0,0 +1,6 @@
1
+ language: ruby
2
+ rvm:
3
+ - 2.3.1
4
+ addons:
5
+ code_climate:
6
+ repo_token: 64d681b974cd28752077541d7ed7a47bd5ad4d871d36b86df1e7b19425c4a9c5
data/Gemfile CHANGED
@@ -1,3 +1,4 @@
1
1
  source 'https://rubygems.org'
2
2
 
3
3
  gemspec
4
+ gem 'codeclimate-test-reporter', group: :test, require: nil
data/History.rdoc CHANGED
@@ -1,3 +1,6 @@
1
+ === 0.1.0 / 07-10-2016
2
+ * helpers feature added
3
+
1
4
  === 0.0.1 / 05-10-2016
2
5
 
3
6
  * Initial release
data/bin/simple_commander CHANGED
@@ -4,7 +4,7 @@ require 'rubygems'
4
4
  require 'simple_commander/import'
5
5
 
6
6
  program :name, 'scommander'
7
- program :version, Commander::VERSION
7
+ program :version, SimpleCommander::VERSION
8
8
  program :description, 'Simple Commander utility program.'
9
9
 
10
10
  command :init do
@@ -0,0 +1,5 @@
1
+ {
2
+ "result": {
3
+ "covered_percent": 63.54
4
+ }
5
+ }