bungee_gum 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: dc5e896fdf75166b78155c92c6f269b6838165b54774e38ceacf01bf64d64fde
4
- data.tar.gz: d2f6c2c592193a40f877a0d124a29490ee2ac726336d3d300596fb553d541edd
3
+ metadata.gz: 2717cbc9e7adf665bb2bb9e1edf581f3c27cb3b1d70fa6ee32af763f0252de0a
4
+ data.tar.gz: ce755610c7c67cf776bb971be7741d4b4640876612088b61b79f16f2c00a19f4
5
5
  SHA512:
6
- metadata.gz: d628f43d4ea4ed99f129f81ab4c68fd3d638a5c4c4608d98233ebaafa5ec0796d51d7e20065e543e65c9ddea23f4c5411544edc9b53a743fb859ec5bd72a7142
7
- data.tar.gz: f97c69d2ea9b2c9c55927969d92c536f38f2da856a032001de85b6c28101997ca1119f438db1bc6ae06617ea4cd76e8f05b310fc6bdb2d772aa813622f7d63f6
6
+ metadata.gz: 647259559afcb6cd17ed4ec2b00292d2fb6aefe5996a838941cd9b80a7669c68a2766add689a8e0cd02005a04115b9f06446702507a0931b253bbd7312de8b9e
7
+ data.tar.gz: 7283d0aee3ff80a406aaf61f139da6f8dd94207eecc9ecc5f090ca6cdc1192f2760739f7ff4a7e06958b2acc9412509c32b08ee9a326d6d2efa5c2a3d8871cfc
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  ## [Unreleased]
2
2
 
3
+ ## [0.1.1] - 2023-12-12
4
+
5
+ ### Fixed
6
+
7
+ - Fixed a bug where the program would terminate abnormally if options were not specified.
8
+ - Fixed a bug where the `log` directory was not created if it did not exist.
9
+ - Renamed `log` directory to `logs` directory.
10
+
3
11
  ## [0.1.0] - 2023-12-06
4
12
 
5
13
  - Initial release
data/README.md CHANGED
@@ -1,22 +1,28 @@
1
- # BungeeGum
1
+ # Bungee Gum
2
2
 
3
- This gem is a build
3
+ ## Description
4
4
 
5
- ## Installation
5
+ Bungee Gum collects Ruby building and testing logs.
6
6
 
7
- TODO: Replace `UPDATE_WITH_YOUR_GEM_NAME_IMMEDIATELY_AFTER_RELEASE_TO_RUBYGEMS_ORG` with your gem name right after releasing it to RubyGems.org. Please do not do it earlier due to security reasons. Alternatively, replace this section with instructions to install your gem from git if you don't plan to release to RubyGems.org.
7
+ This gem gets the latest source code from the [ruby/ruby](https://github.com/ruby/ruby) master branch. Then, build source codes in the same way as ["Building Ruby"](https://docs.ruby-lang.org/en/master/contributing/building_ruby_md.html). And also run tests (i.e. `make test-all`).
8
8
 
9
- Install the gem and add to the application's Gemfile by executing:
9
+ Log files are compressed as `.gz` and saved in `logs` directory. `logs` directory will be created in the same directory as the directory where Bungee Gum is executed.
10
10
 
11
- $ bundle add UPDATE_WITH_YOUR_GEM_NAME_IMMEDIATELY_AFTER_RELEASE_TO_RUBYGEMS_ORG
11
+ ## Installation
12
12
 
13
13
  If bundler is not being used to manage dependencies, install the gem by executing:
14
14
 
15
- $ gem install UPDATE_WITH_YOUR_GEM_NAME_IMMEDIATELY_AFTER_RELEASE_TO_RUBYGEMS_ORG
15
+ $ gem install bungee_gum
16
+
17
+ Install the gem and add to the application's Gemfile by executing:
18
+
19
+ $ bundle add bungee_gum
16
20
 
17
21
  ## Usage
18
22
 
19
- TODO: Write usage instructions here
23
+ If you installed it yourself:
24
+
25
+ $ bgum
20
26
 
21
27
  ## Development
22
28
 
@@ -63,7 +63,9 @@ class BungeeGum::RubyBuild
63
63
  }
64
64
  opt.parse!(ARGV)
65
65
 
66
- if !param[:with].empty? || !param[:all_build] || param[:only].keys.size > 1
66
+ if param[:only].keys.size > 1 ||
67
+ (param[:only].keys.size == 1 && !param[:with].empty?) ||
68
+ (param[:only].keys.size == 1 && !!param[:all_build])
67
69
  puts "`--only-universalparser` can not be used in conjunction with other options." if params.include?('--only-universalparser')
68
70
  puts "`--only-yjit` can not be used in conjunction with other options." if params.include?('--only-yjit')
69
71
  puts "`--only-rjit` can not be used in conjunction with other options." if params.include?('--only-rjit')
@@ -73,6 +75,7 @@ class BungeeGum::RubyBuild
73
75
 
74
76
  clone_or_pull(LOCAL_RUBY_REPOSITORY, true)
75
77
  Dir.mkdir(INSTALL_PREFIX_BASE, 0755) unless Dir.exist?(INSTALL_PREFIX_BASE)
78
+ Dir.mkdir('logs', 0755) unless Dir.exist?('./logs')
76
79
  if param[:only].keys.size == 0
77
80
  clone_or_pull(FOR_BUILD_REPOSITORY)
78
81
  fork {
@@ -141,8 +144,8 @@ class BungeeGum::RubyBuild
141
144
  wd = working_dir[repo_dir.to_sym]
142
145
  current_dir = Dir.pwd
143
146
 
144
- build_gz = "#{current_dir}/log/ruby-#{build_type}-build.#{now}.log.gz"
145
- test_gz = "#{current_dir}/log/ruby-#{build_type}-test.#{now}.log.gz"
147
+ build_gz = "#{current_dir}/logs/ruby-#{build_type}-build.#{now}.log.gz"
148
+ test_gz = "#{current_dir}/logs/ruby-#{build_type}-test.#{now}.log.gz"
146
149
 
147
150
  Dir.chdir(wd) do
148
151
  unless Dir.exist?("#{current_dir}/configure")
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module BungeeGum
4
- VERSION = '0.1.0'
4
+ VERSION = '0.1.1'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bungee_gum
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - jinroq
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2023-12-06 00:00:00.000000000 Z
11
+ date: 2023-12-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: git
@@ -24,7 +24,9 @@ dependencies:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
26
  version: '1.18'
27
- description: TBE
27
+ description: This gem gets the latest source code from the [ruby/ruby](https://github.com/ruby/ruby)
28
+ master branch. Then, build source codes in the same way as ["Building Ruby"](https://docs.ruby-lang.org/en/master/contributing/building_ruby_md.html).
29
+ And also run tests (i.e. `make test-all`).
28
30
  email:
29
31
  - 2787780+jinroq@users.noreply.github.com
30
32
  executables:
@@ -64,8 +66,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
64
66
  - !ruby/object:Gem::Version
65
67
  version: '0'
66
68
  requirements: []
67
- rubygems_version: 3.4.10
69
+ rubygems_version: 3.5.0.dev
68
70
  signing_key:
69
71
  specification_version: 4
70
- summary: This gem is a build tool.
72
+ summary: This gem collects Ruby building and testing logs.
71
73
  test_files: []