dossier 2.9.1 → 2.9.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (30) hide show
  1. checksums.yaml +4 -4
  2. data/lib/dossier/result.rb +2 -1
  3. data/lib/dossier/version.rb +1 -1
  4. data/spec/dossier/result_spec.rb +8 -0
  5. data/spec/dummy/config/database.yml +1 -2
  6. data/spec/dummy/db/test.sqlite3 +0 -0
  7. data/spec/dummy/log/development.log +4542 -0
  8. data/spec/dummy/log/test.log +54051 -600
  9. data/spec/dummy/tmp/cache/assets/C35/BF0/sprockets%2F64292e0008108df585a755f2876c7869 +0 -0
  10. data/spec/dummy/tmp/cache/assets/CAE/C40/sprockets%2F52b52a56f21c0d96d671468570a3ec47 +0 -0
  11. data/spec/dummy/tmp/cache/assets/CD8/370/sprockets%2F357970feca3ac29060c1e3861e2c0953 +0 -0
  12. data/spec/dummy/tmp/cache/assets/CEA/5A0/sprockets%2Fc0534884cbc43494a05d9e957ea1298d +0 -0
  13. data/spec/dummy/tmp/cache/assets/D00/EF0/sprockets%2F4e1e8b85785ee1929c8e355c96902e9c +0 -0
  14. data/spec/dummy/tmp/cache/assets/D32/A10/sprockets%2F13fe41fee1fe35b49d145bcc06610705 +0 -0
  15. data/spec/dummy/tmp/cache/assets/D40/0D0/sprockets%2F15a6bb0a1346b6d7fe859c14bf729a49 +0 -0
  16. data/spec/dummy/tmp/cache/assets/D45/6A0/sprockets%2F22f3562bf7d5e640880df2a5d683f2fc +0 -0
  17. data/spec/dummy/tmp/cache/assets/D4E/1B0/sprockets%2Ff7cbd26ba1d28d48de824f0e94586655 +0 -0
  18. data/spec/dummy/tmp/cache/assets/D51/510/sprockets%2Fca0353abc266080173bbc3c13efa935a +0 -0
  19. data/spec/dummy/tmp/cache/assets/D58/4B0/sprockets%2F912ab2da4b05c27efb630ba66f2830b5 +0 -0
  20. data/spec/dummy/tmp/cache/assets/D5A/EA0/sprockets%2Fd771ace226fc8215a3572e0aa35bb0d6 +0 -0
  21. data/spec/dummy/tmp/cache/assets/D6C/400/sprockets%2F7fa180a6e05c7ca4346ef58c54bb30f8 +0 -0
  22. data/spec/dummy/tmp/cache/assets/DBF/290/sprockets%2F2f8bb1f9081cadc350e5bb6ab1458d5a +0 -0
  23. data/spec/dummy/tmp/cache/assets/DC4/970/sprockets%2F2b0c9d55a697a19f1cec43cf160baef1 +0 -0
  24. data/spec/dummy/tmp/cache/assets/DCF/420/sprockets%2F9f127ea0ab7236994d1ceaa7bbea86c8 +0 -0
  25. data/spec/dummy/tmp/cache/assets/DDC/400/sprockets%2Fcffd775d018f68ce5dba1ee0d951a994 +0 -0
  26. data/spec/dummy/tmp/cache/assets/E04/890/sprockets%2F2f5173deea6c795b8fdde723bb4b63af +0 -0
  27. data/spec/dummy/tmp/restart.txt +0 -0
  28. data/spec/fixtures/db/mysql2.yml +2 -3
  29. data/spec/fixtures/db/sqlite3.yml +0 -1
  30. metadata +42 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: de2a8ead8c9e8a812cb212d5d3f0cf079b6d5396
4
- data.tar.gz: 575a2d5aef49c98a73b02ad097b742a2f53b9096
3
+ metadata.gz: 6e1b68dfd8df8d7ec4d31063accdd12b169bc6d1
4
+ data.tar.gz: 7fea2320a7e5fc9f33e584ccc6e98cb76a80215d
5
5
  SHA512:
6
- metadata.gz: 41a8a58bb79bcb253e6d82719f9fe38a59045d38824d97a7af32e91c6b3fff132fd41d445a343892f1b596baaa550c845d823d2bcc25c4bc8cee410b376d8891
7
- data.tar.gz: 0bd542e8ccf1ba695bb09171a4bf43a62a57e5a015e488b09133e17639063491393cc602586ac80fd9e5dac9bee48300f59119e26a1261fd70890f94926f6997
6
+ metadata.gz: 9ff8ad7c19307d6f4f1d4d03ca835dc8146c691b54645f4e031daa15b56fea7d6c0577b293587a8457efd04e805e592b5d430cdf4be9ea4ee4ec58017663212e
7
+ data.tar.gz: 3344312e894d95c274b7fff2c77da3ec90475382c2c188eb162597c3aafabc2cc950fc20bdc551a360c2a983a92a8e3032b255776952ba2f9298f9a26ce52273
@@ -18,7 +18,8 @@ module Dossier
18
18
  end
19
19
 
20
20
  def body
21
- @body ||= rows.first(rows.length - report.options[:footer].to_i)
21
+ size = rows.length - report.options[:footer].to_i
22
+ @body ||= size < 0 ? [] : rows.first(size)
22
23
  end
23
24
 
24
25
  def footers
@@ -1,3 +1,3 @@
1
1
  module Dossier
2
- VERSION = "2.9.1"
2
+ VERSION = "2.9.2"
3
3
  end
@@ -133,6 +133,14 @@ describe Dossier::Result do
133
133
  expect(result.footers.count).to eq(3)
134
134
  end
135
135
 
136
+ describe "with empty results" do
137
+ let(:adapter_result_rows) { [] }
138
+
139
+ it "has an empty body" do
140
+ expect(result.body.count).to be_zero
141
+ end
142
+ end
143
+
136
144
  end
137
145
 
138
146
  end
@@ -3,7 +3,7 @@ defaults: &defaults
3
3
  database: dossier_test
4
4
  host: localhost
5
5
  username: root
6
- password:
6
+ password: rubyr3d!
7
7
 
8
8
  development:
9
9
  <<: *defaults
@@ -11,4 +11,3 @@ test:
11
11
  <<: *defaults
12
12
  production:
13
13
  <<: *defaults
14
-
Binary file