edfize 0.1.0.beta4 → 0.1.0.beta5

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: bf57ae39549201b68a9a8ac9f1f71e9528537fc7
4
- data.tar.gz: 4c5f193d9bef76f1ca9b3103f49cf225a02108f1
3
+ metadata.gz: f4a48063129c0326118a9f2758d13786a65bcfe2
4
+ data.tar.gz: 2f6b9b8f5a4d36c98b4bd7af31ada7c63a2b57b9
5
5
  SHA512:
6
- metadata.gz: e9ba85f2dc77f25cfd2a832ebf09d3e947c385134a9703af278ee4c9448962881dbf00f947f246be08e555621553ee5d90bb0e156b128e54a71cab0c9119d739
7
- data.tar.gz: 085b9e05debfb49090b62dbff46e93c96c2329564ca51c72f89d58428eb798fc75a95a28e55349a35408f120d29fdb1961f47389e4ce23811fef6a3cfa65b211
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
- - `check`: Same as `test`
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:
@@ -3,7 +3,7 @@ module Edfize
3
3
  MAJOR = 0
4
4
  MINOR = 1
5
5
  TINY = 0
6
- BUILD = "beta4"
6
+ BUILD = "beta5"
7
7
 
8
8
  STRING = [MAJOR, MINOR, TINY, BUILD].compact.join('.')
9
9
  end
data/lib/edfize.rb CHANGED
@@ -20,7 +20,7 @@ module Edfize
20
20
 
21
21
  def self.print_headers
22
22
  puts "----------------"
23
- edfs_in_current_directory.each do |edf_file_name|
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 = edfs_in_current_directory.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
- edfs_in_current_directory.each do |edf_file_name|
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
- [c]heck Check EDFs in current directory for errors
57
- [t]est Same as [c]heck
58
- [r]un Print EDF headers for current directory
59
- [h]elp Show edfize command-line documentation
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.edfs_in_current_directory
70
- Dir.glob('*.edf')
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.beta4
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-02 00:00:00.000000000 Z
11
+ date: 2014-05-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: colorize