Граф коммитов

106 Коммитов

Автор SHA1 Сообщение Дата
Nobuyoshi Nakada e1026000af [rubygems/rubygems] Use `IO.popen` to list files
- Redirect stderr `git ls-files` to null without shelling out.

- When building by `gem`, `__FILE__` is the path name given in the
  command line, or the gemspec file name in the current directory.  In
  that case, comparison it and expanded path never equal.  Compare
  listed file names with the base name of `__FILE__` instead.

https://github.com/rubygems/rubygems/commit/5583433dbb
2024-03-05 06:53:20 +00:00
Douglas Eichelberger b4be283485 [rubygems/rubygems] Remove redundant rubocop configs
https://github.com/rubygems/rubygems/commit/a3f60240bf
2024-02-19 04:48:42 +00:00
Samuel Giddins baf2ec2ca8 [rubygems/rubygems] Use match? when regexp match data is unused
Improved performance / reduced allocations

https://github.com/rubygems/rubygems/commit/b04726c9a7
2023-12-13 22:00:26 +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`

https://github.com/rubygems/rubygems/commit/7a86d13062
2023-12-08 03:25:43 +00:00
Michael Go bd2b6b702c [rubygems/rubygems] update Magnus library in Rust extension gem template
https://github.com/rubygems/rubygems/commit/46f09800da
2023-11-29 02:21:38 +00:00
Hiroshi SHIBATA c5861903ac [rubygems/rubygems] Handle CI configuration on ignore list for Gem::Specification#files
https://github.com/rubygems/rubygems/commit/4bb0ef3e55
2023-10-25 00:46:09 +00:00
Graham Marlow f3aea74c3d [rubygems/rubygems] Include gemspec in ExtensionTask for native gem tasks
https://github.com/rubygems/rubygems/commit/042cfb7007
2023-10-02 01:34:01 +00:00
Yoshiki Takagi 465c222ef1 [rubygems/rubygems] Bump actions/checkout to v4 in bundler gem template
https://github.com/rubygems/rubygems/commit/5ed4c600da
2023-09-19 01:06:35 +00:00
Mat Sadler a3c0e9d90d [rubygems/rubygems] update Magnus library in Rust extension gem template
https://github.com/rubygems/rubygems/commit/19a92a3367
2023-07-31 06:25:21 +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.

https://github.com/rubygems/rubygems/commit/eeafba72fc
2023-07-12 12:29:29 +00:00
Gareth Adams eaf11d3dd4 [rubygems/rubygems] Stop publishing Gemfile in default gem template
Similarly to how the other ignored files are intended for local
development and not for production, the Gemfile and Gemfile.lock files
for a gem only relate to local development and aren't useful to people
installing the gem.

https://github.com/rubygems/rubygems/commit/59049c04be
2023-06-08 15:20:05 +00:00
Hiroshi SHIBATA 70371aa071
Revert accidentally commit of wrong file
Revert "[ruby/syntax_suggest] Remove unnecessary `--color` option"

  This reverts commit 588dd44d41.
2023-04-06 16:30:00 +09:00
Nobuyoshi Nakada 588dd44d41 [ruby/syntax_suggest] Remove unnecessary `--color` option
It is enabled automatically if possible.  Forcing this option makes
https://github.com/rspec/rspec-core/pull/3017 useless.

https://github.com/ruby/syntax_suggest/commit/8e7141b472
2023-04-06 15:45:27 +09:00
Hiroshi SHIBATA d766d5346b [rubygems/rubygems] Partly reverted
https://github.com/rubygems/rubygems/pull/6541

https://github.com/rubygems/rubygems/commit/21e07a04a1
2023-03-28 07:26:46 +00:00
Hiroshi SHIBATA 36254c5ddf [rubygems/rubygems] Use append_cflags instead of directly append for CFLAGS
https://github.com/rubygems/rubygems/commit/61ec0c8389
2023-03-27 09:47:20 +00:00
Jean Boussier 276f4be96d [rubygems/rubygems] Generate native gems with `-fvisibility=hidden`
I recently ran into very nasty issues with dynamic symbols clashing between
two native gems.

I believe the overwhelming majority of native gems don't want to export
their symbols, so hidding them by default would make sense to me.

https://github.com/rubygems/rubygems/commit/449624aa54
2023-03-25 00:31:46 +00:00
Justin Searls 464a264cd4 [rubygems/rubygems] Remove reference to `pry` gem from generated `bin/console` file
This is just a suggestion, but since recent versions of Ruby have shipped with a `binding.irb` that provides almost all of the features that `pry` pioneered, it may be time to remove this suggestion in the name of simplicity and not confusing newer developers who aren't familiar with what to use.
2023-03-22 08:32:03 +00:00
Ian Ker-Seymer dd47ce10db [rubygems/rubygems] Use `RbSys::ExtensionTask` when creating new rust gems
https://github.com/rubygems/rubygems/commit/125f9fece9
2023-03-10 11:50:06 +00:00
David Rodríguez 93f0749a64 [rubygems/rubygems] Fix gemspec file filter
Explicitly match directory separator to not match files in repo root
accidentally.

https://github.com/rubygems/rubygems/commit/b936805ea9

Co-authored-by: Nobuyoshi Nakada <nobu@ruby-lang.org>
2023-03-07 16:51:36 +09:00
Orien Madgwick 573522bd84 [rubygems/rubygems] Simplify the gem package file filter in the gemspec template
The regular expression is difficult to understand at a glance.
Let's replace it with a much simpler string comparison.

https://github.com/rubygems/rubygems/commit/a3745aa03f
2023-03-02 17:05:04 +00:00
Tony Hsu 5f3c7ac196 [rubygems/rubygems] Replace lockfile with `.locked`
https://github.com/rubygems/rubygems/commit/203f3e3802
2023-03-02 14:43:27 +00:00
Hiroshi SHIBATA 38fa8eb4cb Merge rubygems/bundler master
Pick from e9304aed7e
2023-02-21 19:28:12 +09:00
Akira Matsuda cab8c11611 [rubygems/rubygems] Properly exclude gemspec file itself from gem
by comparing the file names with full path.

Follows up https://github.com/rubygems/rubygems/commit/f444478eaccf

https://github.com/rubygems/rubygems/commit/9637a82d2e
2023-02-06 16:19:46 +00:00
Sam Bostock 45a2f1c5c2 [rubygems/rubygems] Replace "prior to" with "immediately after"
Currently, the instructions and placeholder contradict each other.

The commit that introduced this placeholder (42bc4715d920e836c8499883d)
makes it clear that the placeholder should be replaced AFTER publishing
(i.e. once the author successfully claims the gem name on Rubygems), so
the placeholder should match.

https://github.com/rubygems/rubygems/commit/23e2dea828
2023-02-05 01:37:36 +00:00
Hiroshi SHIBATA a43f1d90c2 Merge RubyGems and Bundler master
from 0635c1423d
2023-01-10 15:53:07 +09: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
Hiroshi SHIBATA bbe56a6437 Merge RubyGems/Bundler master
from bfb0ae6977
2022-12-12 10:49:43 +09:00
Takuya Noguchi 830b2e217b [rubygems/rubygems] Update GitLab CI template with new one
GitLab CI now needs the default keyword on specification of image
and before_script.

https://docs.gitlab.com/ee/ci/yaml/#default

Signed-off-by: Takuya Noguchi <takninnovationresearch@gmail.com>

https://github.com/rubygems/rubygems/commit/b79e78e733
2022-09-22 11:42:57 +09:00
Hiroshi SHIBATA 71794a75db Merge rubygems/bundler HEAD
Pick from 8331e63263
2022-08-03 13:14:10 +09:00
Hiroshi SHIBATA 678d58c850 Merge rubygems master 1e4eda741d732ca1bd7031aef0a16c7348adf7a5 2022-04-28 19:08:49 +09:00
Hartley McGuire 4db75b6fe7 [rubygems/rubygems] bump actions/checkout to 3 in bundler gem template
Dependabot bumped the repo's configuration in 0c996fa but it did not
bump the version in the template for `bundler gem`

https://github.com/rubygems/rubygems/commit/e14980e169
2022-04-04 14:14:40 +09:00
Brad Gessler 8ae09706f3 [rubygems/rubygems] Update README.md.tt
Reduce the number of steps required to install a gem from two steps to one by using `bundle add`

https://github.com/rubygems/rubygems/commit/2c968420cd
2022-03-07 07:03:35 +09:00
Yusuke Nakamura 7353f950c3 [rubygems/rubygems] Change generated namespaced test class name in minitest
* `foo` => `TestFoo`
* `foo_bar` => `TestFooBar`
* `foo-bar` => `Foo::TestBar`

https://github.com/rubygems/rubygems/commit/353cdd61c3
2022-01-20 01:04:53 +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`

https://github.com/rubygems/rubygems/commit/5d9a69fc0f
2022-01-20 01:04:52 +09:00
Justin Searls a485152660 [rubygems/rubygems] Lock standard.yml to the required ruby version
https://github.com/rubygems/rubygems/commit/1791b5b9e5
2022-01-13 23:59:55 +09:00
Hiroshi SHIBATA 8bba6d3d54 [rubygems/rubygems] Exclude bin directory for newgem template, Because it contains only development script
https://github.com/rubygems/rubygems/commit/01017ee8ca
2022-01-05 19:16:53 +09:00
Hiroshi SHIBATA 69dc2ea465 Merge RubyGems-3.3.0 and Bundler-2.3.0 2021-12-21 15:27:05 +09:00
David Rodríguez 852ea1e893 [rubygems/rubygems] Remove unnecessary comment
https://github.com/rubygems/rubygems/commit/5e50f12e7a
2021-12-08 07:59:35 +09:00
David Rodríguez 76cad13759 [rubygems/rubygems] Don't add custom github source to `bundle init` Gemfile
It's provided by bundler.

https://github.com/rubygems/rubygems/commit/25ccaab46b
2021-12-08 07:59:34 +09:00
Hiroshi SHIBATA 0b53a8895f
Merge rubygems master fd676ac464491afaa0baf5435cb11b3f86229cbd 2021-12-01 11:00:10 +09:00
Olle Jonsson b68217fff9 [rubygems/rubygems] Update bundler/lib/bundler/templates/newgem/github/workflows/main.yml.tt
https://github.com/rubygems/rubygems/commit/8836fe157b

Co-authored-by: David Rodríguez <deivid.rodriguez@riseup.net>
2021-12-01 07:15:18 +09:00
Olle Jonsson 46a24f7e77 [rubygems/rubygems] Update main.yml.tt
https://github.com/rubygems/rubygems/commit/3260173c59
2021-12-01 07:15:18 +09:00
Olle Jonsson a7fd639423 [rubygems/rubygems] newgem tmpl: ruby as "2.7" in GH Actions matrix
https://github.com/rubygems/rubygems/commit/f5bead5634
2021-12-01 07:15:17 +09:00
Olle Jonsson 42efb8c185 [rubygems/rubygems] newgem templ: Avoid Float 3.0 -> "3" in GH Action
This change avoids a YAML Float-to-String conversion, which turns a 3.0 into a "3". That can make names of builds less clear.

In order to use this new capability, I added a "name" descriptor to the matrix-created Job.

https://github.com/rubygems/rubygems/commit/6221241ad4
2021-12-01 07:15:17 +09:00
Justin Searls d0cad8ad83 [rubygems/rubygems] Re-enable `default_ignores` option for standard
I am not sure why this flag was turned off (it wasn't explained in my commit message in 0365dc852767ae589376a7aad1fb129738e408b0 or in my PR in #4411). 

Whatever the reason, without `default_ignores` turned on, most default CI configurations will immediately fail, as they most likely vendor and cache their dependencies under `vendor`, which will cause standard to run against all the vendored gems and (most likely) fail. I think we should remove this before this feature is released.

https://github.com/rubygems/rubygems/commit/677f74be48
2021-10-22 03:33:44 +09:00
fiveNinePlusR 105e037fe8 [rubygems/rubygems] Fix possible malicious website to example.com
example.com is the canonical stand in for domain examples and will never have a backing website.

via https://www.rfc-editor.org/rfc/rfc2606.html

https://github.com/rubygems/rubygems/commit/26622c81c2
2021-09-22 10:14:04 +09:00
Keiko Kaneko e841042070 [rubygems/rubygems] Add missing key `branches:`
ref: https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions#onpushpull_requestbranchestags

Running jobs with only branch name, without `branches:`, CI fails

https://github.com/rubygems/rubygems/commit/fcec167d61
2021-08-31 19:06:14 +09:00
David Rodríguez 43aecf216e [rubygems/rubygems] Get a CI matrix configured in default Github Actions generated config
Even if it only has one entry at the moment, it makes it easier to add
new entries by doing it this way.

https://github.com/rubygems/rubygems/commit/46232fe265

Co-authored-by: NeimadTL <damientalbot26@gmail.com>
2021-08-31 19:06:14 +09:00
David Rodríguez 2e30d9ab42 [rubygems/rubygems] Avoid double CI runs in default Github Actions generated config
Otherwise CI will run once for every pull request update and once for
every push.

The disavantage is that people working on a non default branch without
creating pull requests won't get CI run at all.

I think the advantages are greater than the disadvantages, it's also my
personal workflow, and it's something desired enough so that someone
opened an issue about it.

So let's do it!

https://github.com/rubygems/rubygems/commit/924d916a73

Co-authored-by: NeimadTL <damientalbot26@gmail.com>
2021-08-31 19:06:14 +09:00