autowow 0.11.2 → 0.12.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 07166961da9377493e9f40c08c9db8c7c81dcecc
4
- data.tar.gz: e5c3ef4a146f6a23d09f39b5f0c7b5f95e674ff0
3
+ metadata.gz: bf31a0f3865413f5ed9787576ac513160c563d2f
4
+ data.tar.gz: 176ece3b3821556fbd2d208502e7603543d7b2bb
5
5
  SHA512:
6
- metadata.gz: 3bb8164ec166555ec4a4e523932c296ad50964481599d73e3ede1796d80fb480254c41ff5514384fad46a7f8f9e57855c8bcd326c2f6636d254dd847b7163ed4
7
- data.tar.gz: c6001c3ac8c0f80c08f29ebd9f30cac86ce3713619f3e55e7f0411d01c595f0c80a29f6d69626ca5f4b4c50e3ca83414289e5be83b478a25757b87f60e7a05ea
6
+ metadata.gz: 2daa4a0a45cd0a82e0f1a342f794439e9174f57beff4ed11ac24b4ecd0aecd9d0eec8d1a6f391d751c7b1bb62fc55d578c19ded0e157a2e10d1563d640bb2b33
7
+ data.tar.gz: 03505f12795c5f1a78989df05aefeee3156760b421fe490d542c96f65f7876fa32b980af255be45f3e1def4d110fe9ffd43edab1ae19f7e80ccd8e59e89c16f8
data/README.md CHANGED
@@ -3,7 +3,7 @@
3
3
  #### Set of commands to [auto]mate [w]ay [o]f [w]orking
4
4
 
5
5
  <!--- Version informartion -->
6
- *You are viewing the README of version [v0.11.2](https://github.com/thisismydesign/autowow/releases/tag/v0.11.2). You can find other releases [here](https://github.com/thisismydesign/autowow/releases).*
6
+ *You are viewing the README of the development version. You can find the README of the latest release (v0.11.2) [here](https://github.com/thisismydesign/autowow/releases/tag/v0.11.2).*
7
7
  <!--- Version informartion end -->
8
8
 
9
9
  | Branch | Status |
@@ -23,6 +23,9 @@ module Autowow
23
23
  map %w[gr] => :greet
24
24
  map %w[rpa] => :rubocop_parallel_autocorrect
25
25
  map %w[be] => :bundle_exec
26
+ map %w[dbm] => :db_migrate
27
+ map %w[dbsch] => :db_schema
28
+ map %w[dbstr] => :db_structure
26
29
 
27
30
  desc "branch_merged", "clean working branch and return to master"
28
31
  def branch_merged
@@ -93,5 +96,20 @@ module Autowow
93
96
  def bundle_exec(*cmd)
94
97
  Autowow::Features::Gem.bundle_exec(cmd)
95
98
  end
99
+
100
+ desc "db_migrate", "sets up DB via migration"
101
+ def db_migrate
102
+ Autowow::Features::Gem.db_migrate
103
+ end
104
+
105
+ desc "db_schema", "sets up DB via loading schema"
106
+ def db_schema
107
+ Autowow::Features::Gem.db_schema
108
+ end
109
+
110
+ desc "db_structure", "sets up DB via loading structure"
111
+ def db_structure
112
+ Autowow::Features::Gem.db_structure
113
+ end
96
114
  end
97
115
  end
@@ -32,6 +32,22 @@ module Autowow
32
32
  ["bundle", "exec"]
33
33
  end
34
34
 
35
+ def rake
36
+ be + ["rake"]
37
+ end
38
+
39
+ def rake_db_migrate
40
+ ["DISABLE_DATABASE_ENVIRONMENT_CHECK=1"] + rake + ["db:drop", "db:create", "db:migrate"]
41
+ end
42
+
43
+ def rake_db_schema
44
+ ["DISABLE_DATABASE_ENVIRONMENT_CHECK=1"] + rake + ["db:drop", "db:create", "db:schema:load"]
45
+ end
46
+
47
+ def rake_db_structure
48
+ ["DISABLE_DATABASE_ENVIRONMENT_CHECK=1"] + rake + ["db:drop", "db:create", "db:structure:load"]
49
+ end
50
+
35
51
  include ReflectionUtils::CreateModuleFunctions
36
52
  end
37
53
  end
@@ -59,7 +59,19 @@ module Autowow
59
59
  end
60
60
 
61
61
  def bundle_exec(cmd)
62
- Autowow::Executor.pretty_with_output.run(["bundle", "exec"] + cmd)
62
+ pretty_with_output.run(["bundle", "exec"] + cmd)
63
+ end
64
+
65
+ def db_migrate
66
+ pretty_with_output.run(rake_db_migrate)
67
+ end
68
+
69
+ def db_schema
70
+ pretty_with_output.run(rake_db_schema)
71
+ end
72
+
73
+ def db_structure
74
+ pretty_with_output.run(rake_db_structure)
63
75
  end
64
76
 
65
77
  def bump_readme_version_information(version)
@@ -1,3 +1,3 @@
1
1
  module Autowow
2
- VERSION = "0.11.2"
2
+ VERSION = "0.12.0"
3
3
  end
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.11.2
4
+ version: 0.12.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - thisismydesign
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-06-10 00:00:00.000000000 Z
11
+ date: 2018-06-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: easy_logging