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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 944f817b8530dd052e9f4a1131f73b2fe8006c83e506cae8b0378a14df7149e1
4
- data.tar.gz: 363f7febaf0e6640c25fd9ff69cd889b9ea5a0eb6ea98854c0691b5bf7790631
3
+ metadata.gz: ce64641188dfbd354a2279042c813975e03a309f78e289b8d1fc72a33e748d6f
4
+ data.tar.gz: c3b602c65d2a4c7e8eb45664a063c863834978309d8e831d81b316f245eb62ad
5
5
  SHA512:
6
- metadata.gz: 7036e05ef5065a57127f77fd18f82b85d1e715f2d7e94b5aa17f41244b1cfd0d89e5f98a969a4b8cc89490604bc439eb10a6506efbd47e3b6b049210b7e769b6
7
- data.tar.gz: c910579ebe006ea965e90a2e44e71412a768612baff725799939f5cb336cfb5b5610aa59edc9e7779628d7d45b31d33fd8b48b543b550e328a38f02c90538d8c
6
+ metadata.gz: 7960efd667edfc41ada2e9ec7e646004e83f81270a12669ba2281b25c1d9f6d179da449137b811f616f9c413e8273bf973cf74bf0f3dbfeafe2e85cbc8980048
7
+ data.tar.gz: 688ee858d3d5245d41e0c78dbfd5766b3d6e82561f052af3a7726e343f9b64cbf7113d81fe72cf11e745dd9b75480d7a4d4ffca6e5fd4eb806286f5e1eac3841
@@ -1,3 +1,15 @@
1
- .wisco/*
2
- /master.key
3
- working/*
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
@@ -0,0 +1,11 @@
1
+ # frozen_string_literal: true
2
+
3
+ source 'https://rubygems.org'
4
+
5
+ gem 'byebug'
6
+ gem 'rspec'
7
+ gem 'timecop'
8
+ gem 'tzinfo-data', platforms: %i[mingw mswin x64_mingw jruby]
9
+ gem 'vcr'
10
+ gem 'webmock'
11
+ gem 'workato-connector-sdk'
@@ -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
@@ -1,3 +1,3 @@
1
1
  module Wisco
2
- VERSION = '0.3.3'
2
+ VERSION = '0.3.4'
3
3
  end
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.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