protobuf_nested_struct 1.1.0 → 1.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +5 -5
- data/lib/google/type/date_pb.rb +27 -7
- data/lib/protobuf_nested_struct/struct_pb.rb +32 -26
- data/lib/protobuf_nested_struct/version.rb +3 -1
- data/lib/protobuf_nested_struct.rb +53 -51
- metadata +15 -94
- data/.circleci/config.yml +0 -12
- data/.gitignore +0 -12
- data/.rspec +0 -3
- data/.travis.yml +0 -10
- data/Gemfile +0 -6
- data/Rakefile +0 -6
- data/bin/console +0 -14
- data/bin/setup +0 -8
- data/protobuf_nested_struct.gemspec +0 -35
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 178c58047bb3a2e5c1b46661b09439eb1fc6e0a0fadd8095c5e48f91c5a38b28
|
4
|
+
data.tar.gz: 7fb9d605719e46471450e47518d160194eb14e5d12ddd6eff537620fadc66f72
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c6dc1dfc25a3eab94791d92e4a3cbb61b92ff156da1b0206a3f826fa59ec8ba7b0c150e2e8613f309d8f0bb660cd0745b5bdbf4a90e9d11590c59233c4fb280a
|
7
|
+
data.tar.gz: 0c5319b251e045257f226a2615065105cc0ad4361be8ae49ac06e8c04615e84bce924f78579699163b0b5b6824dee49b122199d5fc394283b22a2cf8ade6a986
|
data/lib/google/type/date_pb.rb
CHANGED
@@ -1,18 +1,38 @@
|
|
1
|
+
# frozen_string_literal: true
|
1
2
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
-
# source: date.proto
|
3
|
+
# source: google/type/date.proto
|
3
4
|
|
4
5
|
require 'google/protobuf'
|
5
6
|
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
7
|
+
|
8
|
+
descriptor_data = "\n\x16google/type/date.proto\x12\x0bgoogle.type\"0\n\x04\x44\x61te\x12\x0c\n\x04year\x18\x01 \x01(\x05\x12\r\n\x05month\x18\x02 \x01(\x05\x12\x0b\n\x03\x64\x61y\x18\x03 \x01(\x05\x42]\n\x0f\x63om.google.typeB\tDateProtoP\x01Z4google.golang.org/genproto/googleapis/type/date;date\xf8\x01\x01\xa2\x02\x03GTPb\x06proto3"
|
9
|
+
|
10
|
+
pool = Google::Protobuf::DescriptorPool.generated_pool
|
11
|
+
|
12
|
+
begin
|
13
|
+
pool.add_serialized_file(descriptor_data)
|
14
|
+
rescue TypeError
|
15
|
+
# Compatibility code: will be removed in the next major version.
|
16
|
+
require 'google/protobuf/descriptor_pb'
|
17
|
+
parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
|
18
|
+
parsed.clear_dependency
|
19
|
+
serialized = parsed.class.encode(parsed)
|
20
|
+
file = pool.add_serialized_file(serialized)
|
21
|
+
warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
|
22
|
+
imports = [
|
23
|
+
]
|
24
|
+
imports.each do |type_name, expected_filename|
|
25
|
+
import_file = pool.lookup(type_name).file_descriptor
|
26
|
+
if import_file.name != expected_filename
|
27
|
+
warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
|
28
|
+
end
|
11
29
|
end
|
30
|
+
warn "Each proto file must use a consistent fully-qualified name."
|
31
|
+
warn "This will become an error in the next major version."
|
12
32
|
end
|
13
33
|
|
14
34
|
module Google
|
15
35
|
module Type
|
16
|
-
Date = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.type.Date").msgclass
|
36
|
+
Date = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.type.Date").msgclass
|
17
37
|
end
|
18
38
|
end
|
@@ -1,38 +1,44 @@
|
|
1
|
+
# frozen_string_literal: true
|
1
2
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
-
# source: struct.proto
|
3
|
+
# source: protobuf_nested_struct/struct.proto
|
3
4
|
|
4
5
|
require 'google/protobuf'
|
5
6
|
|
6
7
|
require 'google/protobuf/timestamp_pb'
|
7
8
|
require 'google/type/date_pb'
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
9
|
+
|
10
|
+
|
11
|
+
descriptor_data = "\n#protobuf_nested_struct/struct.proto\x12\x16protobuf_nested_struct\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x16google/type/date.proto\"\xaa\x01\n\x12HashMapStringValue\x12\x46\n\x06\x66ields\x18\x01 \x03(\x0b\x32\x36.protobuf_nested_struct.HashMapStringValue.FieldsEntry\x1aL\n\x0b\x46ieldsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12,\n\x05value\x18\x02 \x01(\x0b\x32\x1d.protobuf_nested_struct.Value:\x02\x38\x01\"\x84\x03\n\x05Value\x12\x37\n\nnull_value\x18\x01 \x01(\x0e\x32!.protobuf_nested_struct.NullValueH\x00\x12\x16\n\x0c\x64ouble_value\x18\x02 \x01(\x01H\x00\x12\x13\n\tint_value\x18\x03 \x01(\x03H\x00\x12\x16\n\x0cstring_value\x18\x04 \x01(\tH\x00\x12\x14\n\nbool_value\x18\x05 \x01(\x08H\x00\x12\'\n\ndate_value\x18\x06 \x01(\x0b\x32\x11.google.type.DateH\x00\x12\x35\n\x0ftimestamp_value\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.TimestampH\x00\x12\x46\n\x10string_map_value\x18\x14 \x01(\x0b\x32*.protobuf_nested_struct.HashMapStringValueH\x00\x12\x37\n\nlist_value\x18\x15 \x01(\x0b\x32!.protobuf_nested_struct.ListValueH\x00\x42\x06\n\x04kind\":\n\tListValue\x12-\n\x06values\x18\x01 \x03(\x0b\x32\x1d.protobuf_nested_struct.Value*\x1b\n\tNullValue\x12\x0e\n\nNULL_VALUE\x10\x00\x62\x06proto3"
|
12
|
+
|
13
|
+
pool = Google::Protobuf::DescriptorPool.generated_pool
|
14
|
+
|
15
|
+
begin
|
16
|
+
pool.add_serialized_file(descriptor_data)
|
17
|
+
rescue TypeError
|
18
|
+
# Compatibility code: will be removed in the next major version.
|
19
|
+
require 'google/protobuf/descriptor_pb'
|
20
|
+
parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
|
21
|
+
parsed.clear_dependency
|
22
|
+
serialized = parsed.class.encode(parsed)
|
23
|
+
file = pool.add_serialized_file(serialized)
|
24
|
+
warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
|
25
|
+
imports = [
|
26
|
+
["google.type.Date", "google/type/date.proto"],
|
27
|
+
["google.protobuf.Timestamp", "google/protobuf/timestamp.proto"],
|
28
|
+
]
|
29
|
+
imports.each do |type_name, expected_filename|
|
30
|
+
import_file = pool.lookup(type_name).file_descriptor
|
31
|
+
if import_file.name != expected_filename
|
32
|
+
warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
|
23
33
|
end
|
24
34
|
end
|
25
|
-
|
26
|
-
|
27
|
-
end
|
28
|
-
add_enum "protobuf_nested_struct.NullValue" do
|
29
|
-
value :NULL_VALUE, 0
|
30
|
-
end
|
35
|
+
warn "Each proto file must use a consistent fully-qualified name."
|
36
|
+
warn "This will become an error in the next major version."
|
31
37
|
end
|
32
38
|
|
33
39
|
module ProtobufNestedStruct
|
34
|
-
HashMapStringValue = Google::Protobuf::DescriptorPool.generated_pool.lookup("protobuf_nested_struct.HashMapStringValue").msgclass
|
35
|
-
Value = Google::Protobuf::DescriptorPool.generated_pool.lookup("protobuf_nested_struct.Value").msgclass
|
36
|
-
ListValue = Google::Protobuf::DescriptorPool.generated_pool.lookup("protobuf_nested_struct.ListValue").msgclass
|
37
|
-
NullValue = Google::Protobuf::DescriptorPool.generated_pool.lookup("protobuf_nested_struct.NullValue").enummodule
|
40
|
+
HashMapStringValue = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("protobuf_nested_struct.HashMapStringValue").msgclass
|
41
|
+
Value = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("protobuf_nested_struct.Value").msgclass
|
42
|
+
ListValue = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("protobuf_nested_struct.ListValue").msgclass
|
43
|
+
NullValue = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("protobuf_nested_struct.NullValue").enummodule
|
38
44
|
end
|
@@ -1,9 +1,11 @@
|
|
1
|
-
|
2
|
-
require 'google/protobuf'
|
3
|
-
require 'google/protobuf/well_known_types'
|
1
|
+
# frozen_string_literal: true
|
4
2
|
|
5
|
-
require
|
6
|
-
require
|
3
|
+
require "date"
|
4
|
+
require "google/protobuf"
|
5
|
+
require "google/protobuf/well_known_types"
|
6
|
+
|
7
|
+
require "protobuf_nested_struct/version"
|
8
|
+
require "protobuf_nested_struct/struct_pb"
|
7
9
|
|
8
10
|
module ProtobufNestedStruct
|
9
11
|
class Value
|
@@ -20,54 +22,56 @@ module ProtobufNestedStruct
|
|
20
22
|
|
21
23
|
def from_ruby(obj)
|
22
24
|
case obj
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
25
|
+
when nil
|
26
|
+
self.null_value = 0
|
27
|
+
when Integer
|
28
|
+
self.int_value = obj
|
29
|
+
when Float
|
30
|
+
self.double_value = obj
|
31
|
+
when String
|
32
|
+
self.string_value = obj
|
33
|
+
when TrueClass, FalseClass
|
34
|
+
self.bool_value = obj
|
35
|
+
when Date
|
36
|
+
self.date_value =
|
37
|
+
Google::Type::Date.new(day: obj.day, month: obj.month, year: obj.year)
|
38
|
+
when Time
|
39
|
+
self.timestamp_value =
|
40
|
+
Google::Protobuf::Timestamp.new.tap { |gpt| gpt.from_time(obj) }
|
41
|
+
when Hash
|
42
|
+
self.string_map_value =
|
43
|
+
HashMapStringValue.new.tap { |ps| ps.from_ruby(obj) }
|
44
|
+
when Array
|
45
|
+
self.list_value = ListValue.new.tap { |ps| ps.from_ruby(obj) }
|
46
|
+
else
|
47
|
+
raise ArgumentError, "not allowed: #{obj.inspect}"
|
43
48
|
end
|
44
49
|
end
|
45
50
|
|
46
51
|
def to_ruby
|
47
52
|
case kind
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
53
|
+
when :null_value
|
54
|
+
nil
|
55
|
+
when :int_value
|
56
|
+
int_value
|
57
|
+
when :double_value
|
58
|
+
double_value
|
59
|
+
when :string_value
|
60
|
+
string_value
|
61
|
+
when :bool_value
|
62
|
+
bool_value
|
63
|
+
when :date_value
|
64
|
+
Date.new(date_value.year, date_value.month, date_value.day)
|
65
|
+
when :timestamp_value
|
66
|
+
timestamp_value.to_time
|
67
|
+
when :string_map_value
|
68
|
+
string_map_value.to_ruby
|
69
|
+
when :list_value
|
70
|
+
list_value.to_ruby
|
71
|
+
else
|
72
|
+
raise ArgumentError
|
68
73
|
end
|
69
74
|
end
|
70
|
-
|
71
75
|
end
|
72
76
|
|
73
77
|
class HashMapStringValue
|
@@ -112,13 +116,11 @@ module ProtobufNestedStruct
|
|
112
116
|
def from_ruby(obj)
|
113
117
|
Array === obj or raise ArgumentError
|
114
118
|
values.clear
|
115
|
-
obj.each
|
116
|
-
values << Value.new.tap{|v| v.from_ruby(value) }
|
117
|
-
end
|
119
|
+
obj.each { |value| values << Value.new.tap { |v| v.from_ruby(value) } }
|
118
120
|
end
|
119
121
|
|
120
122
|
def to_ruby
|
121
|
-
values.map{|v| v.to_ruby }
|
123
|
+
values.map { |v| v.to_ruby }
|
122
124
|
end
|
123
125
|
end
|
124
126
|
|
@@ -129,4 +131,4 @@ module ProtobufNestedStruct
|
|
129
131
|
def self.load(string)
|
130
132
|
Value.load(string)
|
131
133
|
end
|
132
|
-
end
|
134
|
+
end
|
metadata
CHANGED
@@ -1,15 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: protobuf_nested_struct
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1
|
4
|
+
version: 1.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Robert Pankowecki
|
8
8
|
- Arkency
|
9
|
-
|
10
|
-
bindir: exe
|
9
|
+
bindir: bin
|
11
10
|
cert_chain: []
|
12
|
-
date:
|
11
|
+
date: 1980-01-02 00:00:00.000000000 Z
|
13
12
|
dependencies:
|
14
13
|
- !ruby/object:Gem::Dependency
|
15
14
|
name: google-protobuf
|
@@ -17,115 +16,39 @@ dependencies:
|
|
17
16
|
requirements:
|
18
17
|
- - ">="
|
19
18
|
- !ruby/object:Gem::Version
|
20
|
-
version:
|
19
|
+
version: 3.25.7
|
21
20
|
type: :runtime
|
22
21
|
prerelease: false
|
23
22
|
version_requirements: !ruby/object:Gem::Requirement
|
24
23
|
requirements:
|
25
24
|
- - ">="
|
26
25
|
- !ruby/object:Gem::Version
|
27
|
-
version:
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
requirements:
|
32
|
-
- - "~>"
|
33
|
-
- !ruby/object:Gem::Version
|
34
|
-
version: '1.16'
|
35
|
-
type: :development
|
36
|
-
prerelease: false
|
37
|
-
version_requirements: !ruby/object:Gem::Requirement
|
38
|
-
requirements:
|
39
|
-
- - "~>"
|
40
|
-
- !ruby/object:Gem::Version
|
41
|
-
version: '1.16'
|
42
|
-
- !ruby/object:Gem::Dependency
|
43
|
-
name: rake
|
44
|
-
requirement: !ruby/object:Gem::Requirement
|
45
|
-
requirements:
|
46
|
-
- - "~>"
|
47
|
-
- !ruby/object:Gem::Version
|
48
|
-
version: '10.0'
|
49
|
-
type: :development
|
50
|
-
prerelease: false
|
51
|
-
version_requirements: !ruby/object:Gem::Requirement
|
52
|
-
requirements:
|
53
|
-
- - "~>"
|
54
|
-
- !ruby/object:Gem::Version
|
55
|
-
version: '10.0'
|
56
|
-
- !ruby/object:Gem::Dependency
|
57
|
-
name: rspec
|
58
|
-
requirement: !ruby/object:Gem::Requirement
|
59
|
-
requirements:
|
60
|
-
- - "~>"
|
61
|
-
- !ruby/object:Gem::Version
|
62
|
-
version: '3.0'
|
63
|
-
type: :development
|
64
|
-
prerelease: false
|
65
|
-
version_requirements: !ruby/object:Gem::Requirement
|
66
|
-
requirements:
|
67
|
-
- - "~>"
|
68
|
-
- !ruby/object:Gem::Version
|
69
|
-
version: '3.0'
|
70
|
-
- !ruby/object:Gem::Dependency
|
71
|
-
name: pry
|
72
|
-
requirement: !ruby/object:Gem::Requirement
|
73
|
-
requirements:
|
74
|
-
- - ">="
|
75
|
-
- !ruby/object:Gem::Version
|
76
|
-
version: '0'
|
77
|
-
type: :development
|
78
|
-
prerelease: false
|
79
|
-
version_requirements: !ruby/object:Gem::Requirement
|
80
|
-
requirements:
|
81
|
-
- - ">="
|
82
|
-
- !ruby/object:Gem::Version
|
83
|
-
version: '0'
|
84
|
-
- !ruby/object:Gem::Dependency
|
85
|
-
name: mutant-rspec
|
86
|
-
requirement: !ruby/object:Gem::Requirement
|
87
|
-
requirements:
|
88
|
-
- - ">="
|
89
|
-
- !ruby/object:Gem::Version
|
90
|
-
version: '0'
|
91
|
-
type: :development
|
92
|
-
prerelease: false
|
93
|
-
version_requirements: !ruby/object:Gem::Requirement
|
94
|
-
requirements:
|
95
|
-
- - ">="
|
96
|
-
- !ruby/object:Gem::Version
|
97
|
-
version: '0'
|
98
|
-
description: Serialize primitives and deep structures (array, hash) to protobuf
|
26
|
+
version: 3.25.7
|
27
|
+
description: 'Serialize primitives and deep structures (array, hash) to protobuf
|
28
|
+
|
29
|
+
'
|
99
30
|
email:
|
100
31
|
- dev@arkency.com
|
101
32
|
executables: []
|
102
33
|
extensions: []
|
103
|
-
extra_rdoc_files:
|
34
|
+
extra_rdoc_files:
|
35
|
+
- README.md
|
104
36
|
files:
|
105
|
-
- ".circleci/config.yml"
|
106
|
-
- ".gitignore"
|
107
|
-
- ".rspec"
|
108
|
-
- ".travis.yml"
|
109
|
-
- Gemfile
|
110
37
|
- README.md
|
111
|
-
- Rakefile
|
112
|
-
- bin/console
|
113
|
-
- bin/setup
|
114
38
|
- lib/google/type/date.proto
|
115
39
|
- lib/google/type/date_pb.rb
|
116
40
|
- lib/protobuf_nested_struct.rb
|
117
41
|
- lib/protobuf_nested_struct/struct.proto
|
118
42
|
- lib/protobuf_nested_struct/struct_pb.rb
|
119
43
|
- lib/protobuf_nested_struct/version.rb
|
120
|
-
- protobuf_nested_struct.gemspec
|
121
44
|
homepage: https://github.com/arkency/protobuf-nested-struct
|
122
|
-
licenses:
|
45
|
+
licenses:
|
46
|
+
- MIT
|
123
47
|
metadata:
|
124
|
-
homepage_uri: https://github.com/arkency/protobuf-nested-struct
|
125
48
|
changelog_uri: https://github.com/arkency/protobuf-nested-struct/releases
|
126
49
|
source_code_uri: https://github.com/arkency/protobuf-nested-struct
|
127
50
|
bug_tracker_uri: https://github.com/arkency/protobuf-nested-struct/issues
|
128
|
-
|
51
|
+
rubygems_mfa_required: 'true'
|
129
52
|
rdoc_options: []
|
130
53
|
require_paths:
|
131
54
|
- lib
|
@@ -133,16 +56,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
133
56
|
requirements:
|
134
57
|
- - ">="
|
135
58
|
- !ruby/object:Gem::Version
|
136
|
-
version: '
|
59
|
+
version: '2.7'
|
137
60
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
138
61
|
requirements:
|
139
62
|
- - ">="
|
140
63
|
- !ruby/object:Gem::Version
|
141
64
|
version: '0'
|
142
65
|
requirements: []
|
143
|
-
|
144
|
-
rubygems_version: 2.6.13
|
145
|
-
signing_key:
|
66
|
+
rubygems_version: 3.6.7
|
146
67
|
specification_version: 4
|
147
68
|
summary: Serialize primitives and deep structures (array, hash) to protobuf
|
148
69
|
test_files: []
|
data/.circleci/config.yml
DELETED
@@ -1,12 +0,0 @@
|
|
1
|
-
version: 2
|
2
|
-
jobs:
|
3
|
-
build:
|
4
|
-
macos:
|
5
|
-
xcode: "9.3.0"
|
6
|
-
steps:
|
7
|
-
- checkout
|
8
|
-
- run:
|
9
|
-
name: install+mutate
|
10
|
-
command: bundle install && bundle exec mutant --include lib --require protobuf_nested_struct --use rspec ProtobufNestedStruct*
|
11
|
-
environment:
|
12
|
-
ARCHFLAGS: "-arch x86_64"
|
data/.gitignore
DELETED
data/.rspec
DELETED
data/.travis.yml
DELETED
@@ -1,10 +0,0 @@
|
|
1
|
-
sudo: false
|
2
|
-
language: ruby
|
3
|
-
rvm:
|
4
|
-
- 2.5.1
|
5
|
-
- 2.4.3
|
6
|
-
- 2.3.7
|
7
|
-
before_install: gem install bundler -v 1.16.1
|
8
|
-
notifications:
|
9
|
-
slack:
|
10
|
-
secure: no8/ZtMrQm8EyglLJW9toPdKGwa7g1+AcWwlnzH7HCAp9dSafETt5HOIxzIecotVFV+VCoHi1lrHnJoyJ8svOfro9Jh1i1+oZzW+eHH/Df4AVyPOPLlJINoLi/SP+d7NTgS4+oVYB/y7uPC9y7QkdaTxGC540OaXmbVbw7M/GSMv7n6qVOmdMnH/JeH9qjHkJ3FUmnnWY2AVlUrcpERIOcdB4zN65b+7zMUUGqAXnbpTOrYC0S5q0yr0omBfmEnkbgpyN4m9QZE07ILky0RHayA7/HuyAPi9D8u36G6yWbi18QxJpH2Y4KRNlFrNKg+JYMbvTTtjpy6W8NoWq8XK38UBi+oc2Vg9p1rRTndqrUALCyWunuNpsBoMebcNajV8EbTftsSqjcoV+KE/jc1zHa5RlcFs07pI3khrOnCyoAoxSgCv53wZeboXRlo/yeB1kML97us+AkcAAf+RRNwQvUbV+BGejwIOwplG41+GqvjfpcLb8achieDdbSzzVTKX0gPWqBkKgiNzHV7c84oWARFOJPqm1TosnEAQ13VKa4n5RWeL4tk1rT3t5S4Cl0ZlN/nasGHKbt5s9iTyT4xrxtbSp2aMKWtyZNUZF0wpfzZoVl5I7OGmiHT2Z/pRb158HG+dqB4SvSqJrFAG/+6d8xJdm982vRfl+p0CtVIV3Qk=
|
data/Gemfile
DELETED
data/Rakefile
DELETED
data/bin/console
DELETED
@@ -1,14 +0,0 @@
|
|
1
|
-
#!/usr/bin/env ruby
|
2
|
-
|
3
|
-
require "bundler/setup"
|
4
|
-
require "protobuf_nested_struct"
|
5
|
-
|
6
|
-
# You can add fixtures and/or initialization code here to make experimenting
|
7
|
-
# with your gem easier. You can also use a different console, if you like.
|
8
|
-
|
9
|
-
# (If you use this, don't forget to add pry to your Gemfile!)
|
10
|
-
# require "pry"
|
11
|
-
# Pry.start
|
12
|
-
|
13
|
-
require "irb"
|
14
|
-
IRB.start(__FILE__)
|
data/bin/setup
DELETED
@@ -1,35 +0,0 @@
|
|
1
|
-
|
2
|
-
lib = File.expand_path("../lib", __FILE__)
|
3
|
-
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
-
require "protobuf_nested_struct/version"
|
5
|
-
|
6
|
-
Gem::Specification.new do |spec|
|
7
|
-
spec.name = "protobuf_nested_struct"
|
8
|
-
spec.version = ProtobufNestedStruct::VERSION
|
9
|
-
spec.authors = ["Robert Pankowecki", "Arkency"]
|
10
|
-
spec.email = ["dev@arkency.com"]
|
11
|
-
|
12
|
-
spec.summary = %q{Serialize primitives and deep structures (array, hash) to protobuf}
|
13
|
-
spec.description = %q{Serialize primitives and deep structures (array, hash) to protobuf}
|
14
|
-
spec.homepage = "https://github.com/arkency/protobuf-nested-struct"
|
15
|
-
spec.metadata = {
|
16
|
-
"homepage_uri" => "https://github.com/arkency/protobuf-nested-struct",
|
17
|
-
"changelog_uri" => "https://github.com/arkency/protobuf-nested-struct/releases",
|
18
|
-
"source_code_uri" => "https://github.com/arkency/protobuf-nested-struct",
|
19
|
-
"bug_tracker_uri" => "https://github.com/arkency/protobuf-nested-struct/issues",
|
20
|
-
}
|
21
|
-
|
22
|
-
spec.files = `git ls-files -z`.split("\x0").reject do |f|
|
23
|
-
f.match(%r{^(test|spec|features)/})
|
24
|
-
end
|
25
|
-
spec.bindir = "exe"
|
26
|
-
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
27
|
-
spec.require_paths = ["lib"]
|
28
|
-
spec.add_dependency "google-protobuf"
|
29
|
-
|
30
|
-
spec.add_development_dependency "bundler", "~> 1.16"
|
31
|
-
spec.add_development_dependency "rake", "~> 10.0"
|
32
|
-
spec.add_development_dependency "rspec", "~> 3.0"
|
33
|
-
spec.add_development_dependency "pry"
|
34
|
-
spec.add_development_dependency "mutant-rspec"
|
35
|
-
end
|