mobile_workflow_cli 0.1.0 → 0.1.1

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
  SHA256:
3
- metadata.gz: a607d960e964bcf728fc65d5a7dccd77fcf08104795162bcae0fd70b40388b72
4
- data.tar.gz: 53a051164d56c0ac2f7657fd2ba9f8cab954abe00a39697d0b7cbf80e3543fd3
3
+ metadata.gz: 14eadecdf65029000c8a7fee3e1a5ac7d2f94c0f855fd6f20a163a5f98376647
4
+ data.tar.gz: 18aa7a950972b919664664e6e9fcceff25930ec769f95eda5aa5956b8f07c996
5
5
  SHA512:
6
- metadata.gz: 779afd9ff5f88425498e69b17389ab84b93887b25848ffb88266719d17df0f08c9de2258fc9b9cc68c7f00cafc638ec55312c107ec4e7507e4a183a35f31450d
7
- data.tar.gz: 0e0c41293f094c7f19364376a1ebefbb996ec7c035f689f02c91a5e313f6f7a5de19247b9363e07d5d2e1ef77664aaa29253faf907689adf225476f4e2d3eb24
6
+ metadata.gz: d3da9a2036e2e6a15fb39d8b829e86609876cd43f75e27cadf58f9fc072dc81e85dbef35e9e3507073979edd08061d0eacfe3d4f82a152e2c542352664762060
7
+ data.tar.gz: 78a427c0e21f31f9c8fbb15cf7cc749184634e7691e379a8bd47566a7019d4bd1bd96b2f3767105910028e5cc758a35c82578869f1a7925be30b881e2a618e74
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- mobile_workflow_cli (0.1.0)
4
+ mobile_workflow_cli (0.1.1)
5
5
  administrate
6
6
  rails (>= 6.0.0)
7
7
 
@@ -21,21 +21,22 @@ module MobileWorkflowCli
21
21
  end
22
22
 
23
23
  def finish_template
24
+ run "spring stop"
24
25
  open_api_spec = read_openapi_spec
25
26
  generate_models(open_api_spec)
26
27
  setup_db
27
- generate_administrate
28
28
  generate_base_api_controller(open_api_spec)
29
29
  generate_controllers_and_routes(open_api_spec)
30
30
  generate_procfile
31
-
32
31
  admin_user = 'admin'
33
32
  admin_password = SecureRandom.base64(12)
34
33
  generate_dot_env(admin_user, admin_password)
35
34
  super
36
-
37
- initial_git_commit
38
- deploy_heroku(admin_user, admin_password) if options[:heroku]
35
+ after_bundle do
36
+ generate_administrate
37
+ initial_git_commit
38
+ deploy_heroku(admin_user, admin_password) if options[:heroku]
39
+ end
39
40
  end
40
41
 
41
42
  protected
@@ -54,7 +55,7 @@ module MobileWorkflowCli
54
55
  end
55
56
 
56
57
  def generate_administrate
57
- generate('administrate:install')
58
+ generate 'administrate:install'
58
59
  file 'app/assets/config/manifest.js', <<-CODE
59
60
  //= link administrate/application.css
60
61
  //= link administrate/application.js
@@ -115,9 +116,9 @@ module MobileWorkflowCli
115
116
  end
116
117
 
117
118
  def setup_db
118
- rails_command("db:drop")
119
- rails_command("db:create")
120
- rails_command("db:migrate")
119
+ rails_command "db:drop"
120
+ rails_command "db:create"
121
+ rails_command "db:migrate"
121
122
  end
122
123
 
123
124
  def generate_procfile
@@ -1,5 +1,5 @@
1
1
  module MobileWorkflowCli
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  RUBY_VERSION = '2.5.5'
4
4
  RAILS_VERSION = '6.0.0'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mobile_workflow_cli
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matt Brooke-Smith