actions-updater 0.1.4 → 0.1.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/VERSION +1 -1
- data/bin/actions-updater +3 -2
- data/lib/action.rb +9 -1
- metadata +17 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d4a74c5f02161dab4c472a0888253ecf5dbd0b964ae90aee5b8648b2d468ff98
|
4
|
+
data.tar.gz: 3535a778184547a6561c82eef215ca16e1d135226db89c8f31c881f2422a1c8d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d2468212960dcb138cbdc64ad8c2d974de85761ba726b3301bf25aa00ef86e3ba65f06c6b7257cfcb0e247356a8feff617deebef292ab449660229a2ac5ceb5f
|
7
|
+
data.tar.gz: 9a36f118b6db47c24003aa40261bb50b76e1b916f8d3da645c5b662492408f73cbb0d21726af750d828f7f7967b977596ff0f3cbcf0dcd722a0f12991ad39cd6
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.1.
|
1
|
+
0.1.8
|
data/bin/actions-updater
CHANGED
@@ -2,6 +2,7 @@
|
|
2
2
|
# frozen_string_literal: true
|
3
3
|
|
4
4
|
require 'optparse'
|
5
|
+
require 'colorize'
|
5
6
|
require 'action'
|
6
7
|
|
7
8
|
OptionParser.new do |parser|
|
@@ -16,7 +17,7 @@ OptionParser.new do |parser|
|
|
16
17
|
end.parse!
|
17
18
|
|
18
19
|
ARGV.each do |path|
|
19
|
-
puts "==> #{path}"
|
20
|
+
puts "#{'==>'.blue} #{path}".bold
|
20
21
|
yaml = File.read(path)
|
21
22
|
actions = Action.array_from_yaml(yaml)
|
22
23
|
actions.each do |current_action|
|
@@ -25,7 +26,7 @@ ARGV.each do |path|
|
|
25
26
|
|
26
27
|
next if current_action == new_action && @newer
|
27
28
|
|
28
|
-
puts "#{current_action}
|
29
|
+
puts "#{current_action.print_without_ref.cyan.bold} : #{current_action.ref.red.bold} ==> #{new_action.ref.green.bold}"
|
29
30
|
|
30
31
|
next unless @write
|
31
32
|
|
data/lib/action.rb
CHANGED
@@ -38,9 +38,17 @@ class Action
|
|
38
38
|
end
|
39
39
|
|
40
40
|
def to_s
|
41
|
+
print
|
42
|
+
end
|
43
|
+
|
44
|
+
def print
|
41
45
|
"#{@user}/#{@repo}#{@dir ? '/' : ''}#{@dir}#{@ref ? '@' : ''}#{@ref}"
|
42
46
|
end
|
43
47
|
|
48
|
+
def print_without_ref
|
49
|
+
"#{@user}/#{@repo}#{@dir ? '/' : ''}#{@dir}"
|
50
|
+
end
|
51
|
+
|
44
52
|
def ==(other)
|
45
53
|
to_s == other.to_s
|
46
54
|
end
|
@@ -52,6 +60,6 @@ class Action
|
|
52
60
|
tag.include?(reason)
|
53
61
|
end
|
54
62
|
end
|
55
|
-
tags.last
|
63
|
+
tags.last || @ref
|
56
64
|
end
|
57
65
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: actions-updater
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dawid Dziurla
|
@@ -9,7 +9,21 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
date: 2019-12-06 00:00:00.000000000 Z
|
12
|
-
dependencies:
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: colorize
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '0.8'
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '0.8'
|
13
27
|
description:
|
14
28
|
email:
|
15
29
|
executables:
|
@@ -39,7 +53,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
39
53
|
- !ruby/object:Gem::Version
|
40
54
|
version: '0'
|
41
55
|
requirements: []
|
42
|
-
rubygems_version: 3.0.
|
56
|
+
rubygems_version: 3.0.3
|
43
57
|
signing_key:
|
44
58
|
specification_version: 4
|
45
59
|
summary: Updater of used Github Actions in workflow files
|