squid 1.0.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/README.md +2 -2
- data/lib/squid/axis.rb +6 -2
- data/lib/squid/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 31c0fb8396b2ae0d7c2322c0461e3be8531a0ed1
|
4
|
+
data.tar.gz: 04e5ac417d4245e085410f57f9f8d83534133d07
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 621e31d2991874ce6c92155d5d8a839cce9a1d683cded3e24cbd1af13fa2a1bf6f790c2950e9e497c1073a23638ba595d12bd390243cecce035efb9591aac275
|
7
|
+
data.tar.gz: 4e365586ef4427a0ee94731f1fc60f054c2155b4dfba81bdbc36c4ca077c3fe6bb10ae0bb97da7239ad4cc522375bd40c7f377279b02a0042b81d3c008323773
|
data/CHANGELOG.md
CHANGED
@@ -6,6 +6,10 @@ For more information about changelogs, check
|
|
6
6
|
[Keep a Changelog](http://keepachangelog.com) and
|
7
7
|
[Vandamme](http://tech-angels.github.io/vandamme).
|
8
8
|
|
9
|
+
## 1.0.1 - 2015.10.01
|
10
|
+
|
11
|
+
* [BUGFIX] Don’t try to draw an axis if the data is empty.
|
12
|
+
|
9
13
|
## 1.0.0 - 2015.08.31
|
10
14
|
|
11
15
|
* [FEATURE] Add `chart` method to Prawn::Document to draw graphs.
|
data/README.md
CHANGED
@@ -43,7 +43,7 @@ How to install
|
|
43
43
|
Squid requires **Ruby 2.1 or higher**.
|
44
44
|
If used in a Rails project, requires **Rails 4.0 or higher**.
|
45
45
|
|
46
|
-
To include in your project, add `gem 'squid, ~> 1.0'
|
46
|
+
To include in your project, add `gem 'squid', ~> '1.0'` to the `Gemfile` file of your Ruby project.
|
47
47
|
|
48
48
|
How to generate the manual
|
49
49
|
==========================
|
@@ -60,4 +60,4 @@ All pull requests will have to make Travis and Code Climate happy in order to be
|
|
60
60
|
|
61
61
|
You can also run the tests locally with `bundle exec rspec`.
|
62
62
|
|
63
|
-
Happy hacking!
|
63
|
+
Happy hacking!
|
data/lib/squid/axis.rb
CHANGED
@@ -39,11 +39,15 @@ module Squid
|
|
39
39
|
end
|
40
40
|
|
41
41
|
def min
|
42
|
-
|
42
|
+
if @data.any? && values.first && values.first.any?
|
43
|
+
[values.first.min, 0].min
|
44
|
+
end
|
43
45
|
end
|
44
46
|
|
45
47
|
def max
|
46
|
-
|
48
|
+
if @data.any? && values.last && values.last.any?
|
49
|
+
[values.last.max, @steps].max
|
50
|
+
end
|
47
51
|
end
|
48
52
|
|
49
53
|
def values
|
data/lib/squid/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: squid
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- claudiob
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-10-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: prawn
|