From 23a837468d9ea92c04af13e332b554997d9db7a2 Mon Sep 17 00:00:00 2001 From: Shohei Maeda Date: Tue, 31 Dec 2019 03:54:58 +0900 Subject: [PATCH] Add VSCode remote container setting files (#138) * rubyforge_project option is deprecated * Adding Dockerfile for VSCode remote development * simplify .gemspec --- .devcontainer/Dockerfile | 6 ++++++ .devcontainer/devcontainer.json | 13 +++++++++++++ twurl.gemspec | 10 +++++----- 3 files changed, 24 insertions(+), 5 deletions(-) create mode 100644 .devcontainer/Dockerfile create mode 100644 .devcontainer/devcontainer.json diff --git a/.devcontainer/Dockerfile b/.devcontainer/Dockerfile new file mode 100644 index 0000000..06f8b90 --- /dev/null +++ b/.devcontainer/Dockerfile @@ -0,0 +1,6 @@ +FROM ruby:latest + +WORKDIR /usr/src/app + +COPY . . +RUN bundle install diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json new file mode 100644 index 0000000..fa7186f --- /dev/null +++ b/.devcontainer/devcontainer.json @@ -0,0 +1,13 @@ +{ + "name": "twurl dev container", + "dockerFile": "Dockerfile", + "context": "..", + "workspaceFolder": "/usr/src/app", + "settings": { + "terminal.integrated.shell.linux": "/bin/bash" + }, + "shutdownAction": "none", + "extensions": [ + "rebornix.Ruby" + ] +} diff --git a/twurl.gemspec b/twurl.gemspec index 2a44b4b..739a2d0 100644 --- a/twurl.gemspec +++ b/twurl.gemspec @@ -7,16 +7,16 @@ Gem::Specification.new do |spec| spec.add_dependency 'oauth', '~> 0.4' spec.authors = ["Marcel Molina", "Erik Michaels-Ober", "@TwitterDev team"] spec.description = %q{Curl for the Twitter API} - spec.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) } - spec.extra_rdoc_files = %w(CODE_OF_CONDUCT.md CONTRIBUTING.md INSTALL.md LICENSE README.md) - spec.files = `git ls-files -z`.split("\x0").reject { |f| f.start_with?('test/') } - spec.homepage = 'http://github.com/twitter/twurl' + spec.bindir = 'bin' + spec.executables << 'twurl' + spec.extra_rdoc_files = Dir["*.md", "LICENSE"] + spec.files = Dir["*.md", "LICENSE", "twurl.gemspec", "bin/*", "lib/**/*"] + spec.homepage = 'http://github.com/twitter/twurl' spec.licenses = ['MIT'] spec.name = 'twurl' spec.rdoc_options = ['--title', 'twurl -- OAuth-enabled curl for the Twitter API', '--main', 'README.md', '--line-numbers', '--inline-source'] spec.require_paths = ['lib'] spec.required_ruby_version = '>= 2.4.0' - spec.rubyforge_project = 'twurl' spec.summary = spec.description spec.version = Twurl::Version end