utils 0.23.0 → 0.24.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: 5c2e2fbdc130decfb576faf32be9adbc99de6517bd79b752408f6605fc4a9d36
4
- data.tar.gz: a6d5d6857dd83b51cf9b33dea7dc1bc2d7be22531eb7c25628d4884bb0ef9f5b
3
+ metadata.gz: 51c9b3f8c20513cdc4b0d2a068e09ebee9cbbb7e5616ccd8b3627c861e55d03b
4
+ data.tar.gz: 65779df6b77f7b12eff6bd5a301d590353073159cf9f24084579ca6cf6cb5857
5
5
  SHA512:
6
- metadata.gz: '080b67ed1a27784fbe1368ebf3cbad9865872ccb63b5ce84653dc7fbf08ca31b20e49a19fbaede5f00b0a2dc8a9245b2dd6d5c7b58d5970f5babaa04fa4f8c85'
7
- data.tar.gz: fd80c9b73e39b2233ea9e36ca2efeb530064c2cc5452098318f9d8f1066e0aeaf2d829c4b099ed091f7a2f901506342fe063cd0b5b371bc82fea6a983b41dbad
6
+ metadata.gz: 5af0beb969898e74cc34e1818e8da4bdc4cc6da8fdad030d39bd653729d35a5ac9b732ccca9f1802bf8fe83f718297fd0971238a737c22a1599608573afc8ebf
7
+ data.tar.gz: 18fa1668104356adb67abc7adafb26ed64618d9def4e80f722bad1844558f3381034396931f4380492e01b1a2131af8f41c3d689e0424416f29f3a283a67abbf
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.23.0
1
+ 0.24.1
data/bin/all_images ADDED
@@ -0,0 +1,67 @@
1
+ #!/usr/bin/env ruby
2
+ # Configure like so:
3
+ # dockerfile: |-
4
+ # RUN apk add --no-cache build-base git
5
+ # RUN gem install gem_hadar bundler
6
+ #
7
+ # script: &script |-
8
+ # ruby -v
9
+ # rake test
10
+ #
11
+ # images:
12
+ # ruby:3.0-alpine: *script
13
+ # ruby:2.7-alpine: *script
14
+ # ruby:2.6-alpine: *script
15
+ # ruby:2.5-alpine: *script
16
+ # ruby:2.4-alpine: *script
17
+ # ruby:2.3-alpine: *script
18
+
19
+ require 'yaml'
20
+ require 'tmpdir'
21
+ require 'fileutils'
22
+ include FileUtils
23
+
24
+ alias sh system
25
+
26
+ def provide_image(image, dockerfile)
27
+ tag = "all_images/#{image}"
28
+ sh "docker pull '#{image}'"
29
+ build_dir = File.join(Dir.tmpdir, 'build')
30
+ mkdir_p build_dir
31
+ cd build_dir do
32
+ File.open('Dockerfile', 'w') do |t|
33
+ t.puts <<~end
34
+ FROM #{image}
35
+
36
+ WORKDIR /work
37
+
38
+ #{dockerfile}
39
+ end
40
+ end
41
+ sh "docker build -t '#{tag}' ."
42
+ end
43
+ tag
44
+ ensure
45
+ rm_rf File.join(Dir.tmpdir, 'build')
46
+ end
47
+
48
+ def red(string)
49
+ "\e[31m#{string}\e[0m"
50
+ end
51
+
52
+ def green(string)
53
+ "\e[32m#{string}\e[0m"
54
+ end
55
+
56
+ config = YAML.load_file(ARGV.shift || '.all_images.yml')
57
+ dockerfile = config['dockerfile'].to_s
58
+ Array(config['images']).each do |image, script|
59
+ tag = provide_image image, dockerfile
60
+ if sh "docker run --name all_images -v `pwd`:/work '#{tag}' sh -c '#{script}'"
61
+ puts green('SUCCESS')
62
+ else
63
+ puts red('FAILURE')
64
+ end
65
+ ensure
66
+ sh 'docker rm -f all_images >/dev/null'
67
+ end
data/bin/fix-brew ADDED
@@ -0,0 +1,5 @@
1
+ #!/usr/bin/env bash
2
+
3
+ PREFIX=$(brew --prefix)
4
+ sudo chgrp -R brew $PREFIX
5
+ sudo chmod -R g+w $PREFIX
data/lib/utils/version.rb CHANGED
@@ -1,6 +1,6 @@
1
1
  module Utils
2
2
  # Utils version
3
- VERSION = '0.23.0'
3
+ VERSION = '0.24.1'
4
4
  VERSION_ARRAY = VERSION.split('.').map(&:to_i) # :nodoc:
5
5
  VERSION_MAJOR = VERSION_ARRAY[0] # :nodoc:
6
6
  VERSION_MINOR = VERSION_ARRAY[1] # :nodoc:
data/utils.gemspec CHANGED
@@ -1,22 +1,22 @@
1
1
  # -*- encoding: utf-8 -*-
2
- # stub: utils 0.23.0 ruby lib
2
+ # stub: utils 0.24.1 ruby lib
3
3
 
4
4
  Gem::Specification.new do |s|
5
5
  s.name = "utils".freeze
6
- s.version = "0.23.0"
6
+ s.version = "0.24.1"
7
7
 
8
8
  s.required_rubygems_version = Gem::Requirement.new(">= 0".freeze) if s.respond_to? :required_rubygems_version=
9
9
  s.require_paths = ["lib".freeze]
10
10
  s.authors = ["Florian Frank".freeze]
11
- s.date = "2020-09-25"
11
+ s.date = "2021-12-27"
12
12
  s.description = "This ruby gem provides some useful command line utilities".freeze
13
13
  s.email = "flori@ping.de".freeze
14
- s.executables = ["discover".freeze, "classify".freeze, "sedit".freeze, "irb_connect".freeze, "ascii7".freeze, "path".freeze, "enum".freeze, "ssh-tunnel".freeze, "search".freeze, "edit".freeze, "json_check".freeze, "edit_wait".freeze, "untest".freeze, "blameline".freeze, "git-empty".freeze, "create_cstags".freeze, "git-versions".freeze, "strip_spaces".freeze, "number_files".freeze, "serve".freeze, "vcf2alias".freeze, "on_change".freeze, "utils-utilsrc".freeze, "myex".freeze, "long_lines".freeze, "probe".freeze, "create_tags".freeze]
14
+ s.executables = ["all_images".freeze, "ascii7".freeze, "blameline".freeze, "classify".freeze, "create_cstags".freeze, "create_tags".freeze, "discover".freeze, "edit".freeze, "edit_wait".freeze, "enum".freeze, "fix-brew".freeze, "git-empty".freeze, "git-versions".freeze, "irb_connect".freeze, "json_check".freeze, "long_lines".freeze, "myex".freeze, "number_files".freeze, "on_change".freeze, "path".freeze, "probe".freeze, "search".freeze, "sedit".freeze, "serve".freeze, "ssh-tunnel".freeze, "strip_spaces".freeze, "untest".freeze, "utils-utilsrc".freeze, "vcf2alias".freeze]
15
15
  s.extra_rdoc_files = ["README.md".freeze, "lib/utils.rb".freeze, "lib/utils/config_file.rb".freeze, "lib/utils/editor.rb".freeze, "lib/utils/file_xt.rb".freeze, "lib/utils/finder.rb".freeze, "lib/utils/grepper.rb".freeze, "lib/utils/irb.rb".freeze, "lib/utils/irb/service.rb".freeze, "lib/utils/line_blamer.rb".freeze, "lib/utils/line_formatter.rb".freeze, "lib/utils/md5.rb".freeze, "lib/utils/patterns.rb".freeze, "lib/utils/probe_server.rb".freeze, "lib/utils/ssh_tunnel_specification.rb".freeze, "lib/utils/version.rb".freeze, "lib/utils/xt/source_location_extension.rb".freeze]
16
- s.files = [".gitignore".freeze, "COPYING".freeze, "Gemfile".freeze, "README.md".freeze, "Rakefile".freeze, "VERSION".freeze, "bin/ascii7".freeze, "bin/blameline".freeze, "bin/classify".freeze, "bin/create_cstags".freeze, "bin/create_tags".freeze, "bin/discover".freeze, "bin/edit".freeze, "bin/edit_wait".freeze, "bin/enum".freeze, "bin/git-empty".freeze, "bin/git-versions".freeze, "bin/irb_connect".freeze, "bin/json_check".freeze, "bin/long_lines".freeze, "bin/myex".freeze, "bin/number_files".freeze, "bin/on_change".freeze, "bin/path".freeze, "bin/probe".freeze, "bin/search".freeze, "bin/sedit".freeze, "bin/serve".freeze, "bin/ssh-tunnel".freeze, "bin/strip_spaces".freeze, "bin/untest".freeze, "bin/utils-utilsrc".freeze, "bin/vcf2alias".freeze, "lib/utils.rb".freeze, "lib/utils/config_file.rb".freeze, "lib/utils/editor.rb".freeze, "lib/utils/file_xt.rb".freeze, "lib/utils/finder.rb".freeze, "lib/utils/grepper.rb".freeze, "lib/utils/irb.rb".freeze, "lib/utils/irb/service.rb".freeze, "lib/utils/line_blamer.rb".freeze, "lib/utils/line_formatter.rb".freeze, "lib/utils/md5.rb".freeze, "lib/utils/patterns.rb".freeze, "lib/utils/probe_server.rb".freeze, "lib/utils/ssh_tunnel_specification.rb".freeze, "lib/utils/version.rb".freeze, "lib/utils/xt/source_location_extension.rb".freeze, "utils.gemspec".freeze]
16
+ s.files = [".gitignore".freeze, "COPYING".freeze, "Gemfile".freeze, "README.md".freeze, "Rakefile".freeze, "VERSION".freeze, "bin/all_images".freeze, "bin/ascii7".freeze, "bin/blameline".freeze, "bin/classify".freeze, "bin/create_cstags".freeze, "bin/create_tags".freeze, "bin/discover".freeze, "bin/edit".freeze, "bin/edit_wait".freeze, "bin/enum".freeze, "bin/fix-brew".freeze, "bin/git-empty".freeze, "bin/git-versions".freeze, "bin/irb_connect".freeze, "bin/json_check".freeze, "bin/long_lines".freeze, "bin/myex".freeze, "bin/number_files".freeze, "bin/on_change".freeze, "bin/path".freeze, "bin/probe".freeze, "bin/search".freeze, "bin/sedit".freeze, "bin/serve".freeze, "bin/ssh-tunnel".freeze, "bin/strip_spaces".freeze, "bin/untest".freeze, "bin/utils-utilsrc".freeze, "bin/vcf2alias".freeze, "lib/utils.rb".freeze, "lib/utils/config_file.rb".freeze, "lib/utils/editor.rb".freeze, "lib/utils/file_xt.rb".freeze, "lib/utils/finder.rb".freeze, "lib/utils/grepper.rb".freeze, "lib/utils/irb.rb".freeze, "lib/utils/irb/service.rb".freeze, "lib/utils/line_blamer.rb".freeze, "lib/utils/line_formatter.rb".freeze, "lib/utils/md5.rb".freeze, "lib/utils/patterns.rb".freeze, "lib/utils/probe_server.rb".freeze, "lib/utils/ssh_tunnel_specification.rb".freeze, "lib/utils/version.rb".freeze, "lib/utils/xt/source_location_extension.rb".freeze, "utils.gemspec".freeze]
17
17
  s.homepage = "http://github.com/flori/utils".freeze
18
18
  s.rdoc_options = ["--title".freeze, "Utils - Some useful command line utilities".freeze, "--main".freeze, "README.md".freeze]
19
- s.rubygems_version = "3.1.4".freeze
19
+ s.rubygems_version = "3.2.22".freeze
20
20
  s.summary = "Some useful command line utilities".freeze
21
21
 
22
22
  if s.respond_to? :specification_version then
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: utils
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.23.0
4
+ version: 0.24.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Florian Frank
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-09-25 00:00:00.000000000 Z
11
+ date: 2021-12-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gem_hadar
@@ -111,33 +111,35 @@ dependencies:
111
111
  description: This ruby gem provides some useful command line utilities
112
112
  email: flori@ping.de
113
113
  executables:
114
- - discover
115
- - classify
116
- - sedit
117
- - irb_connect
114
+ - all_images
118
115
  - ascii7
119
- - path
120
- - enum
121
- - ssh-tunnel
122
- - search
116
+ - blameline
117
+ - classify
118
+ - create_cstags
119
+ - create_tags
120
+ - discover
123
121
  - edit
124
- - json_check
125
122
  - edit_wait
126
- - untest
127
- - blameline
123
+ - enum
124
+ - fix-brew
128
125
  - git-empty
129
- - create_cstags
130
126
  - git-versions
131
- - strip_spaces
127
+ - irb_connect
128
+ - json_check
129
+ - long_lines
130
+ - myex
132
131
  - number_files
133
- - serve
134
- - vcf2alias
135
132
  - on_change
136
- - utils-utilsrc
137
- - myex
138
- - long_lines
133
+ - path
139
134
  - probe
140
- - create_tags
135
+ - search
136
+ - sedit
137
+ - serve
138
+ - ssh-tunnel
139
+ - strip_spaces
140
+ - untest
141
+ - utils-utilsrc
142
+ - vcf2alias
141
143
  extensions: []
142
144
  extra_rdoc_files:
143
145
  - README.md
@@ -164,6 +166,7 @@ files:
164
166
  - README.md
165
167
  - Rakefile
166
168
  - VERSION
169
+ - bin/all_images
167
170
  - bin/ascii7
168
171
  - bin/blameline
169
172
  - bin/classify
@@ -173,6 +176,7 @@ files:
173
176
  - bin/edit
174
177
  - bin/edit_wait
175
178
  - bin/enum
179
+ - bin/fix-brew
176
180
  - bin/git-empty
177
181
  - bin/git-versions
178
182
  - bin/irb_connect
@@ -230,7 +234,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
230
234
  - !ruby/object:Gem::Version
231
235
  version: '0'
232
236
  requirements: []
233
- rubygems_version: 3.1.4
237
+ rubygems_version: 3.2.22
234
238
  signing_key:
235
239
  specification_version: 4
236
240
  summary: Some useful command line utilities