krpc 0.3.0 → 0.3.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 +4 -4
- data/CHANGELOG.md +5 -0
- data/README.md +3 -3
- data/Rakefile +9 -0
- data/krpc.gemspec +1 -0
- data/lib/krpc/connection.rb +1 -1
- data/lib/krpc/gen.rb +2 -2
- data/lib/krpc/krpc.pb.rb +2 -2
- data/lib/krpc/version.rb +1 -1
- metadata +17 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 02d7e464d0718d9f223f97b336d4cc861f6bb975
|
4
|
+
data.tar.gz: a89bd9cfb911f51e9b2ee1979338f0a1a260289b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 058ee29c70d2cbe13a2cbf9d1016a188d18572f565c142ace38dc626e2efb62172dbf2be128000bcd61ce43cb09043a3f70cab404d8879ebeded19c0749270a7
|
7
|
+
data.tar.gz: ae5432d952cb0aad317c064cd85487df95a6f85dbfa76db1dbf981a0527b241eb660df55de05f985eba42a5d5cc4a98511aba474dbf4c8a11f2ebf30b87fe4a9
|
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
kRPC-rb [](http://badge.fury.io/rb/krpc) [](https://travis-ci.org/TeWu/krpc-rb)
|
2
2
|
=======
|
3
3
|
|
4
|
-
kRPC-rb is a Ruby client library for [kRPC](http://forum.kerbalspaceprogram.com/threads/69313), a Kerbal Space Program mod that allows you to control KSP from external scripts running outside of the game.
|
4
|
+
kRPC-rb is a Ruby client library for [kRPC](http://forum.kerbalspaceprogram.com/threads/69313), a [Kerbal Space Program](https://kerbalspaceprogram.com/) mod that allows you to control KSP from external scripts running outside of the game.
|
5
5
|
|
6
6
|

|
7
7
|
|
@@ -27,7 +27,7 @@ client.close
|
|
27
27
|
```
|
28
28
|
|
29
29
|
Most of the API is *very* similar to what can be found in (official) Python client library.
|
30
|
-
So official documentation at http://
|
30
|
+
So official documentation at http://krpc.github.io/krpc/ is definitely a good read.
|
31
31
|
The rest of this file describes few differences there are between Ruby and Python client libraries.
|
32
32
|
|
33
33
|
Connecting and disconnecting
|
@@ -132,7 +132,7 @@ pos_stream.remove #note: dead code - just as an example
|
|
132
132
|
|
133
133
|
Want to know more?
|
134
134
|
-------
|
135
|
-
* Read official **kRPC documentation** at http://
|
135
|
+
* Read official **kRPC documentation** at http://krpc.github.io/krpc/, with many great [tutorials and examples](http://krpc.github.io/krpc/tutorials.html).
|
136
136
|
* Refer to **kRPC-rb documentation** at http://tewu.github.io/krpc-rb/doc
|
137
137
|
* See official **kRPC forum thread** at http://forum.kerbalspaceprogram.com/threads/69313
|
138
138
|
|
data/Rakefile
ADDED
data/krpc.gemspec
CHANGED
data/lib/krpc/connection.rb
CHANGED
data/lib/krpc/gen.rb
CHANGED
@@ -97,8 +97,8 @@ module KRPC
|
|
97
97
|
TypeStore.get_parameter_type(i, p.type, proc.attributes)
|
98
98
|
end
|
99
99
|
param_default = proc.parameters.zip(param_types).map do |param, type|
|
100
|
-
if param.
|
101
|
-
Decoder.decode(param.
|
100
|
+
if param.has_default_value
|
101
|
+
Decoder.decode(param.default_value, type, :clientless)
|
102
102
|
else :no_default_value
|
103
103
|
end
|
104
104
|
end
|
data/lib/krpc/krpc.pb.rb
CHANGED
@@ -48,8 +48,8 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
48
48
|
add_message "krpc.schema.Parameter" do
|
49
49
|
optional :name, :string, 1
|
50
50
|
optional :type, :string, 2
|
51
|
-
optional :
|
52
|
-
optional :
|
51
|
+
optional :has_default_value, :bool, 3
|
52
|
+
optional :default_value, :bytes, 4
|
53
53
|
end
|
54
54
|
add_message "krpc.schema.Class" do
|
55
55
|
optional :name, :string, 1
|
data/lib/krpc/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: krpc
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tomasz Więch
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-06-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: google-protobuf
|
@@ -108,6 +108,20 @@ dependencies:
|
|
108
108
|
- - "~>"
|
109
109
|
- !ruby/object:Gem::Version
|
110
110
|
version: '3.4'
|
111
|
+
- !ruby/object:Gem::Dependency
|
112
|
+
name: rake
|
113
|
+
requirement: !ruby/object:Gem::Requirement
|
114
|
+
requirements:
|
115
|
+
- - "~>"
|
116
|
+
- !ruby/object:Gem::Version
|
117
|
+
version: '11.1'
|
118
|
+
type: :development
|
119
|
+
prerelease: false
|
120
|
+
version_requirements: !ruby/object:Gem::Requirement
|
121
|
+
requirements:
|
122
|
+
- - "~>"
|
123
|
+
- !ruby/object:Gem::Version
|
124
|
+
version: '11.1'
|
111
125
|
description: kRPC-rb is a Ruby client library for kRPC, a Kerbal Space Program mod
|
112
126
|
that allows you to control KSP from external scripts running outside of the game.
|
113
127
|
email:
|
@@ -121,6 +135,7 @@ files:
|
|
121
135
|
- Gemfile
|
122
136
|
- LICENSE.txt
|
123
137
|
- README.md
|
138
|
+
- Rakefile
|
124
139
|
- krpc.gemspec
|
125
140
|
- lib/krpc.rb
|
126
141
|
- lib/krpc/attributes.rb
|