|
1 | | -lib = File.expand_path("../lib", __FILE__) |
2 | | -$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib) |
3 | | -require "protobuf_nested_struct/version" |
| 1 | +# frozen_string_literal: true |
| 2 | + |
| 3 | +require_relative "lib/protobuf_nested_struct/version" |
4 | 4 |
|
5 | 5 | Gem::Specification.new do |spec| |
6 | 6 | spec.name = "protobuf_nested_struct" |
7 | 7 | spec.version = ProtobufNestedStruct::VERSION |
8 | 8 | spec.authors = ["Robert Pankowecki", "Arkency"] |
9 | 9 | spec.email = ["[email protected]"] |
10 | | - |
11 | 10 | spec.summary = |
12 | 11 | "Serialize primitives and deep structures (array, hash) to protobuf" |
13 | | - spec.description = |
14 | | - "Serialize primitives and deep structures (array, hash) to protobuf" |
| 12 | + spec.description = <<~EOD |
| 13 | + Serialize primitives and deep structures (array, hash) to protobuf |
| 14 | + EOD |
15 | 15 | spec.homepage = "https://github.com/arkency/protobuf-nested-struct" |
| 16 | + spec.files = Dir["lib/**/*"] |
| 17 | + spec.require_paths = %w[lib] |
| 18 | + spec.extra_rdoc_files = %w[README.md] |
| 19 | + |
16 | 20 | spec.metadata = { |
17 | 21 | "homepage_uri" => "https://github.com/arkency/protobuf-nested-struct", |
18 | 22 | "changelog_uri" => |
19 | 23 | "https://github.com/arkency/protobuf-nested-struct/releases", |
20 | 24 | "source_code_uri" => "https://github.com/arkency/protobuf-nested-struct", |
21 | 25 | "bug_tracker_uri" => |
22 | | - "https://github.com/arkency/protobuf-nested-struct/issues" |
| 26 | + "https://github.com/arkency/protobuf-nested-struct/issues", |
| 27 | + "rubygems_mfa_required" => "true" |
23 | 28 | } |
24 | 29 |
|
25 | | - spec.files = |
26 | | - `git ls-files -z`.split("\x0") |
27 | | - .reject { |f| f.match(%r{^(test|spec|features)/}) } |
28 | | - spec.bindir = "exe" |
29 | | - spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) } |
30 | | - spec.require_paths = ["lib"] |
31 | 30 | spec.add_dependency "google-protobuf", "< 4" |
32 | 31 | end |
0 commit comments