Commit 252796f 1 parent dafe3cb commit 252796f Copy full SHA for 252796f
File tree 1 file changed +3
-4
lines changed
1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ class IG < Entity
23
23
24
24
include Inferno ::Entities ::Attributes
25
25
26
- def initialize ( params )
26
+ def initialize ( ** params )
27
27
super ( params , ATTRIBUTES )
28
28
29
29
@profiles = [ ]
@@ -57,7 +57,7 @@ def self.from_tgz(ig_path)
57
57
Zlib ::GzipReader . open ( ig_path )
58
58
)
59
59
60
- ig = IG . new ( { } )
60
+ ig = IG . new
61
61
62
62
tar . each do |entry |
63
63
next if skip_item? ( entry . full_name , entry . directory? )
@@ -75,7 +75,7 @@ def self.from_tgz(ig_path)
75
75
end
76
76
77
77
def self . from_directory ( ig_directory )
78
- ig = IG . new ( { } )
78
+ ig = IG . new
79
79
80
80
ig_path = Pathname . new ( ig_directory )
81
81
Dir . glob ( "#{ ig_path } /**/*" ) do |f |
@@ -102,7 +102,6 @@ def self.skip_item?(relative_path, is_directory)
102
102
103
103
file_name = relative_path . split ( '/' ) . last
104
104
105
- # TODO: consider making these regexes we can iterate over in a single loop
106
105
return true unless file_name . end_with? '.json'
107
106
return true unless relative_path . start_with? 'package/'
108
107
You can’t perform that action at this time.
0 commit comments