autowow 0.8.0 → 0.8.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/.gitignore +14 -14
- data/.rspec +2 -2
- data/.rubocop.yml +118 -116
- data/.travis.yml +11 -11
- data/Gemfile +6 -6
- data/Guardfile +22 -22
- data/LICENSE.txt +21 -21
- data/README.md +143 -139
- data/Rakefile +59 -59
- data/autowow.gemspec +41 -41
- data/bin/autowow +5 -5
- data/bin/aw +5 -5
- data/bin/console +14 -14
- data/bin/setup +8 -8
- data/lib/autowow.rb +13 -13
- data/lib/autowow/cli.rb +91 -91
- data/lib/autowow/commands/gem.rb +27 -27
- data/lib/autowow/commands/os.rb +11 -11
- data/lib/autowow/commands/rbenv.rb +19 -19
- data/lib/autowow/commands/vcs.rb +87 -87
- data/lib/autowow/decorators/string_decorator.rb +11 -11
- data/lib/autowow/executor.rb +56 -49
- data/lib/autowow/features/fs.rb +49 -49
- data/lib/autowow/features/gem.rb +48 -48
- data/lib/autowow/features/os.rb +16 -16
- data/lib/autowow/features/rbenv.rb +50 -50
- data/lib/autowow/features/vcs.rb +272 -272
- data/lib/autowow/log_formatter.rb +25 -25
- data/lib/autowow/time_difference.rb +29 -29
- data/lib/autowow/version.rb +3 -3
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 0bce380bd0aa38446396ee3af9e6605bc5ae9c559e0270e18439d28c6746ea62
|
4
|
+
data.tar.gz: 63127f7f4a9d5e64d165df80925b9d4815ab646216dad972004e73a5d1030cac
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: de67e3705ec4e6fd6718a15038e93d62726636b62ef4eefc6a38e2277f89c85e936dfe97b30baec4d66d515bfc9e72037056bd3c3319b7378788cf81828b0795
|
7
|
+
data.tar.gz: fffb08eaf7af7c139494d8a579b6a69634ccc98faa30f9584a2b462479e31f7f7af3eaae12e3839ce4e98dec04b7cc0480f117282bb09b642032d4932c02b637
|
data/.gitignore
CHANGED
@@ -1,14 +1,14 @@
|
|
1
|
-
/.bundle/
|
2
|
-
/.yardoc
|
3
|
-
/Gemfile.lock
|
4
|
-
/_yardoc/
|
5
|
-
/coverage/
|
6
|
-
/doc/
|
7
|
-
/pkg/
|
8
|
-
/spec/reports/
|
9
|
-
/tmp/
|
10
|
-
|
11
|
-
# rspec failure tracking
|
12
|
-
.rspec_status
|
13
|
-
|
14
|
-
.idea
|
1
|
+
/.bundle/
|
2
|
+
/.yardoc
|
3
|
+
/Gemfile.lock
|
4
|
+
/_yardoc/
|
5
|
+
/coverage/
|
6
|
+
/doc/
|
7
|
+
/pkg/
|
8
|
+
/spec/reports/
|
9
|
+
/tmp/
|
10
|
+
|
11
|
+
# rspec failure tracking
|
12
|
+
.rspec_status
|
13
|
+
|
14
|
+
.idea
|
data/.rspec
CHANGED
@@ -1,2 +1,2 @@
|
|
1
|
-
--format documentation
|
2
|
-
--color
|
1
|
+
--format documentation
|
2
|
+
--color
|
data/.rubocop.yml
CHANGED
@@ -1,117 +1,119 @@
|
|
1
|
-
AllCops:
|
2
|
-
DisabledByDefault: true
|
3
|
-
DisplayCopNames: true
|
4
|
-
Exclude:
|
5
|
-
- doc/**/*
|
6
|
-
- vendor/**/*
|
7
|
-
- spec/fixtures/**/*
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
Layout/
|
18
|
-
Enabled: true
|
19
|
-
Layout/
|
20
|
-
Enabled: true
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
Layout/
|
25
|
-
Enabled: true
|
26
|
-
Layout/
|
27
|
-
Enabled: true
|
28
|
-
Layout/
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
Layout/
|
34
|
-
Enabled: true
|
35
|
-
Layout/
|
36
|
-
Enabled: true
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
Layout/
|
45
|
-
|
46
|
-
Layout/
|
47
|
-
Enabled: true
|
48
|
-
Layout/
|
49
|
-
Enabled: true
|
50
|
-
Layout/
|
51
|
-
Enabled: true
|
52
|
-
Layout/
|
53
|
-
Enabled: true
|
54
|
-
Layout/
|
55
|
-
Enabled: true
|
56
|
-
Layout/
|
57
|
-
Enabled: true
|
58
|
-
Layout/
|
59
|
-
Enabled: true
|
60
|
-
Layout/
|
61
|
-
Enabled: true
|
62
|
-
Layout/
|
63
|
-
Enabled: true
|
64
|
-
Layout/
|
65
|
-
Enabled: true
|
66
|
-
Layout/
|
67
|
-
Enabled: true
|
68
|
-
Layout/
|
69
|
-
Enabled: true
|
70
|
-
|
71
|
-
Enabled: true
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
Metrics/
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
Max:
|
86
|
-
Metrics/
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
Style/
|
94
|
-
EnforcedStyle:
|
95
|
-
Style/
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
EnforcedStyle:
|
100
|
-
Style/
|
101
|
-
|
102
|
-
Style/
|
103
|
-
Enabled: true
|
104
|
-
Style/
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
Style/
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
Enabled: true
|
114
|
-
|
115
|
-
|
116
|
-
|
1
|
+
AllCops:
|
2
|
+
DisabledByDefault: true
|
3
|
+
DisplayCopNames: true
|
4
|
+
Exclude:
|
5
|
+
- doc/**/*
|
6
|
+
- vendor/**/*
|
7
|
+
- spec/fixtures/**/*
|
8
|
+
- "*.gemspec"
|
9
|
+
- Gemfile*
|
10
|
+
TargetRubyVersion: 2.3
|
11
|
+
Layout/CaseIndentation:
|
12
|
+
Enabled: true
|
13
|
+
IndentOneStep: false
|
14
|
+
Layout/EmptyLineBetweenDefs:
|
15
|
+
Enabled: true
|
16
|
+
AllowAdjacentOneLineDefs: true
|
17
|
+
Layout/EmptyLines:
|
18
|
+
Enabled: true
|
19
|
+
Layout/EmptyLinesAroundBeginBody:
|
20
|
+
Enabled: true
|
21
|
+
Layout/EmptyLinesAroundBlockBody:
|
22
|
+
Enabled: true
|
23
|
+
EnforcedStyle: no_empty_lines
|
24
|
+
Layout/EmptyLinesAroundClassBody:
|
25
|
+
Enabled: true
|
26
|
+
Layout/EmptyLinesAroundMethodBody:
|
27
|
+
Enabled: true
|
28
|
+
Layout/EmptyLinesAroundModuleBody:
|
29
|
+
Enabled: true
|
30
|
+
Layout/ExtraSpacing:
|
31
|
+
Exclude:
|
32
|
+
- Gemfile
|
33
|
+
Layout/FirstParameterIndentation:
|
34
|
+
Enabled: true
|
35
|
+
Layout/IndentationConsistency:
|
36
|
+
Enabled: true
|
37
|
+
Layout/IndentationWidth:
|
38
|
+
Enabled: true
|
39
|
+
Exclude:
|
40
|
+
- spec/**/*
|
41
|
+
Layout/MultilineMethodCallIndentation:
|
42
|
+
EnforcedStyle: indented_relative_to_receiver
|
43
|
+
IndentationWidth: 2
|
44
|
+
Layout/MultilineOperationIndentation:
|
45
|
+
EnforcedStyle: indented
|
46
|
+
Layout/SpaceAfterColon:
|
47
|
+
Enabled: true
|
48
|
+
Layout/SpaceAfterComma:
|
49
|
+
Enabled: true
|
50
|
+
Layout/SpaceAroundEqualsInParameterDefault:
|
51
|
+
Enabled: true
|
52
|
+
Layout/SpaceAroundKeyword:
|
53
|
+
Enabled: true
|
54
|
+
Layout/SpaceAroundOperators:
|
55
|
+
Enabled: true
|
56
|
+
Layout/SpaceBeforeBlockBraces:
|
57
|
+
Enabled: true
|
58
|
+
Layout/SpaceBeforeFirstArg:
|
59
|
+
Enabled: true
|
60
|
+
Layout/SpaceInsideBlockBraces:
|
61
|
+
Enabled: true
|
62
|
+
Layout/SpaceInsideHashLiteralBraces:
|
63
|
+
Enabled: true
|
64
|
+
Layout/SpaceInsideParens:
|
65
|
+
Enabled: true
|
66
|
+
Layout/Tab:
|
67
|
+
Enabled: true
|
68
|
+
Layout/TrailingBlankLines:
|
69
|
+
Enabled: true
|
70
|
+
Layout/TrailingWhitespace:
|
71
|
+
Enabled: true
|
72
|
+
Lint/EndAlignment:
|
73
|
+
Enabled: true
|
74
|
+
EnforcedStyleAlignWith: variable
|
75
|
+
Lint/RequireParentheses:
|
76
|
+
Enabled: true
|
77
|
+
Metrics/AbcSize:
|
78
|
+
Max: 62
|
79
|
+
Metrics/ClassLength:
|
80
|
+
CountComments: false
|
81
|
+
Max: 1000
|
82
|
+
Metrics/LineLength:
|
83
|
+
Exclude:
|
84
|
+
- spec/**/*
|
85
|
+
Max: 318
|
86
|
+
Metrics/MethodLength:
|
87
|
+
Max: 70
|
88
|
+
Metrics/ModuleLength:
|
89
|
+
CountComments: false
|
90
|
+
Max: 1000
|
91
|
+
Rails:
|
92
|
+
Enabled: true
|
93
|
+
Style/AndOr:
|
94
|
+
EnforcedStyle: conditionals
|
95
|
+
Style/BlockDelimiters:
|
96
|
+
EnforcedStyle: braces_for_chaining
|
97
|
+
Style/BracesAroundHashParameters:
|
98
|
+
Enabled: true
|
99
|
+
EnforcedStyle: context_dependent
|
100
|
+
Style/ConditionalAssignment:
|
101
|
+
EnforcedStyle: assign_to_condition
|
102
|
+
Style/HashSyntax:
|
103
|
+
Enabled: true
|
104
|
+
Style/MethodDefParentheses:
|
105
|
+
Enabled: true
|
106
|
+
Style/RedundantReturn:
|
107
|
+
AllowMultipleReturnValues: true
|
108
|
+
Enabled: true
|
109
|
+
Style/RegexpLiteral:
|
110
|
+
EnforcedStyle: percent_r
|
111
|
+
Style/Semicolon:
|
112
|
+
AllowAsExpressionSeparator: true
|
113
|
+
Enabled: true
|
114
|
+
Style/StringLiterals:
|
115
|
+
Enabled: true
|
116
|
+
EnforcedStyle: double_quotes
|
117
|
+
Style/TrivialAccessors:
|
118
|
+
Enabled: true
|
117
119
|
ExactNameMatch: true
|
data/.travis.yml
CHANGED
@@ -1,11 +1,11 @@
|
|
1
|
-
sudo: false
|
2
|
-
language: ruby
|
3
|
-
rvm:
|
4
|
-
- 2.4.1
|
5
|
-
before_install:
|
6
|
-
- gem install bundler -v 1.15.3
|
7
|
-
# To have access to the whole repo
|
8
|
-
- git config remote.origin.fetch +refs/heads/*:refs/remotes/origin/*
|
9
|
-
- git fetch --unshallow --tags
|
10
|
-
# To no longer be in a detached HEAD state
|
11
|
-
- git symbolic-ref --short HEAD || git checkout -b ${TRAVIS_BRANCH}-test $TRAVIS_BRANCH
|
1
|
+
sudo: false
|
2
|
+
language: ruby
|
3
|
+
rvm:
|
4
|
+
- 2.4.1
|
5
|
+
before_install:
|
6
|
+
- gem install bundler -v 1.15.3
|
7
|
+
# To have access to the whole repo
|
8
|
+
- git config remote.origin.fetch +refs/heads/*:refs/remotes/origin/*
|
9
|
+
- git fetch --unshallow --tags
|
10
|
+
# To no longer be in a detached HEAD state
|
11
|
+
- git symbolic-ref --short HEAD || git checkout -b ${TRAVIS_BRANCH}-test $TRAVIS_BRANCH
|
data/Gemfile
CHANGED
@@ -1,6 +1,6 @@
|
|
1
|
-
source "https://rubygems.org"
|
2
|
-
|
3
|
-
git_source(:github) {|repo_name| "https://github.com/#{repo_name}" }
|
4
|
-
|
5
|
-
# Specify your gem's dependencies in autowow.gemspec
|
6
|
-
gemspec
|
1
|
+
source "https://rubygems.org"
|
2
|
+
|
3
|
+
git_source(:github) {|repo_name| "https://github.com/#{repo_name}" }
|
4
|
+
|
5
|
+
# Specify your gem's dependencies in autowow.gemspec
|
6
|
+
gemspec
|
data/Guardfile
CHANGED
@@ -1,22 +1,22 @@
|
|
1
|
-
guard
|
2
|
-
watch(
|
3
|
-
watch(%r{^(.+)\.gemspec$})
|
4
|
-
end
|
5
|
-
|
6
|
-
rspec_prefix = File.file?(
|
7
|
-
guard
|
8
|
-
watch(%r{^spec/.+_spec\.rb$})
|
9
|
-
watch(%r{^lib/(.+)\.rb$}) { |m| "spec/lib/#{m[1]}_spec.rb" }
|
10
|
-
watch(
|
11
|
-
|
12
|
-
watch(%r{^app/(.+)\.rb$}) { |m| "spec/#{m[1]}_spec.rb" }
|
13
|
-
watch(%r{^app/(.*)(\.erb|\.haml)$}) { |m| "spec/#{m[1]}#{m[2]}_spec.rb" }
|
14
|
-
watch(%r{^app/models/(.+)\.rb$}) { |m| "spec/builders/#{m[1]}_builder_spec.rb" }
|
15
|
-
watch(%r{^app/controllers/(.+)_(controller)\.rb$}) { |m| ["spec/routing/#{m[1]}_routing_spec.rb", "spec/#{m[2]}s/#{m[1]}_#{m[2]}_spec.rb", "spec/acceptance/#{m[1]}_spec.rb"] }
|
16
|
-
watch(%r{^spec/support/(.+)\.rb$}) {
|
17
|
-
watch(%r{^spec/factories/(.+)\.rb$}) {
|
18
|
-
watch(
|
19
|
-
watch(
|
20
|
-
|
21
|
-
watch(%r{^app/views/(.+)/.*\.(erb|haml)$}) { |m| "spec/requests/#{m[1]}_spec.rb" }
|
22
|
-
end
|
1
|
+
guard "bundler" do
|
2
|
+
watch("Gemfile")
|
3
|
+
watch(%r{^(.+)\.gemspec$})
|
4
|
+
end
|
5
|
+
|
6
|
+
rspec_prefix = File.file?("bin/spring") ? "bundle exec spring" : "bundle exec"
|
7
|
+
guard "rspec", cmd: "#{rspec_prefix} rspec #{ENV['FOCUS']}", all_after_pass: ENV["FOCUS"].nil? do
|
8
|
+
watch(%r{^spec/.+_spec\.rb$})
|
9
|
+
watch(%r{^lib/(.+)\.rb$}) { |m| "spec/lib/#{m[1]}_spec.rb" }
|
10
|
+
watch("spec/spec_helper.rb") { "spec" }
|
11
|
+
|
12
|
+
watch(%r{^app/(.+)\.rb$}) { |m| "spec/#{m[1]}_spec.rb" }
|
13
|
+
watch(%r{^app/(.*)(\.erb|\.haml)$}) { |m| "spec/#{m[1]}#{m[2]}_spec.rb" }
|
14
|
+
watch(%r{^app/models/(.+)\.rb$}) { |m| "spec/builders/#{m[1]}_builder_spec.rb" }
|
15
|
+
watch(%r{^app/controllers/(.+)_(controller)\.rb$}) { |m| ["spec/routing/#{m[1]}_routing_spec.rb", "spec/#{m[2]}s/#{m[1]}_#{m[2]}_spec.rb", "spec/acceptance/#{m[1]}_spec.rb"] }
|
16
|
+
watch(%r{^spec/support/(.+)\.rb$}) { "spec" }
|
17
|
+
watch(%r{^spec/factories/(.+)\.rb$}) { "spec" }
|
18
|
+
watch("config/routes.rb") { "spec/routing" }
|
19
|
+
watch("app/controllers/application_controller.rb") { "spec/controllers" }
|
20
|
+
|
21
|
+
watch(%r{^app/views/(.+)/.*\.(erb|haml)$}) { |m| "spec/requests/#{m[1]}_spec.rb" }
|
22
|
+
end
|
data/LICENSE.txt
CHANGED
@@ -1,21 +1,21 @@
|
|
1
|
-
The MIT License (MIT)
|
2
|
-
|
3
|
-
Copyright (c) 2017 Csaba Apagyi
|
4
|
-
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
-
of this software and associated documentation files (the "Software"), to deal
|
7
|
-
in the Software without restriction, including without limitation the rights
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
10
|
-
furnished to do so, subject to the following conditions:
|
11
|
-
|
12
|
-
The above copyright notice and this permission notice shall be included in
|
13
|
-
all copies or substantial portions of the Software.
|
14
|
-
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
21
|
-
THE SOFTWARE.
|
1
|
+
The MIT License (MIT)
|
2
|
+
|
3
|
+
Copyright (c) 2017 Csaba Apagyi
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
7
|
+
in the Software without restriction, including without limitation the rights
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
10
|
+
furnished to do so, subject to the following conditions:
|
11
|
+
|
12
|
+
The above copyright notice and this permission notice shall be included in
|
13
|
+
all copies or substantial portions of the Software.
|
14
|
+
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
21
|
+
THE SOFTWARE.
|
data/README.md
CHANGED
@@ -1,139 +1,143 @@
|
|
1
|
-
# Autowow
|
2
|
-
|
3
|
-
#### Set of commands to AUTOmate Way Of Working
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
Commands
|
21
|
-
|
22
|
-
|
23
|
-
*
|
24
|
-
|
25
|
-
|
26
|
-
*
|
27
|
-
*
|
28
|
-
*
|
29
|
-
*
|
30
|
-
*
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
*
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
*
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
- [
|
130
|
-
- [
|
131
|
-
- [
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
##
|
138
|
-
|
139
|
-
|
1
|
+
# Autowow
|
2
|
+
|
3
|
+
#### Set of commands to AUTOmate Way Of Working
|
4
|
+
|
5
|
+
*You are viewing the README of version [v0.8.1](https://github.com/thisismydesign/autowow/releases/tag/v0.8.1). You can find other releases [here](https://github.com/thisismydesign/autowow/releases).*
|
6
|
+
|
7
|
+
| Branch | Status |
|
8
|
+
| ------ | ------ |
|
9
|
+
| Release | [![Build Status](https://travis-ci.org/thisismydesign/autowow.svg?branch=release)](https://travis-ci.org/thisismydesign/autowow) [![Coverage Status](https://coveralls.io/repos/github/thisismydesign/autowow/badge.svg?branch=release)](https://coveralls.io/github/thisismydesign/autowow?branch=release) [![Gem Version](https://badge.fury.io/rb/autowow.svg)](https://badge.fury.io/rb/autowow) [![Total Downloads](http://ruby-gem-downloads-badge.herokuapp.com/autowow?type=total)](https://rubygems.org/gems/autowow) |
|
10
|
+
| Development | [![Build Status](https://travis-ci.org/thisismydesign/autowow.svg?branch=master)](https://travis-ci.org/thisismydesign/autowow) [![Coverage Status](https://coveralls.io/repos/github/thisismydesign/autowow/badge.svg?branch=master)](https://coveralls.io/github/thisismydesign/autowow?branch=master) [![Bountysource](https://api.bountysource.com/badge/issue?issue_id=52798961)](https://www.bountysource.com/issues/52798961-all-changes-have-been-pushed-doesn-t-take-uncommitted-changes-into-account?utm_source=52798961&utm_medium=shield&utm_campaign=ISSUE_BADGE) |
|
11
|
+
|
12
|
+
## Usage
|
13
|
+
|
14
|
+
Install from source as `rake install`.
|
15
|
+
|
16
|
+
Run `autowow` or `aw` to see available commands.
|
17
|
+
|
18
|
+
*Disclaimer: Use it on your own responsibility. Some commands may be tailored to my use case but as always pull requests and issues are welcomed.*
|
19
|
+
|
20
|
+
## Commands
|
21
|
+
|
22
|
+
Commands in general
|
23
|
+
* start by outputting the status before execution
|
24
|
+
* end by outputting the status after execution
|
25
|
+
* are safe
|
26
|
+
* only touch files via other commands (e.g. `git`)
|
27
|
+
* do not cause conflicted state
|
28
|
+
* hard check for prerequisites
|
29
|
+
* store and restore uncommitted changes
|
30
|
+
* output executed commands that cause any change
|
31
|
+
* execute in current directory
|
32
|
+
* retain original output color
|
33
|
+
|
34
|
+
### VCS
|
35
|
+
|
36
|
+
Commands related to version control systems.
|
37
|
+
Currently only Git and the GitHub API are supported.
|
38
|
+
|
39
|
+
#### Branch merged
|
40
|
+
|
41
|
+
* Switches to master and pulls your merged changes
|
42
|
+
* Removes local working branch
|
43
|
+
|
44
|
+
Prerequisites: not on master
|
45
|
+
|
46
|
+
#### Update projects
|
47
|
+
|
48
|
+
* Updates local repositories
|
49
|
+
* Updates remote forks
|
50
|
+
* Searches for repositories on paths: `.`, `./*/`
|
51
|
+
|
52
|
+
Prerequisites: no uncommitted changes on master
|
53
|
+
|
54
|
+
#### Clear branches
|
55
|
+
|
56
|
+
* Removes branches without not pushed changes
|
57
|
+
* Keeps current and master branches
|
58
|
+
|
59
|
+
#### Add upstream
|
60
|
+
|
61
|
+
* Adds parent repository as remote 'upstream'
|
62
|
+
|
63
|
+
Prerequisites: doesn't have remote called 'upstream'
|
64
|
+
|
65
|
+
#### Hi
|
66
|
+
|
67
|
+
Day starter routine
|
68
|
+
|
69
|
+
* Updates projects (runs 'Update projects')
|
70
|
+
* Shows latest and deprecated repos
|
71
|
+
* Shows deprecated Ruby versions
|
72
|
+
|
73
|
+
Prerequisites: in a directory that contains git repos, not in the repo itself
|
74
|
+
|
75
|
+
#### Hi!
|
76
|
+
|
77
|
+
Day starter routine for a new start
|
78
|
+
|
79
|
+
* Runs 'Add upstream' and 'Clear branches' for all projects
|
80
|
+
* Runs 'Hi'
|
81
|
+
|
82
|
+
#### Open
|
83
|
+
|
84
|
+
* Opens project in browser
|
85
|
+
|
86
|
+
### Gem
|
87
|
+
|
88
|
+
#### Gem release
|
89
|
+
|
90
|
+
* Rebases `release` branch to master
|
91
|
+
* Releases gem via `rake release`
|
92
|
+
|
93
|
+
Prerequisites: on master
|
94
|
+
|
95
|
+
#### Gem clean
|
96
|
+
|
97
|
+
* Removes unused gems
|
98
|
+
|
99
|
+
#### Rubocop parallel autocorrect
|
100
|
+
|
101
|
+
`aw rpa` / `aw rubocop_parallel_autocorrect`
|
102
|
+
|
103
|
+
* Runs `rubocop` in parallel mode, autocorrects offenses on single thread
|
104
|
+
|
105
|
+
### Ruby
|
106
|
+
|
107
|
+
#### Ruby versions
|
108
|
+
|
109
|
+
* Shows Ruby versions in use
|
110
|
+
* Searches for repositories on paths: `.`, `./*/`
|
111
|
+
|
112
|
+
### Misc
|
113
|
+
|
114
|
+
#### Execute
|
115
|
+
|
116
|
+
* Executes given command
|
117
|
+
|
118
|
+
## Feedback
|
119
|
+
|
120
|
+
Any feedback is much appreciated.
|
121
|
+
|
122
|
+
I can only tailor this project to fit use-cases I know about - which are usually my own ones. If you find that this might be the right direction to solve your problem too but you find that it's suboptimal or lacks features don't hesitate to contact me.
|
123
|
+
|
124
|
+
Please let me know if you make use of this project so that I can prioritize further efforts.
|
125
|
+
|
126
|
+
## Conventions
|
127
|
+
|
128
|
+
This gem is developed using the following conventions:
|
129
|
+
- [Bundler's guide for developing a gem](http://bundler.io/v1.14/guides/creating_gem.html)
|
130
|
+
- [Better Specs](http://www.betterspecs.org/)
|
131
|
+
- [Semantic versioning](http://semver.org/)
|
132
|
+
- [RubyGems' guide on gem naming](http://guides.rubygems.org/name-your-gem/)
|
133
|
+
- [RFC memo about key words used to Indicate Requirement Levels](https://tools.ietf.org/html/rfc2119)
|
134
|
+
- [Bundler improvements](https://github.com/thisismydesign/bundler-improvements)
|
135
|
+
- [Minimal dependencies](http://www.mikeperham.com/2016/02/09/kill-your-dependencies/)
|
136
|
+
|
137
|
+
## Contributing
|
138
|
+
|
139
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/thisismydesign/autowow.
|
140
|
+
|
141
|
+
## License
|
142
|
+
|
143
|
+
The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
|