avro-builder 0.14.0 → 0.14.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.ruby-version +1 -1
- data/.travis.yml +5 -2
- data/CHANGELOG.md +3 -0
- data/avro-builder.gemspec +1 -1
- data/lib/avro/builder/file_handler.rb +7 -2
- data/lib/avro/builder/version.rb +1 -1
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 69d3eb1e937d77bb8d5f3b868509c69dc105b2aa
|
4
|
+
data.tar.gz: f638c4459b959ecb39abad6d311e360a31185d42
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 779bb6e3904c33882b733bde8b2c93b17763c272dbe27191d153b4dafacef47172b491a91dcd3ff98e4c9326a572997eb1b47862ef50f79e78a960d14e9f65fe
|
7
|
+
data.tar.gz: 63680ea96c10abe0848185190df7b0472fef02c6083b3dff9fc75f97d766590edb95026738082b8485c10e1b1e5a0303e5b83d8a55d63be41b73ec9cb773a487
|
data/.ruby-version
CHANGED
@@ -1 +1 @@
|
|
1
|
-
ruby-2.3.
|
1
|
+
ruby-2.3.3
|
data/.travis.yml
CHANGED
data/CHANGELOG.md
CHANGED
data/avro-builder.gemspec
CHANGED
@@ -27,6 +27,6 @@ Gem::Specification.new do |spec|
|
|
27
27
|
spec.add_development_dependency 'rspec', '~> 3.0'
|
28
28
|
spec.add_development_dependency 'json_spec'
|
29
29
|
spec.add_development_dependency 'simplecov'
|
30
|
-
spec.add_development_dependency 'salsify_rubocop', '~> 0.
|
30
|
+
spec.add_development_dependency 'salsify_rubocop', '~> 0.47.0'
|
31
31
|
spec.add_development_dependency 'overcommit'
|
32
32
|
end
|
@@ -25,17 +25,22 @@ module Avro
|
|
25
25
|
# a namespace then ensure that periods (.) are replaced by forward
|
26
26
|
# slashes. E.g. for 'test.example' search for '/test/example.rb'.
|
27
27
|
file_name = "/#{name.to_s.tr('.', '/').sub(/^\//, '').sub(/\.rb$/, '')}.rb"
|
28
|
-
matches =
|
28
|
+
matches = real_load_paths.flat_map do |load_path|
|
29
29
|
Dir["#{load_path}/**/*.rb"].select do |file_path|
|
30
30
|
file_path.end_with?(file_name)
|
31
31
|
end
|
32
|
-
end
|
32
|
+
end.uniq
|
33
33
|
raise "Multiple matches: #{matches}" if matches.size > 1
|
34
34
|
raise "File not found #{file_name}" if matches.empty?
|
35
35
|
|
36
36
|
matches.first
|
37
37
|
end
|
38
38
|
|
39
|
+
private
|
40
|
+
|
41
|
+
def real_load_paths
|
42
|
+
self.class.load_paths.map { |path| File.realpath(path) }.uniq
|
43
|
+
end
|
39
44
|
end
|
40
45
|
end
|
41
46
|
end
|
data/lib/avro/builder/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: avro-builder
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.14.
|
4
|
+
version: 0.14.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Salsify Engineering
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-03-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: avro
|
@@ -114,14 +114,14 @@ dependencies:
|
|
114
114
|
requirements:
|
115
115
|
- - "~>"
|
116
116
|
- !ruby/object:Gem::Version
|
117
|
-
version: 0.
|
117
|
+
version: 0.47.0
|
118
118
|
type: :development
|
119
119
|
prerelease: false
|
120
120
|
version_requirements: !ruby/object:Gem::Requirement
|
121
121
|
requirements:
|
122
122
|
- - "~>"
|
123
123
|
- !ruby/object:Gem::Version
|
124
|
-
version: 0.
|
124
|
+
version: 0.47.0
|
125
125
|
- !ruby/object:Gem::Dependency
|
126
126
|
name: overcommit
|
127
127
|
requirement: !ruby/object:Gem::Requirement
|
@@ -214,7 +214,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
214
214
|
version: '0'
|
215
215
|
requirements: []
|
216
216
|
rubyforge_project:
|
217
|
-
rubygems_version: 2.6.
|
217
|
+
rubygems_version: 2.6.10
|
218
218
|
signing_key:
|
219
219
|
specification_version: 4
|
220
220
|
summary: Ruby DSL to create Avro schemas
|