autowow 0.12.1 → 0.13.0

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
- SHA1:
3
- metadata.gz: 0e9771b9df3559ae80cea07c3ab87b54a2da034b
4
- data.tar.gz: a307fed1c41d0d447c1c7211d46f89a70c8bb3e8
2
+ SHA256:
3
+ metadata.gz: 912de8e631e03838c8f4f8907cf599735be65917531f5c6ad93cb4f587fa09a3
4
+ data.tar.gz: 41c3b535ad67b65e9902da76dac75fe1a5d55a533e9d11362971044a72796740
5
5
  SHA512:
6
- metadata.gz: 841b7d90c481de5276730b0477509ef8acddf96ced066deb05f0638cf880cc75bfa2d7a51149224348d27f8c4b57826fa2d057fb4670466c9ab8ddff7d00360f
7
- data.tar.gz: 07b68d06c4149b33e0ba2765bc983330e76db45a439de223c316025c1554b50e838768f4532a4c3e25a2c01b5b5b24f02742892fa663ed11be8f1c2feed47583
6
+ metadata.gz: 56d00e6d66bb146f870b4a2be9d87094bf3f6a4c91710d15d61ad36ffdddd16421b4b1badfa43b0fb56b4344965b63f2bb7ee576408cfc2da21361112c3095f6
7
+ data.tar.gz: f12245ee08ab12297ba0f0c9c70c8b07f1a6fb297c2a8e7b38a5170369f1b48489194b07205d51a5c0f8474c7b7b9122e5aa5e90be9d87d44f11d73b3b1050a8
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,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
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 "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
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,179 +1,188 @@
1
- # Autowow
2
-
3
- #### Set of commands to [auto]mate [w]ay [o]f [w]orking
4
-
5
- <!--- Version informartion -->
6
- *You are viewing the README of version [v0.12.0](https://github.com/thisismydesign/autowow/releases/tag/v0.12.0). You can find other releases [here](https://github.com/thisismydesign/autowow/releases).*
7
- <!--- Version informartion end -->
8
-
9
- | Branch | Status |
10
- | ------ | ------ |
11
- | 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) |
12
- | 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) |
13
-
14
- ## Usage
15
-
16
- Install from source as `rake install`.
17
-
18
- Run `autowow` or `aw` to see available commands.
19
-
20
- *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.*
21
-
22
- ## Commands
23
-
24
- Commands in general
25
- * start by outputting the status before execution
26
- * end by outputting the status after execution
27
- * are safe
28
- * only touch files via other commands (e.g. `git`)
29
- * do not cause conflicted state
30
- * hard check for prerequisites
31
- * store and restore uncommitted changes
32
- * output executed commands that cause any change
33
- * execute in current directory
34
- * retain original output color
35
-
36
- ### VCS
37
-
38
- Commands related to version control systems.
39
- Currently only Git and the GitHub API are supported.
40
-
41
- #### Branch merged
42
-
43
- `aw bm` / `autowow branch_merged`
44
-
45
- * Switches to master and pulls your merged changes
46
- * Removes local working branch
47
-
48
- Prerequisites: not on master
49
-
50
- #### Update projects
51
-
52
- `aw up` / `autowow update_projects`
53
-
54
- * Updates local repositories
55
- * Updates remote forks
56
- * Searches for repositories on paths: `.`, `./*/`
57
-
58
- Prerequisites: no uncommitted changes on master
59
-
60
- #### Clear branches
61
-
62
- `aw cb` / `autowow clear_branches`
63
-
64
- * Removes branches without not pushed changes
65
- * Keeps current and master branches
66
-
67
- #### Add upstream
68
-
69
- `aw au` / `autowow add_upstream`
70
-
71
- * Adds parent repository as remote 'upstream'
72
-
73
- Prerequisites: doesn't have remote called 'upstream'
74
-
75
- #### Hi
76
-
77
- `aw hi` / `autowow hi`
78
-
79
- Day starter routine
80
-
81
- * Updates projects (runs 'Update projects')
82
- * Shows latest and deprecated repos
83
- * Shows deprecated Ruby versions
84
-
85
- Prerequisites: in a directory that contains git repos, not in the repo itself
86
-
87
- #### Hi!
88
-
89
- `aw hi!` / `autowow hi!`
90
-
91
- Day starter routine for a new start
92
-
93
- * Runs 'Add upstream' and 'Clear branches' for all projects
94
- * Runs 'Hi'
95
-
96
- #### Open
97
-
98
- `aw open` / `autowow open`
99
-
100
- * Opens project in browser
101
-
102
- ### Gem
103
-
104
- #### Gem release
105
-
106
- `aw grls` / `autowow gem_release`
107
-
108
- * Pulls chnages on `master`
109
- * If [version parameter](https://github.com/svenfuchs/gem-release#options-1) is provided
110
- * Bumps version in version.rb
111
- * Bumps version information in README if present
112
- * Commits and pushed changes to `master`
113
- * Rebases `release` branch to master
114
- * Releases gem via `rake release`
115
- * Changes version information to development in README if present
116
-
117
- Prerequisites: on master
118
-
119
- #### Gem clean
120
-
121
- `aw gc` / `autowow gem_clean`
122
-
123
- * Removes unused gems
124
-
125
- #### Rubocop parallel autocorrect
126
-
127
- `aw rpa` / `autowow rubocop_parallel_autocorrect`
128
-
129
- * Runs `rubocop` in parallel mode, autocorrects offenses on single thread
130
-
131
- #### Bundle exec
132
-
133
- `aw be <cmd>` / `autowow bundle_exec <cmd>`
134
-
135
- * Runs `cmd` with `bundle exec` prefixed
136
-
137
- ### Ruby
138
-
139
- #### Ruby versions
140
-
141
- `aw rv` / `autowow ruby_versions`
142
-
143
- * Shows Ruby versions in use
144
- * Searches for repositories on paths: `.`, `./*/`
145
-
146
- ### Misc
147
-
148
- #### Execute
149
-
150
- `aw e` / `autowow execute`
151
-
152
- * Executes given command
153
-
154
- ## Feedback
155
-
156
- Any feedback is much appreciated.
157
-
158
- 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.
159
-
160
- Please let me know if you make use of this project so that I can prioritize further efforts.
161
-
162
- ## Conventions
163
-
164
- This gem is developed using the following conventions:
165
- - [Bundler's guide for developing a gem](http://bundler.io/v1.14/guides/creating_gem.html)
166
- - [Better Specs](http://www.betterspecs.org/)
167
- - [Semantic versioning](http://semver.org/)
168
- - [RubyGems' guide on gem naming](http://guides.rubygems.org/name-your-gem/)
169
- - [RFC memo about key words used to Indicate Requirement Levels](https://tools.ietf.org/html/rfc2119)
170
- - [Bundler improvements](https://github.com/thisismydesign/bundler-improvements)
171
- - [Minimal dependencies](http://www.mikeperham.com/2016/02/09/kill-your-dependencies/)
172
-
173
- ## Contributing
174
-
175
- Bug reports and pull requests are welcome on GitHub at https://github.com/thisismydesign/autowow.
176
-
177
- ## License
178
-
179
- 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
+ <!--- Version informartion -->
6
+ *You are viewing the README of version [v0.13.0](https://github.com/thisismydesign/autowow/releases/tag/v0.13.0). You can find other releases [here](https://github.com/thisismydesign/autowow/releases).*
7
+ <!--- Version informartion end -->
8
+
9
+ | Branch | Status |
10
+ | ------ | ------ |
11
+ | 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) |
12
+ | 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) |
13
+
14
+ ## Disclaimer
15
+
16
+ Commands are purposefully opinionated. Use it on your own responsibility.
17
+
18
+ ## Usage
19
+
20
+ Install from source as `rake install`.
21
+
22
+ Run `autowow` or `aw` to see available commands.
23
+
24
+ ## Commands
25
+
26
+ Commands in general
27
+ * start by outputting the status before execution
28
+ * end by outputting the status after execution
29
+ * are safe
30
+ * only touch files via other commands (e.g. `git`)
31
+ * do not cause conflicted state
32
+ * hard check for prerequisites
33
+ * store and restore uncommitted changes
34
+ * output executed commands that cause any change
35
+ * execute in current directory
36
+ * retain original output color
37
+
38
+ ### VCS
39
+
40
+ Commands related to version control systems.
41
+ Currently only Git and the GitHub API are supported.
42
+
43
+ #### Branch merged
44
+
45
+ `aw bm` / `autowow branch_merged`
46
+
47
+ * Switches to master and pulls your merged changes
48
+ * Removes local working branch
49
+
50
+ Prerequisites: not on master
51
+
52
+ #### Update projects
53
+
54
+ `aw up` / `autowow update_projects`
55
+
56
+ * Updates local repositories
57
+ * Updates remote forks
58
+ * Searches for repositories on paths: `.`, `./*/`
59
+
60
+ Prerequisites: no uncommitted changes on master
61
+
62
+ #### Clear branches
63
+
64
+ `aw cb` / `autowow clear_branches`
65
+
66
+ * Removes branches without not pushed changes
67
+ * Keeps current and master branches
68
+
69
+ #### Add upstream
70
+
71
+ `aw au` / `autowow add_upstream`
72
+
73
+ * Adds parent repository as remote 'upstream'
74
+
75
+ Prerequisites: doesn't have remote called 'upstream'
76
+
77
+ #### Hi
78
+
79
+ `aw hi` / `autowow hi`
80
+
81
+ Day starter routine
82
+
83
+ * Updates projects (runs 'Update projects')
84
+ * Shows latest and deprecated repos
85
+ * Shows deprecated Ruby versions
86
+
87
+ Prerequisites: in a directory that contains git repos, not in the repo itself
88
+
89
+ #### Hi!
90
+
91
+ `aw hi!` / `autowow hi!`
92
+
93
+ Day starter routine for a new start
94
+
95
+ * Runs 'Add upstream' and 'Clear branches' for all projects
96
+ * Runs 'Hi'
97
+
98
+ #### Open
99
+
100
+ `aw open` / `autowow open`
101
+
102
+ * Opens project in browser
103
+
104
+ #### Force pull
105
+
106
+ `aw fp` / `autowow force_pull`
107
+
108
+ * Runs `git fetch --all`
109
+ * Runs `git reset --hard origin/<current_branch_name>`
110
+
111
+ ### Gem
112
+
113
+ #### Gem release
114
+
115
+ `aw grls` / `autowow gem_release`
116
+
117
+ * Pulls chnages on `master`
118
+ * If [version parameter](https://github.com/svenfuchs/gem-release#options-1) is provided
119
+ * Bumps version in version.rb
120
+ * Bumps version information in README if present
121
+ * Commits and pushed changes to `master`
122
+ * Rebases `release` branch to master
123
+ * Releases gem via `rake release`
124
+ * Changes version information to development in README if present
125
+
126
+ Prerequisites: on master
127
+
128
+ #### Gem clean
129
+
130
+ `aw gc` / `autowow gem_clean`
131
+
132
+ * Removes unused gems
133
+
134
+ #### Rubocop parallel autocorrect
135
+
136
+ `aw rpa` / `autowow rubocop_parallel_autocorrect`
137
+
138
+ * Runs `rubocop` in parallel mode, autocorrects offenses on single thread
139
+
140
+ #### Bundle exec
141
+
142
+ `aw be <cmd>` / `autowow bundle_exec <cmd>`
143
+
144
+ * Runs `cmd` with `bundle exec` prefixed
145
+
146
+ ### Ruby
147
+
148
+ #### Ruby versions
149
+
150
+ `aw rv` / `autowow ruby_versions`
151
+
152
+ * Shows Ruby versions in use
153
+ * Searches for repositories on paths: `.`, `./*/`
154
+
155
+ ### Misc
156
+
157
+ #### Execute
158
+
159
+ `aw e` / `autowow execute`
160
+
161
+ * Executes given command
162
+
163
+ ## Feedback
164
+
165
+ Any feedback is much appreciated.
166
+
167
+ 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.
168
+
169
+ Please let me know if you make use of this project so that I can prioritize further efforts.
170
+
171
+ ## Conventions
172
+
173
+ This gem is developed using the following conventions:
174
+ - [Bundler's guide for developing a gem](http://bundler.io/v1.14/guides/creating_gem.html)
175
+ - [Better Specs](http://www.betterspecs.org/)
176
+ - [Semantic versioning](http://semver.org/)
177
+ - [RubyGems' guide on gem naming](http://guides.rubygems.org/name-your-gem/)
178
+ - [RFC memo about key words used to Indicate Requirement Levels](https://tools.ietf.org/html/rfc2119)
179
+ - [Bundler improvements](https://github.com/thisismydesign/bundler-improvements)
180
+ - [Minimal dependencies](http://www.mikeperham.com/2016/02/09/kill-your-dependencies/)
181
+
182
+ ## Contributing
183
+
184
+ Bug reports and pull requests are welcome on GitHub at https://github.com/thisismydesign/autowow.
185
+
186
+ ## License
187
+
188
+ The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).