serverkit-vscode 0.2.0 → 1.0.0

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: 7278fd7ee4818aba1753d2a007eca63efed33500885da9fd8520ff343ff61749
4
- data.tar.gz: '095b82b57fb2719e2a7d793cae411c3887c84c4a0c999f8a17e06ae095e22e81'
3
+ metadata.gz: 327a7985ee1be09611019ca67e4c68db056de56a2720de57c5edd094e04f6592
4
+ data.tar.gz: 83176b97bb3c2f9b33acb280c5e4b8cdd50706f9415e20c7f6a4b3b6b26ce5bb
5
5
  SHA512:
6
- metadata.gz: 02e46982601765ba3f7e202da6d902740c052d2e9f92901166d29ec467aaa105f558c2f8e2e546f6d42829410ce84dd5fe08541d125f915251d3e478e7d95dec
7
- data.tar.gz: 60457faaebc287284ea256ddf012aa5b3d841663dfea7af043495f8e802a645ba552aad4eaa7000495d3895ef7993faab7d384591bc1de99222512a1feb7c9d2
6
+ metadata.gz: 8bdbfe437dff5d028ad381c7b9d8f5232d3a1f9c06ce0b9d00760e93dbed4855cf50a6b0a3dae85db51d66f06ef00cbb0cbd73a02b3370678a59cf253746a4ba
7
+ data.tar.gz: 1593ec27d9dc2acfe66f7eeae5d040e63f7ba8ae24de634eb9ec8229e5c3a45f1497786f67f0ed527dd053bb10106ad8c39c9768534bf9b3c411f02daff87a30
data/README.md CHANGED
@@ -5,13 +5,38 @@
5
5
 
6
6
  [Serverkit](https://github.com/serverkit/serverkit) plug-in for [VSCode](https://code.visualstudio.com/).
7
7
 
8
- ## Install
8
+ ## Installation
9
9
 
10
10
  ```rb
11
11
  # Gemfile
12
12
  gem "serverkit-vscode"
13
13
  ```
14
14
 
15
+ ## Usage
16
+
17
+ ### Prerequisites
18
+
19
+ - Ensure you have [serverkit](https://github.com/serverkit/serverkit) gem installed
20
+ - Ensure you have [VSCode CLI](https://code.visualstudio.com/docs/configure/command-line) installed on your system
21
+
22
+ ### Basic Example
23
+
24
+ Create a recipe file that uses the vscode resources:
25
+
26
+ ```yaml
27
+ # recipe.yml
28
+ resources:
29
+ # Install GitHub Copilot extension
30
+ - type: vscode_package
31
+ name: github.copilot
32
+ ```
33
+
34
+ Then apply your recipe with Serverkit:
35
+
36
+ ```console
37
+ $ serverkit apply recipe.yml
38
+ ```
39
+
15
40
  ## Resource
16
41
 
17
42
  ### vscode_package
data/Rakefile CHANGED
@@ -1,10 +1,8 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require "bundler/gem_tasks"
2
- require "rake/testtask"
4
+ require "minitest/test_task"
3
5
 
4
- Rake::TestTask.new(:test) do |t|
5
- t.libs << "test"
6
- t.libs << "lib"
7
- t.test_files = FileList["test/**/*_test.rb"]
8
- end
6
+ Minitest::TestTask.create
9
7
 
10
- task :default => :test
8
+ task default: :test
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Serverkit
4
4
  module Vscode
5
- VERSION = '0.2.0'
5
+ VERSION = '1.0.0'
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: serverkit-vscode
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 1.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - toshimaru
@@ -30,18 +30,12 @@ executables: []
30
30
  extensions: []
31
31
  extra_rdoc_files: []
32
32
  files:
33
- - ".github/workflows/test.yml"
34
- - ".gitignore"
35
- - Gemfile
36
33
  - LICENSE.txt
37
34
  - README.md
38
35
  - Rakefile
39
- - bin/console
40
- - bin/setup
41
36
  - lib/serverkit/resources/vscode_package.rb
42
37
  - lib/serverkit/vscode.rb
43
38
  - lib/serverkit/vscode/version.rb
44
- - serverkit-vscode.gemspec
45
39
  homepage: https://github.com/serverkit/serverkit-vscode
46
40
  licenses:
47
41
  - MIT
@@ -1,19 +0,0 @@
1
- name: Test
2
- on:
3
- push:
4
- jobs:
5
- test:
6
- strategy:
7
- matrix:
8
- os: [ubuntu-latest, macos-latest]
9
- ruby: ["2.7", "3.0", "3.1", "3.2", "3.3", "3.4"]
10
- runs-on: ${{ matrix.os }}
11
- steps:
12
- - uses: actions/checkout@v4
13
- - name: Set up Ruby ${{ matrix.ruby }}
14
- uses: ruby/setup-ruby@v1
15
- with:
16
- ruby-version: ${{ matrix.ruby }}
17
- bundler-cache: true
18
- - name: Run Test
19
- run: bundle exec rake
data/.gitignore DELETED
@@ -1,9 +0,0 @@
1
- /.bundle/
2
- /.yardoc
3
- /_yardoc/
4
- /coverage/
5
- /doc/
6
- /pkg/
7
- /spec/reports/
8
- /tmp/
9
- /Gemfile.lock
data/Gemfile DELETED
@@ -1,7 +0,0 @@
1
- source "https://rubygems.org"
2
-
3
- # Specify your gem's dependencies in serverkit-vscode.gemspec
4
- gemspec
5
-
6
- gem "rake"
7
- gem "minitest"
data/bin/console DELETED
@@ -1,10 +0,0 @@
1
- #!/usr/bin/env ruby
2
-
3
- require "bundler/setup"
4
- require "serverkit/vscode"
5
-
6
- # You can add fixtures and/or initialization code here to make experimenting
7
- # with your gem easier. You can also use a different console, if you like.
8
-
9
- require "irb"
10
- IRB.start(__FILE__)
data/bin/setup DELETED
@@ -1,8 +0,0 @@
1
- #!/usr/bin/env bash
2
- set -euo pipefail
3
- IFS=$'\n\t'
4
- set -vx
5
-
6
- bundle install
7
-
8
- # Do any other automated setup that you need to do here
@@ -1,31 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require_relative "lib/serverkit/vscode/version"
4
-
5
- Gem::Specification.new do |spec|
6
- spec.name = "serverkit-vscode"
7
- spec.version = Serverkit::Vscode::VERSION
8
- spec.authors = ["toshimaru"]
9
- spec.email = ["me@toshimaru.net"]
10
-
11
- spec.summary = %q{Serverkit plug-in for VSCode.}
12
- spec.description = %q{Serverkit plug-in for VSCode.}
13
- spec.homepage = "https://github.com/serverkit/serverkit-vscode"
14
- spec.license = "MIT"
15
- spec.required_ruby_version = ">= 2.7.0"
16
-
17
- spec.metadata["homepage_uri"] = spec.homepage
18
- spec.metadata["source_code_uri"] = "https://github.com/serverkit/serverkit-vscode"
19
- spec.metadata["changelog_uri"] = "https://github.com/serverkit/serverkit-vscode/releases"
20
-
21
- # Specify which files should be added to the gem when it is released.
22
- # The `git ls-files -z` loads the files in the RubyGem that have been added into git.
23
- spec.files = Dir.chdir(File.expand_path('..', __FILE__)) do
24
- `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
25
- end
26
- spec.bindir = "exe"
27
- spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
28
- spec.require_paths = ["lib"]
29
-
30
- spec.add_runtime_dependency "serverkit"
31
- end