juno-report 0.1.2 → 0.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- metadata +5 -41
- data/.gitignore +0 -20
- data/.idea/.name +0 -1
- data/.idea/.rakeTasks +0 -7
- data/.idea/encodings.xml +0 -5
- data/.idea/juno-report.iml +0 -31
- data/.idea/misc.xml +0 -5
- data/.idea/modules.xml +0 -9
- data/.idea/scopes/scope_settings.xml +0 -5
- data/.idea/vcs.xml +0 -7
- data/.idea/workspace.xml +0 -281
- data/.rspec +0 -2
- data/Gemfile +0 -4
- data/Gemfile.lock +0 -52
- data/LICENSE.txt +0 -22
- data/README.md +0 -197
- data/Rakefile +0 -7
- data/juno-report.gemspec +0 -24
- data/lib/juno-report/pdf/behaviors.rb +0 -18
- data/lib/juno-report/pdf.rb +0 -246
- data/lib/juno-report/report_object.rb +0 -9
- data/lib/juno-report/version.rb +0 -3
- data/lib/juno-report.rb +0 -32
- data/report.pdf +0 -153
- data/samples/example.rb +0 -21
- data/samples/report.pdf +0 -972
- data/samples/report.yml +0 -30
- data/spec/data/data1.rb +0 -9
- data/spec/data/rule1.yml +0 -10
- data/spec/default_spec.rb +0 -13
- data/spec/rules_spec.rb +0 -13
- data/spec/spec_helper.rb +0 -11
data/samples/report.yml
DELETED
@@ -1,30 +0,0 @@
|
|
1
|
-
page:
|
2
|
-
fields:
|
3
|
-
title1: [260, {size: 24, align: center, value: "Test Report"}]
|
4
|
-
subtitle1: [260, {size: 20, posY: 20, align: center, value: "Generated by Juno Report"}]
|
5
|
-
body:
|
6
|
-
settings: {posY: 40, height: 30, groups: [group_field1, group_field2]}
|
7
|
-
fields:
|
8
|
-
test_field1: [10]
|
9
|
-
test_field2: [220]
|
10
|
-
test_field3: [420, {column: "Named Test Field 3"}]
|
11
|
-
footer:
|
12
|
-
label_total: [10, {value: "Total"}]
|
13
|
-
totalizer1: [220, {behavior: count}]
|
14
|
-
test_field3: [420, {behavior: sum}]
|
15
|
-
group_field1:
|
16
|
-
settings: {posY: 30, height: 10}
|
17
|
-
fields:
|
18
|
-
group_field1: [10, size: 25]
|
19
|
-
footer:
|
20
|
-
group_field1: [10, {label: "Total "}]
|
21
|
-
totalizer1: [220, {behavior: count}]
|
22
|
-
test_field3: [420, {behavior: sum}]
|
23
|
-
group_field2:
|
24
|
-
settings: {posY: 30, height: 25}
|
25
|
-
fields:
|
26
|
-
group_field2: [10, size: 17]
|
27
|
-
footer:
|
28
|
-
group_field2: [10, {label: "Total "}]
|
29
|
-
totalizer1: [220, {behavior: count}]
|
30
|
-
test_field3: [420, {behavior: sum}]
|
data/spec/data/data1.rb
DELETED
@@ -1,9 +0,0 @@
|
|
1
|
-
[
|
2
|
-
{:test_field1 => 'Test Value 1', :test_field2 => "Test Value 2", :test_field3 => 50},
|
3
|
-
{:test_field1 => 'Test Value 1', :test_field2 => "Test Value 2", :test_field3 => 7},
|
4
|
-
{:test_field1 => 'Test Value 1', :test_field2 => "Test Value 2", :test_field3 => 10},
|
5
|
-
{:test_field1 => 'Test Value 1', :test_field2 => "Test Value 2", :test_field3 => 5},
|
6
|
-
{:test_field1 => 'Test Value 1', :test_field2 => "Test Value 2", :test_field3 => 2},
|
7
|
-
{:test_field1 => 'Test Value 1', :test_field2 => "Test Value 2", :test_field3 => 4},
|
8
|
-
{:test_field1 => 'Test Value 1', :test_field2 => "Test Value 2", :test_field3 => 24}
|
9
|
-
]
|
data/spec/data/rule1.yml
DELETED
@@ -1,10 +0,0 @@
|
|
1
|
-
body:
|
2
|
-
settings: {posY: 40, height: 25}
|
3
|
-
fields:
|
4
|
-
test_field1: [10]
|
5
|
-
test_field2: [220]
|
6
|
-
test_field3: [430, {column: "Named Test Field 3"}]
|
7
|
-
footer:
|
8
|
-
label_total: [10, {value: "Total"}]
|
9
|
-
totalizer: [220, {behavior: count}]
|
10
|
-
test_field3: [430, {behavior: sum}]
|
data/spec/default_spec.rb
DELETED
@@ -1,13 +0,0 @@
|
|
1
|
-
require File.join(File.expand_path(File.dirname(__FILE__)), "spec_helper")
|
2
|
-
|
3
|
-
describe "Generating a report" do
|
4
|
-
it "YAML file should exist" do
|
5
|
-
data = require 'data/data1.rb'
|
6
|
-
lambda {JunoReport::generate data, report: File.expand_path('spec/data/rule1')}.should_not raise_error Errno::ENOENT
|
7
|
-
end
|
8
|
-
|
9
|
-
it "Invalid YAML file should crash" do
|
10
|
-
data = require 'data/data1.rb'
|
11
|
-
lambda {JunoReport::generate data, report: 'fake-rule'}.should raise_error Errno::ENOENT
|
12
|
-
end
|
13
|
-
end
|
data/spec/rules_spec.rb
DELETED
@@ -1,13 +0,0 @@
|
|
1
|
-
require File.join(File.expand_path(File.dirname(__FILE__)), "spec_helper")
|
2
|
-
|
3
|
-
describe "Generating a report" do
|
4
|
-
it "YAML file should exist" do
|
5
|
-
data = require 'data/data1.rb'
|
6
|
-
lambda {JunoReport::generate data, report: File.expand_path('spec/data/rule1')}.should_not raise_error Errno::ENOENT
|
7
|
-
end
|
8
|
-
|
9
|
-
it "Invalid YAML file should crash" do
|
10
|
-
data = require 'data/data1.rb'
|
11
|
-
lambda {JunoReport::generate data, report: 'fake-rule'}.should raise_error Errno::ENOENT
|
12
|
-
end
|
13
|
-
end
|
data/spec/spec_helper.rb
DELETED
@@ -1,11 +0,0 @@
|
|
1
|
-
require 'bundler'
|
2
|
-
Bundler.setup
|
3
|
-
|
4
|
-
$LOAD_PATH.unshift File.join(File.dirname(__FILE__), '..', 'lib')
|
5
|
-
require 'juno-report'
|
6
|
-
require 'rspec/autorun'
|
7
|
-
|
8
|
-
RSpec.configure do |config|
|
9
|
-
config.color_enabled = true
|
10
|
-
config.formatter = 'documentation'
|
11
|
-
end
|