codeclimate 0.2 → 0.2.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8f489400e12618dd425bcb05161365f32b36f7c2
4
- data.tar.gz: cd3320cb3ff7cbdfc1d12a6421d4b10179bc65ef
3
+ metadata.gz: 64251a1ce1f62cb197aeff4608cded2262ec9bba
4
+ data.tar.gz: d1a024f83b810ee6a1e9cfb4475822f61db89749
5
5
  SHA512:
6
- metadata.gz: 5009c66af921b66e966f7c557443635bcd62f3cc776ec4ea58dbda5e417278e372f40472d512f64d9abe277f6e1798e159e542c4ba8ce03884def02fa555a722
7
- data.tar.gz: be7b64704caf5e43c2ab07fb5564b4a87491dba0ed09c312e866b440e65ca2c78a174fb683a1df55117026cf688e0535ea51e339fd645ee44d89a704ad1c1976
6
+ metadata.gz: efca44a6c9f009a1038142db8f1a154c1ded40605748b8727a37b5b876c688744f683eaa90cccccc387f8501ec60c571f5e198353c68759f5af7d4db695b0ef3
7
+ data.tar.gz: 4ba1ff910f91dc8bc283845dedddb6baebd21346b375165ea64283adb91286f139ffb1438e2c6dad73835f9348a59b2c561a5d930e7032088960b265ab0ec27d
@@ -15,7 +15,20 @@ module CC
15
15
  def expand
16
16
  results = Dir.chdir(@root) do
17
17
  @patterns.flat_map do |pattern|
18
- Dir.glob(pattern)
18
+ # FIXME: there exists a temporary workaround whereby **-style globs
19
+ # are translated to **/*-style globs within cc-yaml's custom
20
+ # Glob#value method. It was thought that that would work correctly
21
+ # with Dir.glob but it turns out we have to actually invoke #value
22
+ # directory for this to work. We need to guard this on class (not
23
+ # respond_to?) because our mocking framework adds a #value method to
24
+ # all objects, apparently.
25
+ if pattern.is_a?(CC::Yaml::Nodes::Glob)
26
+ value = pattern.value
27
+ else
28
+ value = pattern
29
+ end
30
+
31
+ Dir.glob(value)
19
32
  end
20
33
  end
21
34
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: codeclimate
3
3
  version: !ruby/object:Gem::Version
4
- version: '0.2'
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Code Climate