mobile_workflow_cli 0.1.2 → 0.1.3
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/Gemfile.lock +2 -2
- data/lib/mobile_workflow_cli/app_builder.rb +6 -6
- data/lib/mobile_workflow_cli/app_generator.rb +12 -16
- data/lib/mobile_workflow_cli/version.rb +1 -1
- data/templates/Gemfile.erb +47 -0
- data/templates/Procfile +2 -0
- data/templates/Procfile.dev +1 -0
- metadata +5 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 26d89f9b3fbeb44e3217e8df7ae498dccf67153683c9ae28feace983ba68531d
|
4
|
+
data.tar.gz: c5527c6ef4c1eb74a2f6a85cdb8fabd54133afa9203342005e0ba2715e4404dc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c31f5c0633b8c690f60d11b99f89faa4eb0d53c80a2c197888eafdf0a4d57307f2f6b75028d92aa4ec293fe3aaddc2c05b9ef958849cf4bb54f72e5bef996c0e
|
7
|
+
data.tar.gz: bd4245fdd9e1f4f85a16735cb9dc1ea8ad1cbdb4c89522ff66518af82ab4a972fc674b2b68fabeaf42e02ff44a0b6a56e32734a838ef282f7d1d01bd9bb8789c
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
mobile_workflow_cli (0.1.
|
4
|
+
mobile_workflow_cli (0.1.3)
|
5
5
|
administrate
|
6
6
|
rails (>= 6.0.0)
|
7
7
|
|
@@ -117,7 +117,7 @@ GEM
|
|
117
117
|
mimemagic (0.3.5)
|
118
118
|
mini_mime (1.0.2)
|
119
119
|
mini_portile2 (2.4.0)
|
120
|
-
minitest (5.14.
|
120
|
+
minitest (5.14.1)
|
121
121
|
momentjs-rails (2.20.1)
|
122
122
|
railties (>= 3.1)
|
123
123
|
nio4r (2.5.2)
|
@@ -5,12 +5,12 @@ module MobileWorkflowCli
|
|
5
5
|
end
|
6
6
|
|
7
7
|
def gemfile
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
8
|
+
template 'Gemfile.erb', 'Gemfile'
|
9
|
+
end
|
10
|
+
|
11
|
+
def procfiles
|
12
|
+
template 'Procfile', 'Procfile'
|
13
|
+
template 'Procfile.dev', 'Procfile.dev'
|
14
14
|
end
|
15
15
|
end
|
16
16
|
end
|
@@ -22,19 +22,22 @@ module MobileWorkflowCli
|
|
22
22
|
|
23
23
|
def finish_template
|
24
24
|
run "spring stop"
|
25
|
-
|
26
|
-
generate_models(open_api_spec)
|
27
|
-
setup_db
|
28
|
-
generate_base_api_controller(open_api_spec)
|
29
|
-
generate_controllers_and_routes(open_api_spec)
|
30
|
-
generate_procfile
|
31
|
-
admin_user = 'admin'
|
32
|
-
admin_password = SecureRandom.base64(12)
|
33
|
-
generate_dot_env(admin_user, admin_password)
|
25
|
+
build :procfiles
|
34
26
|
super
|
35
27
|
after_bundle do
|
28
|
+
open_api_spec = read_openapi_spec
|
29
|
+
generate_models(open_api_spec)
|
30
|
+
setup_db
|
31
|
+
|
36
32
|
generate_administrate
|
33
|
+
generate_base_api_controller(open_api_spec)
|
34
|
+
generate_controllers_and_routes(open_api_spec)
|
35
|
+
|
36
|
+
admin_user = 'admin'
|
37
|
+
admin_password = SecureRandom.base64(12)
|
38
|
+
generate_dot_env(admin_user, admin_password)
|
37
39
|
initial_git_commit
|
40
|
+
|
38
41
|
deploy_heroku(admin_user, admin_password) if options[:heroku]
|
39
42
|
end
|
40
43
|
end
|
@@ -121,13 +124,6 @@ module MobileWorkflowCli
|
|
121
124
|
rails_command "db:migrate"
|
122
125
|
end
|
123
126
|
|
124
|
-
def generate_procfile
|
125
|
-
file 'Procfile', <<-CODE
|
126
|
-
web: bundle exec rackup config.ru -p $PORT
|
127
|
-
release: bundle exec rake db:migrate
|
128
|
-
CODE
|
129
|
-
end
|
130
|
-
|
131
127
|
def initial_git_commit
|
132
128
|
git add: "."
|
133
129
|
git commit: %Q{ -m 'Initial commit' }
|
@@ -0,0 +1,47 @@
|
|
1
|
+
source 'https://rubygems.org'
|
2
|
+
git_source(:github) { |repo| "https://github.com/#{repo}.git" }
|
3
|
+
|
4
|
+
ruby '2.6.6'
|
5
|
+
|
6
|
+
# Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
|
7
|
+
gem 'rails', '~> 6.0.3'
|
8
|
+
# Use postgresql as the database for Active Record
|
9
|
+
gem 'pg', '>= 0.18', '< 2.0'
|
10
|
+
# Use Puma as the app server
|
11
|
+
gem 'puma', '~> 4.1'
|
12
|
+
# Use SCSS for stylesheets
|
13
|
+
gem 'sass-rails', '>= 6'
|
14
|
+
# Transpile app-like JavaScript. Read more: https://github.com/rails/webpacker
|
15
|
+
gem 'webpacker', '~> 4.0'
|
16
|
+
# Turbolinks makes navigating your web application faster. Read more: https://github.com/turbolinks/turbolinks
|
17
|
+
gem 'turbolinks', '~> 5'
|
18
|
+
# Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder
|
19
|
+
gem 'jbuilder', '~> 2.7'
|
20
|
+
# Use Redis adapter to run Action Cable in production
|
21
|
+
# gem 'redis', '~> 4.0'
|
22
|
+
# Use Active Model has_secure_password
|
23
|
+
# gem 'bcrypt', '~> 3.1.7'
|
24
|
+
|
25
|
+
# Use Active Storage variant
|
26
|
+
# gem 'image_processing', '~> 1.2'
|
27
|
+
|
28
|
+
# Admin console
|
29
|
+
gem "administrate"
|
30
|
+
|
31
|
+
# Reduces boot times through caching; required in config/boot.rb
|
32
|
+
gem 'bootsnap', '>= 1.4.2', require: false
|
33
|
+
|
34
|
+
group :development, :test do
|
35
|
+
# Call 'byebug' anywhere in the code to stop execution and get a debugger console
|
36
|
+
gem 'byebug', platforms: [:mri, :mingw, :x64_mingw]
|
37
|
+
gem 'dotenv-rails'
|
38
|
+
end
|
39
|
+
|
40
|
+
group :development do
|
41
|
+
# Access an interactive console on exception pages or by calling 'console' anywhere in the code.
|
42
|
+
gem 'web-console', '>= 3.3.0'
|
43
|
+
gem 'listen', '~> 3.2'
|
44
|
+
# Spring speeds up development by keeping your application running in the background. Read more: https://github.com/rails/spring
|
45
|
+
gem 'spring'
|
46
|
+
gem 'spring-watcher-listen', '~> 2.0.0'
|
47
|
+
end
|
data/templates/Procfile
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
web: bundle exec rackup config.ru -p $PORT
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mobile_workflow_cli
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Matt Brooke-Smith
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-05-
|
11
|
+
date: 2020-05-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: administrate
|
@@ -79,6 +79,9 @@ files:
|
|
79
79
|
- mobile_workflow_cli.gemspec
|
80
80
|
- spec/mobile_workflow_cli_spec.rb
|
81
81
|
- spec/spec_helper.rb
|
82
|
+
- templates/Gemfile.erb
|
83
|
+
- templates/Procfile
|
84
|
+
- templates/Procfile.dev
|
82
85
|
- templates/README.md.erb
|
83
86
|
homepage: https://github.com/FutureWorkshops/MobileWorkflowCli
|
84
87
|
licenses:
|