Skip to content

Commit 4294a8b

Browse files
authored
Merge pull request #40 from testdouble/slim-packaged-gem
Slim down the files included in the packaged gem
2 parents cc63f1e + e14f3af commit 4294a8b

File tree

5 files changed

+8
-7
lines changed

5 files changed

+8
-7
lines changed

.github/workflows/ruby.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ on:
1111
push:
1212
branches: [ main ]
1313
pull_request:
14-
branches: [ main ]
1514

1615
jobs:
1716
test:

CHANGELOG.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
# CHANGELOG
22

3-
## Unreleased
3+
## 0.3.0
44
* Minimum supported Ruby version is now 3.1
5+
* Exclude unnecessary files from the packaged gem
56

67
## 0.2.1
78

Gemfile.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
PATH
22
remote: .
33
specs:
4-
good_migrations (0.2.1)
4+
good_migrations (0.3.0)
55
activerecord (>= 3.1)
66
railties (>= 3.1)
77

good_migrations.gemspec

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,11 @@ Gem::Specification.new do |spec|
1515
spec.required_ruby_version = ">= 3.1.0"
1616
spec.metadata["rubygems_mfa_required"] = "true"
1717

18-
spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
19-
spec.bindir = "exe"
20-
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
18+
spec.files = `git ls-files -z -- lib CHANGELOG* LICENSE*`.split("\x0")
19+
spec.executables = `git ls-files -z -- exe`.split("\x0").map { File.basename _1 }
20+
spec.extra_rdoc_files = `git ls-files -z -- example README*`.split("\x0")
2121
spec.require_paths = ["lib"]
22+
spec.bindir = "exe"
2223

2324
spec.add_dependency "railties", ">= 3.1"
2425
spec.add_dependency "activerecord", ">= 3.1"

lib/good_migrations/version.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
module GoodMigrations
2-
VERSION = "0.2.1"
2+
VERSION = "0.3.0"
33
end

0 commit comments

Comments
 (0)