autowow 0.9.0 → 0.9.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA256:
3
- metadata.gz: '08eb284c3614b5c18abb9e7200f75db6d0ec725443bcc59d5b677e3e8abfa437'
4
- data.tar.gz: 06fed009a69139fa573c200b7c4b757deb892c4f685f0142e6f0ed00f186431c
2
+ SHA1:
3
+ metadata.gz: c8c42c86b4414e4942f06b88a2af8bb3f5ec0d4e
4
+ data.tar.gz: 9c120e8ad48070549369d59300603830433ad080
5
5
  SHA512:
6
- metadata.gz: 28541f796749102f4960fd731516dd222dedf8531af5277991f177f247c6781e1f9f3e9d228250b9f31364c9fd522cfb3211a25970724b5a23904fca5516c86f
7
- data.tar.gz: 80a07a619ba6829d7f717ef2d9aa5bd1da9923c3042e26bc1ee124cb948e9cda50c3b613529351c76028e783d4b635749cde16d5a6d4adfb391cf2d0c9f9db52
6
+ metadata.gz: c6b51113b900820696854893a46e994008787ca0b117cad6308589441980887b69ad2af669fe910bddff5b098c8961709ff576fa2c96ee938f57183a7f650bb5
7
+ data.tar.gz: 7d75cd525f8e4ce7e82f801045b6f86f9b5766343be582830e572d992c63ccf4a69be8062e214ea3cdf90c62bac06a245ec7627f90fc38f8e71d0a7f4d3ac149
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
@@ -1,119 +1,119 @@
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
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
119
119
  ExactNameMatch: true
@@ -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 "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
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
@@ -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,171 +1,171 @@
1
- # Autowow
2
-
3
- #### Set of commands to [auto]mate [w]ay [o]f [w]orking
4
-
5
- *You are viewing the README of version [v0.9.0](https://github.com/thisismydesign/autowow/releases/tag/v0.9.0). 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
- `aw bm` / `autowow branch_merged`
42
-
43
- * Switches to master and pulls your merged changes
44
- * Removes local working branch
45
-
46
- Prerequisites: not on master
47
-
48
- #### Update projects
49
-
50
- `aw up` / `autowow update_projects`
51
-
52
- * Updates local repositories
53
- * Updates remote forks
54
- * Searches for repositories on paths: `.`, `./*/`
55
-
56
- Prerequisites: no uncommitted changes on master
57
-
58
- #### Clear branches
59
-
60
- `aw cb` / `autowow clear_branches`
61
-
62
- * Removes branches without not pushed changes
63
- * Keeps current and master branches
64
-
65
- #### Add upstream
66
-
67
- `aw au` / `autowow add_upstream`
68
-
69
- * Adds parent repository as remote 'upstream'
70
-
71
- Prerequisites: doesn't have remote called 'upstream'
72
-
73
- #### Hi
74
-
75
- `aw hi` / `autowow hi`
76
-
77
- Day starter routine
78
-
79
- * Updates projects (runs 'Update projects')
80
- * Shows latest and deprecated repos
81
- * Shows deprecated Ruby versions
82
-
83
- Prerequisites: in a directory that contains git repos, not in the repo itself
84
-
85
- #### Hi!
86
-
87
- `aw hi!` / `autowow hi!`
88
-
89
- Day starter routine for a new start
90
-
91
- * Runs 'Add upstream' and 'Clear branches' for all projects
92
- * Runs 'Hi'
93
-
94
- #### Open
95
-
96
- `aw open` / `autowow open`
97
-
98
- * Opens project in browser
99
-
100
- ### Gem
101
-
102
- #### Gem release
103
-
104
- `aw grls` / `autowow gem_release`
105
-
106
- * Rebases `release` branch to master
107
- * Releases gem via `rake release`
108
-
109
- Prerequisites: on master
110
-
111
- #### Gem clean
112
-
113
- `aw gc` / `autowow gem_clean`
114
-
115
- * Removes unused gems
116
-
117
- #### Rubocop parallel autocorrect
118
-
119
- `aw rpa` / `autowow rubocop_parallel_autocorrect`
120
-
121
- * Runs `rubocop` in parallel mode, autocorrects offenses on single thread
122
-
123
- #### Bundle exec
124
-
125
- `aw be <cmd>` / `autowow bundle_exec <cmd>`
126
-
127
- * Runs `cmd` with `bundle exec` prefixed
128
-
129
- ### Ruby
130
-
131
- #### Ruby versions
132
-
133
- `aw rv` / `autowow ruby_versions`
134
-
135
- * Shows Ruby versions in use
136
- * Searches for repositories on paths: `.`, `./*/`
137
-
138
- ### Misc
139
-
140
- #### Execute
141
-
142
- `aw e` / `autowow execute`
143
-
144
- * Executes given command
145
-
146
- ## Feedback
147
-
148
- Any feedback is much appreciated.
149
-
150
- 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.
151
-
152
- Please let me know if you make use of this project so that I can prioritize further efforts.
153
-
154
- ## Conventions
155
-
156
- This gem is developed using the following conventions:
157
- - [Bundler's guide for developing a gem](http://bundler.io/v1.14/guides/creating_gem.html)
158
- - [Better Specs](http://www.betterspecs.org/)
159
- - [Semantic versioning](http://semver.org/)
160
- - [RubyGems' guide on gem naming](http://guides.rubygems.org/name-your-gem/)
161
- - [RFC memo about key words used to Indicate Requirement Levels](https://tools.ietf.org/html/rfc2119)
162
- - [Bundler improvements](https://github.com/thisismydesign/bundler-improvements)
163
- - [Minimal dependencies](http://www.mikeperham.com/2016/02/09/kill-your-dependencies/)
164
-
165
- ## Contributing
166
-
167
- Bug reports and pull requests are welcome on GitHub at https://github.com/thisismydesign/autowow.
168
-
169
- ## License
170
-
171
- The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
1
+ # Autowow
2
+
3
+ #### Set of commands to [auto]mate [w]ay [o]f [w]orking
4
+
5
+ *You are viewing the README of version [v0.9.1](https://github.com/thisismydesign/autowow/releases/tag/v0.9.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
+ `aw bm` / `autowow branch_merged`
42
+
43
+ * Switches to master and pulls your merged changes
44
+ * Removes local working branch
45
+
46
+ Prerequisites: not on master
47
+
48
+ #### Update projects
49
+
50
+ `aw up` / `autowow update_projects`
51
+
52
+ * Updates local repositories
53
+ * Updates remote forks
54
+ * Searches for repositories on paths: `.`, `./*/`
55
+
56
+ Prerequisites: no uncommitted changes on master
57
+
58
+ #### Clear branches
59
+
60
+ `aw cb` / `autowow clear_branches`
61
+
62
+ * Removes branches without not pushed changes
63
+ * Keeps current and master branches
64
+
65
+ #### Add upstream
66
+
67
+ `aw au` / `autowow add_upstream`
68
+
69
+ * Adds parent repository as remote 'upstream'
70
+
71
+ Prerequisites: doesn't have remote called 'upstream'
72
+
73
+ #### Hi
74
+
75
+ `aw hi` / `autowow hi`
76
+
77
+ Day starter routine
78
+
79
+ * Updates projects (runs 'Update projects')
80
+ * Shows latest and deprecated repos
81
+ * Shows deprecated Ruby versions
82
+
83
+ Prerequisites: in a directory that contains git repos, not in the repo itself
84
+
85
+ #### Hi!
86
+
87
+ `aw hi!` / `autowow hi!`
88
+
89
+ Day starter routine for a new start
90
+
91
+ * Runs 'Add upstream' and 'Clear branches' for all projects
92
+ * Runs 'Hi'
93
+
94
+ #### Open
95
+
96
+ `aw open` / `autowow open`
97
+
98
+ * Opens project in browser
99
+
100
+ ### Gem
101
+
102
+ #### Gem release
103
+
104
+ `aw grls` / `autowow gem_release`
105
+
106
+ * Rebases `release` branch to master
107
+ * Releases gem via `rake release`
108
+
109
+ Prerequisites: on master
110
+
111
+ #### Gem clean
112
+
113
+ `aw gc` / `autowow gem_clean`
114
+
115
+ * Removes unused gems
116
+
117
+ #### Rubocop parallel autocorrect
118
+
119
+ `aw rpa` / `autowow rubocop_parallel_autocorrect`
120
+
121
+ * Runs `rubocop` in parallel mode, autocorrects offenses on single thread
122
+
123
+ #### Bundle exec
124
+
125
+ `aw be <cmd>` / `autowow bundle_exec <cmd>`
126
+
127
+ * Runs `cmd` with `bundle exec` prefixed
128
+
129
+ ### Ruby
130
+
131
+ #### Ruby versions
132
+
133
+ `aw rv` / `autowow ruby_versions`
134
+
135
+ * Shows Ruby versions in use
136
+ * Searches for repositories on paths: `.`, `./*/`
137
+
138
+ ### Misc
139
+
140
+ #### Execute
141
+
142
+ `aw e` / `autowow execute`
143
+
144
+ * Executes given command
145
+
146
+ ## Feedback
147
+
148
+ Any feedback is much appreciated.
149
+
150
+ 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.
151
+
152
+ Please let me know if you make use of this project so that I can prioritize further efforts.
153
+
154
+ ## Conventions
155
+
156
+ This gem is developed using the following conventions:
157
+ - [Bundler's guide for developing a gem](http://bundler.io/v1.14/guides/creating_gem.html)
158
+ - [Better Specs](http://www.betterspecs.org/)
159
+ - [Semantic versioning](http://semver.org/)
160
+ - [RubyGems' guide on gem naming](http://guides.rubygems.org/name-your-gem/)
161
+ - [RFC memo about key words used to Indicate Requirement Levels](https://tools.ietf.org/html/rfc2119)
162
+ - [Bundler improvements](https://github.com/thisismydesign/bundler-improvements)
163
+ - [Minimal dependencies](http://www.mikeperham.com/2016/02/09/kill-your-dependencies/)
164
+
165
+ ## Contributing
166
+
167
+ Bug reports and pull requests are welcome on GitHub at https://github.com/thisismydesign/autowow.
168
+
169
+ ## License
170
+
171
+ The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).