aranha-parsers 0.7.0 → 0.8.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 0ca626da7b2bf7b1550304656001fef47dbf0446605452c985ffbdbd22509d6a
4
- data.tar.gz: 4816fa1dbaaba92824cbdd770e5a53c9f23c95498623e923a5f04483f9c056da
3
+ metadata.gz: a3b16504277522c2b34639c2fc47ce7e0ff4eec2457b60aaaa7cd34e2e626f34
4
+ data.tar.gz: 63173d948c7ba9340b31874a59442e1f0c1d96d430cd0efef2f8295ed4e31fa2
5
5
  SHA512:
6
- metadata.gz: 35e9cc36f3214baa7424ca5c175459c43a3fd0a36ee00bd236e9fea46e815e563b626d19d25c899e1bb7e92e8c5fe9427272280958a4761da1bf642c65739331
7
- data.tar.gz: 4019fb80927d609da1a9d44ea11d42668004f4708e50745937a8d4e453569fe0fae67c657e891f12bd29ea8283e374dba68cfb2ee75d98dc9b7c6eaf20be7632
6
+ metadata.gz: f2b6d5e521759810fc9ede27725b5c347a294813483d935178a22e709459026ee5cee9f92c89b8cd533feb1fbcdb35744548b9da6c352147072711f8b61fecf1
7
+ data.tar.gz: c70c4460f3265e3d87138e2cf8bafd85cc4d6d9efdf9b2cf14d6f5225cf25b203cc79ff8f172f2151a99e38f0997f672b794083fb9d6ec6761068d5ae457d56f
@@ -0,0 +1,11 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'eac_ruby_utils/core_ext'
4
+
5
+ module Aranha
6
+ module Parsers
7
+ module Rspec
8
+ require_sub __FILE__
9
+ end
10
+ end
11
+ end
@@ -0,0 +1,17 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'eac_ruby_utils/core_ext'
4
+
5
+ module Aranha
6
+ module Parsers
7
+ module Rspec
8
+ class Setup
9
+ common_constructor :setup_obj
10
+
11
+ def perform
12
+ require 'aranha/parsers/rspec/source_target_fixtures_example'
13
+ end
14
+ end
15
+ end
16
+ end
17
+ end
@@ -1,13 +1,13 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  require 'active_support/core_ext/module/delegation'
4
- require 'eac_ruby_utils/require_sub'
4
+ require 'eac_ruby_utils/core_ext'
5
5
  require 'yaml'
6
6
 
7
7
  module Aranha
8
8
  module Parsers
9
9
  class SourceAddress
10
- ::EacRubyUtils.require_sub __FILE__
10
+ require_sub __FILE__
11
11
 
12
12
  class << self
13
13
  SUBS = [
@@ -35,12 +35,8 @@ module Aranha
35
35
  end
36
36
  end
37
37
 
38
- attr_reader :sub
39
-
40
- def initialize(source)
41
- @sub = self.class.detect_sub(source)
42
- end
43
-
38
+ enable_simple_cache
39
+ common_constructor :source
44
40
  delegate :content, :url, to: :sub
45
41
 
46
42
  def to_s
@@ -50,6 +46,12 @@ module Aranha
50
46
  def serialize
51
47
  sub.serialize.strip + "\n"
52
48
  end
49
+
50
+ private
51
+
52
+ def sub_uncached
53
+ self.class.detect_sub(source)
54
+ end
53
55
  end
54
56
  end
55
57
  end
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Aranha
4
4
  module Parsers
5
- VERSION = '0.7.0'
5
+ VERSION = '0.8.1'
6
6
  end
7
7
  end
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.7.0
4
+ version: 0.8.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-12-05 00:00:00.000000000 Z
11
+ date: 2021-07-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -58,20 +58,14 @@ dependencies:
58
58
  requirements:
59
59
  - - "~>"
60
60
  - !ruby/object:Gem::Version
61
- version: '0.33'
62
- - - ">="
63
- - !ruby/object:Gem::Version
64
- version: 0.33.1
61
+ version: '0.72'
65
62
  type: :runtime
66
63
  prerelease: false
67
64
  version_requirements: !ruby/object:Gem::Requirement
68
65
  requirements:
69
66
  - - "~>"
70
67
  - !ruby/object:Gem::Version
71
- version: '0.33'
72
- - - ">="
73
- - !ruby/object:Gem::Version
74
- version: 0.33.1
68
+ version: '0.72'
75
69
  - !ruby/object:Gem::Dependency
76
70
  name: httpclient
77
71
  requirement: !ruby/object:Gem::Requirement
@@ -112,14 +106,20 @@ dependencies:
112
106
  requirements:
113
107
  - - "~>"
114
108
  - !ruby/object:Gem::Version
115
- version: '0.1'
109
+ version: '0.3'
110
+ - - ">="
111
+ - !ruby/object:Gem::Version
112
+ version: 0.3.1
116
113
  type: :development
117
114
  prerelease: false
118
115
  version_requirements: !ruby/object:Gem::Requirement
119
116
  requirements:
120
117
  - - "~>"
121
118
  - !ruby/object:Gem::Version
122
- version: '0.1'
119
+ version: '0.3'
120
+ - - ">="
121
+ - !ruby/object:Gem::Version
122
+ version: 0.3.1
123
123
  description:
124
124
  email:
125
125
  executables: []
@@ -139,13 +139,15 @@ files:
139
139
  - lib/aranha/parsers/invalid_state_exception.rb
140
140
  - lib/aranha/parsers/patches.rb
141
141
  - lib/aranha/parsers/patches/ofx_parser.rb
142
+ - lib/aranha/parsers/rspec.rb
143
+ - lib/aranha/parsers/rspec/setup.rb
144
+ - lib/aranha/parsers/rspec/source_target_fixtures_example.rb
142
145
  - lib/aranha/parsers/source_address.rb
143
146
  - lib/aranha/parsers/source_address/file.rb
144
147
  - lib/aranha/parsers/source_address/hash_http_get.rb
145
148
  - lib/aranha/parsers/source_address/hash_http_post.rb
146
149
  - lib/aranha/parsers/source_address/http_get.rb
147
150
  - lib/aranha/parsers/source_target_fixtures.rb
148
- - lib/aranha/parsers/spec/source_target_fixtures_example.rb
149
151
  - lib/aranha/parsers/version.rb
150
152
  homepage:
151
153
  licenses: []
@@ -165,7 +167,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
165
167
  - !ruby/object:Gem::Version
166
168
  version: '0'
167
169
  requirements: []
168
- rubygems_version: 3.0.8
170
+ rubygems_version: 3.1.6
169
171
  signing_key:
170
172
  specification_version: 4
171
173
  summary: Parsers' utilities for Ruby.