bungee_gum 0.1.1 → 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +7 -0
- data/CODE_OF_CONDUCT.md +1 -1
- data/README.md +1 -1
- data/lib/bungee_gum/ruby_build.rb +17 -20
- data/lib/bungee_gum/version.rb +1 -1
- metadata +10 -9
    
        checksums.yaml
    CHANGED
    
    | @@ -1,7 +1,7 @@ | |
| 1 1 | 
             
            ---
         | 
| 2 2 | 
             
            SHA256:
         | 
| 3 | 
            -
              metadata.gz:  | 
| 4 | 
            -
              data.tar.gz:  | 
| 3 | 
            +
              metadata.gz: 8ae22162c661f9110076197536f5564484106c8e56e0064ee6b8e44bcb3eb685
         | 
| 4 | 
            +
              data.tar.gz: 3352664eb21397a0ac84ec2bc3eee87f0168ec89385d6b11e6d25a61378f8df8
         | 
| 5 5 | 
             
            SHA512:
         | 
| 6 | 
            -
              metadata.gz:  | 
| 7 | 
            -
              data.tar.gz:  | 
| 6 | 
            +
              metadata.gz: cb71f3ea731a8873fcc029c3f9b0f933fa1e498a160a35ad903d73669a7dfbe29f8708083d8488fbfc7992c52a3d9163228027cb0057a21ca53a3ac8253556e3
         | 
| 7 | 
            +
              data.tar.gz: 9363193534c251c1d3bf2b454c45c469b5df57190a0b2eef1f718b0c35775720685b19e02c8df7ba0ba347fa1430e8aba5819dc61dadd91c423663fd6198f382
         | 
    
        data/CHANGELOG.md
    CHANGED
    
    
    
        data/CODE_OF_CONDUCT.md
    CHANGED
    
    | @@ -39,7 +39,7 @@ This Code of Conduct applies within all community spaces, and also applies when | |
| 39 39 |  | 
| 40 40 | 
             
            ## Enforcement
         | 
| 41 41 |  | 
| 42 | 
            -
            Instances of abusive, harassing, or otherwise unacceptable behavior may be reported to the community leaders responsible for enforcement at  | 
| 42 | 
            +
            Instances of abusive, harassing, or otherwise unacceptable behavior may be reported to the community leaders responsible for enforcement at jinroq@users.noreply.github.com. All complaints will be reviewed and investigated promptly and fairly.
         | 
| 43 43 |  | 
| 44 44 | 
             
            All community leaders are obligated to respect the privacy and security of the reporter of any incident.
         | 
| 45 45 |  | 
    
        data/README.md
    CHANGED
    
    | @@ -4,7 +4,7 @@ | |
| 4 4 |  | 
| 5 5 | 
             
            Bungee Gum collects Ruby building and testing logs. 
         | 
| 6 6 |  | 
| 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`).
         | 
| 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`). For build dependencies, see [Dependencies](https://docs.ruby-lang.org/en/master/contributing/building_ruby_md.html#label-Dependencies).
         | 
| 8 8 |  | 
| 9 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 |  | 
| @@ -22,7 +22,7 @@ class BungeeGum::RubyBuild | |
| 22 22 | 
             
                @working_dir = {}
         | 
| 23 23 | 
             
                @now = Time.now.strftime('%Y%m%d%H%M%S')
         | 
| 24 24 | 
             
                @opt = OptionParser.new
         | 
| 25 | 
            -
                @opt.version =  | 
| 25 | 
            +
                @opt.version = BungeeGum::VERSION
         | 
| 26 26 | 
             
              end
         | 
| 27 27 |  | 
| 28 28 | 
             
              def run
         | 
| @@ -33,35 +33,35 @@ class BungeeGum::RubyBuild | |
| 33 33 | 
             
                param[:only] = {}
         | 
| 34 34 | 
             
                param[:skip] = {}
         | 
| 35 35 |  | 
| 36 | 
            -
                opt.on('--with-universalparser', 'Add `--with-universalparser` if you also would like to build with Universal Parser mode enabled.') {|v|
         | 
| 36 | 
            +
                @opt.on('--with-universalparser', 'Add `--with-universalparser` if you also would like to build with Universal Parser mode enabled.') {|v|
         | 
| 37 37 | 
             
                  param[:with][:up] = v
         | 
| 38 38 | 
             
                  params << '--with-universalparser'
         | 
| 39 39 | 
             
                }
         | 
| 40 | 
            -
                opt.on('--only-universalparser', 'Add `--only-universalparser` if you would like to build with only Universal Parser mode enabled. This option can not be used in conjunction with other options.') {|v|
         | 
| 40 | 
            +
                @opt.on('--only-universalparser', 'Add `--only-universalparser` if you would like to build with only Universal Parser mode enabled. This option can not be used in conjunction with other options.') {|v|
         | 
| 41 41 | 
             
                  param[:only][:up] = v
         | 
| 42 42 | 
             
                  params << '--only-universalparser'
         | 
| 43 43 | 
             
                }
         | 
| 44 | 
            -
                opt.on('--with-yjit', 'Add `--with-yjit` if you also would like to build with YJIT mode enabled.') {|v|
         | 
| 44 | 
            +
                @opt.on('--with-yjit', 'Add `--with-yjit` if you also would like to build with YJIT mode enabled.') {|v|
         | 
| 45 45 | 
             
                  param[:with][:yjit] = v
         | 
| 46 46 | 
             
                  params << '--with-yjit'
         | 
| 47 47 | 
             
                }
         | 
| 48 | 
            -
                opt.on('--only-yjit', 'Add `--only-yjit` if you would like to build with only YJIT mode enabled. This option can not be used in conjunction with other options.') {|v|
         | 
| 48 | 
            +
                @opt.on('--only-yjit', 'Add `--only-yjit` if you would like to build with only YJIT mode enabled. This option can not be used in conjunction with other options.') {|v|
         | 
| 49 49 | 
             
                  param[:only][:yjit] = v
         | 
| 50 50 | 
             
                  params << '--only-yjit'
         | 
| 51 51 | 
             
                }
         | 
| 52 | 
            -
                opt.on('--with-rjit', 'Add `--with-rjit` if you also would like to build with RJIT mode enabled.') {|v|
         | 
| 52 | 
            +
                @opt.on('--with-rjit', 'Add `--with-rjit` if you also would like to build with RJIT mode enabled.') {|v|
         | 
| 53 53 | 
             
                  param[:with][:rjit] = v
         | 
| 54 54 | 
             
                  params << '--with-rjit'
         | 
| 55 55 | 
             
                }
         | 
| 56 | 
            -
                opt.on('--only-rjit', 'Add `--only-rjit` if you would like to build with only RJIT mode enabled. This option can not be used in conjunction with other options.') {|v|
         | 
| 56 | 
            +
                @opt.on('--only-rjit', 'Add `--only-rjit` if you would like to build with only RJIT mode enabled. This option can not be used in conjunction with other options.') {|v|
         | 
| 57 57 | 
             
                  param[:only][:rjit] = v
         | 
| 58 58 | 
             
                  params << '--only-rjit'
         | 
| 59 59 | 
             
                }
         | 
| 60 | 
            -
                opt.on('--all-build', 'Add `--all-build` if you would like to build with all modes enabled.') {|v|
         | 
| 60 | 
            +
                @opt.on('--all-build', 'Add `--all-build` if you would like to build with all modes enabled.') {|v|
         | 
| 61 61 | 
             
                  param[:all_build] = v
         | 
| 62 62 | 
             
                  params << '--all-build'
         | 
| 63 63 | 
             
                }
         | 
| 64 | 
            -
                opt.parse!(ARGV)
         | 
| 64 | 
            +
                @opt.parse!(ARGV)
         | 
| 65 65 |  | 
| 66 66 | 
             
                if param[:only].keys.size > 1 ||
         | 
| 67 67 | 
             
                   (param[:only].keys.size == 1 && !param[:with].empty?) ||
         | 
| @@ -121,34 +121,31 @@ class BungeeGum::RubyBuild | |
| 121 121 |  | 
| 122 122 | 
             
              private
         | 
| 123 123 |  | 
| 124 | 
            -
              attr_accessor :working_dir
         | 
| 125 | 
            -
              attr_reader :base_ruby_repo, :now, :opt
         | 
| 126 | 
            -
             | 
| 127 124 | 
             
              def clone_or_pull(repo_dir, from_gh = false)
         | 
| 128 125 | 
             
                key = repo_dir.to_sym
         | 
| 129 | 
            -
                working_dir[key] = "#{Dir.pwd}/#{repo_dir}"
         | 
| 130 | 
            -
                wd = working_dir[key]
         | 
| 126 | 
            +
                @working_dir[key] = "#{Dir.pwd}/#{repo_dir}"
         | 
| 127 | 
            +
                wd = @working_dir[key]
         | 
| 131 128 | 
             
                if Dir.exist?("#{wd}/.git")
         | 
| 132 | 
            -
                  g = Git.open(wd, : | 
| 129 | 
            +
                  g = Git.open(wd, log: Logger.new(STDOUT))
         | 
| 133 130 | 
             
                  g.pull
         | 
| 134 131 | 
             
                else
         | 
| 135 132 | 
             
                  if from_gh
         | 
| 136 133 | 
             
                    Git.clone(GITHUB_RUBY_REPOSITORY, repo_dir)
         | 
| 137 134 | 
             
                  else
         | 
| 138 | 
            -
                    Git.clone(base_ruby_repo, repo_dir)
         | 
| 135 | 
            +
                    Git.clone(@base_ruby_repo, repo_dir)
         | 
| 139 136 | 
             
                  end
         | 
| 140 137 | 
             
                end
         | 
| 141 138 | 
             
              end
         | 
| 142 139 |  | 
| 143 140 | 
             
              def make_and_test(repo_dir, build_type, configure_option)
         | 
| 144 | 
            -
                wd = working_dir[repo_dir.to_sym]
         | 
| 141 | 
            +
                wd = @working_dir[repo_dir.to_sym]
         | 
| 145 142 | 
             
                current_dir = Dir.pwd
         | 
| 146 143 |  | 
| 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"
         | 
| 144 | 
            +
                build_gz = "#{current_dir}/logs/ruby-#{build_type}-build.#{@now}.log.gz"
         | 
| 145 | 
            +
                test_gz = "#{current_dir}/logs/ruby-#{build_type}-test.#{@now}.log.gz"
         | 
| 149 146 |  | 
| 150 147 | 
             
                Dir.chdir(wd) do
         | 
| 151 | 
            -
                  unless  | 
| 148 | 
            +
                  unless File.exist?('configure')
         | 
| 152 149 | 
             
                    system('./autogen.sh > /dev/null 2>&1')
         | 
| 153 150 | 
             
                    system("./configure #{configure_option} > /dev/null 2>&1")
         | 
| 154 151 | 
             
                  end
         | 
    
        data/lib/bungee_gum/version.rb
    CHANGED
    
    
    
        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. | 
| 4 | 
            +
              version: 0.1.2
         | 
| 5 5 | 
             
            platform: ruby
         | 
| 6 6 | 
             
            authors:
         | 
| 7 7 | 
             
            - jinroq
         | 
| 8 8 | 
             
            autorequire: 
         | 
| 9 9 | 
             
            bindir: exe
         | 
| 10 10 | 
             
            cert_chain: []
         | 
| 11 | 
            -
            date:  | 
| 11 | 
            +
            date: 2024-04-08 00:00:00.000000000 Z
         | 
| 12 12 | 
             
            dependencies:
         | 
| 13 13 | 
             
            - !ruby/object:Gem::Dependency
         | 
| 14 14 | 
             
              name: git
         | 
| @@ -24,11 +24,11 @@ dependencies: | |
| 24 24 | 
             
                - - "~>"
         | 
| 25 25 | 
             
                  - !ruby/object:Gem::Version
         | 
| 26 26 | 
             
                    version: '1.18'
         | 
| 27 | 
            -
            description: This gem gets the latest source code from the  | 
| 28 | 
            -
               | 
| 29 | 
            -
              And also run tests (i.e. `make test-all`).
         | 
| 27 | 
            +
            description: This gem gets the latest source code from the ruby/ruby master branch
         | 
| 28 | 
            +
              at GitHub. Then, build source codes in the same way as "Building Ruby" at Ruby Reference
         | 
| 29 | 
            +
              Manual. And also run tests (i.e. execute to `make test-all`).
         | 
| 30 30 | 
             
            email:
         | 
| 31 | 
            -
            -  | 
| 31 | 
            +
            - jinroq@users.noreply.github.com
         | 
| 32 32 | 
             
            executables:
         | 
| 33 33 | 
             
            - bgum
         | 
| 34 34 | 
             
            extensions: []
         | 
| @@ -44,13 +44,14 @@ files: | |
| 44 44 | 
             
            - lib/bungee_gum/ruby_build.rb
         | 
| 45 45 | 
             
            - lib/bungee_gum/version.rb
         | 
| 46 46 | 
             
            - sig/bungee_gum.rbs
         | 
| 47 | 
            -
            homepage: https:// | 
| 47 | 
            +
            homepage: https://rubygems.org/gems/bungee_gum
         | 
| 48 48 | 
             
            licenses:
         | 
| 49 49 | 
             
            - MIT
         | 
| 50 50 | 
             
            metadata:
         | 
| 51 | 
            -
              homepage_uri: https:// | 
| 51 | 
            +
              homepage_uri: https://rubygems.org/gems/bungee_gum
         | 
| 52 52 | 
             
              source_code_uri: https://github.com/jinroq/bungee_gum
         | 
| 53 53 | 
             
              changelog_uri: https://github.com/jinroq/bungee_gum/blob/main/CHANGELOG.md
         | 
| 54 | 
            +
              bug_tracker_uri: https://github.com/jinroq/bungee_gum/issues
         | 
| 54 55 | 
             
            post_install_message: 
         | 
| 55 56 | 
             
            rdoc_options: []
         | 
| 56 57 | 
             
            require_paths:
         | 
| @@ -66,7 +67,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement | |
| 66 67 | 
             
                - !ruby/object:Gem::Version
         | 
| 67 68 | 
             
                  version: '0'
         | 
| 68 69 | 
             
            requirements: []
         | 
| 69 | 
            -
            rubygems_version: 3.5. | 
| 70 | 
            +
            rubygems_version: 3.5.7
         | 
| 70 71 | 
             
            signing_key: 
         | 
| 71 72 | 
             
            specification_version: 4
         | 
| 72 73 | 
             
            summary: This gem collects Ruby building and testing logs.
         |