shogi_koma 0.0.4 → 0.0.5

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: ec2d2b63f97bbdbf1c316d34254cf37d1f5262c8
4
- data.tar.gz: dd9e8fbd289eaac2658dd8e20010a890749fc146
3
+ metadata.gz: 38ea8d2fafff928b5c0d8271fbee74588d2f7cb1
4
+ data.tar.gz: a1d5e9dac5350be102d5b544a302a5621cf489e8
5
5
  SHA512:
6
- metadata.gz: cd24230b3e36836d6901cc8f906cc0ffab61a35cf1df6fb579b26bf7655877101eb97e9ce2a24611f338c3111bbb52e0eea14b5fd96cc0a0963b247d36a25bf5
7
- data.tar.gz: d9abe77247fef9c1372d5bfe5e279d0f755dc292fc64db886068e8be1f7b2739bd6b95636458feeba88ed9596e021ec19544fdd9dff68bc62b567df79cf120ab
6
+ metadata.gz: d5f22bd0510b94f9e4318547a904531aeb84d334023a8e07b65d186c5246a2d537a4f81a1d108d6762e51dc473c290ae2b82b8d1bfacdba8c102e1d90faf72dd
7
+ data.tar.gz: e2aa6d6a1b5c940c95faf5de6f12fa6de961c3feb68afafc318355e99d0e6b99fe3355f3a24ada8ca7f4810a65f7c886b7d98cf2c801d55868b67322675c2caa
@@ -3,4 +3,4 @@ rvm:
3
3
  - 1.9.3
4
4
  - 2.0.0
5
5
  - 2.1.0
6
- - ruby-head
6
+ # - ruby-head
data/NEWS.md CHANGED
@@ -1,5 +1,15 @@
1
1
  # NEWS
2
2
 
3
+ ## 0.0.5: 2014-08-18
4
+
5
+ ### Changes
6
+
7
+ * Improvements
8
+ * Add a parameter "border_scale".
9
+
10
+ * Fixes
11
+ * Removed needless require.
12
+
3
13
  ## 0.0.4: 2014-01-05
4
14
 
5
15
  ### Changes
@@ -1,6 +1,5 @@
1
1
  require "shogi_koma/version"
2
2
  require "shogi_koma/painter"
3
- require "shogi_koma/font"
4
3
 
5
4
  module ShogiKoma
6
5
  end
@@ -3,12 +3,13 @@ require "fontdock"
3
3
 
4
4
  module ShogiKoma
5
5
  class Painter
6
- attr_accessor :width, :height, :font
6
+ attr_accessor :width, :height, :font, :border_scale
7
7
  attr_reader :body_color, :frame_color, :text_color
8
8
  def initialize
9
9
  @width = 200
10
10
  @height = 200
11
11
  @font = "IPAMincho"
12
+ @border_scale = 1.0
12
13
  set_body_rgb(1, 0.8, 0.2)
13
14
  set_frame_color(:black)
14
15
  set_text_color(:black)
@@ -62,7 +63,8 @@ module ShogiKoma
62
63
  end
63
64
 
64
65
  def draw_body(context)
65
- context.set_line_width(0.01)
66
+ border_width = 0.01 * @border_scale
67
+ context.set_line_width(border_width)
66
68
  context.move_to(0.2, 0.2)
67
69
  context.line_to(0.5, 0.1)
68
70
  context.line_to(0.8, 0.2)
@@ -1,3 +1,3 @@
1
1
  module ShogiKoma
2
- VERSION = "0.0.4"
2
+ VERSION = "0.0.5"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: shogi_koma
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Masafumi Yokoyama
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-01-05 00:00:00.000000000 Z
11
+ date: 2014-08-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: cairo
@@ -150,10 +150,11 @@ required_rubygems_version: !ruby/object:Gem::Requirement
150
150
  version: '0'
151
151
  requirements: []
152
152
  rubyforge_project:
153
- rubygems_version: 2.2.0
153
+ rubygems_version: 2.2.2
154
154
  signing_key:
155
155
  specification_version: 4
156
156
  summary: An image generater for Shogi's pieces
157
157
  test_files:
158
158
  - test/run-test.rb
159
159
  - test/test-painter.rb
160
+ has_rdoc: