aranha-parsers 0.6.0 → 0.6.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
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 61f37f632fe8c71270310b438c9ed5dd222a76eea6a6aab38084c476320b02a4
|
4
|
+
data.tar.gz: 17c741f0b3a6540c027a1667063abf587b4a17cf2e4cdc759fa1aceccaec0c31
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 456740f64d61019f8f3b0982a19a2e2b8e40a1c9986b00b81ba989665143d88513ecef8e104576eec26e80c2dc558daefa061d73bfe3c1efca0f018d8d5af6a3
|
7
|
+
data.tar.gz: 842fb59ac4bdf3d58a845a0eadfccf275f5fc355e50ac03e05fb574e289778dd1ff488ee79af20af8d5c3bf4c8edeb4c028d152281b8b0a4d0679e7b057bb254
|
@@ -46,7 +46,11 @@ RSpec.shared_examples 'source_target_fixtures' do |spec_file| # rubocop:disable
|
|
46
46
|
end
|
47
47
|
|
48
48
|
def source_data(source_file)
|
49
|
-
described_class.new(source_file)
|
49
|
+
instance = described_class.new(source_file)
|
50
|
+
return instance.data if instance.respond_to?(:data)
|
51
|
+
|
52
|
+
raise "#{instance} has no \"data\" method. You need to implement \"#{instance}.data\" or " \
|
53
|
+
"\"#{self}.source_data(source_file)\""
|
50
54
|
end
|
51
55
|
|
52
56
|
def fixtures_dir
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: aranha-parsers
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.6.
|
4
|
+
version: 0.6.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Esquilo Azul Company
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-11-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|