drawille 0.3.0 → 0.3.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -13
- data/examples/mn-gon.rb +1 -1
- data/lib/drawille/frameable.rb +2 -1
- data/lib/drawille/version.rb +1 -1
- metadata +9 -9
checksums.yaml
CHANGED
@@ -1,15 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
|
5
|
-
data.tar.gz: !binary |-
|
6
|
-
YzYxODM4YjM2ZTQ1NjZlM2IxMDhlYjIwMGVlNDM3NmQ3YzQ0NWYxNg==
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: bd1ab9b0b573d50317ce0b8ac4252f18594df372
|
4
|
+
data.tar.gz: db6b1ecbf2f602019a91caa2815b55a5a21166ea
|
7
5
|
SHA512:
|
8
|
-
metadata.gz:
|
9
|
-
|
10
|
-
MjE4MTZjZDFlYjE4MGZkYTI3MDhiYWZlNjI4MTZlNGM4OWI0ZGJlNzQ0ZGRh
|
11
|
-
NmI3YmU0MDNjZTVmZWVmMTNiNjc5Nzc5NGIwMWU5NTcxZDRhMmI=
|
12
|
-
data.tar.gz: !binary |-
|
13
|
-
NDM2YzY4NjEwMjM5NjliYjc2MjI2ZDY0YmI0OTI2MGQ0ZTI1NzRjZGUyZDQ0
|
14
|
-
NTM4YjZiMzEyOTg3NjBlNjBkZmQ4YzZjMmU1NDNlODMxMjc1Zjg2OGVmYTQz
|
15
|
-
ZWQ0MTA0MzAwOTNlZjQ5MTNhYTE1ZGVkMWJhMDg1ZDQ4NGI1MWI=
|
6
|
+
metadata.gz: 68d0fc7ef536fab25396f6059ecbb25c7ceab68104939b1bb4f4ecc01af67410d95197fcb0d67d2e9d3dc8dc3aba40fd2f593f2c0c3d0a1674829dca2cac3105
|
7
|
+
data.tar.gz: 678a730a7988ef16ab39a58b8184841093282170e969cef15439a5b9dedd6e8e835a68998846f610d2a2744961ec0606102ef539d52370392085db6afb6b7fff
|
data/examples/mn-gon.rb
CHANGED
data/lib/drawille/frameable.rb
CHANGED
@@ -1,5 +1,6 @@
|
|
1
1
|
# -*- encoding: utf-8 -*-
|
2
2
|
|
3
|
+
require 'pry'
|
3
4
|
module Drawille
|
4
5
|
|
5
6
|
module Frameable
|
@@ -22,7 +23,7 @@ module Drawille
|
|
22
23
|
|
23
24
|
def rows options={}
|
24
25
|
chars = options[:chars] || @chars
|
25
|
-
min = options[:min_y] || [chars.keys.min, 0].min
|
26
|
+
min = options[:min_y] || [(chars.keys.min || 0), 0].min
|
26
27
|
max = options[:max_y] || chars.keys.max
|
27
28
|
return [] if min.nil? || max.nil?
|
28
29
|
options[:min_x] ||= [chars.reduce([]) { |m,x| m << x.last.keys }.flatten.min, 0].min
|
data/lib/drawille/version.rb
CHANGED
metadata
CHANGED
@@ -1,41 +1,41 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: drawille
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Marcin Skirzynski
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-09-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: curses
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- -
|
17
|
+
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
19
|
version: '0'
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- -
|
24
|
+
- - ">="
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: '0'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: rspec
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- -
|
31
|
+
- - ">="
|
32
32
|
- !ruby/object:Gem::Version
|
33
33
|
version: '0'
|
34
34
|
type: :development
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
|
-
- -
|
38
|
+
- - ">="
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '0'
|
41
41
|
description: Drawing in terminal.
|
@@ -44,7 +44,7 @@ executables: []
|
|
44
44
|
extensions: []
|
45
45
|
extra_rdoc_files: []
|
46
46
|
files:
|
47
|
-
- .gitignore
|
47
|
+
- ".gitignore"
|
48
48
|
- Gemfile
|
49
49
|
- LICENSE.txt
|
50
50
|
- README.md
|
@@ -76,12 +76,12 @@ require_paths:
|
|
76
76
|
- lib
|
77
77
|
required_ruby_version: !ruby/object:Gem::Requirement
|
78
78
|
requirements:
|
79
|
-
- -
|
79
|
+
- - ">="
|
80
80
|
- !ruby/object:Gem::Version
|
81
81
|
version: '0'
|
82
82
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
83
83
|
requirements:
|
84
|
-
- -
|
84
|
+
- - ">="
|
85
85
|
- !ruby/object:Gem::Version
|
86
86
|
version: '0'
|
87
87
|
requirements: []
|