kpeg 1.3.0 → 1.3.1
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/History.txt +5 -1
- data/bin/kpeg +3 -3
- data/lib/kpeg.rb +1 -1
- 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: 69daab2a8357318c67653138ac1279d035305af374c0840164b535d3110a9a34
|
4
|
+
data.tar.gz: 703023a2c28f68a26cf1b84255e4aede05880eb6356ced93ec244bad471f05f7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f98d1334465ea3728004aea43b5abe33d8deae27c4100beaa091a87292ac0197a4580207b3036da616054d5dab8f931621597fc6c2294698eb32842be37e5458
|
7
|
+
data.tar.gz: acbd264cfd9de363de5eac6107baa58ef43535b5a071fee6da11ff2b33cdd6c2a378664b137b9bb359504b12b0e2f2060fca8cfde53d8196309c68f3132e6e0f
|
data/History.txt
CHANGED
@@ -1,3 +1,7 @@
|
|
1
|
+
=== 1.3.1 / 2022-01-10
|
2
|
+
|
3
|
+
* File.exists? => File.exist?
|
4
|
+
|
1
5
|
=== 1.3.0 / 2021-10-20
|
2
6
|
|
3
7
|
* Fix current_line calculation
|
@@ -5,11 +9,11 @@
|
|
5
9
|
=== 1.2.0 / 2021-10-20
|
6
10
|
|
7
11
|
* Speed up current_line
|
12
|
+
|
8
13
|
=== 1.2.0 / 2021-10-20
|
9
14
|
|
10
15
|
* Speed up current_line
|
11
16
|
|
12
|
-
|
13
17
|
=== (entries lost to time)
|
14
18
|
|
15
19
|
=== 0.10 / 2012-04-16
|
data/bin/kpeg
CHANGED
@@ -53,7 +53,7 @@ end
|
|
53
53
|
|
54
54
|
file = ARGV.shift
|
55
55
|
|
56
|
-
unless File.
|
56
|
+
unless File.exist?(file)
|
57
57
|
puts "File '#{file}' does not exist"
|
58
58
|
exit 1
|
59
59
|
end
|
@@ -75,7 +75,7 @@ if options[:reformat]
|
|
75
75
|
end
|
76
76
|
|
77
77
|
output = options[:output]
|
78
|
-
if File.
|
78
|
+
if File.exist?(output) and !options[:force]
|
79
79
|
puts "Output '#{output}' already exists, not overwriting (use -f)"
|
80
80
|
exit 1
|
81
81
|
end
|
@@ -107,7 +107,7 @@ else
|
|
107
107
|
new_path = "#{file}.rb"
|
108
108
|
end
|
109
109
|
|
110
|
-
if !options[:test] and File.
|
110
|
+
if !options[:test] and File.exist?(new_path) and !options[:force]
|
111
111
|
puts "Path #{new_path} already exists, not overwriting\n"
|
112
112
|
exit 1
|
113
113
|
end
|
data/lib/kpeg.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: kpeg
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.3.
|
4
|
+
version: 1.3.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Evan Phoenix
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2022-01-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: minitest
|