run_tasks 1.2.7 → 1.2.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/src/run/markdown.rb +4 -4
- data/src/run.rb +5 -4
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: '080afe6e5a7c8c122e4c1df3df0e43f881294ea254735680d912a0c373dd3a0a'
|
4
|
+
data.tar.gz: c54fcd1fac401c4b66ae21d3baa0e87dbe555201e4c3d0f389088f078729b7c8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6125dfb0293f121608a217519e7b587b4a348fa2d986786e32aa3f6a0152a88aed07976f8c3485b84b4dd0b40ff2f2a672dacfca9f5838295134c4df388e62aa
|
7
|
+
data.tar.gz: 56611fd8558b70f6a2e59cdf778fefadea99eb924a06b9e08a434b1cb23f7345e4fe44092c009fb35d983e957ed5c51082902ed8ae2f25d10d3967a2e9a7ca85
|
data/src/run/markdown.rb
CHANGED
@@ -16,19 +16,19 @@ class Markdown
|
|
16
16
|
private
|
17
17
|
|
18
18
|
def bold(string)
|
19
|
-
string.gsub(/([^*_])[*_]{2}([^*_]+)[*_]{2}([^*_])/) do
|
19
|
+
string.gsub(/([^*_]|^)[*_]{2}([^*_]+)[*_]{2}([^*_]|$)/) do
|
20
20
|
Regexp.last_match[1] + Regexp.last_match[2].bold + Regexp.last_match[3]
|
21
21
|
end
|
22
22
|
end
|
23
23
|
|
24
24
|
def code(string)
|
25
|
-
string.gsub(/([^`])`([^*_]+)`([^`])/) do
|
26
|
-
Regexp.last_match[1] + Regexp.last_match[2].
|
25
|
+
string.gsub(/([^`]|^)`([^*_]+)`([^`]|$)/) do
|
26
|
+
Regexp.last_match[1] + Regexp.last_match[2].cyan + Regexp.last_match[3]
|
27
27
|
end
|
28
28
|
end
|
29
29
|
|
30
30
|
def italic(string)
|
31
|
-
string.gsub(/([^*_])[*_]{1}([^*_]+)[*_]{1}([^*_])/) do
|
31
|
+
string.gsub(/([^*_]|^)[*_]{1}([^*_]+)[*_]{1}([^*_]|$)/) do
|
32
32
|
Regexp.last_match[1] + Regexp.last_match[2].italic + Regexp.last_match[3]
|
33
33
|
end
|
34
34
|
end
|
data/src/run.rb
CHANGED
@@ -106,9 +106,10 @@ end
|
|
106
106
|
|
107
107
|
begin
|
108
108
|
require "./#{RUNFILE}"
|
109
|
-
rescue SyntaxError
|
109
|
+
rescue SyntaxError => error
|
110
110
|
puts
|
111
|
-
puts "The Runfile contains a syntax error
|
111
|
+
puts "The Runfile contains a syntax error:".red
|
112
|
+
puts error.message.red
|
112
113
|
puts
|
113
114
|
exit 5
|
114
115
|
end
|
@@ -148,8 +149,8 @@ if VERSION && HOMEPAGE
|
|
148
149
|
current = VERSION.split "."
|
149
150
|
latest = version[1].split "."
|
150
151
|
if current[0].to_i < latest[0].to_i ||
|
151
|
-
|
152
|
-
|
152
|
+
current[1].to_i < latest[1].to_i ||
|
153
|
+
current[2].to_i < latest[2].to_i
|
153
154
|
puts "New ".cyan + version[1].yellow + " version released!".cyan
|
154
155
|
puts
|
155
156
|
puts "You can upgrade with:".cyan + "gem update run_tasks".yellow
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: run_tasks
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.2.
|
4
|
+
version: 1.2.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Aurélien Delogu
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-02-
|
11
|
+
date: 2023-02-15 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description:
|
14
14
|
email: aurelien.delogu@gmail.com
|