Commit graph

13 commits

Author SHA1 Message Date
Nobuyoshi Nakada
316d1e1014 [ruby/tmpdir] Fix for environment without git
3f1f2260eb
2024-02-27 01:31:50 +00:00
Nobuyoshi Nakada
c0c56d1714 [ruby/tmpdir] 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.

f505e3f7cb
2024-02-25 08:32:09 +00:00
Nobuyoshi Nakada
7356067b73 [ruby/tmpdir] Update gemspec according to the recent bundler template
4ef7bc4f2a
2024-02-25 05:04:12 +00:00
Hiroshi SHIBATA
ad81af22d4
[ruby/tmpdir] Bump up 0.2.0
8bbd87c8ac
2023-11-07 11:39:02 +09:00
Nobuyoshi Nakada
cfa6a892d0
Redirect to IO::NULL for the portability 2023-05-05 18:52:36 +09:00
Hiroshi SHIBATA
325ac80c21 [ruby/tmpdir] Bump version to 0.1.3
ee99c758fd
2022-12-05 08:15:11 +00:00
Nobuyoshi Nakada
d55f72bcdb [ruby/tmpdir] Update supported and testing ruby versions 2022-10-25 06:59:30 +00:00
Hiroshi SHIBATA
a00d92326c
[ruby/tmpdir] Bump version to 0.1.2
c79bc7adf6
2021-04-05 21:08:58 +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
f8435f424b
Added dependencies for tmpdir 2020-12-02 09:12:25 +09:00
Hiroshi SHIBATA
0bb8bd7623
Added the missing licenses field to some default gems 2020-08-18 20:26:39 +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
bbd1ed626f
Promote tmpdir to the default gems 2020-02-12 20:34:19 +09:00