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 +4 -4
- data/.github/workflows/ci.yml +10 -9
- data/.github/workflows/rubocop-install-sample.yml +8 -5
- data/.rubocop.yml +1 -1
- data/Gemfile +6 -3
- data/LICENSE.txt +1 -1
- data/README.md +9 -3
- data/bundled_gems.gemspec +2 -2
- data/lib/bundled_gem/cli.rb +1 -1
- data/lib/bundled_gem/version.rb +1 -1
- metadata +7 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 19b10078e762bc06af175dd64cf9eeb3cc079e9dc32031394e59c5664c6163be
|
4
|
+
data.tar.gz: 8a2863413cd32483e99b3f5e56da834c2f910f881bf200d90f9c20b572d2e8c0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4b14966bbb5c14f56b396c6b91a733fcd94ff6b3bffb4292accc050907c91d4f143b81acf7f5187c9248d8b72ac16b458571bc20bf19a5855e5a862c733361d3
|
7
|
+
data.tar.gz: ff7ac6286465ea7a010049441160fffc96d40298e5ab952883528916e704a5bb2f8f9a7250cebd2bdcf708c6a4b08c3e48233532e3ac3c11d9d1e4bff8ac0d2d
|
data/.github/workflows/ci.yml
CHANGED
@@ -1,24 +1,25 @@
|
|
1
1
|
name: Ruby Test
|
2
|
-
|
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.
|
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:
|
19
|
+
uses: ruby/setup-ruby@v1
|
16
20
|
with:
|
17
21
|
ruby-version: ${{ matrix.ruby }}
|
18
|
-
|
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@
|
8
|
-
- name: Set up Ruby
|
9
|
-
uses:
|
7
|
+
- uses: actions/checkout@v2
|
8
|
+
- name: Set up Ruby
|
9
|
+
uses: ruby/setup-ruby@v1
|
10
10
|
with:
|
11
|
-
ruby-version:
|
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
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
|
-
|
9
|
+
|
10
|
+
group :development do
|
11
|
+
gem "minitest-reporters"
|
12
|
+
gem "minitest"
|
13
|
+
gem "rubocop-rails_config"
|
14
|
+
end
|
data/LICENSE.txt
CHANGED
data/README.md
CHANGED
@@ -3,7 +3,13 @@
|
|
3
3
|
[](https://badge.fury.io/rb/bundled_gems)
|
4
4
|
[](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,
|
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/
|
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
|
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.
|
32
|
+
spec.required_ruby_version = ">= 2.6.0"
|
33
33
|
|
34
34
|
spec.add_dependency "bundler"
|
35
35
|
spec.add_dependency "thor"
|
data/lib/bundled_gem/cli.rb
CHANGED
@@ -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}
|
18
|
+
command = "gem install #{bundled_gem}:#{version}"
|
19
19
|
IO.popen(command) do |f|
|
20
20
|
while line = f.gets
|
21
21
|
puts line
|
data/lib/bundled_gem/version.rb
CHANGED
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.
|
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:
|
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.
|
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.
|
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: []
|