checkm 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- checkm (0.1.0)
4
+ checkm (0.1.1)
5
5
 
6
6
  GEM
7
7
  remote: http://rubygems.org/
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.0
1
+ 0.1.1
@@ -7,8 +7,6 @@ module Checkm
7
7
  options = args.delete(:options) || {}
8
8
  path = options[:path] || Dir.pwd
9
9
 
10
- return Checkm::Entry.new(file_or_path, options) if file_or_path.is_a? Array or file_or_path.is_a? Hash
11
-
12
10
  file = file_or_path if file.is_a? File
13
11
  file ||= File.open(File.expand_path(file_or_path, path))
14
12
 
@@ -22,6 +20,7 @@ module Checkm
22
20
  end
23
21
 
24
22
  attr_reader :values
23
+ attr_reader :fields
25
24
 
26
25
  def initialize source, options = {}
27
26
  @fields = options[:fields] || Manifest::BASE_FIELDS
@@ -9,14 +9,14 @@ module Checkm
9
9
  attr_reader :path
10
10
  attr_accessor :entries
11
11
 
12
- def initialize str_io_or_file, args = {}
12
+ def initialize str_io_or_file = '', args = {}
13
13
  @source = str_io_or_file
14
14
  @args = args
15
15
  @entries = []
16
16
 
17
17
  @eof = args[:eof]
18
18
  @version = args[:version]
19
- @fields = args[:ields]
19
+ @fields = args[:fields]
20
20
 
21
21
  @path = args[:path]
22
22
  @path ||= Dir.pwd
@@ -38,6 +38,8 @@ module Checkm
38
38
  end
39
39
 
40
40
  def add path_or_entry, args = {}
41
+ args[:options] ||= options_for_entries
42
+
41
43
  @entries << Checkm::Entry.create(path_or_entry, args)
42
44
  end
43
45
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: checkm
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -13,7 +13,7 @@ date: 2011-06-09 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rake
16
- requirement: &70168432758200 !ruby/object:Gem::Requirement
16
+ requirement: &70258904933900 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: '0'
22
22
  type: :development
23
23
  prerelease: false
24
- version_requirements: *70168432758200
24
+ version_requirements: *70258904933900
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: bundler
27
- requirement: &70168432757220 !ruby/object:Gem::Requirement
27
+ requirement: &70258904933440 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ! '>='
@@ -32,10 +32,10 @@ dependencies:
32
32
  version: '0'
33
33
  type: :development
34
34
  prerelease: false
35
- version_requirements: *70168432757220
35
+ version_requirements: *70258904933440
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: rspec
38
- requirement: &70168432756460 !ruby/object:Gem::Requirement
38
+ requirement: &70258904933020 !ruby/object:Gem::Requirement
39
39
  none: false
40
40
  requirements:
41
41
  - - ! '>='
@@ -43,10 +43,10 @@ dependencies:
43
43
  version: '0'
44
44
  type: :development
45
45
  prerelease: false
46
- version_requirements: *70168432756460
46
+ version_requirements: *70258904933020
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: rcov
49
- requirement: &70168432755600 !ruby/object:Gem::Requirement
49
+ requirement: &70258904932600 !ruby/object:Gem::Requirement
50
50
  none: false
51
51
  requirements:
52
52
  - - ! '>='
@@ -54,10 +54,10 @@ dependencies:
54
54
  version: '0'
55
55
  type: :development
56
56
  prerelease: false
57
- version_requirements: *70168432755600
57
+ version_requirements: *70258904932600
58
58
  - !ruby/object:Gem::Dependency
59
59
  name: yard
60
- requirement: &70168432754900 !ruby/object:Gem::Requirement
60
+ requirement: &70258904932180 !ruby/object:Gem::Requirement
61
61
  none: false
62
62
  requirements:
63
63
  - - ! '>='
@@ -65,7 +65,7 @@ dependencies:
65
65
  version: '0'
66
66
  type: :development
67
67
  prerelease: false
68
- version_requirements: *70168432754900
68
+ version_requirements: *70258904932180
69
69
  description:
70
70
  email: chris@cbeer.info
71
71
  executables: []
@@ -102,7 +102,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
102
102
  version: '0'
103
103
  segments:
104
104
  - 0
105
- hash: -4308377203823409037
105
+ hash: -3805702063571250187
106
106
  required_rubygems_version: !ruby/object:Gem::Requirement
107
107
  none: false
108
108
  requirements: