avromatic 0.21.1 → 0.22.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +6 -7
- data/Appraisals +18 -6
- data/CHANGELOG.md +4 -0
- data/README.md +3 -3
- data/avromatic.gemspec +1 -1
- data/gemfiles/avro_patches_4_1.gemfile +9 -0
- data/gemfiles/avro_patches_5_0.gemfile +9 -0
- data/gemfiles/rails4_1.gemfile +1 -1
- data/gemfiles/rails4_2.gemfile +1 -1
- data/gemfiles/rails5_0.gemfile +9 -0
- data/lib/avromatic/io/datum_reader.rb +1 -1
- data/lib/avromatic/version.rb +1 -1
- metadata +8 -6
- data/gemfiles/avro_salsify_fork.gemfile +0 -9
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 00b29e492064bce7661c64f961e168ebeeee1f4d
|
4
|
+
data.tar.gz: 1fed6c7b78a6000d67b85c279c0a2522af3fc0a2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 86395a7cd21081d58234433a33c91f8f9291e49a672d625a1a45f19c0b9ca096e5afdc0c72a23357c5eefa790cf1b378b54adde8e5c95c1109e78e650ef3e898
|
7
|
+
data.tar.gz: 0af78d4a8423308c37faedd6d7baec82950eb19202944adc1beed97300bd838e42233df7d21e87864f6febd6ead44f751b236be686f0fb053e9bf3bbcdc0c9ee
|
data/.travis.yml
CHANGED
@@ -1,15 +1,14 @@
|
|
1
1
|
language: ruby
|
2
2
|
rvm:
|
3
|
-
- 2.4.
|
4
|
-
- 2.3.
|
5
|
-
- 2.2.
|
6
|
-
before_install:
|
7
|
-
# Workaround for https://github.com/sickill/rainbow/issues/48
|
8
|
-
- gem update --system
|
3
|
+
- 2.4.1
|
4
|
+
- 2.3.4
|
5
|
+
- 2.2.7
|
9
6
|
before_script:
|
10
7
|
- bundle exec appraisal install --jobs=3
|
11
8
|
script:
|
12
9
|
- bundle exec rubocop
|
13
10
|
- bundle exec appraisal rails4_1 rake spec
|
14
11
|
- bundle exec appraisal rails4_2 rake spec
|
15
|
-
- bundle exec appraisal
|
12
|
+
- bundle exec appraisal rails5_0 rake spec
|
13
|
+
- bundle exec appraisal avro-patches-4_1 rake spec
|
14
|
+
- bundle exec appraisal avro-patches-5_0 rake spec
|
data/Appraisals
CHANGED
@@ -1,17 +1,29 @@
|
|
1
1
|
appraise 'rails4_1' do
|
2
|
-
gem 'avro', '1.8.
|
2
|
+
gem 'avro', '1.8.2'
|
3
3
|
gem 'activesupport', '~> 4.1.16'
|
4
4
|
gem 'activemodel', '~> 4.1.16'
|
5
5
|
end
|
6
6
|
|
7
7
|
appraise 'rails4_2' do
|
8
|
-
gem 'avro', '1.8.
|
8
|
+
gem 'avro', '1.8.2'
|
9
9
|
gem 'activesupport', '~> 4.2.7.1'
|
10
10
|
gem 'activemodel', '~> 4.2.7.1'
|
11
11
|
end
|
12
12
|
|
13
|
-
appraise '
|
14
|
-
gem 'avro
|
15
|
-
gem 'activesupport', '~>
|
16
|
-
gem 'activemodel', '~>
|
13
|
+
appraise 'rails5_0' do
|
14
|
+
gem 'avro', '1.8.2'
|
15
|
+
gem 'activesupport', '~> 5.0.3'
|
16
|
+
gem 'activemodel', '~> 5.0.3'
|
17
|
+
end
|
18
|
+
|
19
|
+
appraise 'avro-patches-4_1' do
|
20
|
+
gem 'avro-patches'
|
21
|
+
gem 'activesupport', '~> 4.1.16'
|
22
|
+
gem 'activemodel', '~> 4.1.16'
|
23
|
+
end
|
24
|
+
|
25
|
+
appraise 'avro-patches-5_0' do
|
26
|
+
gem 'avro-patches'
|
27
|
+
gem 'activesupport', '~> 5.0.3'
|
28
|
+
gem 'activemodel', '~> 5.0.3'
|
17
29
|
end
|
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
@@ -368,13 +368,13 @@ That feature is in progress and will hopefully be merged soon.
|
|
368
368
|
Avromatic supports logical types as implemented in the [pull request](https://github.com/apache/avro/pull/116) referenced in AVRO-1695.
|
369
369
|
|
370
370
|
Until that change is included in the official library, you can
|
371
|
-
use [avro-
|
371
|
+
use the [avro-patches gem](https://github.com/salsify/avro-patches) which includes
|
372
372
|
the changes from the above pull request.
|
373
373
|
|
374
|
-
To use this gem, reference it in your Gemfile
|
374
|
+
To use this gem, reference it in your Gemfile instead of `avro`:
|
375
375
|
|
376
376
|
```ruby
|
377
|
-
gem 'avro-
|
377
|
+
gem 'avro-patches'
|
378
378
|
````
|
379
379
|
|
380
380
|
### Unsupported/Future
|
data/avromatic.gemspec
CHANGED
@@ -25,7 +25,7 @@ Gem::Specification.new do |spec|
|
|
25
25
|
spec.add_runtime_dependency 'activesupport', '>= 4.1', '< 5.1'
|
26
26
|
spec.add_runtime_dependency 'activemodel', '>= 4.1', '< 5.1'
|
27
27
|
spec.add_runtime_dependency 'avro_turf'
|
28
|
-
spec.add_runtime_dependency 'avro_schema_registry-client'
|
28
|
+
spec.add_runtime_dependency 'avro_schema_registry-client', '>= 0.3.0'
|
29
29
|
|
30
30
|
spec.add_development_dependency 'bundler', '~> 1.11'
|
31
31
|
spec.add_development_dependency 'rake', '~> 10.0'
|
data/gemfiles/rails4_1.gemfile
CHANGED
data/gemfiles/rails4_2.gemfile
CHANGED
@@ -56,7 +56,7 @@ module Avromatic
|
|
56
56
|
end
|
57
57
|
|
58
58
|
# Allow this code to be used with an official Avro release or the
|
59
|
-
# avro-
|
59
|
+
# avro-patches gem that includes logical_type support.
|
60
60
|
if readers_schema.respond_to?(:logical_type)
|
61
61
|
readers_schema.type_adapter.decode(datum)
|
62
62
|
else
|
data/lib/avromatic/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: avromatic
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.22.0
|
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-06-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: avro
|
@@ -98,14 +98,14 @@ dependencies:
|
|
98
98
|
requirements:
|
99
99
|
- - ">="
|
100
100
|
- !ruby/object:Gem::Version
|
101
|
-
version:
|
101
|
+
version: 0.3.0
|
102
102
|
type: :runtime
|
103
103
|
prerelease: false
|
104
104
|
version_requirements: !ruby/object:Gem::Requirement
|
105
105
|
requirements:
|
106
106
|
- - ">="
|
107
107
|
- !ruby/object:Gem::Version
|
108
|
-
version:
|
108
|
+
version: 0.3.0
|
109
109
|
- !ruby/object:Gem::Dependency
|
110
110
|
name: bundler
|
111
111
|
requirement: !ruby/object:Gem::Requirement
|
@@ -267,9 +267,11 @@ files:
|
|
267
267
|
- avromatic.gemspec
|
268
268
|
- bin/console
|
269
269
|
- bin/setup
|
270
|
-
- gemfiles/
|
270
|
+
- gemfiles/avro_patches_4_1.gemfile
|
271
|
+
- gemfiles/avro_patches_5_0.gemfile
|
271
272
|
- gemfiles/rails4_1.gemfile
|
272
273
|
- gemfiles/rails4_2.gemfile
|
274
|
+
- gemfiles/rails5_0.gemfile
|
273
275
|
- lib/avromatic.rb
|
274
276
|
- lib/avromatic/io/datum_reader.rb
|
275
277
|
- lib/avromatic/messaging.rb
|
@@ -320,7 +322,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
320
322
|
version: '0'
|
321
323
|
requirements: []
|
322
324
|
rubyforge_project:
|
323
|
-
rubygems_version: 2.6.
|
325
|
+
rubygems_version: 2.6.12
|
324
326
|
signing_key:
|
325
327
|
specification_version: 4
|
326
328
|
summary: Generate Ruby models from Avro schemas
|