Sweta Sanghavi
4ed2757543
[rubygems/rubygems] Update gemspec based on provided github username when exists
...
* Conditionally set changelog_url if gh username passed
and enabled
* conditionally set homepage, source code uri, homepage uri when gh
username passed in
* update documentation to say username will also be used for gemspec file
1c1ada593b
2025-07-09 13:48:37 +09:00
David Rodríguez
c6da019770
[rubygems/rubygems] Add blank line after every question
...
To try make output a bit less messy.
92c8bc6769
2025-07-09 13:48:34 +09:00
David Rodríguez
9942ff7c6a
[rubygems/rubygems] Use shorter questions as prompts in bundle gem
...
If we use long explanations as prompts, sometimes the prompt gets
printed twice due to a (I think) reline/readline bug.
987e0dfa90
2025-07-09 13:48:33 +09:00
David Rodríguez
9b0f9f8139
[rubygems/rubygems] Reword MIT explanation to make sense after reordering
...
Previous wording assumed explanation was displayed after the question,
not before.
04eb3430ba
2025-07-09 13:48:32 +09:00
Hiroshi SHIBATA
1cb1b15f77
[rubygems/rubygems] Added --bundle option for triggering bundle install automatically after bundle gem
...
59ac0db26b
2025-06-30 12:56:50 +09:00
TangRufus
204e3c58e1
[rubygems/rubygems] Only ignore .gitignore
when generating gems with git
...
aec5a7887d
2025-06-03 08:06:39 +09:00
TangRufus
9024caa1d6
[rubygems/rubygems] Ignore Gemfile
, gems.rb
& gems.locked
according to init_gems_rb
preference
...
88aeb66f41
2025-06-03 08:06:31 +09:00
TangRufus
2667df27e9
[rubygems/rubygems] Remove .git
from spec.files
default ignore list
...
4f96e12ff3
2025-06-03 08:06:13 +09:00
TangRufus
ab63fb0e3b
[rubygems/rubygems] Rename ignore_files
to ignore_paths
...
c07e3a88aa
2025-06-03 08:06:05 +09:00
TangRufus
636ff31c4e
[rubygems/rubygems] Add .gitignore
, gems.rb
& gems.locked
into spec.files
default ignore list
...
6390ed7a2b
2025-06-03 08:05:49 +09:00
TangRufus
63ae1d289a
[rubygems/rubygems] Remove features/
from spec.files
default ignore list
...
77ba4192a7
2025-06-03 08:05:39 +09:00
TangRufus
68345e2930
[rubygems/rubygems] Only ignore test/
when generating gems with minitest
or test-unit
...
c464f2036a
2025-06-03 08:05:31 +09:00
TangRufus
959bde8643
[rubygems/rubygems] Suffix .circleci
with /
in spec.files
in the .gemspec
template
...
e48c6beaf6
2025-06-03 08:05:07 +09:00
TangRufus
3691c5409d
[rubygems/rubygems] Suffix .github
with /
in spec.files
in the .gemspec
template
...
edf13f7e60
2025-06-03 08:04:59 +09:00
TangRufus
68d64f464a
[rubygems/rubygems] Exclude spec
from spec.files
in the .gemspec
template only when using RSpec
...
a42387b8be
2025-06-03 08:04:49 +09:00
TangRufus
6b2088cf90
[rubygems/rubygems] Exclude .rspec
from spec.files
in the .gemspec
template
...
331901941d
2025-06-03 08:04:39 +09:00
TangRufus
a7be563d0b
[rubygems/rubygems] Exclude .rubocop.yml
and .standard.yml
from spec.files
in the .gemspec
template
...
9d937d4f7f
2025-06-03 08:04:32 +09:00
TangRufus
4802571729
[rubygems/rubygems] Remove appveyor
from spec.files
default ignore list
...
2f2046c97b
2025-06-03 08:04:18 +09:00
TangRufus
04a396409d
[rubygems/rubygems] Refactor spec.files
ignore list generation
...
c11539f325
2025-06-03 08:04:04 +09:00
Samuel Giddins
af27688697
[rubygems/rubygems] Remove reference to validate_rust_builder_rubygems_version
...
Signed-off-by: Samuel Giddins <segiddins@segiddins.me>
f8baf13ab0
2025-05-26 11:46:12 +09:00
Samuel Giddins
c9ba3d0bac
[rubygems/rubygems] Bump required_ruby_version to 3.2
...
Ruby 3.1 was EOL March 2025
Signed-off-by: Samuel Giddins <segiddins@segiddins.me>
29c21b1e78
2025-05-26 11:46:12 +09:00
Samuel Giddins
bdc3363d0f
[rubygems/rubygems] Update required_ruby_version to 3.1
...
3.0 has been EOL since march, drop support for it before the 3.4 release is cut
Signed-off-by: Samuel Giddins <segiddins@segiddins.me>
fc1f03b06a
2024-10-04 20:01:51 +00:00
Yuji Yaginuma
c37b667774
[rubygems/rubygems] Make an exe file executable when generating new gems
...
Currently, an exe file isn't executable when generating new gems
because it doesn't have the correct permission.
This PR sets the correct permission same as files under the `bin`.
6509bf128a
2024-09-11 04:41:20 +00:00
Jason Karns
a4563be05c
[rubygems/rubygems] bundle-gem learns to find Gemfile template correctly
...
Removes the symlink for gems.rb.tt and instead uses the singular
template file. Only the destination filename for the gemfile reads from
the `init_gems_rb` setting.
43ce0e1666
2024-07-25 19:50:59 +00:00
Jerome Dalbert
c6c817df28
[rubygems/rubygems] Add --no-test, --no-ci, and --no-linter options
...
f58660ffcc
2024-06-26 11:24:47 +00:00
Masato Ohba
933ede5d76
[rubygems/rubygems] Remove travis_removal_info
...
`travis_removal_info` is added by https://github.com/rubygems/rubygems/pull/6150 . According to the comment, it's supposed to be removed at bundler v2.5.0 but it hasn't.
e18797d43f
2024-01-29 05:39:13 +00:00
Masato Ohba
0bac390e07
[rubygems/rubygems] Bump Ruby version to be used in bundle gem
template
...
since 2.6 and 2.7 are EOL and bundler dropped their support by https://github.com/rubygems/rubygems/pull/7116 .
b562d9a822
2024-01-27 15:50:24 +00:00
Yuji Yaginuma
8bb90f4d77
[rubygems/rubygems] Use Minitest::TestTask
in a template file for minitest
...
`minitest` has introduced a rake task for running test on 5.16.0.
https://github.com/minitest/minitest/blob/master/History.rdoc#5160--2022-06-14-
This has some tasks related to running tests and it's useful for
`minitest` user I think.
https://github.com/minitest/minitest#rake-tasks-
This PR changed to use the task in a template file for `minitest`
7a86d13062
2023-12-08 03:25:43 +00:00
David Rodríguez
2755cb1b2f
[rubygems/rubygems] Use modern hashes consistently
...
bb66253f2c
2023-12-07 22:29:33 +00:00
Eric Mueller
73440e1ef2
[rubygems/rubygems] Many major_deprecations supply :removed_message
...
Generally the removed message is very similar, but often it needs to
specify that the feature has "been removed" instead of "will be
removed", or "been deprecated". And a few chunks of text needed more
substantial updates. And a number of them seemed to have been carefully
crafted to make sense in either context, so I left those alone.
8d42cf9104
2023-12-01 17:52:38 +00:00
Hiroshi SHIBATA
c5861903ac
[rubygems/rubygems] Handle CI configuration on ignore list for Gem::Specification#files
...
4bb0ef3e55
2023-10-25 00:46:09 +00:00
Samuel Giddins
812c8196b6
[rubygems/rubygems] Remove usage of Dir.chdir that just execute a subprocess
...
Preferring instead to spawn the subprocess in the correct directory
ad5abd6a45
2023-09-21 18:30:37 +00:00
Koichi ITO
4fbfc116ca
[rubygems/rubygems] Update GitHub organization of Standard Ruby
...
## What was the end-user or developer problem that led to this PR?
The old URL https://github.com/testdouble/standard is mentioned.
## What is your fix for the problem, implemented in this PR?
This PR updates to the new URL https://github.com/standardrb/standard .
eeafba72fc
2023-07-12 12:29:29 +00:00
Hiroshi SHIBATA
f6620037ba
Merge RubyGems-3.4.0 and Bundler-2.4.0
2022-12-24 16:57:07 +09:00
Hiroshi SHIBATA
18ba89093a
Merge RubyGems/Bundler master
...
Pick from ba3adad4d8
2022-12-20 13:15:02 +09:00
Josef Šimánek
8eb6618013
[rubygems/rubygems] Turn --ext
option into string. Deprecate usage without explicit value.
...
- this is preparation for onboarding Rust based extension gem generator
d32801bdbc
2022-12-20 13:15:02 +09:00
Hiroshi SHIBATA
bbe56a6437
Merge RubyGems/Bundler master
...
from bfb0ae6977
2022-12-12 10:49:43 +09:00
David Rodríguez
24fd2f73d0
Resync Bundler & RubyGems
2022-09-08 11:25:03 +09:00
Yusuke Nakamura
7353f950c3
[rubygems/rubygems] Change generated namespaced test class name in minitest
...
* `foo` => `TestFoo`
* `foo_bar` => `TestFooBar`
* `foo-bar` => `Foo::TestBar`
353cdd61c3
2022-01-20 01:04:53 +09:00
Yusuke Nakamura
4451313252
[rubygems/rubygems] Update generated minitest file style
...
foo => test/test_foo.rb
foo-bar => test/foo/test_bar.rb
foo_bar => test/test_foo_bar.rb
c795e5d40d
2022-01-20 01:04:52 +09:00
Yusuke Nakamura
4e955b2e37
[rubygems/rubygems] Create minitest file to underscored path in "bundle gem" command
...
...with dashed gem name
In "bundle gem" command with dashed name gem (e.g. foo-bar) generates
`test/test_foo/bar.rb`, but this file contains undefined class `TestFoo`
and moreover, does not include in "bundle exec rake test" target.
Therefore, intentially the first test after gem created is fail, but in
case of gem name contains dash character is not.
The change doings...
(when "bundle gem foo-bar" called)
* create `test/test_foo_bar.rb`
* define `TestFooBar` class in `test/test_foo_bar.rb`
5d9a69fc0f
2022-01-20 01:04:52 +09:00
Hiroshi SHIBATA
0b53a8895f
Merge rubygems master fd676ac464491afaa0baf5435cb11b3f86229cbd
2021-12-01 11:00:10 +09:00
OKURA Masafumi
7e506716d2
Newly generated gems require Ruby 2.6.0
...
In 2021, Ruby 2.5 and older are EOL.
We can set the default required Ruby version to 2.6.0 to
encourage people to use newer Ruby.
If the command is executed with old Ruby, it falls back to 2.3.0.
It's still possible to create a gem for older Ruby just by changing
two lines of code (one in gemspec and another is in rubocop.yml).
2021-10-09 09:07:47 +09:00
David Rodríguez
a3b3fdc3cd
[rubygems/rubygems] Take advantage of target
being a Pathname
...
c31b8cd232
2021-08-31 19:06:14 +09:00
David Rodríguez
8adc606271
[rubygems/rubygems] Fix git repo initialization on a path with spaces
...
a2d6e10192
2021-08-31 19:06:14 +09:00
Hiroshi SHIBATA
ed149dbf46
Merge the master branch of Bundler
2021-04-15 15:36:15 +09:00
David Rodríguez
53468cc111
Sync latest development version of bundler & rubygems
2021-03-08 13:47:35 +09:00
Hiroshi SHIBATA
69ed64949b
Track Bundler master(2.3.0.dev) branch at 55634a8af18a52df86c4275d70fa1179118bcc20
2021-01-04 13:14:43 +09:00
Hiroshi SHIBATA
d386a58f6f
Merge bundler-2.2.0.rc.2
2020-10-15 17:19:02 +09:00
Utkarsh Gupta
22ee047f73
[rubygems/rubygems] Only add .rubocop.yml when --rubocop flag is passed
...
Signed-off-by: Utkarsh Gupta <utkarsh@debian.org>
ef2dae4222
2020-06-18 19:14:15 +09:00