-
Notifications
You must be signed in to change notification settings - Fork 0
/
field_struct_avro_schema.gemspec
55 lines (46 loc) · 2.04 KB
/
field_struct_avro_schema.gemspec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
# frozen_string_literal: true
lib = File.expand_path('lib', __dir__)
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
require 'field_struct/avro_schema/version'
Gem::Specification.new do |spec|
spec.name = 'field_struct_avro_schema'
spec.authors = ['Adrian Esteban Madrid']
spec.email = ['adrian.madrid@acimacredit.com']
current_branch = `git branch --remote --contains | sed "s|[[:space:]]*origin/||"`.strip
branch_commit = `git rev-parse HEAD`.strip[0..6]
if current_branch == 'master'
spec.version = FieldStruct::AvroSchema::VERSION
else
spec.version = "#{FieldStruct::AvroSchema::VERSION}-#{branch_commit}"
end
spec.summary = 'Support for Avro schemas in FieldStruct'
spec.description = 'Adds support for Avro schemas for FieldStruct classes'
spec.homepage = 'http://github.com/acima-credit/field_struct_avro_schema'
spec.license = 'MIT'
spec.metadata['homepage_uri'] = spec.homepage
spec.metadata['source_code_uri'] = spec.homepage
spec.metadata['allowed_push_host'] = 'https://rubygems.pkg.github.com/acima-credit'
# spec.metadata["changelog_uri"] = "#{spec.homepage}/CHANGELOG.md"
spec.files = Dir.chdir(File.expand_path(__dir__)) do
`git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
end
spec.bindir = 'exe'
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
spec.require_paths = ['lib']
spec.add_dependency 'activesupport'
spec.add_dependency 'activemodel'
spec.add_dependency 'avro', '~> 1.11.0'
spec.add_dependency 'avro-builder'
spec.add_dependency 'avro_turf'
spec.add_dependency 'excon'
spec.add_development_dependency 'bundler'
spec.add_development_dependency 'pry'
spec.add_development_dependency 'rake'
spec.add_development_dependency 'rspec'
spec.add_development_dependency 'rspec-json_expectations'
spec.add_development_dependency 'rubocop'
spec.add_development_dependency 'simplecov'
spec.add_development_dependency 'timecop'
spec.add_development_dependency 'hashdiff'
spec.add_development_dependency 'vcr'
end