software_challenge_client 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b08956211b43e0c2cd823c5351ca8834295d848a
4
- data.tar.gz: a6eb47e5ed59e726ca330d7cd2d8687b056d2de9
3
+ metadata.gz: cc478e82e26181f2ed5b8cea12987dd0f3f1a082
4
+ data.tar.gz: d1b9ba8c5c74612743c3106bacdfab4ff23a315b
5
5
  SHA512:
6
- metadata.gz: 7473a1158058138f9c7b46bf4f254f940451452b67433974af963382c2418c1ef05c440bff6bcef9d085d1e803e7eb02cb42c923b76fbc4966ca30df6109aec3
7
- data.tar.gz: d91262b781f43d53e9f4cee8a82c8f0cb6a95d8dcdf6501b1da407ffb08b43d406479eaf6c428d402dcd51bba8aa95416984f31afa066c13d5b2111e9ae5970a
6
+ metadata.gz: a8bb4c4139d5f60852836ad95de14400fcc462072c28f8ea9ab496abb21b8b30be435096f9781a339720f58f9da389c4ded62f4dd4e18f178fa922b6ea7639ab
7
+ data.tar.gz: c156862ec8599501a5eb7f1ceac867ea542024caf520d5fdfcfa64f7fd8185117996a7bf3cdeffc7d6b11a7e933ad6bb8944bec7629c4852407792e32b3962ac
data/.gitignore CHANGED
@@ -7,5 +7,5 @@
7
7
  /pkg/
8
8
  /spec/reports/
9
9
  /tmp/
10
-
11
10
  /bin/
11
+ /vendor
data/README.md CHANGED
@@ -23,6 +23,16 @@ Or install it yourself as:
23
23
 
24
24
  See the example client in the example directory.
25
25
 
26
+ You can execute the example client by entering
27
+
28
+ ```console
29
+ ruby main.rb
30
+ ```
31
+
32
+ in a shell (while being in the example directory). Note that the
33
+ software_challenge_client gem needs to be installed for this to work and a
34
+ server waiting for a manual client has to be running.
35
+
26
36
  ## Development
27
37
 
28
38
  After checking out the repo, run `bin/setup` to install
@@ -31,10 +41,15 @@ run `bin/console` for an interactive prompt that will allow you to
31
41
  experiment.
32
42
 
33
43
  To install this gem onto your local machine, run `bundle exec rake
34
- install`. To release a new version, update the version number in
35
- `version.rb`, and then run `bundle exec rake release`, which will
36
- create a git tag for the version, push git commits and tags, and push
37
- the `.gem` file to [rubygems.org](https://rubygems.org).
44
+ install`.
45
+
46
+ ### Releasing
47
+
48
+ To release a new version, update the version number in
49
+ `lib/software_challenge_client/version.rb` and update RELEASES.md. Then run
50
+ `bundle exec rake release`, which will create a git tag for the version, push
51
+ git commits and tags, and push the `.gem` file to
52
+ [rubygems.org](https://rubygems.org).
38
53
 
39
54
  ## Contributing
40
55
 
data/RELEASES.md CHANGED
@@ -1,3 +1,7 @@
1
+ = 0.1.1
2
+
3
+ Compatibility to Ruby 1.9 (source encoding issues)
4
+
1
5
  = 0.1.0
2
6
 
3
7
  First complete version.
data/example/client.rb CHANGED
@@ -1,3 +1,4 @@
1
+ # encoding: UTF-8
1
2
  require 'software_challenge_client'
2
3
 
3
4
  class Client < ClientInterface
data/example/main.rb CHANGED
@@ -1,3 +1,4 @@
1
+ # encoding: UTF-8
1
2
  require 'software_challenge_client'
2
3
  require 'optparse'
3
4
  require 'ostruct'
@@ -1,3 +1,4 @@
1
+ # encoding: UTF-8
1
2
  module SoftwareChallengeClient
2
3
  require "software_challenge_client/version"
3
4
  require "software_challenge_client/board"
@@ -1,3 +1,4 @@
1
+ # encoding: UTF-8
1
2
  require_relative './util/constants'
2
3
  require_relative 'game_state'
3
4
  require_relative 'player'
@@ -1,3 +1,4 @@
1
+ # encoding: UTF-8
1
2
  class ClientInterface
2
3
  attr_accessor :gamestate
3
4
 
@@ -1,3 +1,4 @@
1
+ # encoding: UTF-8
1
2
  require_relative 'player'
2
3
 
3
4
  # @author Ralf-Tobias Diekert
@@ -1,3 +1,4 @@
1
+ # encoding: UTF-8
1
2
  require_relative 'player_color'
2
3
 
3
4
  # @author Ralf-Tobias Diekert
@@ -1,3 +1,4 @@
1
+ # encoding: UTF-8
1
2
  # @author Ralf-Tobias Diekert
2
3
  # A debug hint, that can be added to a move
3
4
  class DebugHint
@@ -1,3 +1,4 @@
1
+ # encoding: UTF-8
1
2
  require_relative 'player_color'
2
3
  require_relative 'field_type'
3
4
 
@@ -1,3 +1,4 @@
1
+ # encoding: UTF-8
1
2
  # @author Ralf-Tobias Diekert
2
3
  #Fieldtype constants
3
4
  module FieldType
@@ -1,3 +1,4 @@
1
+ # encoding: UTF-8
1
2
  require_relative './util/constants'
2
3
  require_relative 'player'
3
4
  require_relative 'board'
@@ -1,3 +1,4 @@
1
+ # encoding: UTF-8
1
2
  require_relative 'debug_hint'
2
3
 
3
4
  # @author Ralf-Tobias Diekert
@@ -1,3 +1,4 @@
1
+ # encoding: UTF-8
1
2
  require 'socket'
2
3
  require_relative 'protocol'
3
4
  require_relative 'board'
@@ -1,3 +1,4 @@
1
+ # encoding: UTF-8
1
2
  require_relative 'player_color'
2
3
 
3
4
  # @author Ralf-Tobias Diekert
@@ -1,3 +1,4 @@
1
+ # encoding: UTF-8
1
2
  # @author Ralf-Tobias Diekert
2
3
  #player color constants
3
4
  module PlayerColor
@@ -1,3 +1,4 @@
1
+ # encoding: UTF-8
1
2
  require 'socket'
2
3
  require_relative 'board'
3
4
  require_relative 'move'
@@ -1,3 +1,4 @@
1
+ # encoding: UTF-8
1
2
  require_relative 'board'
2
3
  require_relative 'client_interface'
3
4
  require_relative 'network'
@@ -1,3 +1,4 @@
1
+ # encoding: UTF-8
1
2
  #Game constants
2
3
  module Constants
3
4
  ROUND_LIMIT = 100
@@ -1,3 +1,4 @@
1
+ # encoding: UTF-8
1
2
  module SoftwareChallengeClient
2
- VERSION = "0.1.0"
3
+ VERSION = "0.1.1"
3
4
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: software_challenge_client
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ralf-Tobias Diekert
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2015-09-08 00:00:00.000000000 Z
11
+ date: 2015-09-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -107,7 +107,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
107
107
  version: '0'
108
108
  requirements: []
109
109
  rubyforge_project:
110
- rubygems_version: 2.4.8
110
+ rubygems_version: 2.4.5
111
111
  signing_key:
112
112
  specification_version: 4
113
113
  summary: This gem provides functions to build a client for the coding competition