Skip to content

Commit 67de90a

Browse files
committed
Update ignores
* `.gemspec`: don’t include `test/`, `rbs_collection.yaml` and ` Steepfile` * `.gitignore`: also ignore matches in subdirectories
1 parent 2c58780 commit 67de90a

File tree

2 files changed

+10
-6
lines changed

2 files changed

+10
-6
lines changed

.gitignore

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
# VSCode
2-
/.vscode/
2+
.vscode/
33
# JetBrains
4-
/.idea/
4+
.idea/
55

66
# Ruby
7-
/Gemfile.lock
7+
Gemfile.lock
88
# https://github.com/ruby/gem_rbs_collection
9-
/.gem_rbs_collection/
10-
/rbs_collection.lock.yaml
9+
.gem_rbs_collection/
10+
rbs_collection.lock.yaml

mygem.gemspec

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,11 @@ Gem::Specification.new do|spec|
1919
'documentation_uri' => "https://rubydoc.info/gems/#{spec.name}"
2020
}
2121

22-
spec.files = Dir['**/*']
22+
spec.files = Dir['**/*'].grep_v Regexp.union *%w[
23+
test/
24+
rbs_collection.yaml
25+
Steepfile
26+
]
2327

2428
spec.required_ruby_version = '~> 3.1'
2529
#spec.add_dependency 'dependency_gem', '~> 2.1.0'

0 commit comments

Comments
 (0)