mobile_workflow_cli 0.1.6 → 0.1.7
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/USAGE +3 -1
- data/bin/mwf-delete +5 -2
- data/bin/mwf_s3 +28 -0
- data/lib/mobile_workflow_cli/app_builder.rb +9 -11
- data/lib/mobile_workflow_cli/app_cleaner.rb +7 -5
- data/lib/mobile_workflow_cli/app_generator.rb +5 -6
- data/lib/mobile_workflow_cli/aws_backend.rb +25 -4
- data/lib/mobile_workflow_cli/dokku_backend.rb +1 -1
- data/lib/mobile_workflow_cli/heroku_backend.rb +2 -2
- data/lib/mobile_workflow_cli/version.rb +1 -1
- data/templates/Gemfile.erb +11 -5
- metadata +9 -16
- data/.byebug_history +0 -2
- data/.gitignore +0 -11
- data/.rspec +0 -3
- data/.travis.yml +0 -6
- data/Gemfile +0 -7
- data/Gemfile.lock +0 -205
- data/LICENSE.txt +0 -21
- data/mobile_workflow_cli.gemspec +0 -29
- data/spec/mobile_workflow_cli_spec.rb +0 -9
- data/spec/spec_helper.rb +0 -14
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ab76f2f5530aaa6f596be739b7f688cb78c537c28b5929c9477f548ea7e4cbbe
|
4
|
+
data.tar.gz: a03772c1bc45a38e5b8d3ba60cbb4f035c7ad3fb70a7c3aa50e9c591eda5641e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cccff8aaebd38f37c8a162c3b6eb8bf76e32ddc3f52b8f782330b36e144f120e69a1a439549ecdd245ffa01c9d8159f535fb50de5389e4d19db86852d4831cda
|
7
|
+
data.tar.gz: 7487c091c91a052bdf962b3785afcc54f45d237138378b8c009706a250763dc10c0a570ae1a719d474689dbda06bef8940d1a6ee08bc333facb73266c41e2eb0
|
data/USAGE
CHANGED
@@ -2,8 +2,10 @@ Description:
|
|
2
2
|
Mobile Workflow CLI creates a Rails template project for your Mobile Workflow App.
|
3
3
|
|
4
4
|
Example:
|
5
|
-
mwf todo_server ~/Downloads/todo_oai_spec.json
|
5
|
+
mwf todo_server ~/Downloads/todo_oai_spec.json --heroku
|
6
6
|
|
7
7
|
Generate a Rails installation from the downloaded todo_oai_spec.json in the todo_server
|
8
8
|
folder relative to the current directory. Then create an new Heroku app and deploy the code.
|
9
9
|
|
10
|
+
|
11
|
+
|
data/bin/mwf-delete
CHANGED
@@ -13,7 +13,6 @@ $LOAD_PATH << source_path
|
|
13
13
|
require 'mobile_workflow_cli'
|
14
14
|
|
15
15
|
if ARGV.empty?
|
16
|
-
puts "USAGE: mwf-delete <directory>"
|
17
16
|
puts "See --help for more info"
|
18
17
|
exit 0
|
19
18
|
elsif ['-v', '--version'].include? ARGV[0]
|
@@ -21,4 +20,8 @@ elsif ['-v', '--version'].include? ARGV[0]
|
|
21
20
|
exit 0
|
22
21
|
end
|
23
22
|
|
24
|
-
|
23
|
+
# Add the default task
|
24
|
+
ARGV.unshift(MobileWorkflowCli::AppCleaner.default_task) unless ARGV[0] == '--help'
|
25
|
+
|
26
|
+
# Run the cleaner
|
27
|
+
MobileWorkflowCli::AppCleaner.start(ARGV)
|
data/bin/mwf_s3
ADDED
@@ -0,0 +1,28 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
require_relative "../lib/mobile_workflow_cli/aws_backend"
|
3
|
+
require_relative "../lib/mobile_workflow_cli/heroku_backend"
|
4
|
+
|
5
|
+
# Byebug for dev
|
6
|
+
begin
|
7
|
+
require 'byebug'
|
8
|
+
rescue LoadError
|
9
|
+
end
|
10
|
+
|
11
|
+
if ARGV.count < 2 || ['-h', '--help'].include?(ARGV[0])
|
12
|
+
puts "USAGE: mwf_s3 <create|destroy|> <App name>"
|
13
|
+
exit 0
|
14
|
+
elsif ARGV.count == 2
|
15
|
+
app_name = ARGV[1]
|
16
|
+
aws = AwsBackend.new(app_name: app_name, region: 'us-east-1')
|
17
|
+
|
18
|
+
if ARGV[0] == 'create'
|
19
|
+
aws.create
|
20
|
+
heroku = HerokuBackend.new(app_name: app_name)
|
21
|
+
heroku.configure_activestorage
|
22
|
+
aws.create_topic_subscription(heroku.notifications_endpoint)
|
23
|
+
aws.put_env
|
24
|
+
elsif ARGV[0] == 'destroy'
|
25
|
+
aws.destroy
|
26
|
+
end
|
27
|
+
exit 0
|
28
|
+
end
|
@@ -29,24 +29,22 @@ module MobileWorkflowCli
|
|
29
29
|
|
30
30
|
def mobile_workflow_generator(open_api_spec_path)
|
31
31
|
copy_file open_api_spec_path, 'config/open_api_spec.json'
|
32
|
-
|
32
|
+
gen_opts = ""
|
33
|
+
gen_opts += "--doorkeeper_oauth" if options[:doorkeeper_oauth]
|
34
|
+
generate "mobile_workflow:install #{gen_opts}"
|
35
|
+
|
36
|
+
# Copy user migrations if needed
|
37
|
+
rails_command 'mobile_workflow:install:migrations' if options[:doorkeeper_oauth]
|
33
38
|
end
|
34
39
|
|
35
40
|
def s3_backend(region)
|
36
41
|
@region = region
|
37
42
|
aws_backend.create
|
38
|
-
|
39
|
-
say "AWS Secret Key: #{aws_backend.secret_key}"
|
40
|
-
|
41
|
-
open('.env', 'a') { |f|
|
42
|
-
f.puts "AWS_ACCESS_ID=#{aws_backend.access_id}"
|
43
|
-
f.puts "AWS_SECRET_KEY=#{aws_backend.secret_key}"
|
44
|
-
f.puts "AWS_REGION=#{aws_backend.region}"
|
45
|
-
f.puts "AWS_BUCKET_NAME=#{aws_backend.bucket_name}"
|
46
|
-
}
|
43
|
+
aws_backend.write_env
|
47
44
|
|
48
45
|
if options[:heroku]
|
49
|
-
heroku_backend.sync_dotenv
|
46
|
+
heroku_backend.sync_dotenv
|
47
|
+
sleep 10 # Wait for the server to restart
|
50
48
|
aws_backend.create_topic_subscription(heroku_backend.notifications_endpoint)
|
51
49
|
elsif options[:dokku]
|
52
50
|
dokku_backend.sync_dotenv
|
@@ -8,15 +8,17 @@ module MobileWorkflowCli
|
|
8
8
|
class_option :version, type: :boolean, aliases: "-v", desc: "Show version number and quit"
|
9
9
|
class_option :help, type: :boolean, aliases: '-h', desc: "Show this help message and quit"
|
10
10
|
|
11
|
-
class_option :
|
12
|
-
class_option :s3_storage, type: :boolean, default: false, desc: "
|
11
|
+
class_option :heroku, type: :boolean, default: false, desc: "Clean Heroku app"
|
12
|
+
class_option :s3_storage, type: :boolean, default: false, desc: "Clean an s3 backend for attachment upload and storage"
|
13
13
|
class_option :aws_region, type: :string, default: 'us-east-1', desc: "Specify a region to create AWS resources in"
|
14
14
|
|
15
|
-
|
15
|
+
default_task :clean
|
16
|
+
|
17
|
+
desc "APP_NAME", "clean the app"
|
16
18
|
def clean(app_name)
|
17
19
|
`rm -rf #{app_name}`
|
18
|
-
AwsBackend.new(app_name: app_name, region: options[:aws_region]).destroy
|
19
|
-
HerokuBackend.new(app_name: app_name).destroy
|
20
|
+
AwsBackend.new(app_name: app_name, region: options[:aws_region]).destroy if options[:s3_storage]
|
21
|
+
HerokuBackend.new(app_name: app_name).destroy if options[:heroku]
|
20
22
|
end
|
21
23
|
|
22
24
|
|
@@ -8,6 +8,7 @@ module MobileWorkflowCli
|
|
8
8
|
hide!
|
9
9
|
class_option :skip_test, type: :boolean, default: true, desc: "Skip Test Unit"
|
10
10
|
class_option :force, type: :boolean, default: true, desc: "Force overwrite"
|
11
|
+
class_option :skip_webpack_install, type: :boolean, default: true, desc: "Skip webpacker installation"
|
11
12
|
|
12
13
|
class_option :version, type: :boolean, aliases: "-v", desc: "Show version number and quit"
|
13
14
|
class_option :help, type: :boolean, aliases: '-h', desc: "Show this help message and quit"
|
@@ -17,8 +18,10 @@ module MobileWorkflowCli
|
|
17
18
|
class_option :dokku, type: :boolean, default: false, desc: "Create Dokku app"
|
18
19
|
class_option :dokku_host, type: :string, desc: "Specify the Dokku host machine e.g. 18.131.127.164"
|
19
20
|
|
20
|
-
class_option :s3_storage, type: :boolean, default: false, desc: "Create an s3 backend for
|
21
|
+
class_option :s3_storage, type: :boolean, default: false, desc: "Create an s3 backend for attachment upload and storage"
|
21
22
|
class_option :aws_region, type: :string, default: 'us-east-1', desc: "Specify a region to create AWS resources in"
|
23
|
+
|
24
|
+
class_option :doorkeeper_oauth, type: :boolean, default: false, desc: "Use Doorkeeper gem for OAuth login"
|
22
25
|
|
23
26
|
def self.banner
|
24
27
|
"mwf <directory> <OpenAPI Spec file path> [options]"
|
@@ -64,11 +67,7 @@ module MobileWorkflowCli
|
|
64
67
|
file 'app/controllers/admin/application_controller.rb', <<-CODE
|
65
68
|
module Admin
|
66
69
|
class ApplicationController < Administrate::ApplicationController
|
67
|
-
|
68
|
-
|
69
|
-
def authenticate_admin
|
70
|
-
self.class.http_basic_authenticate_with(name: ENV["ADMIN_USER"], password: ENV["ADMIN_PASSWORD"])
|
71
|
-
end
|
70
|
+
http_basic_authenticate_with(name: ENV["ADMIN_USER"], password: ENV["ADMIN_PASSWORD"])
|
72
71
|
end
|
73
72
|
end
|
74
73
|
CODE
|
@@ -1,3 +1,5 @@
|
|
1
|
+
require 'json'
|
2
|
+
|
1
3
|
class AwsBackend
|
2
4
|
|
3
5
|
attr_accessor :access_id, :secret_key, :region, :bucket_name
|
@@ -13,7 +15,9 @@ class AwsBackend
|
|
13
15
|
end
|
14
16
|
|
15
17
|
def create
|
16
|
-
|
18
|
+
bucket_configuration = ''
|
19
|
+
bucket_configuration += "--create-bucket-configuration LocationConstraint=#{@region}" unless @region.eql? 'us-east-1'
|
20
|
+
aws_command "aws s3api create-bucket --bucket #{@aws_name} --acl private --region #{@region} #{bucket_configuration}"
|
17
21
|
@topic_arn = aws_command("aws sns create-topic --name #{@aws_name} --region #{@region}")["TopicArn"]
|
18
22
|
aws_command "aws iam create-user --user-name #{@aws_name}"
|
19
23
|
aws_command "aws iam put-user-policy --user-name #{@aws_name} --policy-name s3 --policy-document '{\"Version\":\"2012-10-17\",\"Statement\":[{\"Effect\":\"Allow\",\"Action\":[\"s3:PutObject\",\"s3:PutObjectAcl\",\"s3:GetObject\", \"s3:DeleteObject\"],\"Resource\":[\"arn:aws:s3:::#{@aws_name}/*\"]}, {\"Effect\": \"Allow\", \"Action\": \"s3:ListBucket\", \"Resource\": \"arn:aws:s3:::#{@aws_name}\"}]}'"
|
@@ -22,10 +26,25 @@ class AwsBackend
|
|
22
26
|
aws_command "aws s3api put-bucket-notification-configuration --bucket #{@aws_name} --notification-configuration '{\"TopicConfigurations\": [{\"TopicArn\": \"#{@topic_arn}\", \"Events\": [\"s3:ObjectCreated:*\"]}]}'"
|
23
27
|
aws_credentials_json = aws_command("aws iam create-access-key --user-name #{@aws_name}")["AccessKey"]
|
24
28
|
@access_id, @secret_key = aws_credentials_json["AccessKeyId"], aws_credentials_json["SecretAccessKey"]
|
25
|
-
|
26
29
|
return @access_id, @secret_key
|
27
30
|
end
|
28
31
|
|
32
|
+
def put_env
|
33
|
+
puts "AWS_ACCESS_ID=#{access_id}"
|
34
|
+
puts "AWS_SECRET_KEY=#{secret_key}"
|
35
|
+
puts "AWS_REGION=#{region}"
|
36
|
+
puts "AWS_BUCKET_NAME=#{bucket_name}"
|
37
|
+
end
|
38
|
+
|
39
|
+
def write_env
|
40
|
+
open('.env', 'a') { |f|
|
41
|
+
f.puts "AWS_ACCESS_ID=#{access_id}"
|
42
|
+
f.puts "AWS_SECRET_KEY=#{secret_key}"
|
43
|
+
f.puts "AWS_REGION=#{region}"
|
44
|
+
f.puts "AWS_BUCKET_NAME=#{bucket_name}"
|
45
|
+
}
|
46
|
+
end
|
47
|
+
|
29
48
|
def create_topic_subscription(endpoint)
|
30
49
|
aws_command "aws sns subscribe --topic-arn #{@topic_arn} --region #{@region} --protocol https --notification-endpoint #{endpoint}"
|
31
50
|
end
|
@@ -50,8 +69,10 @@ class AwsBackend
|
|
50
69
|
def aws_command(command)
|
51
70
|
puts "Running: #{command}"
|
52
71
|
output = `#{command}`
|
53
|
-
|
54
|
-
|
72
|
+
return nil if output == nil || output.strip == ""
|
73
|
+
|
74
|
+
puts "Output: #{output}"
|
75
|
+
JSON.parse(output)
|
55
76
|
end
|
56
77
|
|
57
78
|
end
|
@@ -32,14 +32,14 @@ class HerokuBackend
|
|
32
32
|
end
|
33
33
|
|
34
34
|
def notifications_endpoint
|
35
|
-
"https://#{@heroku_app_name}.herokuapp.com/
|
35
|
+
"https://#{@heroku_app_name}.herokuapp.com/sns_notifications"
|
36
36
|
end
|
37
37
|
|
38
38
|
private
|
39
39
|
def heroku_command(command)
|
40
40
|
puts "Running: #{command}"
|
41
41
|
output = `#{command}`
|
42
|
-
puts "Output: #{output}"
|
42
|
+
puts "Output: #{output}"
|
43
43
|
return output
|
44
44
|
end
|
45
45
|
end
|
data/templates/Gemfile.erb
CHANGED
@@ -5,14 +5,20 @@ ruby '2.6.6'
|
|
5
5
|
|
6
6
|
# Core Gems
|
7
7
|
gem 'rails', '~> 6.0.2', '>= 6.0.2.2'
|
8
|
-
|
9
8
|
gem 'puma', '~> 4.1'
|
10
9
|
gem 'sass-rails', '>= 6'
|
11
|
-
gem 'webpacker', '~> 4.0'
|
12
10
|
gem 'turbolinks', '~> 5'
|
13
11
|
gem 'bootsnap', '>= 1.4.2', require: false
|
14
12
|
|
13
|
+
# Mobile Workflow
|
14
|
+
#gem 'mobile_workflow', path: '../mobile_workflow'
|
15
|
+
gem 'mobile_workflow', github: 'FutureWorkshops/mobile_workflow'
|
16
|
+
|
15
17
|
# Authorisation / Authentication
|
18
|
+
<%- if options[:doorkeeper_oauth] %>
|
19
|
+
gem 'doorkeeper'
|
20
|
+
gem 'bcrypt-ruby'
|
21
|
+
<%- end %>
|
16
22
|
gem 'cancancan', '~> 3.1'
|
17
23
|
|
18
24
|
# Admin console
|
@@ -20,13 +26,12 @@ gem 'administrate', '~> 0.13.0'
|
|
20
26
|
gem 'administrate-field-active_storage'
|
21
27
|
gem 'administrate-field-enum'
|
22
28
|
|
29
|
+
<%- if options[:s3_storage] %>
|
23
30
|
# Backend storage for S3
|
24
31
|
gem "image_processing"
|
25
32
|
gem 'aws-sdk-s3', '~> 1.60', '>= 1.60.1'
|
26
33
|
gem 'aws-sdk-sns', '~> 1.23'
|
27
|
-
|
28
|
-
# Mobile Workflow
|
29
|
-
gem 'mobile_workflow', '~> 0.1.0'
|
34
|
+
<%- end %>
|
30
35
|
|
31
36
|
group :development do
|
32
37
|
gem 'web-console', '>= 3.3.0'
|
@@ -40,6 +45,7 @@ group :development, :test do
|
|
40
45
|
gem 'rspec-rails', '~> 4.0.0'
|
41
46
|
gem 'byebug', platforms: [:mri, :mingw, :x64_mingw]
|
42
47
|
gem 'dotenv-rails'
|
48
|
+
gem 'factory_bot_rails'
|
43
49
|
end
|
44
50
|
|
45
51
|
group :production do
|
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.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Matt Brooke-Smith
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-12-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: administrate
|
@@ -52,26 +52,22 @@ dependencies:
|
|
52
52
|
- - ">="
|
53
53
|
- !ruby/object:Gem::Version
|
54
54
|
version: '0'
|
55
|
-
description:
|
55
|
+
description:
|
56
56
|
email:
|
57
57
|
- matt@futureworkshops.com
|
58
58
|
executables:
|
59
59
|
- mwf
|
60
|
+
- mwf-delete
|
61
|
+
- mwf_s3
|
60
62
|
extensions: []
|
61
63
|
extra_rdoc_files: []
|
62
64
|
files:
|
63
|
-
- ".byebug_history"
|
64
|
-
- ".gitignore"
|
65
|
-
- ".rspec"
|
66
|
-
- ".travis.yml"
|
67
|
-
- Gemfile
|
68
|
-
- Gemfile.lock
|
69
|
-
- LICENSE.txt
|
70
65
|
- README.md
|
71
66
|
- Rakefile
|
72
67
|
- USAGE
|
73
68
|
- bin/mwf
|
74
69
|
- bin/mwf-delete
|
70
|
+
- bin/mwf_s3
|
75
71
|
- bin/setup
|
76
72
|
- lib/mobile_workflow_cli.rb
|
77
73
|
- lib/mobile_workflow_cli/app_builder.rb
|
@@ -81,9 +77,6 @@ files:
|
|
81
77
|
- lib/mobile_workflow_cli/dokku_backend.rb
|
82
78
|
- lib/mobile_workflow_cli/heroku_backend.rb
|
83
79
|
- lib/mobile_workflow_cli/version.rb
|
84
|
-
- mobile_workflow_cli.gemspec
|
85
|
-
- spec/mobile_workflow_cli_spec.rb
|
86
|
-
- spec/spec_helper.rb
|
87
80
|
- templates/Gemfile.erb
|
88
81
|
- templates/Procfile
|
89
82
|
- templates/Procfile.dev
|
@@ -96,7 +89,7 @@ licenses:
|
|
96
89
|
metadata:
|
97
90
|
homepage_uri: https://github.com/FutureWorkshops/MobileWorkflowCli
|
98
91
|
source_code_uri: https://github.com/FutureWorkshops/MobileWorkflowCli
|
99
|
-
post_install_message:
|
92
|
+
post_install_message:
|
100
93
|
rdoc_options: []
|
101
94
|
require_paths:
|
102
95
|
- lib
|
@@ -112,7 +105,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
112
105
|
version: '0'
|
113
106
|
requirements: []
|
114
107
|
rubygems_version: 3.0.8
|
115
|
-
signing_key:
|
108
|
+
signing_key:
|
116
109
|
specification_version: 4
|
117
110
|
summary: CLI tool for Mobile Workflow
|
118
111
|
test_files: []
|
data/.byebug_history
DELETED
data/.gitignore
DELETED
data/.rspec
DELETED
data/.travis.yml
DELETED
data/Gemfile
DELETED
data/Gemfile.lock
DELETED
@@ -1,205 +0,0 @@
|
|
1
|
-
PATH
|
2
|
-
remote: .
|
3
|
-
specs:
|
4
|
-
mobile_workflow_cli (0.1.6)
|
5
|
-
administrate
|
6
|
-
rails (>= 6.0.0)
|
7
|
-
|
8
|
-
GEM
|
9
|
-
remote: https://rubygems.org/
|
10
|
-
specs:
|
11
|
-
actioncable (6.0.3.2)
|
12
|
-
actionpack (= 6.0.3.2)
|
13
|
-
nio4r (~> 2.0)
|
14
|
-
websocket-driver (>= 0.6.1)
|
15
|
-
actionmailbox (6.0.3.2)
|
16
|
-
actionpack (= 6.0.3.2)
|
17
|
-
activejob (= 6.0.3.2)
|
18
|
-
activerecord (= 6.0.3.2)
|
19
|
-
activestorage (= 6.0.3.2)
|
20
|
-
activesupport (= 6.0.3.2)
|
21
|
-
mail (>= 2.7.1)
|
22
|
-
actionmailer (6.0.3.2)
|
23
|
-
actionpack (= 6.0.3.2)
|
24
|
-
actionview (= 6.0.3.2)
|
25
|
-
activejob (= 6.0.3.2)
|
26
|
-
mail (~> 2.5, >= 2.5.4)
|
27
|
-
rails-dom-testing (~> 2.0)
|
28
|
-
actionpack (6.0.3.2)
|
29
|
-
actionview (= 6.0.3.2)
|
30
|
-
activesupport (= 6.0.3.2)
|
31
|
-
rack (~> 2.0, >= 2.0.8)
|
32
|
-
rack-test (>= 0.6.3)
|
33
|
-
rails-dom-testing (~> 2.0)
|
34
|
-
rails-html-sanitizer (~> 1.0, >= 1.2.0)
|
35
|
-
actiontext (6.0.3.2)
|
36
|
-
actionpack (= 6.0.3.2)
|
37
|
-
activerecord (= 6.0.3.2)
|
38
|
-
activestorage (= 6.0.3.2)
|
39
|
-
activesupport (= 6.0.3.2)
|
40
|
-
nokogiri (>= 1.8.5)
|
41
|
-
actionview (6.0.3.2)
|
42
|
-
activesupport (= 6.0.3.2)
|
43
|
-
builder (~> 3.1)
|
44
|
-
erubi (~> 1.4)
|
45
|
-
rails-dom-testing (~> 2.0)
|
46
|
-
rails-html-sanitizer (~> 1.1, >= 1.2.0)
|
47
|
-
activejob (6.0.3.2)
|
48
|
-
activesupport (= 6.0.3.2)
|
49
|
-
globalid (>= 0.3.6)
|
50
|
-
activemodel (6.0.3.2)
|
51
|
-
activesupport (= 6.0.3.2)
|
52
|
-
activerecord (6.0.3.2)
|
53
|
-
activemodel (= 6.0.3.2)
|
54
|
-
activesupport (= 6.0.3.2)
|
55
|
-
activestorage (6.0.3.2)
|
56
|
-
actionpack (= 6.0.3.2)
|
57
|
-
activejob (= 6.0.3.2)
|
58
|
-
activerecord (= 6.0.3.2)
|
59
|
-
marcel (~> 0.3.1)
|
60
|
-
activesupport (6.0.3.2)
|
61
|
-
concurrent-ruby (~> 1.0, >= 1.0.2)
|
62
|
-
i18n (>= 0.7, < 2)
|
63
|
-
minitest (~> 5.1)
|
64
|
-
tzinfo (~> 1.1)
|
65
|
-
zeitwerk (~> 2.2, >= 2.2.2)
|
66
|
-
administrate (0.13.0)
|
67
|
-
actionpack (>= 4.2)
|
68
|
-
actionview (>= 4.2)
|
69
|
-
activerecord (>= 4.2)
|
70
|
-
autoprefixer-rails (>= 6.0)
|
71
|
-
datetime_picker_rails (~> 0.0.7)
|
72
|
-
jquery-rails (>= 4.0)
|
73
|
-
kaminari (>= 1.0)
|
74
|
-
momentjs-rails (~> 2.8)
|
75
|
-
sassc-rails (~> 2.1)
|
76
|
-
selectize-rails (~> 0.6)
|
77
|
-
autoprefixer-rails (9.8.4)
|
78
|
-
execjs
|
79
|
-
builder (3.2.4)
|
80
|
-
byebug (11.1.3)
|
81
|
-
concurrent-ruby (1.1.6)
|
82
|
-
crass (1.0.6)
|
83
|
-
datetime_picker_rails (0.0.7)
|
84
|
-
momentjs-rails (>= 2.8.1)
|
85
|
-
diff-lcs (1.3)
|
86
|
-
erubi (1.9.0)
|
87
|
-
execjs (2.7.0)
|
88
|
-
ffi (1.13.1)
|
89
|
-
globalid (0.4.2)
|
90
|
-
activesupport (>= 4.2.0)
|
91
|
-
i18n (1.8.3)
|
92
|
-
concurrent-ruby (~> 1.0)
|
93
|
-
jquery-rails (4.4.0)
|
94
|
-
rails-dom-testing (>= 1, < 3)
|
95
|
-
railties (>= 4.2.0)
|
96
|
-
thor (>= 0.14, < 2.0)
|
97
|
-
kaminari (1.2.1)
|
98
|
-
activesupport (>= 4.1.0)
|
99
|
-
kaminari-actionview (= 1.2.1)
|
100
|
-
kaminari-activerecord (= 1.2.1)
|
101
|
-
kaminari-core (= 1.2.1)
|
102
|
-
kaminari-actionview (1.2.1)
|
103
|
-
actionview
|
104
|
-
kaminari-core (= 1.2.1)
|
105
|
-
kaminari-activerecord (1.2.1)
|
106
|
-
activerecord
|
107
|
-
kaminari-core (= 1.2.1)
|
108
|
-
kaminari-core (1.2.1)
|
109
|
-
loofah (2.6.0)
|
110
|
-
crass (~> 1.0.2)
|
111
|
-
nokogiri (>= 1.5.9)
|
112
|
-
mail (2.7.1)
|
113
|
-
mini_mime (>= 0.1.1)
|
114
|
-
marcel (0.3.3)
|
115
|
-
mimemagic (~> 0.3.2)
|
116
|
-
method_source (1.0.0)
|
117
|
-
mimemagic (0.3.5)
|
118
|
-
mini_mime (1.0.2)
|
119
|
-
mini_portile2 (2.4.0)
|
120
|
-
minitest (5.14.1)
|
121
|
-
momentjs-rails (2.20.1)
|
122
|
-
railties (>= 3.1)
|
123
|
-
nio4r (2.5.2)
|
124
|
-
nokogiri (1.10.9)
|
125
|
-
mini_portile2 (~> 2.4.0)
|
126
|
-
rack (2.2.3)
|
127
|
-
rack-test (1.1.0)
|
128
|
-
rack (>= 1.0, < 3)
|
129
|
-
rails (6.0.3.2)
|
130
|
-
actioncable (= 6.0.3.2)
|
131
|
-
actionmailbox (= 6.0.3.2)
|
132
|
-
actionmailer (= 6.0.3.2)
|
133
|
-
actionpack (= 6.0.3.2)
|
134
|
-
actiontext (= 6.0.3.2)
|
135
|
-
actionview (= 6.0.3.2)
|
136
|
-
activejob (= 6.0.3.2)
|
137
|
-
activemodel (= 6.0.3.2)
|
138
|
-
activerecord (= 6.0.3.2)
|
139
|
-
activestorage (= 6.0.3.2)
|
140
|
-
activesupport (= 6.0.3.2)
|
141
|
-
bundler (>= 1.3.0)
|
142
|
-
railties (= 6.0.3.2)
|
143
|
-
sprockets-rails (>= 2.0.0)
|
144
|
-
rails-dom-testing (2.0.3)
|
145
|
-
activesupport (>= 4.2.0)
|
146
|
-
nokogiri (>= 1.6)
|
147
|
-
rails-html-sanitizer (1.3.0)
|
148
|
-
loofah (~> 2.3)
|
149
|
-
railties (6.0.3.2)
|
150
|
-
actionpack (= 6.0.3.2)
|
151
|
-
activesupport (= 6.0.3.2)
|
152
|
-
method_source
|
153
|
-
rake (>= 0.8.7)
|
154
|
-
thor (>= 0.20.3, < 2.0)
|
155
|
-
rake (12.3.3)
|
156
|
-
rspec (3.9.0)
|
157
|
-
rspec-core (~> 3.9.0)
|
158
|
-
rspec-expectations (~> 3.9.0)
|
159
|
-
rspec-mocks (~> 3.9.0)
|
160
|
-
rspec-core (3.9.2)
|
161
|
-
rspec-support (~> 3.9.3)
|
162
|
-
rspec-expectations (3.9.2)
|
163
|
-
diff-lcs (>= 1.2.0, < 2.0)
|
164
|
-
rspec-support (~> 3.9.0)
|
165
|
-
rspec-mocks (3.9.1)
|
166
|
-
diff-lcs (>= 1.2.0, < 2.0)
|
167
|
-
rspec-support (~> 3.9.0)
|
168
|
-
rspec-support (3.9.3)
|
169
|
-
sassc (2.4.0)
|
170
|
-
ffi (~> 1.9)
|
171
|
-
sassc-rails (2.1.2)
|
172
|
-
railties (>= 4.0.0)
|
173
|
-
sassc (>= 2.0)
|
174
|
-
sprockets (> 3.0)
|
175
|
-
sprockets-rails
|
176
|
-
tilt
|
177
|
-
selectize-rails (0.12.6)
|
178
|
-
sprockets (4.0.2)
|
179
|
-
concurrent-ruby (~> 1.0)
|
180
|
-
rack (> 1, < 3)
|
181
|
-
sprockets-rails (3.2.1)
|
182
|
-
actionpack (>= 4.0)
|
183
|
-
activesupport (>= 4.0)
|
184
|
-
sprockets (>= 3.0.0)
|
185
|
-
thor (1.0.1)
|
186
|
-
thread_safe (0.3.6)
|
187
|
-
tilt (2.0.10)
|
188
|
-
tzinfo (1.2.7)
|
189
|
-
thread_safe (~> 0.1)
|
190
|
-
websocket-driver (0.7.2)
|
191
|
-
websocket-extensions (>= 0.1.0)
|
192
|
-
websocket-extensions (0.1.5)
|
193
|
-
zeitwerk (2.3.1)
|
194
|
-
|
195
|
-
PLATFORMS
|
196
|
-
ruby
|
197
|
-
|
198
|
-
DEPENDENCIES
|
199
|
-
byebug
|
200
|
-
mobile_workflow_cli!
|
201
|
-
rake (~> 12.0)
|
202
|
-
rspec (~> 3.0)
|
203
|
-
|
204
|
-
BUNDLED WITH
|
205
|
-
2.1.4
|
data/LICENSE.txt
DELETED
@@ -1,21 +0,0 @@
|
|
1
|
-
The MIT License (MIT)
|
2
|
-
|
3
|
-
Copyright (c) 2020 Matt Brooke-Smith
|
4
|
-
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
-
of this software and associated documentation files (the "Software"), to deal
|
7
|
-
in the Software without restriction, including without limitation the rights
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
10
|
-
furnished to do so, subject to the following conditions:
|
11
|
-
|
12
|
-
The above copyright notice and this permission notice shall be included in
|
13
|
-
all copies or substantial portions of the Software.
|
14
|
-
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
21
|
-
THE SOFTWARE.
|
data/mobile_workflow_cli.gemspec
DELETED
@@ -1,29 +0,0 @@
|
|
1
|
-
require_relative 'lib/mobile_workflow_cli/version'
|
2
|
-
|
3
|
-
Gem::Specification.new do |s|
|
4
|
-
s.name = "mobile_workflow_cli"
|
5
|
-
s.version = MobileWorkflowCli::VERSION
|
6
|
-
s.authors = ["Matt Brooke-Smith"]
|
7
|
-
s.email = ["matt@futureworkshops.com"]
|
8
|
-
|
9
|
-
s.summary = "CLI tool for Mobile Workflow"
|
10
|
-
s.homepage = "https://github.com/FutureWorkshops/MobileWorkflowCli"
|
11
|
-
s.license = "MIT"
|
12
|
-
s.required_ruby_version = ">= #{MobileWorkflowCli::RUBY_VERSION}"
|
13
|
-
|
14
|
-
s.metadata["homepage_uri"] = s.homepage
|
15
|
-
s.metadata["source_code_uri"] = s.homepage
|
16
|
-
|
17
|
-
s.executables = ['mwf']
|
18
|
-
|
19
|
-
s.files = Dir.chdir(File.expand_path('..', __FILE__)) do
|
20
|
-
`git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|s|features)/}) }
|
21
|
-
end
|
22
|
-
s.test_files = `git ls-files -- {spec}/*`.split("\n")
|
23
|
-
s.require_paths = ["lib"]
|
24
|
-
|
25
|
-
s.add_dependency 'administrate'
|
26
|
-
s.add_dependency 'rails', ">= #{MobileWorkflowCli::RAILS_VERSION}"
|
27
|
-
|
28
|
-
s.add_development_dependency 'byebug'
|
29
|
-
end
|
data/spec/spec_helper.rb
DELETED
@@ -1,14 +0,0 @@
|
|
1
|
-
require "bundler/setup"
|
2
|
-
require "mobile_workflow_cli"
|
3
|
-
|
4
|
-
RSpec.configure do |config|
|
5
|
-
# Enable flags like --only-failures and --next-failure
|
6
|
-
config.example_status_persistence_file_path = ".rspec_status"
|
7
|
-
|
8
|
-
# Disable RSpec exposing methods globally on `Module` and `main`
|
9
|
-
config.disable_monkey_patching!
|
10
|
-
|
11
|
-
config.expect_with :rspec do |c|
|
12
|
-
c.syntax = :expect
|
13
|
-
end
|
14
|
-
end
|