Skip to content

Commit

Permalink
Rename executable and trim meta-data files from release
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidBakerEffendi committed Oct 31, 2024
1 parent a47e266 commit ff94b33
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ jobs:
d ! -name "gems" ! -name "bin" ! -name "specifications" \
-exec rm -rf {} +
zip -r ruby_ast_gen_${{ steps.taggerDryRun.outputs.new_tag }}.zip \
lib exe sig vendor README.md LICENSE.txt Rakefile Gemfile ruby_ast_gen.gemspec
lib exe vendor Gemfile
- name: Add and commit updated files holding version information
uses: stefanzweifel/git-auto-commit-action@v5
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,4 @@
Gemfile.lock
# rspec failure tracking
.rspec_status
**/*.DS_Store
3 changes: 0 additions & 3 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,6 @@

source "https://rubygems.org"

# Specify your gem's dependencies in ruby_ast_gen.gemspec
gemspec

gem "rake", "~> 13.0"

gem "rspec", "~> 3.0"
Expand Down
File renamed without changes.
4 changes: 2 additions & 2 deletions ruby_ast_gen.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
require_relative "lib/ruby_ast_gen/version"

Gem::Specification.new do |spec|
spec.name = "ruby_ast_gen"
spec.name = "ruby_ast_gen.rb"
spec.version = RubyAstGen::VERSION
spec.authors = ["David Baker Effendi", "Andrei Dreyer"]
spec.email = ["[email protected]", "[email protected]"]
Expand All @@ -20,7 +20,7 @@ Gem::Specification.new do |spec|
# The `git ls-files -z` loads the files in the RubyGem that have been added into git.
gemspec = File.basename(__FILE__)
spec.files = Dir.glob("{lib,exe,sig,vendor}/**/*") +
%w[README.md LICENSE.txt Rakefile Gemfile ruby_ast_gen.gemspec]
%w[README.md LICENSE.txt Rakefile Gemfile ruby_ast_gen.rb.gemspec]
spec.bindir = "exe"
spec.executables = spec.files.grep(%r{\Aexe/}) { |f| File.basename(f) }
spec.require_paths = ["lib"]
Expand Down
4 changes: 2 additions & 2 deletions update_version.rb
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
#!/usr/bin/env ruby

# Script to update the version in `lib/ruby_ast_gen/version.rb`
# Script to update the version in `lib/ruby_ast_gen.rb/version.rb`
require 'fileutils'

VERSION_FILE_PATH = 'lib/ruby_ast_gen/version.rb'
VERSION_FILE_PATH = 'lib/ruby_ast_gen.rb/version.rb'


if ARGV.empty?
Expand Down

0 comments on commit ff94b33

Please sign in to comment.