pbmenv 0.1.0 → 0.1.1

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: e8dc67105ea7fe29bcbac78e0c9cdebf6392113e392da9007c6ae0e44a9c7a61
4
- data.tar.gz: 0f496a0a230b481650f115f94b9e8557930548fec2d72f52c9b2dbb13baebe66
3
+ metadata.gz: ef480a00f5dc91ea2269721035b8bc58c20078bd89f6b5484ccf96e664e68e10
4
+ data.tar.gz: 0cde53229b1177ec6adba401687e15302529fbcc261820eb5e5e1d1034192563
5
5
  SHA512:
6
- metadata.gz: 4ce6fc89439dbdf1e22e884997dd0271d6ac3c00babddf280fae284efbcf49adbb45a31a596e2b6f9c7e7a14f130794c5bb93c28935022b901b15d744386d991
7
- data.tar.gz: c69a318d18164520af09769678a88eb081826c8e91af64ac658e322b34336eee792c2b7d6a0945b553c256a26a482a60ada116ad7180b3b322f8509f66e7ebb4
6
+ metadata.gz: c8e9401fb8e6f01d04fa55ccfe48e60026b1cc7b400203172ae7a1793bc3f4cd6fc78e8a2ef8c8b7d2fee180ed0c86b6b5f3b2b1b95575dd8091e64b57ad94b7
7
+ data.tar.gz: 537a0dc40da2f341319d664d0f7cc154de6f9e632712b0c2a1e16afbb8fbb4becd164dfe1c036da8d8c75b39e4b10e59e17bdef7db5c645533ddec97f0ea5a20
data/CHANGELOG.md CHANGED
@@ -1,4 +1,6 @@
1
- ## [Unreleased]
1
+ ## [0.1.1] - 2021-09-
2
+
3
+ - installの引数にlatestという値を渡せるようにしました
2
4
 
3
5
  ## [0.1.0] - 2021-09-11
4
6
 
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- pbmenv (0.1.0)
4
+ pbmenv (0.1.1)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -36,3 +36,6 @@ DEPENDENCIES
36
36
  pry
37
37
  rake
38
38
  rspec
39
+
40
+ BUNDLED WITH
41
+ 2.2.16
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Pbmenv
4
- VERSION = "0.1.0"
4
+ VERSION = "0.1.1"
5
5
  end
data/lib/pbmenv.rb CHANGED
@@ -17,6 +17,9 @@ module Pbmenv
17
17
 
18
18
  def self.install(version)
19
19
  raise "Need a version" if version.nil?
20
+ if version == 'latest'
21
+ version = available_versions.first
22
+ end
20
23
 
21
24
  if File.exists?("/usr/share/pbm/v#{version}")
22
25
  return false
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pbmenv
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - jiikko
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2021-09-11 00:00:00.000000000 Z
11
+ date: 2021-09-17 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: A package manager of PBM
14
14
  email: