kpeg 1.3.0 → 1.3.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (5) hide show
  1. checksums.yaml +4 -4
  2. data/History.txt +5 -1
  3. data/bin/kpeg +3 -3
  4. data/lib/kpeg.rb +1 -1
  5. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 80dd9b2ed08c2a2ccc37ad658fe0f14864dc5ad8ef4e36d108a243a68a4baa5f
4
- data.tar.gz: 5dec03b1e86a4ff5d0d10ed7818d561b12c6c71022eed7de16786d0a90160de9
3
+ metadata.gz: 69daab2a8357318c67653138ac1279d035305af374c0840164b535d3110a9a34
4
+ data.tar.gz: 703023a2c28f68a26cf1b84255e4aede05880eb6356ced93ec244bad471f05f7
5
5
  SHA512:
6
- metadata.gz: bb96b6bcd8c7f92a6c11355d4022c95a285cf75872b5608fbb6fdc47233c342b42d3a91da524f6fb1678ae78d54109300e1607d7940ae5462c9282757d1bdc25
7
- data.tar.gz: 9f7e844e84c119ce755e95a4034fcd67c251f90e2f4623a34bdba6f94e568f34adbb92011f96b1efe55b02be4a3191be6414c12aed93e083d705d82d27b95c4f
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.exists?(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.exists?(output) and !options[:force]
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.exists?(new_path) and !options[:force]
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
@@ -1,6 +1,6 @@
1
1
  module KPeg
2
2
 
3
- VERSION = "1.3.0"
3
+ VERSION = "1.3.1"
4
4
 
5
5
  def self.grammar
6
6
  g = Grammar.new
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.0
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: 2021-10-31 00:00:00.000000000 Z
11
+ date: 2022-01-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: minitest