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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4fe29f9b4d79df0423649f00f97a4f0635e34b55
4
- data.tar.gz: 46a7add0e30b35ec3b33ba61b0f023052e97de9b
3
+ metadata.gz: 02d7e464d0718d9f223f97b336d4cc861f6bb975
4
+ data.tar.gz: a89bd9cfb911f51e9b2ee1979338f0a1a260289b
5
5
  SHA512:
6
- metadata.gz: b9f121f1a6d61dbf3e441124beee9eb83c7ae8303a15e342d723628c5bd6a7e5da28937e20506a7d99eced2c605e6b89c949e6ea0ccf7a1e97fb35a8240915c0
7
- data.tar.gz: b79787bda276c3fb9332a97f9b8391de2a1e37df6e90494d8f7be28841014e45bfeeb5da6a60cdbe7922726d60880de3773ab0dc873935229ff75f5ac44daf4c
6
+ metadata.gz: 058ee29c70d2cbe13a2cbf9d1016a188d18572f565c142ace38dc626e2efb62172dbf2be128000bcd61ce43cb09043a3f70cab404d8879ebeded19c0749270a7
7
+ data.tar.gz: ae5432d952cb0aad317c064cd85487df95a6f85dbfa76db1dbf981a0527b241eb660df55de05f985eba42a5d5cc4a98511aba474dbf4c8a11f2ebf30b87fe4a9
@@ -1,3 +1,8 @@
1
+ v0.3.1 (18 Jun 2016)
2
+ ========
3
+ + Fixed receiving of chunked responses
4
+ + Updated protocol buffers schema
5
+
1
6
  v0.3.0 (15 Feb 2016)
2
7
  ========
3
8
  + **Updated to work with kRPC server version 0.2.x** (#6):
data/README.md CHANGED
@@ -1,7 +1,7 @@
1
1
  kRPC-rb [![Gem Version](https://badge.fury.io/rb/krpc.svg)](http://badge.fury.io/rb/krpc) [![Build Status](https://travis-ci.org/TeWu/krpc-rb.svg?branch=master)](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
  ![kRPC-rb image](http://drive.google.com/uc?export=view&id=0B2PFP23spNJwXzFCbmR0eDF5TVE "This is kRPC-rb!")
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://djungelorm.github.io/krpc/docs/ is definitely a good read.
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://djungelorm.github.io/krpc/docs, with many great [tutorials and examples](http://djungelorm.github.io/krpc/docs/tutorials.html).
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
 
@@ -0,0 +1,9 @@
1
+
2
+ desc "Run tests"
3
+ task :default => [:test]
4
+
5
+ desc "Run tests"
6
+ task :test do
7
+ sh 'bundle exec rspec --color --format documentation spec'
8
+ end
9
+ task :spec => :test
@@ -32,4 +32,5 @@ Gem::Specification.new do |s|
32
32
  s.add_development_dependency "bundler", "~> 1.11"
33
33
  s.add_development_dependency "pry", "~> 0.10"
34
34
  s.add_development_dependency "rspec", "~> 3.4"
35
+ s.add_development_dependency "rake", "~> 11.1"
35
36
  end
@@ -51,7 +51,7 @@ module KRPC
51
51
 
52
52
  def send(msg) @socket.send(msg, 0) end
53
53
  def recv(maxlen = 1)
54
- maxlen == 0 ? "" : @socket.recv(maxlen)
54
+ maxlen == 0 ? "" : @socket.read(maxlen)
55
55
  end
56
56
 
57
57
  def recv_varint
@@ -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.has_default_argument
101
- Decoder.decode(param.default_argument, type, :clientless)
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
@@ -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 :has_default_argument, :bool, 3
52
- optional :default_argument, :bytes, 4
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
@@ -1,3 +1,3 @@
1
1
  module KRPC
2
- VERSION = "0.3.0"
2
+ VERSION = "0.3.1"
3
3
  end
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.0
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-02-15 00:00:00.000000000 Z
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