bundled_gems 0.2.0 → 1.1.0

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: cdcfb9fd6b0424fa827d437c23584405755a85a110d6595f0e5911933dcb7a3f
4
- data.tar.gz: b17b8bb10520f424741d0197ecaed2132af78c0b6a79cb48ce29bfc41eb7b0f6
3
+ metadata.gz: 218493abbd506a02c0b0e571febfeff1e128fc5c5cecb9cd70c06dbaf3e5fada
4
+ data.tar.gz: 0e4c9da9cfe0d900b8acb6e4ef66b855c951e4c1b2a3f1a92349b573d690f6e2
5
5
  SHA512:
6
- metadata.gz: e491764616b1df7d5055cbd36caeb9dc9368475eeeb4e0357f6a5eb58e5a7b411a243234b1198b4455851b8ab38186fad254267392c50550edcf1c6abd356cb7
7
- data.tar.gz: 4f2905c1e1fc3bbd818181775f8d842540ac2a6a65b2c6fd9005596d4396b6259c3b7a2b47dda569543c28bb53a5f56dd77ac6e928783a1045de232be7f66504
6
+ metadata.gz: 0da77fe002d2a67c0a4f51a41290db2b9bdb5b69ffaec7fb903afd159e850414e11bb58e9c4d6938fe1f57062020da6b95e792366e609803fba6914ee9b05055
7
+ data.tar.gz: d44703ad7eaaf6358076c33958dd25a544783f100050d3aa5e4d7c1991b3fc3fbab4a75022b555d53a6fae0ae68d3da5d29b544174a2f1898a632a48822eac52
@@ -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.7', '3.0', '3.1', '3.2']
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
@@ -1,17 +1,22 @@
1
1
  name: Install RuboCop and Run
2
+
2
3
  on: [push]
4
+
3
5
  jobs:
4
6
  sample:
5
7
  runs-on: ubuntu-latest
6
8
  steps:
7
- - uses: actions/checkout@v1
8
- - name: Set up Ruby 2.6.x
9
- uses: actions/setup-ruby@v1
9
+ - uses: actions/checkout@v2
10
+ - name: Set up Ruby
11
+ uses: ruby/setup-ruby@v1
10
12
  with:
11
- ruby-version: 2.6.x
13
+ ruby-version: 3.2
12
14
  - name: Install RuboCop and Run
13
15
  run: |
14
- bundle install
16
+ bundle install --without development
15
17
  ./bin/bgem list --lockfile test/fixture/Gemfile.sample.lock
16
18
  ./bin/bgem install rubocop --lockfile test/fixture/Gemfile.sample.lock
17
19
  rubocop --version
20
+ - name: Installed rubocop version test
21
+ run: |
22
+ [[ $(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.7
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.7.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.1.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.1.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-12-28 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.7.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.4.1
89
+ signing_key:
90
90
  specification_version: 4
91
91
  summary: Install gem specified in Gemfile.lock without `bundle install`
92
92
  test_files: []