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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9a85aed16798a9c11fc4ed2ffea4e5095039041d
4
- data.tar.gz: 4d19e50dd5d602ad1bedb573ccb58d4d7a91b7e4
3
+ metadata.gz: 69d3eb1e937d77bb8d5f3b868509c69dc105b2aa
4
+ data.tar.gz: f638c4459b959ecb39abad6d311e360a31185d42
5
5
  SHA512:
6
- metadata.gz: 7a6de0c7d56281c3945fbbdf758752e56748c0f3867b344649a20ff10dc39c7b50064fa1c429fbebea92fb17ada9e66d6039c3985ca048257781ef7c0dc4d858
7
- data.tar.gz: bf22de4529db5bde7cb80074a2542a1497bddf5bd9ca0c23792c60f4515a9eec402dbcacdf9e7123c284693e032eeef56a648d26ed92d50bd71bd74107fa59f1
6
+ metadata.gz: 779bb6e3904c33882b733bde8b2c93b17763c272dbe27191d153b4dafacef47172b491a91dcd3ff98e4c9326a572997eb1b47862ef50f79e78a960d14e9f65fe
7
+ data.tar.gz: 63680ea96c10abe0848185190df7b0472fef02c6083b3dff9fc75f97d766590edb95026738082b8485c10e1b1e5a0303e5b83d8a55d63be41b73ec9cb773a487
data/.ruby-version CHANGED
@@ -1 +1 @@
1
- ruby-2.3.1
1
+ ruby-2.3.3
data/.travis.yml CHANGED
@@ -1,7 +1,10 @@
1
1
  language: ruby
2
2
  rvm:
3
- - 2.2.4
4
- - 2.3.1
3
+ - 2.4.0
4
+ - 2.3.3
5
+ - 2.2.6
6
+ before_install:
7
+ - gem update --system
5
8
  before_script:
6
9
  - bundle exec appraisal install --jobs=3
7
10
  script:
data/CHANGELOG.md CHANGED
@@ -1,5 +1,8 @@
1
1
  # avro-builder changelog
2
2
 
3
+ ## v0.14.1
4
+ - File handling fixes.
5
+
3
6
  ## v0.14.0
4
7
  - Allow `filetype` to be specified in rake task to generate Avro JSON schema
5
8
  files.
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.45.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 = self.class.load_paths.flat_map do |load_path|
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
@@ -1,5 +1,5 @@
1
1
  module Avro
2
2
  module Builder
3
- VERSION = '0.14.0'.freeze
3
+ VERSION = '0.14.1'.freeze
4
4
  end
5
5
  end
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.0
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-01-17 00:00:00.000000000 Z
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.45.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.45.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.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