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.
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