un 0.2.1 → 0.3.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/lib/un.rb +3 -1
  3. data/un.gemspec +9 -2
  4. metadata +3 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d8c8d915490e45125d7b38a47b0aeb67b28b9ab530c7fba21839a05f8343e34d
4
- data.tar.gz: 7017890ba253218048086124b79a493885bcc6bc6441023faf1a58ec82e32075
3
+ metadata.gz: d9535870107f4dc591173f4d124d24e0933fed675187f4a291609902ebe46343
4
+ data.tar.gz: 4f4e25a2e621f73aa0937aeeb7017f0234b8f64060eaaab11b9db1c71a3d6d0e
5
5
  SHA512:
6
- metadata.gz: f579ec63b6cbc2c69a29df7b4d90c897b44384a807f13714895f7505696dbe742aee8825602010e3a0aefe1a4a53cad5b2480c4e31d43c2081ea6425d1262e3f
7
- data.tar.gz: efd61b8e25c638735bd9349eec4098ab0d5aed956b1ec6ca5fa9847a63ac9fc6625f97bc661d1d44b2ab546362c759514caa3dde6ea227cb461ccb284b7d512e
6
+ metadata.gz: 880492f3b0b9ffd9cbf8bdd402cf36b2d4c363e7eee2882742414c97c0c507016e5a594f23004e1eb5c75be43003af74416053136c9694068c8cda12ae51c1a8
7
+ data.tar.gz: 067a3786239471e25ef31782a179b18bce61a73cb2f7d8b1a25e4c313ab28c452e72282279fd4f152434b2384c46bda1783d140132c3e9910777406ff1f4cf3c
data/lib/un.rb CHANGED
@@ -30,7 +30,6 @@ require "fileutils"
30
30
  require "optparse"
31
31
 
32
32
  module FileUtils
33
- # @fileutils_label = ""
34
33
  @fileutils_output = $stdout
35
34
  end
36
35
 
@@ -412,6 +411,9 @@ def help
412
411
  end
413
412
 
414
413
  module UN # :nodoc:
414
+
415
+ VERSION = "0.3.0"
416
+
415
417
  module_function
416
418
  def help(argv, output: $stdout)
417
419
  all = argv.empty?
data/un.gemspec CHANGED
@@ -1,8 +1,15 @@
1
1
  # frozen_string_literal: true
2
2
 
3
+ name = File.basename(__FILE__, ".gemspec")
4
+ version = ["lib", Array.new(name.count("-")+1).join("/")].find do |dir|
5
+ break File.foreach(File.join(__dir__, dir, "#{name.tr('-', '/')}.rb")) do |line|
6
+ /^\s*VERSION\s*=\s*"(.*)"/ =~ line and break $1
7
+ end rescue nil
8
+ end
9
+
3
10
  Gem::Specification.new do |spec|
4
- spec.name = "un"
5
- spec.version = "0.2.1"
11
+ spec.name = name
12
+ spec.version = version
6
13
  spec.authors = ["WATANABE Hirofumi"]
7
14
  spec.email = ["eban@ruby-lang.org"]
8
15
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: un
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - WATANABE Hirofumi
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-12-05 00:00:00.000000000 Z
11
+ date: 2023-11-06 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: Utilities to replace common UNIX commands
14
14
  email:
@@ -48,7 +48,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
48
48
  - !ruby/object:Gem::Version
49
49
  version: '0'
50
50
  requirements: []
51
- rubygems_version: 3.4.0.dev
51
+ rubygems_version: 3.5.0.dev
52
52
  signing_key:
53
53
  specification_version: 4
54
54
  summary: Utilities to replace common UNIX commands