utils 0.25.0 → 0.27.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: e5e6aaef5b9e79a9cf124718507ba0f9c626f9978e00fe8d3e5a65ef22b18f56
4
- data.tar.gz: 8f5200637c19a37dadddfa85a90fa80ab0d0730613d7c4170261e7473f4cf83b
3
+ metadata.gz: e0a695d4074ac4053773c97491cc160ee37439ab05fef58e3905f83ba5629b85
4
+ data.tar.gz: 1efe92716015195fa04402b046dc13eb9a22460f94400b284a4735ca659941a0
5
5
  SHA512:
6
- metadata.gz: 63ff5b909a214bf4cc0f0f97b8ad9efe2d4277cafcb88d36a3a10da3de4b2d39b7bb93b94fb97ccbd49ab216d441d517c2beab652bed18fbe4d201d7b6f27ad9
7
- data.tar.gz: d6d9ea947a13cdaffe47ae27fe7ba8a62e06e60f0255b743a889157f88b1c533a2734d7c7a1ad0a409c3e1aecbb45f49d69a445f5b48b37eeb7a73df97b74558
6
+ metadata.gz: c3c354e67b143c6a237258c5feb4f8bbe04c6a295dcdc03bda36f144814e862d6a1c1e966f89fd976519b036866b5fd2fc84139f8b58ee6868c169a26f56ba93
7
+ data.tar.gz: 911fdec36192ffb28405b913ff2f1625dd92bd4daf4c957dd330efdc3aab18ccdad8fbf65ce565be881d5cf8ff6eaad8bdc4646133698d8d913843983a10234b
@@ -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'
data/bin/all_images CHANGED
@@ -2,6 +2,7 @@
2
2
  # Configure like so:
3
3
  #dockerfile: |-
4
4
  # RUN apk add --no-cache build-base git
5
+ # RUN gem update --system
5
6
  # RUN gem install gem_hadar bundler
6
7
  #
7
8
  #script: &script |-
@@ -27,7 +28,8 @@ include FileUtils
27
28
  alias sh system
28
29
 
29
30
  def provide_image(image, dockerfile)
30
- tag = "all_images/#{image}"
31
+ prefix = $config.fetch('prefix', File.basename(Dir.pwd))
32
+ tag = "#{prefix}/all_images/#{image}"
31
33
  sh "docker pull '#{image}'"
32
34
  build_dir = File.join(Dir.tmpdir, 'build')
33
35
  mkdir_p build_dir
@@ -56,9 +58,9 @@ def green(string)
56
58
  "\e[32m#{string}\e[0m"
57
59
  end
58
60
 
59
- config = YAML.load_file(ARGV.shift || '.all_images.yml')
60
- dockerfile = config['dockerfile'].to_s
61
- Array(config['images']).each do |image, script|
61
+ $config = YAML.load_file(ARGV.shift || '.all_images.yml')
62
+ dockerfile = $config['dockerfile'].to_s
63
+ Array($config['images']).each do |image, script|
62
64
  tag = provide_image image, dockerfile
63
65
  if sh "docker run --name all_images -v `pwd`:/work '#{tag}' sh -c '#{script}'"
64
66
  puts green('SUCCESS')
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.25.0'
3
+ VERSION = '0.27.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.25.0 ruby lib
2
+ # stub: utils 0.27.0 ruby lib
3
3
 
4
4
  Gem::Specification.new do |s|
5
5
  s.name = "utils".freeze
6
- s.version = "0.25.0"
6
+ s.version = "0.27.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-02-24"
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 = ["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, "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/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/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.22".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,7 +25,7 @@ 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"])
@@ -32,7 +33,7 @@ Gem::Specification.new do |s|
32
33
  s.add_runtime_dependency(%q<mize>.freeze, [">= 0"])
33
34
  s.add_runtime_dependency(%q<search_ui>.freeze, [">= 0"])
34
35
  else
35
- s.add_dependency(%q<gem_hadar>.freeze, ["~> 1.11.0"])
36
+ s.add_dependency(%q<gem_hadar>.freeze, ["~> 1.12.0"])
36
37
  s.add_dependency(%q<tins>.freeze, ["~> 1.14"])
37
38
  s.add_dependency(%q<term-ansicolor>.freeze, ["~> 1.3"])
38
39
  s.add_dependency(%q<pstree>.freeze, ["~> 0.3"])
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.25.0
4
+ version: 0.27.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-02-24 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
@@ -132,6 +132,7 @@ executables:
132
132
  - on_change
133
133
  - path
134
134
  - probe
135
+ - rd2md
135
136
  - search
136
137
  - sedit
137
138
  - serve
@@ -161,12 +162,11 @@ extra_rdoc_files:
161
162
  - lib/utils/version.rb
162
163
  - lib/utils/xt/source_location_extension.rb
163
164
  files:
164
- - ".gitignore"
165
+ - ".github/workflows/codeql-analysis.yml"
165
166
  - COPYING
166
167
  - Gemfile
167
168
  - README.md
168
169
  - Rakefile
169
- - VERSION
170
170
  - bin/all_images
171
171
  - bin/ascii7
172
172
  - bin/blameline
@@ -188,6 +188,7 @@ files:
188
188
  - bin/on_change
189
189
  - bin/path
190
190
  - bin/probe
191
+ - bin/rd2md
191
192
  - bin/search
192
193
  - bin/sedit
193
194
  - bin/serve
@@ -215,7 +216,8 @@ files:
215
216
  - lib/utils/xt/source_location_extension.rb
216
217
  - utils.gemspec
217
218
  homepage: http://github.com/flori/utils
218
- licenses: []
219
+ licenses:
220
+ - GPL-2.0
219
221
  metadata: {}
220
222
  post_install_message:
221
223
  rdoc_options:
@@ -236,7 +238,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
236
238
  - !ruby/object:Gem::Version
237
239
  version: '0'
238
240
  requirements: []
239
- rubygems_version: 3.2.22
241
+ rubygems_version: 3.3.13
240
242
  signing_key:
241
243
  specification_version: 4
242
244
  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.25.0