protobuf_descriptor 0.1.0 → 1.0.0

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 86e4104ff69b390ba22f41af198f8f57100d6fae
4
- data.tar.gz: 906471ce7f9431af23b952d547586dcf78cce699
3
+ metadata.gz: 92458122a645db219c0487d36ef7ea0357716986
4
+ data.tar.gz: 9a8be457e83289c5df3ff5f9103f05ef33023121
5
5
  SHA512:
6
- metadata.gz: 2546c493431fe79360a7aaecec47a7104d5a76748a745ae43d6745b8a3b2a0c65357e447668c5c017c4e561848bc70850787fd6e543a4ce53cf0e2ea0e532cf9
7
- data.tar.gz: f0cd6897c1c5c107c1aec223c4dbb2eac872a29a216a97857f1fc112fb7dacb83516361c832f571d4d41b328a9ba51cca41bc39cf44aa3446ab4eac950b85096
6
+ metadata.gz: c8a7801ee8978c2f2c0ccd7520ea7a6c25b3013ffdc6af992b19daa025eed7acc3d0e015b7d062d9f2059f10123a94537e2a1f2d29624f26bb7bf32ef93fc4b8
7
+ data.tar.gz: 019010a9b3e35dbdced724a078ecc31dd753a06c00adf95acbfb14c3bb712908c53af567e6006673194456d693ce27a08229ce544b924c53a3e39def6b348e12
data/ChangeLog.rdoc CHANGED
@@ -1,4 +1,11 @@
1
+ === 1.0.0 / 2014-04-25
2
+
3
+ Huge version bump, update gem dependency to not be non-sensical. Should have no
4
+ functional changes.
5
+
6
+
1
7
  === 0.1.0 / 2014-04-11
2
8
 
3
- * Initial release:
9
+ Initial release:
4
10
 
11
+ * This gem is now minimally usable.
data/Gemfile.lock CHANGED
@@ -2,6 +2,7 @@ PATH
2
2
  remote: .
3
3
  specs:
4
4
  protobuf_descriptor (0.1.0)
5
+ activesupport (>= 3.0.0)
5
6
  protobuf (~> 3.0.0)
6
7
 
7
8
  GEM
@@ -19,7 +20,7 @@ GEM
19
20
  json (1.8.1)
20
21
  method_source (0.8.2)
21
22
  middleware (0.1.0)
22
- minitest (5.3.2)
23
+ minitest (5.3.3)
23
24
  multi_json (1.9.2)
24
25
  protobuf (3.0.4)
25
26
  activesupport (>= 3.2)
data/README.rdoc CHANGED
@@ -1,7 +1,7 @@
1
1
  = protobuf_descriptor
2
2
 
3
3
  * {Homepage}[https://rubygems.org/gems/protobuf_descriptor]
4
- * {Documentation}[http://rubydoc.info/gems/protobuf_descriptor/frames]
4
+ * {Documentation}[http://rubydoc.info/github/hfwang/protobuf_descriptor/master/frames]
5
5
 
6
6
  == Description
7
7
 
@@ -32,7 +32,7 @@ that would be generated by compiling
32
32
  descriptor.resolve_type("CType", ".porkbuns.FieldOptions")
33
33
 
34
34
  For even more gory details, please peruse the actual
35
- {documentation}[link:ProtobufDescriptor.html].
35
+ {documentation}[http://rubydoc.info/github/hfwang/protobuf_descriptor/master/frames].
36
36
 
37
37
  == Requirements
38
38
 
@@ -7,9 +7,8 @@ class ProtobufDescriptor
7
7
  #
8
8
  # See {+EnumDescriptorProto+}[https://code.google.com/p/protobuf/source/browse/trunk/src/google/protobuf/descriptor.proto#84]
9
9
  class EnumDescriptor
10
- # The containing FileDescriptor[link:FileDescriptor.html]
11
- # or MessageDescriptor[link:MessageDescriptor.html] that
12
- # defines this enum.
10
+ # The containing {ProtobufDescriptor::FileDescriptor} or
11
+ # {ProtobufDescriptor::MessageDescriptor} that defines this enum.
13
12
  attr_reader :parent
14
13
 
15
14
  # The +EnumDescriptorProto+ this +EnumDescriptor+ is wrapping.
@@ -11,25 +11,22 @@ class ProtobufDescriptor
11
11
  #
12
12
  # See {+FileDescriptorProto+}[https://code.google.com/p/protobuf/source/browse/trunk/src/google/protobuf/descriptor.proto#56]
13
13
  class FileDescriptor
14
- # The parent FileDescriptorSet[link:ProtobufDescriptor.html]
14
+ # The parent {ProtobufDescriptor}
15
15
  attr_reader :file_descriptor_set
16
16
 
17
17
  # The +FileDescriptorProto+ this +FileDescriptor+ is wrapping.
18
18
  attr_reader :file_descriptor_proto
19
19
 
20
20
  # List of the message types that are defined at the top level of this file,
21
- # as a NamedCollection of
22
- # MessageDescriptors[link:MessageDescriptor.html]
21
+ # as a NamedCollection of {ProtobufDescriptor::MessageDescriptor}
23
22
  attr_reader :message_type
24
23
 
25
24
  # List of the enum types that are defined at the top level of this file,
26
- # as a NamedCollection of
27
- # EnumDescriptors[link:EnumDescriptor.html]
25
+ # as a NamedCollection of {ProtobufDescriptor::EnumDescriptor}
28
26
  attr_reader :enum_type
29
27
 
30
28
  # List of the services that are defined at the top level of this file, as a
31
- # NamedCollection of
32
- # ServiceDescriptors[link:ServiceDescriptor.html]
29
+ # NamedCollection of {ProtobufDescriptor::ServiceDescriptor}
33
30
  attr_reader :service
34
31
 
35
32
  def initialize(file_descriptor_set, file_descriptor_proto) #:nodoc:
@@ -15,7 +15,7 @@ class ProtobufDescriptor
15
15
  #
16
16
  # See FieldDescriptorProto[https://code.google.com/p/protobuf/source/browse/trunk/src/google/protobuf/descriptor.proto#103]
17
17
  class FieldDescriptor
18
- # The parent MessageDescriptor[link:MessageDescriptor.html]
18
+ # The parent {ProtobufDescriptor::MessageDescriptor}
19
19
  attr_reader :parent
20
20
  # The +FieldDescriptorProto+ this +FieldDescriptor+ is wrapping.
21
21
  attr_reader :field_descriptor_proto
@@ -83,15 +83,15 @@ class ProtobufDescriptor
83
83
  end
84
84
 
85
85
  # Resolves the field's +type_name+, returning the
86
- # MessageDescriptor[link:MessageDescriptor.html] or
87
- # EnumDescriptor[link:EnumDescriptor.html] that this field will represent.
86
+ # {ProtobufDescriptor::MessageDescriptor} or
87
+ # {ProtobufDescriptor::EnumDescriptor} that this field will represent.
88
88
  def resolve_type
89
89
  protobuf_descriptor.resolve_type_name(self.type_name, self.parent)
90
90
  end
91
91
  end
92
92
 
93
- # The containing FileDescriptor[link:FileDescriptor.html]
94
- # or MessageDescriptor[link:MessageDescriptor.html] that
93
+ # The containing {ProtobufDescriptor::FileDescriptor}
94
+ # or {ProtobufDescriptor::MessageDescriptor} that
95
95
  # defines this message.
96
96
  attr_reader :parent
97
97
 
@@ -99,15 +99,15 @@ class ProtobufDescriptor
99
99
  attr_reader :message_descriptor_proto
100
100
 
101
101
  # The messages that are defined at the top level of this message, as a
102
- # NamedCollection of MessageDescriptors[link:MessageDescriptor.html]
102
+ # NamedCollection of {ProtobufDescriptor::MessageDescriptor}
103
103
  attr_reader :nested_type
104
104
 
105
105
  # The enums that are defined at the top level of this message, as a
106
- # NamedCollection of EnumDescriptors[link:EnumDescriptor.html]
106
+ # NamedCollection of {ProtobufDescriptor::EnumDescriptor}
107
107
  attr_reader :enum_type
108
108
 
109
109
  # The fields of this message, as a NamedCollection of
110
- # FieldDescriptors[link:MessageDescriptor/FieldDescriptor.html]
110
+ # {ProtobufDescriptor::MessageDescriptor::FieldDescriptor}
111
111
  attr_reader :field
112
112
 
113
113
  def initialize(parent, message_descriptor_proto)
@@ -13,7 +13,7 @@ class ProtobufDescriptor
13
13
  #
14
14
  # See MethodDescriptorProto[https://code.google.com/p/protobuf/source/browse/trunk/src/google/protobuf/descriptor.proto#196]
15
15
  class MethodDescriptor
16
- # The parent ServiceDescriptor[../ServiceDescriptor.html]
16
+ # The parent {ProtobufDescriptor::ServiceDescriptor}
17
17
  attr_reader :parent
18
18
 
19
19
  # The +MethodDescriptorProto+ this +MethodDescriptor+ is wrapping
@@ -49,28 +49,27 @@ class ProtobufDescriptor
49
49
  end
50
50
 
51
51
  # Resolves the method's +input_type_name+, returning the
52
- # MessageDescriptor[link:MessageDescriptor.html] that this method
53
- # receives.
52
+ # {ProtobufDescriptor::MessageDescriptor} that this method receives.
54
53
  def resolve_input_type
55
54
  protobuf_descriptor.resolve_type_name(input_type_name, file_descriptor)
56
55
  end
57
56
 
58
57
  # Resolves the method's +output_type_name+, returning the
59
- # MessageDescriptor[link:MessageDescriptor.html] that this method
58
+ # {ProtobufDescriptor::MessageDescriptor} that this method
60
59
  # returns.
61
60
  def resolve_output_type
62
61
  protobuf_descriptor.resolve_type_name(output_type_name, file_descriptor)
63
62
  end
64
63
  end
65
64
 
66
- # The parent FileDescriptor[FileDescriptor.html]
65
+ # The parent {ProtobufDescriptor::FileDescriptor}
67
66
  attr_reader :parent
68
67
 
69
68
  # The +ServiceDescriptorProto+ this +ServiceDescriptor+ is wrapping
70
69
  attr_reader :service_descriptor_proto
71
70
 
72
71
  # Set of methods contained within this service, as a NamedCollection of
73
- # MethodDescriptor[link:ServiceDescriptor/MethodDescriptor.html]
72
+ # {ProtobufDescriptor::ServiceDescriptor::MethodDescriptor MethodDescriptors}
74
73
  attr_reader :method
75
74
 
76
75
  def initialize(parent, service_descriptor_proto)
@@ -1,4 +1,4 @@
1
1
  class ProtobufDescriptor
2
2
  # protobuf_descriptor version
3
- VERSION = "0.1.0"
3
+ VERSION = "1.0.0"
4
4
  end
@@ -34,7 +34,9 @@ class ProtobufDescriptor
34
34
 
35
35
  # Raw FileDescriptorSet protocol buffer
36
36
  attr_reader :descriptor_set
37
- # Set of .proto files that are contained within the descriptor set, as a NamedCollection of FileDescriptors[link:ProtobufDescriptor/FileDescriptor.html]
37
+
38
+ # Set of .proto files that are contained within the descriptor set, as a
39
+ # NamedCollection of {ProtobufDescriptor::FileDescriptor}
38
40
  attr_reader :file
39
41
 
40
42
  def initialize(stream)
@@ -47,10 +49,9 @@ class ProtobufDescriptor
47
49
  alias_method :files, :file
48
50
 
49
51
  # Returns all the named descendants of this descriptor set, basically every
50
- # defined MessageDescriptor[link:ProtobufDescriptor/MessageDescriptor.html],
51
- # EnumDescriptor[link:ProtobufDescriptor/EnumDescriptor.html], and
52
- # ServiceDescriptor[link:ProtobufDescriptor/ServiceDescriptor] referenced
53
- # in this set of proto files.
52
+ # {ProtobufDescriptor::MessageDescriptor},
53
+ # {ProtobufDescriptor::EnumDescriptor}, and
54
+ # {ProtobufDescriptor::ServiceDescriptor} defined in this set of proto files.
54
55
  def all_descendants
55
56
  seeds = files.to_a.dup
56
57
  children = Set.new
@@ -18,7 +18,7 @@ Gem::Specification.new do |gem|
18
18
  gem.require_paths = ['lib']
19
19
 
20
20
  gem.add_dependency 'protobuf', '~> 3.0.0'
21
- gem.add_dependency 'active_support', '>= 3.0'
21
+ gem.add_dependency 'activesupport', '>= 3.0.0'
22
22
 
23
23
  gem.add_development_dependency 'pry', '~> 0.9.12.6'
24
24
  gem.add_development_dependency 'rspec', '~> 2.4'
metadata CHANGED
@@ -1,97 +1,97 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: protobuf_descriptor
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 1.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Hsiu-Fan Wang
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-04-20 00:00:00.000000000 Z
11
+ date: 2014-04-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: protobuf
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ~>
17
+ - - "~>"
18
18
  - !ruby/object:Gem::Version
19
19
  version: 3.0.0
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - ~>
24
+ - - "~>"
25
25
  - !ruby/object:Gem::Version
26
26
  version: 3.0.0
27
27
  - !ruby/object:Gem::Dependency
28
- name: active_support
28
+ name: activesupport
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - '>='
31
+ - - ">="
32
32
  - !ruby/object:Gem::Version
33
- version: '3.0'
33
+ version: 3.0.0
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - '>='
38
+ - - ">="
39
39
  - !ruby/object:Gem::Version
40
- version: '3.0'
40
+ version: 3.0.0
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: pry
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - ~>
45
+ - - "~>"
46
46
  - !ruby/object:Gem::Version
47
47
  version: 0.9.12.6
48
48
  type: :development
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - ~>
52
+ - - "~>"
53
53
  - !ruby/object:Gem::Version
54
54
  version: 0.9.12.6
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: rspec
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
- - - ~>
59
+ - - "~>"
60
60
  - !ruby/object:Gem::Version
61
61
  version: '2.4'
62
62
  type: :development
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
- - - ~>
66
+ - - "~>"
67
67
  - !ruby/object:Gem::Version
68
68
  version: '2.4'
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: rubygems-tasks
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
- - - ~>
73
+ - - "~>"
74
74
  - !ruby/object:Gem::Version
75
75
  version: '0.2'
76
76
  type: :development
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
- - - ~>
80
+ - - "~>"
81
81
  - !ruby/object:Gem::Version
82
82
  version: '0.2'
83
83
  - !ruby/object:Gem::Dependency
84
84
  name: yard
85
85
  requirement: !ruby/object:Gem::Requirement
86
86
  requirements:
87
- - - ~>
87
+ - - "~>"
88
88
  - !ruby/object:Gem::Version
89
89
  version: '0.8'
90
90
  type: :development
91
91
  prerelease: false
92
92
  version_requirements: !ruby/object:Gem::Requirement
93
93
  requirements:
94
- - - ~>
94
+ - - "~>"
95
95
  - !ruby/object:Gem::Version
96
96
  version: '0.8'
97
97
  description: Wraps the protobuf FileDescriptorSet messages with happy features like
@@ -101,10 +101,10 @@ executables: []
101
101
  extensions: []
102
102
  extra_rdoc_files: []
103
103
  files:
104
- - .document
105
- - .gitignore
106
- - .rspec
107
- - .yardopts
104
+ - ".document"
105
+ - ".gitignore"
106
+ - ".rspec"
107
+ - ".yardopts"
108
108
  - ChangeLog.rdoc
109
109
  - Gemfile
110
110
  - Gemfile.lock
@@ -150,17 +150,17 @@ require_paths:
150
150
  - lib
151
151
  required_ruby_version: !ruby/object:Gem::Requirement
152
152
  requirements:
153
- - - '>='
153
+ - - ">="
154
154
  - !ruby/object:Gem::Version
155
155
  version: '0'
156
156
  required_rubygems_version: !ruby/object:Gem::Requirement
157
157
  requirements:
158
- - - '>='
158
+ - - ">="
159
159
  - !ruby/object:Gem::Version
160
160
  version: '0'
161
161
  requirements: []
162
162
  rubyforge_project:
163
- rubygems_version: 2.0.6
163
+ rubygems_version: 2.2.1
164
164
  signing_key:
165
165
  specification_version: 4
166
166
  summary: Protocol Buffer file descriptor parser