utils 0.23.1 → 0.24.2

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: d1eec90814c18451158aaec73c458c953236f2dcc69d8841da8ad023a923aad0
4
- data.tar.gz: 30eac26e2ce180020d3b24203f71db4107bc40dbc0cc580186c3037331b4f151
3
+ metadata.gz: 05d63b1b7bc3ea4e37de492e23bbfe096624bd8a25beb24095398319e1a9849b
4
+ data.tar.gz: 5cc45dbdd4e120740725fddbfe27fed33b838ee1b320f239760da0759cfe4233
5
5
  SHA512:
6
- metadata.gz: a1c55f5b0b475aca353044b2e724eca2b85d2243442255931d5245441e86633e9d646898bf45afaaa4399eaca28e2608b32f489cf0585c69d58dbce6d16cb353
7
- data.tar.gz: 0c80321f83a823d7359e5cb33f33b37502e1a6d2d89876f618b57511fffd9242646ed6ee48667fad75d73da45c1cd2b1867c9c3aa37224388e48c7df66d586ef
6
+ metadata.gz: 4030103486e78493d15ea121d80ce10e60bdc0c31f98b4a67dd791a5358f622919a183b5b805ba4ae7749fc239ff71ad6034e2fa59f2d37c656a6146b0efde13
7
+ data.tar.gz: 1cb9b6326de876c3b8aaa34420bcf9cd31f67e323256a25590d03473f2abf9f9765c2f237adaa8874dd627fd0119a6a804a08564a4001f18c89fc5afcfa15ab6
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.23.1
1
+ 0.24.2
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 --pull -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 CHANGED
@@ -1,4 +1,4 @@
1
- #!/bin/sh
1
+ #!/usr/bin/env bash
2
2
 
3
3
  PREFIX=$(brew --prefix)
4
4
  sudo chgrp -R brew $PREFIX
data/lib/utils/version.rb CHANGED
@@ -1,6 +1,6 @@
1
1
  module Utils
2
2
  # Utils version
3
- VERSION = '0.23.1'
3
+ VERSION = '0.24.2'
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.1 ruby lib
2
+ # stub: utils 0.24.2 ruby lib
3
3
 
4
4
  Gem::Specification.new do |s|
5
5
  s.name = "utils".freeze
6
- s.version = "0.23.1"
6
+ s.version = "0.24.2"
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-10-03"
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, "fix-brew".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/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]
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.2".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.1
4
+ version: 0.24.2
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-10-03 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,34 +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
132
- - fix-brew
127
+ - irb_connect
128
+ - json_check
129
+ - long_lines
130
+ - myex
133
131
  - number_files
134
- - serve
135
- - vcf2alias
136
132
  - on_change
137
- - utils-utilsrc
138
- - myex
139
- - long_lines
133
+ - path
140
134
  - probe
141
- - create_tags
135
+ - search
136
+ - sedit
137
+ - serve
138
+ - ssh-tunnel
139
+ - strip_spaces
140
+ - untest
141
+ - utils-utilsrc
142
+ - vcf2alias
142
143
  extensions: []
143
144
  extra_rdoc_files:
144
145
  - README.md
@@ -165,6 +166,7 @@ files:
165
166
  - README.md
166
167
  - Rakefile
167
168
  - VERSION
169
+ - bin/all_images
168
170
  - bin/ascii7
169
171
  - bin/blameline
170
172
  - bin/classify
@@ -232,7 +234,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
232
234
  - !ruby/object:Gem::Version
233
235
  version: '0'
234
236
  requirements: []
235
- rubygems_version: 3.1.2
237
+ rubygems_version: 3.2.22
236
238
  signing_key:
237
239
  specification_version: 4
238
240
  summary: Some useful command line utilities