utils 0.26.0 → 0.28.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
2
  SHA256:
3
- metadata.gz: fd555da45b4a29f63a7d8281ca2ab23d4ed15c27d2c5094f710f083eeb0f98ba
4
- data.tar.gz: 61097b2252127154e2e457042cc6ae9e9c9594efebc130d437247ace0a81a38d
3
+ metadata.gz: d9306d87accd14effa283b221104f46acb6e22ad967459269f41ec071ac69b3e
4
+ data.tar.gz: 42fb63fa868567d3aa83f5a8c1dd60bd1870f0bda3b847e7454843bd0cc15cd9
5
5
  SHA512:
6
- metadata.gz: c0ad098cac8333239713b28071d53e992316a46badf5380c84ea6f937450b7e984cc0dfec270b847749b6a2384c626c376cc187887ff1dced87fa592a5071457
7
- data.tar.gz: 49563686fbdd255a5153994d2da88e481453d7ae375aeb9382d0845780ce58c089fdd04590450205db5025c6440bcd502156d5ce41cd2e98396aa542aa311d9f
6
+ metadata.gz: e39c1490384ba78d222e3949a4723e8706041a172110f095fc5162c419340598df2fd712edffa329bf7f442db565e1be8229db4bcfc8a801158718d3c322b3e3
7
+ data.tar.gz: 2d8864cf7d3f41f41b2958e0121bd48676324fbe0d592f42962b9177b0dd13124f8dc4251a9491ec37bf24adb0d3473098c02b0c371e849ba293244e7899561b
@@ -0,0 +1,72 @@
1
+ # For most projects, this workflow file will not need changing; you simply need
2
+ # to commit it to your repository.
3
+ #
4
+ # You may wish to alter this file to override the set of languages analyzed,
5
+ # or to provide custom queries or build logic.
6
+ #
7
+ # ******** NOTE ********
8
+ # We have attempted to detect the languages in your repository. Please check
9
+ # the `language` matrix defined below to confirm you have the correct set of
10
+ # supported CodeQL languages.
11
+ #
12
+ name: "CodeQL"
13
+
14
+ on:
15
+ push:
16
+ branches: [ master ]
17
+ pull_request:
18
+ # The branches below must be a subset of the branches above
19
+ branches: [ master ]
20
+ schedule:
21
+ - cron: '31 3 * * 1'
22
+
23
+ jobs:
24
+ analyze:
25
+ name: Analyze
26
+ runs-on: ubuntu-latest
27
+ permissions:
28
+ actions: read
29
+ contents: read
30
+ security-events: write
31
+
32
+ strategy:
33
+ fail-fast: false
34
+ matrix:
35
+ language: [ 'ruby' ]
36
+ # CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python', 'ruby' ]
37
+ # Learn more about CodeQL language support at https://aka.ms/codeql-docs/language-support
38
+
39
+ steps:
40
+ - name: Checkout repository
41
+ uses: actions/checkout@v3
42
+
43
+ # Initializes the CodeQL tools for scanning.
44
+ - name: Initialize CodeQL
45
+ uses: github/codeql-action/init@v2
46
+ with:
47
+ languages: ${{ matrix.language }}
48
+ # If you wish to specify custom queries, you can do so here or in a config file.
49
+ # By default, queries listed here will override any specified in a config file.
50
+ # Prefix the list here with "+" to use these queries and those in the config file.
51
+
52
+ # Details on CodeQL's query packs refer to : https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-code-scanning#using-queries-in-ql-packs
53
+ # queries: security-extended,security-and-quality
54
+
55
+
56
+ # Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
57
+ # If this step fails, then you should remove it and run the build manually (see below)
58
+ - name: Autobuild
59
+ uses: github/codeql-action/autobuild@v2
60
+
61
+ # ℹ️ Command-line programs to run using the OS shell.
62
+ # 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun
63
+
64
+ # If the Autobuild fails above, remove it and uncomment the following three lines.
65
+ # modify them (or add more) to build your code if your project, please refer to the EXAMPLE below for guidance.
66
+
67
+ # - run: |
68
+ # echo "Run, Build Application using script"
69
+ # ./location_of_script_within_repo/buildscript.sh
70
+
71
+ - name: Perform CodeQL Analysis
72
+ uses: github/codeql-action/analyze@v2
data/Rakefile CHANGED
@@ -14,7 +14,9 @@ GemHadar do
14
14
  test_dir 'tests'
15
15
  ignore '.*.sw[pon]', 'pkg', 'Gemfile.lock', '.rvmrc', '.AppleDouble',
16
16
  'tags', '.bundle', '.DS_Store', '.byebug_history'
17
+ package_ignore '.gitignore', 'VERSION'
17
18
  readme 'README.md'
19
+ licenses << 'GPL-2.0'
18
20
 
19
21
  dependency 'tins', '~>1.14'
20
22
  dependency 'term-ansicolor', '~>1.3'
@@ -22,6 +24,7 @@ GemHadar do
22
24
  dependency 'infobar'
23
25
  dependency 'mize'
24
26
  dependency 'search_ui'
27
+ dependency 'all_images'
25
28
 
26
29
  install_library do
27
30
  libdir = CONFIG["sitelibdir"]
data/bin/rd2md ADDED
@@ -0,0 +1,5 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require 'rdoc'
4
+
5
+ print RDoc::Markup::ToMarkdown.new.convert(ARGF.read)
data/lib/utils/version.rb CHANGED
@@ -1,6 +1,6 @@
1
1
  module Utils
2
2
  # Utils version
3
- VERSION = '0.26.0'
3
+ VERSION = '0.28.0'
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,23 @@
1
1
  # -*- encoding: utf-8 -*-
2
- # stub: utils 0.26.0 ruby lib
2
+ # stub: utils 0.28.0 ruby lib
3
3
 
4
4
  Gem::Specification.new do |s|
5
5
  s.name = "utils".freeze
6
- s.version = "0.26.0"
6
+ s.version = "0.28.0"
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 = "2022-04-26"
11
+ s.date = "2022-05-14"
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 = ["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, "ssl_cert_info".freeze, "strip_spaces".freeze, "untest".freeze, "utils-utilsrc".freeze, "vcf2alias".freeze]
14
+ s.executables = ["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, "rd2md".freeze, "search".freeze, "sedit".freeze, "serve".freeze, "ssh-tunnel".freeze, "ssl_cert_info".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/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/ssl_cert_info".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 = [".github/workflows/codeql-analysis.yml".freeze, "COPYING".freeze, "Gemfile".freeze, "README.md".freeze, "Rakefile".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/rd2md".freeze, "bin/search".freeze, "bin/sedit".freeze, "bin/serve".freeze, "bin/ssh-tunnel".freeze, "bin/ssl_cert_info".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
+ s.licenses = ["GPL-2.0".freeze]
18
19
  s.rdoc_options = ["--title".freeze, "Utils - Some useful command line utilities".freeze, "--main".freeze, "README.md".freeze]
19
- s.rubygems_version = "3.2.33".freeze
20
+ s.rubygems_version = "3.3.13".freeze
20
21
  s.summary = "Some useful command line utilities".freeze
21
22
 
22
23
  if s.respond_to? :specification_version then
@@ -24,20 +25,22 @@ Gem::Specification.new do |s|
24
25
  end
25
26
 
26
27
  if s.respond_to? :add_runtime_dependency then
27
- s.add_development_dependency(%q<gem_hadar>.freeze, ["~> 1.11.0"])
28
+ s.add_development_dependency(%q<gem_hadar>.freeze, ["~> 1.12.0"])
28
29
  s.add_runtime_dependency(%q<tins>.freeze, ["~> 1.14"])
29
30
  s.add_runtime_dependency(%q<term-ansicolor>.freeze, ["~> 1.3"])
30
31
  s.add_runtime_dependency(%q<pstree>.freeze, ["~> 0.3"])
31
32
  s.add_runtime_dependency(%q<infobar>.freeze, [">= 0"])
32
33
  s.add_runtime_dependency(%q<mize>.freeze, [">= 0"])
33
34
  s.add_runtime_dependency(%q<search_ui>.freeze, [">= 0"])
35
+ s.add_runtime_dependency(%q<all_images>.freeze, [">= 0"])
34
36
  else
35
- s.add_dependency(%q<gem_hadar>.freeze, ["~> 1.11.0"])
37
+ s.add_dependency(%q<gem_hadar>.freeze, ["~> 1.12.0"])
36
38
  s.add_dependency(%q<tins>.freeze, ["~> 1.14"])
37
39
  s.add_dependency(%q<term-ansicolor>.freeze, ["~> 1.3"])
38
40
  s.add_dependency(%q<pstree>.freeze, ["~> 0.3"])
39
41
  s.add_dependency(%q<infobar>.freeze, [">= 0"])
40
42
  s.add_dependency(%q<mize>.freeze, [">= 0"])
41
43
  s.add_dependency(%q<search_ui>.freeze, [">= 0"])
44
+ s.add_dependency(%q<all_images>.freeze, [">= 0"])
42
45
  end
43
46
  end
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.26.0
4
+ version: 0.28.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Florian Frank
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-04-26 00:00:00.000000000 Z
11
+ date: 2022-05-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gem_hadar
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: 1.11.0
19
+ version: 1.12.0
20
20
  type: :development
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: 1.11.0
26
+ version: 1.12.0
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: tins
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -108,10 +108,23 @@ dependencies:
108
108
  - - ">="
109
109
  - !ruby/object:Gem::Version
110
110
  version: '0'
111
+ - !ruby/object:Gem::Dependency
112
+ name: all_images
113
+ requirement: !ruby/object:Gem::Requirement
114
+ requirements:
115
+ - - ">="
116
+ - !ruby/object:Gem::Version
117
+ version: '0'
118
+ type: :runtime
119
+ prerelease: false
120
+ version_requirements: !ruby/object:Gem::Requirement
121
+ requirements:
122
+ - - ">="
123
+ - !ruby/object:Gem::Version
124
+ version: '0'
111
125
  description: This ruby gem provides some useful command line utilities
112
126
  email: flori@ping.de
113
127
  executables:
114
- - all_images
115
128
  - ascii7
116
129
  - blameline
117
130
  - classify
@@ -132,6 +145,7 @@ executables:
132
145
  - on_change
133
146
  - path
134
147
  - probe
148
+ - rd2md
135
149
  - search
136
150
  - sedit
137
151
  - serve
@@ -161,13 +175,11 @@ extra_rdoc_files:
161
175
  - lib/utils/version.rb
162
176
  - lib/utils/xt/source_location_extension.rb
163
177
  files:
164
- - ".gitignore"
178
+ - ".github/workflows/codeql-analysis.yml"
165
179
  - COPYING
166
180
  - Gemfile
167
181
  - README.md
168
182
  - Rakefile
169
- - VERSION
170
- - bin/all_images
171
183
  - bin/ascii7
172
184
  - bin/blameline
173
185
  - bin/classify
@@ -188,6 +200,7 @@ files:
188
200
  - bin/on_change
189
201
  - bin/path
190
202
  - bin/probe
203
+ - bin/rd2md
191
204
  - bin/search
192
205
  - bin/sedit
193
206
  - bin/serve
@@ -215,7 +228,8 @@ files:
215
228
  - lib/utils/xt/source_location_extension.rb
216
229
  - utils.gemspec
217
230
  homepage: http://github.com/flori/utils
218
- licenses: []
231
+ licenses:
232
+ - GPL-2.0
219
233
  metadata: {}
220
234
  post_install_message:
221
235
  rdoc_options:
@@ -236,7 +250,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
236
250
  - !ruby/object:Gem::Version
237
251
  version: '0'
238
252
  requirements: []
239
- rubygems_version: 3.2.33
253
+ rubygems_version: 3.3.13
240
254
  signing_key:
241
255
  specification_version: 4
242
256
  summary: Some useful command line utilities
data/.gitignore DELETED
@@ -1,9 +0,0 @@
1
- .*.sw[pon]
2
- .AppleDouble
3
- .DS_Store
4
- .bundle
5
- .byebug_history
6
- .rvmrc
7
- Gemfile.lock
8
- pkg
9
- tags
data/VERSION DELETED
@@ -1 +0,0 @@
1
- 0.26.0
data/bin/all_images DELETED
@@ -1,72 +0,0 @@
1
- #!/usr/bin/env ruby
2
- # Configure like so:
3
- #dockerfile: |-
4
- # RUN apk add --no-cache build-base git
5
- # RUN gem update --system
6
- # RUN gem install gem_hadar bundler
7
- #
8
- #script: &script |-
9
- # echo -e "\e[1m"
10
- # ruby -v
11
- # bundle
12
- # echo -e "\e[0m"
13
- # if rake test
14
- #
15
- #images:
16
- # ruby:3.0-alpine: *script
17
- # ruby:2.7-alpine: *script
18
- # ruby:2.6-alpine: *script
19
- # ruby:2.5-alpine: *script
20
- # ruby:2.4-alpine: *script
21
- # ruby:2.3-alpine: *script
22
-
23
- require 'yaml'
24
- require 'tmpdir'
25
- require 'fileutils'
26
- include FileUtils
27
-
28
- alias sh system
29
-
30
- def provide_image(image, dockerfile)
31
- prefix = $config.fetch('prefix', File.basename(Dir.pwd))
32
- tag = "#{prefix}/all_images/#{image}"
33
- sh "docker pull '#{image}'"
34
- build_dir = File.join(Dir.tmpdir, 'build')
35
- mkdir_p build_dir
36
- cd build_dir do
37
- File.open('Dockerfile', 'w') do |t|
38
- t.puts <<~end
39
- FROM #{image}
40
-
41
- WORKDIR /work
42
-
43
- #{dockerfile}
44
- end
45
- end
46
- sh "docker build --pull -t '#{tag}' ."
47
- end
48
- tag
49
- ensure
50
- rm_rf File.join(Dir.tmpdir, 'build')
51
- end
52
-
53
- def red(string)
54
- "\e[31m#{string}\e[0m"
55
- end
56
-
57
- def green(string)
58
- "\e[32m#{string}\e[0m"
59
- end
60
-
61
- $config = YAML.load_file(ARGV.shift || '.all_images.yml')
62
- dockerfile = $config['dockerfile'].to_s
63
- Array($config['images']).each do |image, script|
64
- tag = provide_image image, dockerfile
65
- if sh "docker run --name all_images -v `pwd`:/work '#{tag}' sh -c '#{script}'"
66
- puts green('SUCCESS')
67
- else
68
- puts red('FAILURE')
69
- end
70
- ensure
71
- sh 'docker rm -f all_images >/dev/null'
72
- end