quilt 0.0.3 → 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/Rakefile +1 -1
  2. data/lib/quilt.rb +1 -6
  3. metadata +20 -6
data/Rakefile CHANGED
@@ -18,7 +18,7 @@ DESCRIPTION = "a library for generating identicon."
18
18
  RUBYFORGE_PROJECT = "quilt"
19
19
  HOMEPATH = "http://#{RUBYFORGE_PROJECT}.rubyforge.org"
20
20
  BIN_FILES = %w( )
21
- VERS = "0.0.3"
21
+ VERS = "0.0.4"
22
22
 
23
23
  REV = File.read(".svn/entries")[/committed-rev="(d+)"/, 1] rescue nil
24
24
  CLEAN.include ['**/.*.sw?', '*.gem', '.config']
data/lib/quilt.rb CHANGED
@@ -128,8 +128,7 @@ module Quilt
128
128
  @decode = decode @code
129
129
 
130
130
  if opt[:size]
131
- @scale = (opt[:size].to_f / (PATCH_SIZE * 3)).ceil
132
- @resize_to = opt[:size]
131
+ @scale = opt[:size].to_f / (PATCH_SIZE * 3)
133
132
  else
134
133
  @scale = opt[:scale] || 1
135
134
  end
@@ -140,10 +139,6 @@ module Quilt
140
139
  @fore_color = @image.color @decode[:red], @decode[:green], @decode[:blue]
141
140
  @image.transparent @back_color
142
141
  render
143
-
144
- if @resize_to
145
- @image.resize @resize_to
146
- end
147
142
  end
148
143
 
149
144
  def decode code
metadata CHANGED
@@ -1,7 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: quilt
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ hash: 23
5
+ prerelease: false
6
+ segments:
7
+ - 0
8
+ - 0
9
+ - 4
10
+ version: 0.0.4
5
11
  platform: ruby
6
12
  authors:
7
13
  - swdyh
@@ -9,7 +15,7 @@ autorequire:
9
15
  bindir: bin
10
16
  cert_chain: []
11
17
 
12
- date: 2008-09-19 00:00:00 +09:00
18
+ date: 2010-10-16 00:00:00 +09:00
13
19
  default_executable:
14
20
  dependencies: []
15
21
 
@@ -34,6 +40,8 @@ files:
34
40
  - MIT-LICENSE
35
41
  has_rdoc: true
36
42
  homepage: http://quilt.rubyforge.org
43
+ licenses: []
44
+
37
45
  post_install_message:
38
46
  rdoc_options:
39
47
  - --title
@@ -51,23 +59,29 @@ rdoc_options:
51
59
  require_paths:
52
60
  - lib
53
61
  required_ruby_version: !ruby/object:Gem::Requirement
62
+ none: false
54
63
  requirements:
55
64
  - - ">="
56
65
  - !ruby/object:Gem::Version
66
+ hash: 3
67
+ segments:
68
+ - 0
57
69
  version: "0"
58
- version:
59
70
  required_rubygems_version: !ruby/object:Gem::Requirement
71
+ none: false
60
72
  requirements:
61
73
  - - ">="
62
74
  - !ruby/object:Gem::Version
75
+ hash: 3
76
+ segments:
77
+ - 0
63
78
  version: "0"
64
- version:
65
79
  requirements: []
66
80
 
67
81
  rubyforge_project: quilt
68
- rubygems_version: 1.2.0
82
+ rubygems_version: 1.3.7
69
83
  signing_key:
70
- specification_version: 2
84
+ specification_version: 3
71
85
  summary: a library for generating identicon.
72
86
  test_files:
73
87
  - test/test_helper.rb