bundle-only 0.2.0 → 0.3.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
- SHA1:
3
- metadata.gz: b55b0d3644186fada2322ed22b62decd382ec0aa
4
- data.tar.gz: e569833ef9afa59e390cee8a13b4639d97c8f180
2
+ SHA256:
3
+ metadata.gz: a224e4c2c02c9547541678c099de9d001d608dcd93aa5011b37f75bba147c91f
4
+ data.tar.gz: c319abc444e4764e156671cb9e7d8c3af9a60662ac59a8901ab7cd4130ea76a8
5
5
  SHA512:
6
- metadata.gz: 620d0ec4a01ac8cc1864a78046d4451951affda11c464cc4f0be56a72eabea5c40943b295e31c794d28e8e1a93534979c27731e17b52c95da4399cfdeab938ca
7
- data.tar.gz: 906436a5c8ef1fdfab7286590c69c5b5357a7463e0c00693a252a2495ecea18555257a035e0af2119b6969498864f5a85d05f0be53d20a9e0e56c4a7d534dd53
6
+ metadata.gz: b3ef06472ba540de0352e809c1a3317732eae6a979da6aff463cc84579c860250a7701b71d168497f3e7fb45e1b79e174b978738172db8f187486679eedd7603
7
+ data.tar.gz: 9c95e8e5c0a1eb34bb58a4318ddb9925842f561b47a304355093d283d4d233199ef0824dff6ea365fa9754c933972d8faeb72454aa7e16237a472d7a53e3cb47
data/Gemfile CHANGED
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  source 'https://rubygems.org'
2
3
 
3
4
  gemspec
data/Rakefile CHANGED
@@ -1,2 +1,3 @@
1
+ # frozen_string_literal: true
1
2
  require 'bundler/gem_tasks'
2
3
  task default: :spec
@@ -1,4 +1,5 @@
1
1
  # coding: utf-8
2
+ # frozen_string_literal: true
2
3
  lib = File.expand_path('../lib', __FILE__)
3
4
  $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
5
  require 'bundle-only/version'
@@ -1,4 +1,5 @@
1
1
  #!/usr/bin/env ruby
2
+ # frozen_string_literal: true
2
3
 
3
4
  require 'bundle-only/messages'
4
5
 
@@ -21,8 +22,8 @@ builder.eval_gemfile(gemfile)
21
22
 
22
23
  all_groups = builder.dependencies.map(&:groups).flatten.uniq
23
24
  groups_to_skip = all_groups - install_only
24
- Bundler.settings.without = groups_to_skip
25
- Bundler.settings.with = install_only
25
+ Bundler.settings.set_command_option :without, groups_to_skip
26
+ Bundler.settings.set_command_option :with, install_only
26
27
 
27
28
  definition = builder.to_definition(Bundler.default_lockfile, {})
28
29
  def definition.lock(*); end # never lock or preserve options
@@ -1 +1,2 @@
1
+ # frozen_string_literal: true
1
2
  require 'bundle-only/version'
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  module BundleOnly
2
3
  module Messages
3
4
  module_function
@@ -5,7 +6,7 @@ module BundleOnly
5
6
  def without_groups_message(groups)
6
7
  group_list = [groups[0...-1].join(', '), groups[-1..-1]]
7
8
  .reject { |s| s.to_s.empty? }.join(' and ')
8
- group_str = (groups.size == 1) ? 'group' : 'groups'
9
+ group_str = groups.size == 1 ? 'group' : 'groups'
9
10
  "Gems in the #{group_str} #{group_list} were not installed."
10
11
  end
11
12
 
@@ -1,5 +1,4 @@
1
1
  # frozen_string_literal: true
2
-
3
2
  module BundleOnly
4
- VERSION = '0.2.0'.freeze
3
+ VERSION = '0.3.0'
5
4
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bundle-only
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - MOZGIII
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-09-16 00:00:00.000000000 Z
11
+ date: 2019-07-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -93,8 +93,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
93
93
  - !ruby/object:Gem::Version
94
94
  version: '0'
95
95
  requirements: []
96
- rubyforge_project:
97
- rubygems_version: 2.5.1
96
+ rubygems_version: 3.0.3
98
97
  signing_key:
99
98
  specification_version: 4
100
99
  summary: Install gems from a specific Gemfile group.