autowow 0.16.1 → 0.17.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.
- checksums.yaml +4 -4
- data/README.md +16 -18
- data/doc/dbmr.md +26 -0
- data/doc/gis.md +1 -1
- data/doc/rc.md +21 -2
- data/lib/autowow/cli.rb +4 -4
- data/lib/autowow/commands/gem.rb +2 -2
- data/lib/autowow/features/gem.rb +4 -2
- data/lib/autowow/version.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: '028d7ff1b4fcdd890978484a8d044c0539c62dcce0e7275b93dddeb350044526'
|
4
|
+
data.tar.gz: e06ce04ea284ddec49a5254d029e8ee48491d7e0defca0e298b413e8dc4cb14e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 77a73ffb4cacafec215d7bf1001f5d4cda94dbe2a72820e9b508c8ad7f43573cf08e40d4f674dbedccaf025db1620ee523ef8503a2dfdaf115232f954c9d1394
|
7
|
+
data.tar.gz: c760df4e2434e13b6d4cf45ca469f4600f6940215d5fdb14aac72370334e32a1624ad2e20db859653b4ca12b811662f44821df1f252e2c7d84ad2e97680d5b16
|
data/README.md
CHANGED
@@ -2,8 +2,14 @@
|
|
2
2
|
|
3
3
|
#### Set of commands to [auto]mate [w]ay [o]f [w]orking
|
4
4
|
|
5
|
+
Status and support
|
6
|
+
|
7
|
+
- ✔ stable
|
8
|
+
- ✔ supported
|
9
|
+
- ✔ ongoing development
|
10
|
+
|
5
11
|
<!--- Version informartion -->
|
6
|
-
*You are viewing the README of version [v0.
|
12
|
+
*You are viewing the README of version [v0.17.0](https://github.com/thisismydesign/autowow/releases/tag/v0.17.0). You can find other releases [here](https://github.com/thisismydesign/autowow/releases).*
|
7
13
|
<!--- Version informartion end -->
|
8
14
|
|
9
15
|
| Branch | Status |
|
@@ -125,6 +131,11 @@ Day starter routine for a new start
|
|
125
131
|
- `autowow gem_install_local`
|
126
132
|
- [doc](doc/gis.md)
|
127
133
|
|
134
|
+
- DB migrate reset
|
135
|
+
- `aw dbmr`
|
136
|
+
- `autowow db_migrate_reset`
|
137
|
+
- [doc](doc/dbmr.md)
|
138
|
+
|
128
139
|
#### Gem clean
|
129
140
|
|
130
141
|
`aw gc` / `autowow gem_clean`
|
@@ -160,28 +171,15 @@ Day starter routine for a new start
|
|
160
171
|
|
161
172
|
* Executes given command
|
162
173
|
|
163
|
-
##
|
174
|
+
## Contribution and feedback
|
164
175
|
|
165
|
-
|
176
|
+
This project is built around known use-cases. If you have one that isn't covered don't hesitate to open an issue and start a discussion.
|
166
177
|
|
167
|
-
|
168
|
-
|
169
|
-
Please let me know if you make use of this project so that I can prioritize further efforts.
|
178
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/thisismydesign/autowow. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
|
170
179
|
|
171
180
|
## Conventions
|
172
181
|
|
173
|
-
This
|
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.
|
182
|
+
This project follows [C-Hive guides](https://github.com/c-hive/guides) for code style, way of working and other development concerns.
|
185
183
|
|
186
184
|
## License
|
187
185
|
|
data/doc/dbmr.md
ADDED
@@ -0,0 +1,26 @@
|
|
1
|
+
# Gem install source
|
2
|
+
|
3
|
+
* `aw dbmr`
|
4
|
+
* `autowow db_migrate_reset`
|
5
|
+
|
6
|
+
----
|
7
|
+
|
8
|
+
* `DISABLE_DATABASE_ENVIRONMENT_CHECK=1 bundle exec rake db:migrate:reset`
|
9
|
+
|
10
|
+
----
|
11
|
+
|
12
|
+
```
|
13
|
+
$ aw dbmr
|
14
|
+
[4b0d49ad] Running DISABLE_DATABASE_ENVIRONMENT_CHECK=1 bundle exec rake db:migrate:reset
|
15
|
+
[4b0d49ad] Dropped database 'dev'
|
16
|
+
[4b0d49ad] Dropped database 'test'
|
17
|
+
[4b0d49ad] Created database 'dev'
|
18
|
+
[4b0d49ad] Created database 'test'
|
19
|
+
[4b0d49ad] == 20190201144442 CreateUser: migrating =======================================
|
20
|
+
[4b0d49ad] -- create_table(:users, {})
|
21
|
+
[4b0d49ad] -> 0.0136s
|
22
|
+
[4b0d49ad] == 20190201144442 CreateUser: migrated (0.0138s) ==============================
|
23
|
+
[4b0d49ad]
|
24
|
+
[4b0d49ad] Model files unchanged.
|
25
|
+
[4b0d49ad] Finished in 1.726 seconds with exit status 0 (successful)
|
26
|
+
```
|
data/doc/gis.md
CHANGED
data/doc/rc.md
CHANGED
@@ -7,6 +7,8 @@
|
|
7
7
|
|
8
8
|
* `autowow rubocop_parallel_autocorrect`
|
9
9
|
* `bundle exec rspec`
|
10
|
+
* `autowow db_migrate_reset`
|
11
|
+
* `bundle exec rake db:seed`
|
10
12
|
|
11
13
|
----
|
12
14
|
|
@@ -28,10 +30,27 @@ $ aw ruby_check
|
|
28
30
|
[1df429e3] Coverage report generated for RSpec to /home/csaba/workspace/autowow/coverage. 744 / 765 LOC (97.25%) covered.
|
29
31
|
[1df429e3] Finished in 14.178 seconds with exit status 0 (successful)
|
30
32
|
|
33
|
+
[4b0d49ad] Running DISABLE_DATABASE_ENVIRONMENT_CHECK=1 bundle exec rake db:migrate:reset
|
34
|
+
[4b0d49ad] Dropped database 'dev'
|
35
|
+
[4b0d49ad] Dropped database 'test'
|
36
|
+
[4b0d49ad] Created database 'dev'
|
37
|
+
[4b0d49ad] Created database 'test'
|
38
|
+
[4b0d49ad] == 20190201144442 CreateUser: migrating =======================================
|
39
|
+
[4b0d49ad] -- create_table(:users, {})
|
40
|
+
[4b0d49ad] -> 0.0136s
|
41
|
+
[4b0d49ad] == 20190201144442 CreateUser: migrated (0.0138s) ==============================
|
42
|
+
[4b0d49ad]
|
43
|
+
[4b0d49ad] Model files unchanged.
|
44
|
+
[4b0d49ad] Finished in 1.726 seconds with exit status 0 (successful)
|
45
|
+
|
46
|
+
[26db2b86] Running bundle exec rake db:seed
|
47
|
+
[26db2b86] Model files unchanged.
|
48
|
+
[26db2b86] Finished in 9.334 seconds with exit status 0 (successful)
|
49
|
+
|
31
50
|
[2c0c4af3] Running git status
|
32
51
|
[2c0c4af3] 231 files inspected, no offenses detected
|
33
|
-
[2c0c4af3] On branch
|
34
|
-
[2c0c4af3] Your branch is up to date with 'origin/
|
52
|
+
[2c0c4af3] On branch master
|
53
|
+
[2c0c4af3] Your branch is up to date with 'origin/master'.
|
35
54
|
[2c0c4af3]
|
36
55
|
[2c0c4af3] nothing to commit, working tree clean
|
37
56
|
[2c0c4af3] Finished in 0.005 seconds with exit status 0 (successful)
|
data/lib/autowow/cli.rb
CHANGED
@@ -24,7 +24,7 @@ module Autowow
|
|
24
24
|
map %w[gr] => :greet
|
25
25
|
map %w[rpa] => :rubocop_parallel_autocorrect
|
26
26
|
map %w[be] => :bundle_exec
|
27
|
-
map %w[
|
27
|
+
map %w[dbmr] => :db_migrate_reset
|
28
28
|
map %w[dbsch] => :db_schema
|
29
29
|
map %w[dbstr] => :db_structure
|
30
30
|
map %w[fp] => :force_pull
|
@@ -101,9 +101,9 @@ module Autowow
|
|
101
101
|
Autowow::Features::Gem.bundle_exec(cmd)
|
102
102
|
end
|
103
103
|
|
104
|
-
desc "
|
105
|
-
def
|
106
|
-
Autowow::Features::Gem.
|
104
|
+
desc "db_migrate_reset", "drops and sets up DB via migration"
|
105
|
+
def db_migrate_reset
|
106
|
+
Autowow::Features::Gem.db_migrate_reset
|
107
107
|
end
|
108
108
|
|
109
109
|
desc "db_schema", "drops and sets up DB via loading schema"
|
data/lib/autowow/commands/gem.rb
CHANGED
@@ -44,8 +44,8 @@ module Autowow
|
|
44
44
|
be + ["rake"]
|
45
45
|
end
|
46
46
|
|
47
|
-
def
|
48
|
-
["DISABLE_DATABASE_ENVIRONMENT_CHECK=1"] + rake + ["db:
|
47
|
+
def rake_db_migrate_reset
|
48
|
+
["DISABLE_DATABASE_ENVIRONMENT_CHECK=1"] + rake + ["db:migrate:reset"]
|
49
49
|
end
|
50
50
|
|
51
51
|
def rake_db_schema
|
data/lib/autowow/features/gem.rb
CHANGED
@@ -77,6 +77,8 @@ module Autowow
|
|
77
77
|
def ruby_check
|
78
78
|
rubocop_parallel_autocorrect
|
79
79
|
bundle_exec(["rspec"])
|
80
|
+
db_migrate_reset
|
81
|
+
pretty_with_output.run(rake + ["db:seed"])
|
80
82
|
pretty_with_output.run(git_status)
|
81
83
|
end
|
82
84
|
|
@@ -85,8 +87,8 @@ module Autowow
|
|
85
87
|
pretty_with_output.run("gem install *.gem")
|
86
88
|
end
|
87
89
|
|
88
|
-
def
|
89
|
-
pretty_with_output.run(
|
90
|
+
def db_migrate_reset
|
91
|
+
pretty_with_output.run(rake_db_migrate_reset)
|
90
92
|
end
|
91
93
|
|
92
94
|
def db_schema
|
data/lib/autowow/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: autowow
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.17.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- thisismydesign
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-06-
|
11
|
+
date: 2019-06-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: easy_logging
|
@@ -271,6 +271,7 @@ files:
|
|
271
271
|
- bin/aw
|
272
272
|
- bin/console
|
273
273
|
- bin/setup
|
274
|
+
- doc/dbmr.md
|
274
275
|
- doc/gis.md
|
275
276
|
- doc/grls.md
|
276
277
|
- doc/rc.md
|