rails5-spec-converter 1.0.16 → 1.0.17

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: da659c54addaff82abd519274ed54477c401438a
4
- data.tar.gz: 217e06555325fb97b3e10fdfc8cae7c44f096de5
3
+ metadata.gz: b30c8ac0b4d815e5e31d439c98845c7d0b9ddf3c
4
+ data.tar.gz: 2e5c2c892127cc0d03c05e8333a739bde933ff86
5
5
  SHA512:
6
- metadata.gz: 1c2ced79435fb5d7dd440e863c46a49be07e15a9ef648173342e0680235625e4be3011890ff3afd5fd1e69acef81b6d3f98d2216346de2646db51329d1a47454
7
- data.tar.gz: 2c478082acb31b1db660f1c35ae12e6a376921ab8acd81e089f7bdf38d6253027a594a8e0ee34550cbc90d497ed50578a8259271125d1408f1e97d2626f26f20
6
+ metadata.gz: 9ab4fbf2947035aade8879caf9fa0673c7c038b3930385a450e1d612427389b6e03a40905c6c282c846bcb28b0b8007266a7234c5bf17ee93045d8d4d86f56d9
7
+ data.tar.gz: 442ec1884fbbfa2d748281f7f07a0316892462a4d20e3c74688ac814bf1581f6de106daa80cb5fcc5f3a527f38fd53bbc40ebb6d86d7169cda3d9a427933d58f
@@ -23,6 +23,11 @@ module Rails5
23
23
 
24
24
  def transform
25
25
  root_node = @parser.parse(@source_buffer)
26
+ unless root_node
27
+ log "Parser saw some unparsable content, skipping...\n\n"
28
+ return @source_rewriter.process
29
+ end
30
+
26
31
  root_node.each_node(:send) do |node|
27
32
  target, verb, action, *args = node.children
28
33
  next unless args.length > 0
@@ -1,5 +1,5 @@
1
1
  module Rails5
2
2
  module SpecConverter
3
- VERSION = "1.0.16"
3
+ VERSION = "1.0.17"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rails5-spec-converter
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.16
4
+ version: 1.0.17
5
5
  platform: ruby
6
6
  authors:
7
7
  - Travis Grathwell