edfize 0.1.0.beta4 → 0.1.0.beta5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +2 -3
- data/lib/edfize/version.rb +1 -1
- data/lib/edfize.rb +10 -9
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f4a48063129c0326118a9f2758d13786a65bcfe2
|
4
|
+
data.tar.gz: 2f6b9b8f5a4d36c98b4bd7af31ada7c63a2b57b9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7a22f2735682235b18aad50522791969cdc9e63aaf5e12c00a7777f5503f33d563115041400b9906607bd5398b48138f11b903749b373f92cae82aba315bea4a
|
7
|
+
data.tar.gz: 1faecd4de21fef9b0e495373bb81e9bcb6d5fc250abbe1876acc67b0087b34b21f6f856e4f1519f1e849c5baf048a382acb97072e7c333dfd3970ca76d2d7e5d
|
data/CHANGELOG.md
CHANGED
@@ -1,15 +1,14 @@
|
|
1
1
|
## 0.1.0
|
2
2
|
- Initial EDF class to load headers and signals into Ruby objects
|
3
3
|
- `edfize` command has the following actions:
|
4
|
-
- `test`: Validates EDFs in the current directory for errors
|
4
|
+
- `test`: Validates EDFs in the current directory and subdirectories for errors
|
5
5
|
- To only show failing tests, add the flag `--failing`
|
6
6
|
- `edfize test --failing`
|
7
7
|
- To suppress descriptive test failures, add the flag `--quiet`
|
8
8
|
- `edfize test --quiet`
|
9
9
|
- Both flags can be used together
|
10
10
|
- `edfize test --failing --quiet`
|
11
|
-
- `
|
12
|
-
- `run`: Prints out the headers of all edfs in the current directory
|
11
|
+
- `run`: Prints out the headers of all edfs in the current directory and subdirectories
|
13
12
|
- `help`: Displays information about `edfize` along with all available commands
|
14
13
|
- `version`: Displays the current `edfize` version
|
15
14
|
- `edfize test` checks for the following:
|
data/lib/edfize/version.rb
CHANGED
data/lib/edfize.rb
CHANGED
@@ -20,7 +20,7 @@ module Edfize
|
|
20
20
|
|
21
21
|
def self.print_headers
|
22
22
|
puts "----------------"
|
23
|
-
|
23
|
+
edfs_in_current_directory_and_subdirectories.each do |edf_file_name|
|
24
24
|
edf = Edfize::Edf.new(edf_file_name)
|
25
25
|
edf.print_header
|
26
26
|
puts "----------------"
|
@@ -33,11 +33,11 @@ module Edfize
|
|
33
33
|
|
34
34
|
def self.check(argv)
|
35
35
|
test_start_time = Time.now
|
36
|
-
edf_count =
|
36
|
+
edf_count = edfs_in_current_directory_and_subdirectories.count
|
37
37
|
test_count = 0
|
38
38
|
failure_count = 0
|
39
39
|
puts "Started\n"
|
40
|
-
|
40
|
+
edfs_in_current_directory_and_subdirectories.each do |edf_file_name|
|
41
41
|
edf = Edfize::Edf.new(edf_file_name)
|
42
42
|
runner = Edfize::Tests::Runner.new(edf, argv)
|
43
43
|
runner.run_tests
|
@@ -53,10 +53,11 @@ module Edfize
|
|
53
53
|
Usage: edfize COMMAND [ARGS]
|
54
54
|
|
55
55
|
The most common edfize commands are:
|
56
|
-
[
|
57
|
-
|
58
|
-
|
59
|
-
[
|
56
|
+
[t]est Check EDFs in directory and subdirectories
|
57
|
+
--failing Only display failing tests
|
58
|
+
--quiet Suppress failing test descriptions
|
59
|
+
[r]un Print EDF header information
|
60
|
+
[h]elp Show edfize command documentation
|
60
61
|
[v]ersion Returns the version of Edfize
|
61
62
|
|
62
63
|
Commands can be referenced by the first letter:
|
@@ -66,7 +67,7 @@ EOT
|
|
66
67
|
puts help_message
|
67
68
|
end
|
68
69
|
|
69
|
-
def self.
|
70
|
-
Dir.glob('
|
70
|
+
def self.edfs_in_current_directory_and_subdirectories
|
71
|
+
Dir.glob('**/*.edf')
|
71
72
|
end
|
72
73
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: edfize
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.0.
|
4
|
+
version: 0.1.0.beta5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Remo Mueller
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-05-
|
11
|
+
date: 2014-05-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: colorize
|