protip 0.10.7 → 0.11.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 +4 -4
- data/definitions/google/protobuf/wrappers.proto +99 -0
- data/definitions/protip/messages/array.proto +3 -2
- data/definitions/protip/messages/errors.proto +5 -4
- data/definitions/protip/messages/types.proto +6 -4
- data/lib/google/protobuf/wrappers.rb +48 -0
- data/lib/protip/client.rb +3 -4
- data/lib/protip/error.rb +2 -3
- data/lib/protip/messages/array.rb +16 -0
- data/lib/protip/messages/errors.rb +22 -0
- data/lib/protip/messages/types.rb +18 -0
- data/lib/protip/resource.rb +11 -9
- data/lib/protip/standard_converter.rb +12 -41
- data/lib/protip/wrapper.rb +48 -26
- data/test/functional/protip/resource_test.rb +173 -138
- data/test/unit/protip/resource_test.rb +107 -85
- data/test/unit/protip/standard_converter_test.rb +14 -11
- data/test/unit/protip/wrapper_test.rb +105 -37
- metadata +12 -12
- data/definitions/protip/messages/wrappers.proto +0 -60
- data/lib/protip/messages/array.pb.rb +0 -27
- data/lib/protip/messages/errors.pb.rb +0 -34
- data/lib/protip/messages/types.pb.rb +0 -26
- data/lib/protip/messages/wrappers.pb.rb +0 -64
@@ -1,27 +0,0 @@
|
|
1
|
-
# encoding: utf-8
|
2
|
-
|
3
|
-
##
|
4
|
-
# This file is auto-generated. DO NOT EDIT!
|
5
|
-
#
|
6
|
-
require 'protobuf/message'
|
7
|
-
|
8
|
-
module Protip
|
9
|
-
module Messages
|
10
|
-
|
11
|
-
##
|
12
|
-
# Message Classes
|
13
|
-
#
|
14
|
-
class Array < ::Protobuf::Message; end
|
15
|
-
|
16
|
-
|
17
|
-
##
|
18
|
-
# Message Fields
|
19
|
-
#
|
20
|
-
class Array
|
21
|
-
repeated :bytes, :messages, 1
|
22
|
-
end
|
23
|
-
|
24
|
-
end
|
25
|
-
|
26
|
-
end
|
27
|
-
|
@@ -1,34 +0,0 @@
|
|
1
|
-
# encoding: utf-8
|
2
|
-
|
3
|
-
##
|
4
|
-
# This file is auto-generated. DO NOT EDIT!
|
5
|
-
#
|
6
|
-
require 'protobuf/message'
|
7
|
-
|
8
|
-
module Protip
|
9
|
-
module Messages
|
10
|
-
|
11
|
-
##
|
12
|
-
# Message Classes
|
13
|
-
#
|
14
|
-
class Errors < ::Protobuf::Message; end
|
15
|
-
class FieldError < ::Protobuf::Message; end
|
16
|
-
|
17
|
-
|
18
|
-
##
|
19
|
-
# Message Fields
|
20
|
-
#
|
21
|
-
class Errors
|
22
|
-
repeated :string, :messages, 1
|
23
|
-
repeated ::Protip::Messages::FieldError, :field_errors, 2
|
24
|
-
end
|
25
|
-
|
26
|
-
class FieldError
|
27
|
-
optional :string, :field, 1
|
28
|
-
optional :string, :message, 2
|
29
|
-
end
|
30
|
-
|
31
|
-
end
|
32
|
-
|
33
|
-
end
|
34
|
-
|
@@ -1,26 +0,0 @@
|
|
1
|
-
# encoding: utf-8
|
2
|
-
|
3
|
-
##
|
4
|
-
# This file is auto-generated. DO NOT EDIT!
|
5
|
-
#
|
6
|
-
require 'protobuf/message'
|
7
|
-
|
8
|
-
module Protip
|
9
|
-
|
10
|
-
##
|
11
|
-
# Message Classes
|
12
|
-
#
|
13
|
-
class Date < ::Protobuf::Message; end
|
14
|
-
|
15
|
-
|
16
|
-
##
|
17
|
-
# Message Fields
|
18
|
-
#
|
19
|
-
class Date
|
20
|
-
required :int64, :year, 1
|
21
|
-
required :uint32, :month, 2
|
22
|
-
required :uint32, :day, 3
|
23
|
-
end
|
24
|
-
|
25
|
-
end
|
26
|
-
|
@@ -1,64 +0,0 @@
|
|
1
|
-
# encoding: utf-8
|
2
|
-
|
3
|
-
##
|
4
|
-
# This file is auto-generated. DO NOT EDIT!
|
5
|
-
#
|
6
|
-
require 'protobuf/message'
|
7
|
-
|
8
|
-
module Protip
|
9
|
-
|
10
|
-
##
|
11
|
-
# Message Classes
|
12
|
-
#
|
13
|
-
class DoubleValue < ::Protobuf::Message; end
|
14
|
-
class FloatValue < ::Protobuf::Message; end
|
15
|
-
class Int64Value < ::Protobuf::Message; end
|
16
|
-
class UInt64Value < ::Protobuf::Message; end
|
17
|
-
class Int32Value < ::Protobuf::Message; end
|
18
|
-
class UInt32Value < ::Protobuf::Message; end
|
19
|
-
class BoolValue < ::Protobuf::Message; end
|
20
|
-
class StringValue < ::Protobuf::Message; end
|
21
|
-
class BytesValue < ::Protobuf::Message; end
|
22
|
-
|
23
|
-
|
24
|
-
##
|
25
|
-
# Message Fields
|
26
|
-
#
|
27
|
-
class DoubleValue
|
28
|
-
required :double, :value, 1
|
29
|
-
end
|
30
|
-
|
31
|
-
class FloatValue
|
32
|
-
required :float, :value, 1
|
33
|
-
end
|
34
|
-
|
35
|
-
class Int64Value
|
36
|
-
required :int64, :value, 1
|
37
|
-
end
|
38
|
-
|
39
|
-
class UInt64Value
|
40
|
-
required :uint64, :value, 1
|
41
|
-
end
|
42
|
-
|
43
|
-
class Int32Value
|
44
|
-
required :int32, :value, 1
|
45
|
-
end
|
46
|
-
|
47
|
-
class UInt32Value
|
48
|
-
required :uint32, :value, 1
|
49
|
-
end
|
50
|
-
|
51
|
-
class BoolValue
|
52
|
-
required :bool, :value, 1
|
53
|
-
end
|
54
|
-
|
55
|
-
class StringValue
|
56
|
-
required :string, :value, 1
|
57
|
-
end
|
58
|
-
|
59
|
-
class BytesValue
|
60
|
-
required :bytes, :value, 1
|
61
|
-
end
|
62
|
-
|
63
|
-
end
|
64
|
-
|