bundled_gems 0.2.0 → 1.0.0

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: cdcfb9fd6b0424fa827d437c23584405755a85a110d6595f0e5911933dcb7a3f
4
- data.tar.gz: b17b8bb10520f424741d0197ecaed2132af78c0b6a79cb48ce29bfc41eb7b0f6
3
+ metadata.gz: 19b10078e762bc06af175dd64cf9eeb3cc079e9dc32031394e59c5664c6163be
4
+ data.tar.gz: 8a2863413cd32483e99b3f5e56da834c2f910f881bf200d90f9c20b572d2e8c0
5
5
  SHA512:
6
- metadata.gz: e491764616b1df7d5055cbd36caeb9dc9368475eeeb4e0357f6a5eb58e5a7b411a243234b1198b4455851b8ab38186fad254267392c50550edcf1c6abd356cb7
7
- data.tar.gz: 4f2905c1e1fc3bbd818181775f8d842540ac2a6a65b2c6fd9005596d4396b6259c3b7a2b47dda569543c28bb53a5f56dd77ac6e928783a1045de232be7f66504
6
+ metadata.gz: 4b14966bbb5c14f56b396c6b91a733fcd94ff6b3bffb4292accc050907c91d4f143b81acf7f5187c9248d8b72ac16b458571bc20bf19a5855e5a862c733361d3
7
+ data.tar.gz: ff7ac6286465ea7a010049441160fffc96d40298e5ab952883528916e704a5bb2f8f9a7250cebd2bdcf708c6a4b08c3e48233532e3ac3c11d9d1e4bff8ac0d2d
@@ -1,24 +1,25 @@
1
1
  name: Ruby Test
2
- on: [push]
2
+
3
+ on:
4
+ push:
5
+ branches:
6
+ - main
7
+ pull_request:
8
+
3
9
  jobs:
4
10
  build:
5
11
  strategy:
6
12
  matrix:
7
- ruby: [2.4, 2.5, 2.6, 2.7]
13
+ ruby: ['2.6', '2.7', '3.0', '3.1']
8
14
  os: [ubuntu-latest, macos-latest]
9
-
10
15
  runs-on: ${{ matrix.os }}
11
-
12
16
  steps:
13
17
  - uses: actions/checkout@v2
14
18
  - name: Set up Ruby ${{ matrix.ruby }}
15
- uses: eregon/use-ruby-action@master
19
+ uses: ruby/setup-ruby@v1
16
20
  with:
17
21
  ruby-version: ${{ matrix.ruby }}
18
- - name: Install gems
19
- run: |
20
- gem install bundler --force --no-document
21
- bundle install --jobs 4 --retry 3
22
+ bundler-cache: true
22
23
  - run: bundle exec rake
23
24
  - run: bundle exec rubocop
24
25
  - run: ./bin/bgem
@@ -4,14 +4,17 @@ jobs:
4
4
  sample:
5
5
  runs-on: ubuntu-latest
6
6
  steps:
7
- - uses: actions/checkout@v1
8
- - name: Set up Ruby 2.6.x
9
- uses: actions/setup-ruby@v1
7
+ - uses: actions/checkout@v2
8
+ - name: Set up Ruby
9
+ uses: ruby/setup-ruby@v1
10
10
  with:
11
- ruby-version: 2.6.x
11
+ ruby-version: 3.1
12
12
  - name: Install RuboCop and Run
13
13
  run: |
14
- bundle install
14
+ bundle install --without development
15
15
  ./bin/bgem list --lockfile test/fixture/Gemfile.sample.lock
16
16
  ./bin/bgem install rubocop --lockfile test/fixture/Gemfile.sample.lock
17
17
  rubocop --version
18
+ - name: Installed rubocop version test
19
+ run: |
20
+ [[ $(rubocop --version) == "0.70.0" ]] || exit 1
data/.rubocop.yml CHANGED
@@ -3,7 +3,7 @@ inherit_gem:
3
3
  - config/rails.yml
4
4
 
5
5
  AllCops:
6
- TargetRubyVersion: 2.4
6
+ TargetRubyVersion: 2.6
7
7
 
8
8
  # Prefer assert_not_x over refute_x
9
9
  Rails/RefuteMethods:
data/Gemfile CHANGED
@@ -5,7 +5,10 @@ source "https://rubygems.org"
5
5
  # Specify your gem's dependencies in bundled_gems.gemspec
6
6
  gemspec
7
7
 
8
- gem "minitest-reporters"
9
- gem "minitest"
10
8
  gem "rake"
11
- gem "rubocop-rails_config"
9
+
10
+ group :development do
11
+ gem "minitest-reporters"
12
+ gem "minitest"
13
+ gem "rubocop-rails_config"
14
+ end
data/LICENSE.txt CHANGED
@@ -1,6 +1,6 @@
1
1
  The MIT License (MIT)
2
2
 
3
- Copyright (c) 2019 toshimaru
3
+ Copyright (c) 2019-2022 toshimaru
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
data/README.md CHANGED
@@ -3,7 +3,13 @@
3
3
  [![Gem Version](https://badge.fury.io/rb/bundled_gems.svg)](https://badge.fury.io/rb/bundled_gems)
4
4
  [![Actions Status](https://github.com/toshimaru/bundled_gems/workflows/Ruby%20Test/badge.svg)](https://github.com/toshimaru/bundled_gems/actions)
5
5
 
6
- Install gem specified in `Gemfile.lock` without `bundle install`.
6
+ Install a gem specified in `Gemfile.lock` without running `bundle install`.
7
+
8
+ ## Motivation
9
+
10
+ After the emergence of Docker, libraries (such as rubygems) are installed inside Docker or Docker Volume, but we sometimes want to install specific version of libraries in Host machine.
11
+
12
+ Here comes the bundled_gems command (`bgem`). `bgem` reads your `Gemfile.lock` and install the specific version of the gem.
7
13
 
8
14
  ## Installation
9
15
 
@@ -11,7 +17,7 @@ Install gem specified in `Gemfile.lock` without `bundle install`.
11
17
  $ gem install bundled_gems
12
18
  ```
13
19
 
14
- Then, you can use `bgem` command.
20
+ Then, `bgem` command is available.
15
21
 
16
22
  ## Usage
17
23
 
@@ -65,4 +71,4 @@ The gem is available as open source under the terms of the [MIT License](https:/
65
71
 
66
72
  ## Code of Conduct
67
73
 
68
- Everyone interacting in the BundledGem project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/toshimaru/bundled_gems/blob/master/CODE_OF_CONDUCT.md).
74
+ Everyone interacting in the BundledGem project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/toshimaru/bundled_gems/blob/main/CODE_OF_CONDUCT.md).
data/bundled_gems.gemspec CHANGED
@@ -22,14 +22,14 @@ Gem::Specification.new do |spec|
22
22
 
23
23
  # Specify which files should be added to the gem when it is released.
24
24
  # The `git ls-files -z` loads the files in the RubyGem that have been added into git.
25
- spec.files = Dir.chdir(File.expand_path("..", __FILE__)) do
25
+ spec.files = Dir.chdir(File.expand_path("..", __FILE__)) do
26
26
  `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
27
27
  end
28
28
  spec.bindir = "exe"
29
29
  spec.executables = %w[bgem]
30
30
  spec.require_paths = ["lib"]
31
31
 
32
- spec.required_ruby_version = ">= 2.4.0"
32
+ spec.required_ruby_version = ">= 2.6.0"
33
33
 
34
34
  spec.add_dependency "bundler"
35
35
  spec.add_dependency "thor"
@@ -15,7 +15,7 @@ module BundledGem
15
15
  bundled_gems.each do |bundled_gem|
16
16
  if reader.gem_listed?(bundled_gem)
17
17
  version = reader.get_version(bundled_gem)
18
- command = "gem install #{bundled_gem} --version #{version}"
18
+ command = "gem install #{bundled_gem}:#{version}"
19
19
  IO.popen(command) do |f|
20
20
  while line = f.gets
21
21
  puts line
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module BundledGem
4
- VERSION = "0.2.0"
4
+ VERSION = "1.0.0"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bundled_gems
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 1.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - toshimaru
8
- autorequire:
8
+ autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-01-15 00:00:00.000000000 Z
11
+ date: 2022-07-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -70,7 +70,7 @@ metadata:
70
70
  homepage_uri: https://github.com/toshimaru/bundled_gems
71
71
  source_code_uri: https://github.com/toshimaru/bundled_gems
72
72
  changelog_uri: https://github.com/toshimaru/bundled_gems/releases
73
- post_install_message:
73
+ post_install_message:
74
74
  rdoc_options: []
75
75
  require_paths:
76
76
  - lib
@@ -78,15 +78,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
78
78
  requirements:
79
79
  - - ">="
80
80
  - !ruby/object:Gem::Version
81
- version: 2.4.0
81
+ version: 2.6.0
82
82
  required_rubygems_version: !ruby/object:Gem::Requirement
83
83
  requirements:
84
84
  - - ">="
85
85
  - !ruby/object:Gem::Version
86
86
  version: '0'
87
87
  requirements: []
88
- rubygems_version: 3.1.2
89
- signing_key:
88
+ rubygems_version: 3.3.7
89
+ signing_key:
90
90
  specification_version: 4
91
91
  summary: Install gem specified in Gemfile.lock without `bundle install`
92
92
  test_files: []