autowow 0.8.1 → 0.9.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +31 -3
- data/lib/autowow/cli.rb +6 -0
- data/lib/autowow/features/gem.rb +4 -0
- data/lib/autowow/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: '08eb284c3614b5c18abb9e7200f75db6d0ec725443bcc59d5b677e3e8abfa437'
|
4
|
+
data.tar.gz: 06fed009a69139fa573c200b7c4b757deb892c4f685f0142e6f0ed00f186431c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 28541f796749102f4960fd731516dd222dedf8531af5277991f177f247c6781e1f9f3e9d228250b9f31364c9fd522cfb3211a25970724b5a23904fca5516c86f
|
7
|
+
data.tar.gz: 80a07a619ba6829d7f717ef2d9aa5bd1da9923c3042e26bc1ee124cb948e9cda50c3b613529351c76028e783d4b635749cde16d5a6d4adfb391cf2d0c9f9db52
|
data/README.md
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
# Autowow
|
2
2
|
|
3
|
-
#### Set of commands to
|
3
|
+
#### Set of commands to [auto]mate [w]ay [o]f [w]orking
|
4
4
|
|
5
|
-
*You are viewing the README of version [v0.
|
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
6
|
|
7
7
|
| Branch | Status |
|
8
8
|
| ------ | ------ |
|
@@ -38,6 +38,8 @@ Currently only Git and the GitHub API are supported.
|
|
38
38
|
|
39
39
|
#### Branch merged
|
40
40
|
|
41
|
+
`aw bm` / `autowow branch_merged`
|
42
|
+
|
41
43
|
* Switches to master and pulls your merged changes
|
42
44
|
* Removes local working branch
|
43
45
|
|
@@ -45,6 +47,8 @@ Prerequisites: not on master
|
|
45
47
|
|
46
48
|
#### Update projects
|
47
49
|
|
50
|
+
`aw up` / `autowow update_projects`
|
51
|
+
|
48
52
|
* Updates local repositories
|
49
53
|
* Updates remote forks
|
50
54
|
* Searches for repositories on paths: `.`, `./*/`
|
@@ -53,17 +57,23 @@ Prerequisites: no uncommitted changes on master
|
|
53
57
|
|
54
58
|
#### Clear branches
|
55
59
|
|
60
|
+
`aw cb` / `autowow clear_branches`
|
61
|
+
|
56
62
|
* Removes branches without not pushed changes
|
57
63
|
* Keeps current and master branches
|
58
64
|
|
59
65
|
#### Add upstream
|
60
66
|
|
67
|
+
`aw au` / `autowow add_upstream`
|
68
|
+
|
61
69
|
* Adds parent repository as remote 'upstream'
|
62
70
|
|
63
71
|
Prerequisites: doesn't have remote called 'upstream'
|
64
72
|
|
65
73
|
#### Hi
|
66
74
|
|
75
|
+
`aw hi` / `autowow hi`
|
76
|
+
|
67
77
|
Day starter routine
|
68
78
|
|
69
79
|
* Updates projects (runs 'Update projects')
|
@@ -74,6 +84,8 @@ Prerequisites: in a directory that contains git repos, not in the repo itself
|
|
74
84
|
|
75
85
|
#### Hi!
|
76
86
|
|
87
|
+
`aw hi!` / `autowow hi!`
|
88
|
+
|
77
89
|
Day starter routine for a new start
|
78
90
|
|
79
91
|
* Runs 'Add upstream' and 'Clear branches' for all projects
|
@@ -81,12 +93,16 @@ Day starter routine for a new start
|
|
81
93
|
|
82
94
|
#### Open
|
83
95
|
|
96
|
+
`aw open` / `autowow open`
|
97
|
+
|
84
98
|
* Opens project in browser
|
85
99
|
|
86
100
|
### Gem
|
87
101
|
|
88
102
|
#### Gem release
|
89
103
|
|
104
|
+
`aw grls` / `autowow gem_release`
|
105
|
+
|
90
106
|
* Rebases `release` branch to master
|
91
107
|
* Releases gem via `rake release`
|
92
108
|
|
@@ -94,18 +110,28 @@ Prerequisites: on master
|
|
94
110
|
|
95
111
|
#### Gem clean
|
96
112
|
|
113
|
+
`aw gc` / `autowow gem_clean`
|
114
|
+
|
97
115
|
* Removes unused gems
|
98
116
|
|
99
117
|
#### Rubocop parallel autocorrect
|
100
118
|
|
101
|
-
`aw rpa` / `
|
119
|
+
`aw rpa` / `autowow rubocop_parallel_autocorrect`
|
102
120
|
|
103
121
|
* Runs `rubocop` in parallel mode, autocorrects offenses on single thread
|
104
122
|
|
123
|
+
#### Bundle exec
|
124
|
+
|
125
|
+
`aw be <cmd>` / `autowow bundle_exec <cmd>`
|
126
|
+
|
127
|
+
* Runs `cmd` with `bundle exec` prefixed
|
128
|
+
|
105
129
|
### Ruby
|
106
130
|
|
107
131
|
#### Ruby versions
|
108
132
|
|
133
|
+
`aw rv` / `autowow ruby_versions`
|
134
|
+
|
109
135
|
* Shows Ruby versions in use
|
110
136
|
* Searches for repositories on paths: `.`, `./*/`
|
111
137
|
|
@@ -113,6 +139,8 @@ Prerequisites: on master
|
|
113
139
|
|
114
140
|
#### Execute
|
115
141
|
|
142
|
+
`aw e` / `autowow execute`
|
143
|
+
|
116
144
|
* Executes given command
|
117
145
|
|
118
146
|
## Feedback
|
data/lib/autowow/cli.rb
CHANGED
@@ -22,6 +22,7 @@ module Autowow
|
|
22
22
|
map %w[rv] => :ruby_versions
|
23
23
|
map %w[gr] => :greet
|
24
24
|
map %w[rpa] => :rubocop_parallel_autocorrect
|
25
|
+
map %w[be] => :bundle_exec
|
25
26
|
|
26
27
|
desc "branch_merged", "clean working branch and return to master"
|
27
28
|
def branch_merged
|
@@ -87,5 +88,10 @@ module Autowow
|
|
87
88
|
def exec(*cmd)
|
88
89
|
Autowow::Executor.pretty_with_output.run(cmd)
|
89
90
|
end
|
91
|
+
|
92
|
+
desc "bundle_exec", "runs command with `bundle exec` prefixed"
|
93
|
+
def bundle_exec(*cmd)
|
94
|
+
Autowow::Features::Gem.bundle_exec(cmd)
|
95
|
+
end
|
90
96
|
end
|
91
97
|
end
|
data/lib/autowow/features/gem.rb
CHANGED
data/lib/autowow/version.rb
CHANGED