Commit graph

13 commits

Author SHA1 Message Date
Nobuyoshi Nakada
cbbb98ba5e [ruby/tempfile] Fix for environment without git
f224164979
2024-02-27 01:31:12 +00:00
Nobuyoshi Nakada
dddf62426b [ruby/tempfile] Use IO.popen to list files
- Redirect `git ls-files` 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.

ac5bab8c7a
2024-02-26 15:56:28 +09:00
Nobuyoshi Nakada
38e3ad2675
Update gemspec according to the recent bundler template 2024-02-26 15:55:17 +09:00
Nobuyoshi Nakada
cfa6a892d0
Redirect to IO::NULL for the portability 2023-05-05 18:52:36 +09:00
Hiroshi SHIBATA
8b924ebdf2 [ruby/tempfile] Expose Tempfile::VERSION
6aa1f37dc4
2023-04-13 09:49:14 +00:00
Hiroshi SHIBATA
067747bb9a [ruby/tempfile] Bump version to 0.1.3
99dc1f7058
2022-12-14 05:35:48 +00:00
Olle Jonsson
6923dd932b
[ruby/tempfile] Drop unused gemspec directives
This gem exposes no executables.

07fde5fe14
2022-05-20 17:49:14 +09:00
Hiroshi SHIBATA
a7d07ee90d [ruby/tempfile] Bump up tempfile version to 0.1.2
e5ec902256
2021-10-19 20:55:55 +09:00
Hiroshi SHIBATA
9b9cbbbc17
Update library versions of the default gems.
They are followed up with
  8fb02b7a97
2020-12-22 21:45:28 +09:00
Hiroshi SHIBATA
0bb8bd7623
Added the missing licenses field to some default gems 2020-08-18 20:26:39 +09:00
Hiroshi SHIBATA
484ed0d2a5
The current tempfile.rb is only works with Ruby 2.5+ 2020-04-08 15:20:44 +09:00
Kazuhiro NISHIYAMA
de10631dcf
Add workaround for test-bundler failure
500526558 (step):16:127
```
Failures:

  1) Bundler.setup when Bundler is bundled doesn't blow up
     Failure/Error: expect(err).to be_empty

       expected `"fatal: not a git repository (or any of the parent directories): .git\nfatal: not a git repository (o...the parent directories): .git\nfatal: not a git repository (or any of the parent directories): .git".empty?` to return true, got false

       Commands:
       $ /home/runner/work/actions/actions/snapshot-master/ruby \
         -I/home/runner/work/actions/actions/snapshot-master/lib:/home/runner/work/actions/actions/snapshot-master/spec/bundler \
         -rsupport/hax -rsupport/artifice/fail \
         /home/runner/work/actions/actions/snapshot-master/libexec/bundle install --retry 0
       Resolving dependencies...
       Using bundler 2.1.4
       Bundle complete! 1 Gemfile dependency, 1 gem now installed.
       Use `bundle info [gemname]` to see where a bundled gem is installed.
       fatal: not a git repository (or any of the parent directories): .git
       fatal: not a git repository (or any of the parent directories): .git
       fatal: not a git repository (or any of the parent directories): .git
       # $? => 0

       $ /home/runner/work/actions/actions/snapshot-master/ruby \
         -I/home/runner/work/actions/actions/snapshot-master/lib:/home/runner/work/actions/actions/snapshot-master/spec/bundler \
         -rsupport/hax -rsupport/artifice/fail \
         /home/runner/work/actions/actions/snapshot-master/libexec/bundle exec ruby -e \
         require\ \'bundler\'\;\ Bundler.setup
       fatal: not a git repository (or any of the parent directories): .git
       fatal: not a git repository (or any of the parent directories): .git
       fatal: not a git repository (or any of the parent directories): .git
       # $? => 0
     # ./spec/bundler/runtime/setup_spec.rb:1056:in `block (3 levels) in <top (required)>'
     # ./spec/bundler/spec_helper.rb:111:in `block (3 levels) in <top (required)>'
     # ./spec/bundler/spec_helper.rb:111:in `block (2 levels) in <top (required)>'
     # ./spec/bundler/spec_helper.rb:78:in `block (2 levels) in <top (required)>'
make: *** [yes-test-bundler] Error 1
```
2020-03-12 19:17:08 +09:00
Hiroshi SHIBATA
b8e7bd9f44
Promote tempfile to the default gems. 2020-02-12 19:46:34 +09:00