wisco 0.3.3 → 0.3.4
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/lib/wisco/assets/.gitignore +15 -3
- data/lib/wisco/assets/Gemfile +11 -0
- data/lib/wisco/commands/init.rb +15 -0
- data/lib/wisco/version.rb +1 -1
- metadata +2 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: ce64641188dfbd354a2279042c813975e03a309f78e289b8d1fc72a33e748d6f
|
|
4
|
+
data.tar.gz: c3b602c65d2a4c7e8eb45664a063c863834978309d8e831d81b316f245eb62ad
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 7960efd667edfc41ada2e9ec7e646004e83f81270a12669ba2281b25c1d9f6d179da449137b811f616f9c413e8273bf973cf74bf0f3dbfeafe2e85cbc8980048
|
|
7
|
+
data.tar.gz: 688ee858d3d5245d41e0c78dbfd5766b3d6e82561f052af3a7726e343f9b64cbf7113d81fe72cf11e745dd9b75480d7a4d4ffca6e5fd4eb806286f5e1eac3841
|
data/lib/wisco/assets/.gitignore
CHANGED
|
@@ -1,3 +1,15 @@
|
|
|
1
|
-
|
|
2
|
-
/
|
|
3
|
-
|
|
1
|
+
# wisco working directory
|
|
2
|
+
.wisco/
|
|
3
|
+
|
|
4
|
+
# Workato SDK files
|
|
5
|
+
master.key
|
|
6
|
+
|
|
7
|
+
# Exclude error files from fixtures
|
|
8
|
+
fixtures/*/*/error*.txt
|
|
9
|
+
|
|
10
|
+
# Exclude local working data
|
|
11
|
+
# Standardized local working data
|
|
12
|
+
working/*
|
|
13
|
+
!working/.gitkeep
|
|
14
|
+
*.tmp
|
|
15
|
+
*.bak
|
data/lib/wisco/commands/init.rb
CHANGED
|
@@ -52,6 +52,7 @@ module Wisco
|
|
|
52
52
|
puts "Config written to #{config_path}"
|
|
53
53
|
|
|
54
54
|
update_gitignore(target_dir)
|
|
55
|
+
ensure_gemfile(target_dir)
|
|
55
56
|
deploy_github_workflow(target_dir, connector_file, config)
|
|
56
57
|
end
|
|
57
58
|
|
|
@@ -102,6 +103,20 @@ module Wisco
|
|
|
102
103
|
end
|
|
103
104
|
end
|
|
104
105
|
|
|
106
|
+
def ensure_gemfile(target_dir)
|
|
107
|
+
gemfile_path = File.join(target_dir, 'Gemfile')
|
|
108
|
+
|
|
109
|
+
if File.exist?(gemfile_path)
|
|
110
|
+
puts 'Gemfile already exists — no changes made.'
|
|
111
|
+
return
|
|
112
|
+
end
|
|
113
|
+
|
|
114
|
+
asset_path = File.join(__dir__, '..', 'assets', 'Gemfile')
|
|
115
|
+
FileUtils.cp(asset_path, gemfile_path)
|
|
116
|
+
Wisco::TerminalOutput.emit_info('[INFO] Created Gemfile from template')
|
|
117
|
+
Wisco::TerminalOutput.emit_info("[INFO] Run 'bundle install' to install dependencies.")
|
|
118
|
+
end
|
|
119
|
+
|
|
105
120
|
def deploy_github_workflow(target_dir, connector_file, config)
|
|
106
121
|
output_path = File.join(target_dir, '.github', 'workflows', 'deploy.yml')
|
|
107
122
|
|
data/lib/wisco/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: wisco
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.3.
|
|
4
|
+
version: 0.3.4
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- mbillington
|
|
@@ -66,6 +66,7 @@ files:
|
|
|
66
66
|
- lib/wisco.rb
|
|
67
67
|
- lib/wisco/assets/.github/workflows/deploy.yml.erb
|
|
68
68
|
- lib/wisco/assets/.gitignore
|
|
69
|
+
- lib/wisco/assets/Gemfile
|
|
69
70
|
- lib/wisco/commands/exec.rb
|
|
70
71
|
- lib/wisco/commands/fixtures.rb
|
|
71
72
|
- lib/wisco/commands/init.rb
|