visualtag 1.0.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/visualtag.rb +2 -2
- data/lib/visualtag/version.rb +1 -1
- metadata +3 -3
data/lib/visualtag.rb
CHANGED
@@ -18,13 +18,13 @@ module Visualtag
|
|
18
18
|
if row.length != 6
|
19
19
|
raise 'Wrong pattern dimension'
|
20
20
|
end
|
21
|
-
row.
|
21
|
+
row.each.with_index do |cell, column_index|
|
22
22
|
if cell == 0
|
23
23
|
color = 'black'
|
24
24
|
else
|
25
25
|
color = 'white'
|
26
26
|
end
|
27
|
-
rectangle
|
27
|
+
rectangle column_index*cell_dimension+border_dimension, row_index*cell_dimension+border_dimension, cell_dimension, cell_dimension, :stroke=>color, :fill=>color
|
28
28
|
end
|
29
29
|
end
|
30
30
|
end
|
data/lib/visualtag/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: visualtag
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.1
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-08-
|
12
|
+
date: 2012-08-09 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rasem
|
@@ -64,7 +64,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
64
64
|
version: '0'
|
65
65
|
requirements: []
|
66
66
|
rubyforge_project:
|
67
|
-
rubygems_version: 1.8.
|
67
|
+
rubygems_version: 1.8.24
|
68
68
|
signing_key:
|
69
69
|
specification_version: 3
|
70
70
|
summary: With this gem is possible to generate a visual tag, which is a subset of
|