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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: eb7adb69f44a7ea7f14d6fd37978e93c0fdeb880
4
- data.tar.gz: bc57c30c7eff1cfa811dd81b965e23fb5a058bfc
3
+ metadata.gz: 31c0fb8396b2ae0d7c2322c0461e3be8531a0ed1
4
+ data.tar.gz: 04e5ac417d4245e085410f57f9f8d83534133d07
5
5
  SHA512:
6
- metadata.gz: dc98af60cfceca88f7de615fa00f46dc792bd4b2c1df6ac2cce16392b3ceb1df5c6a912300abdec004e7d963945f154412eec81e8ceb3606ea832dfe7e322886
7
- data.tar.gz: 0937cd2ca8cdbfd064e955b9a50cb1178823f97174088f99a7bf6b2519094fc3901e70b2e8208c528d0651a25b74e7ae0734b7232ec845ef8493eeeb6b0c739c
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', github: 'fullscreen/squid'` to the `Gemfile` file of your Ruby project.
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
- [values.first.min, 0].min if @data.any? && values.first.any?
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
- [values.last.max, @steps].max if @data.any? && values.last.any?
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
@@ -1,3 +1,3 @@
1
1
  module Squid
2
- VERSION = '1.0.0'
2
+ VERSION = '1.0.1'
3
3
  end
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.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-08-31 00:00:00.000000000 Z
11
+ date: 2015-10-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: prawn