lolita-report 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- data/.document +5 -0
- data/Gemfile +18 -0
- data/LICENSE.txt +20 -0
- data/README.rdoc +19 -0
- data/Rakefile +45 -0
- data/VERSION +1 -0
- data/app/controllers/lolita/reports_controller.rb +18 -0
- data/app/views/components/lolita/configuration/report/_display.html.erb +1 -0
- data/app/views/lolita/reports/show.html.erb +9 -0
- data/author +1 -0
- data/doc/ActiveSupport.html +167 -0
- data/doc/ActiveSupport/TestCase.html +168 -0
- data/doc/Comment.html +184 -0
- data/doc/Gemfile.html +157 -0
- data/doc/LICENSE.html +111 -0
- data/doc/Lolita.html +184 -0
- data/doc/Lolita/Configuration.html +178 -0
- data/doc/Lolita/Configuration/Report.html +837 -0
- data/doc/Lolita/Configuration/Reports.html +413 -0
- data/doc/LolitaReport.html +194 -0
- data/doc/LolitaReport/Configuration.html +250 -0
- data/doc/Post.html +183 -0
- data/doc/Rakefile.html +124 -0
- data/doc/author.html +111 -0
- data/doc/created.rid +15 -0
- data/doc/images/brick.png +0 -0
- data/doc/images/brick_link.png +0 -0
- data/doc/images/bug.png +0 -0
- data/doc/images/bullet_black.png +0 -0
- data/doc/images/bullet_toggle_minus.png +0 -0
- data/doc/images/bullet_toggle_plus.png +0 -0
- data/doc/images/date.png +0 -0
- data/doc/images/find.png +0 -0
- data/doc/images/loadingAnimation.gif +0 -0
- data/doc/images/macFFBgHack.png +0 -0
- data/doc/images/package.png +0 -0
- data/doc/images/page_green.png +0 -0
- data/doc/images/page_white_text.png +0 -0
- data/doc/images/page_white_width.png +0 -0
- data/doc/images/plugin.png +0 -0
- data/doc/images/ruby.png +0 -0
- data/doc/images/tag_green.png +0 -0
- data/doc/images/wrench.png +0 -0
- data/doc/images/wrench_orange.png +0 -0
- data/doc/images/zoom.png +0 -0
- data/doc/index.html +126 -0
- data/doc/js/darkfish.js +116 -0
- data/doc/js/jquery.js +32 -0
- data/doc/js/quicksearch.js +114 -0
- data/doc/js/thickbox-compressed.js +10 -0
- data/doc/lib/lolita-report/configuration/base_rb.html +61 -0
- data/doc/lib/lolita-report/configuration/report_rb.html +57 -0
- data/doc/lib/lolita-report/configuration/reports_rb.html +55 -0
- data/doc/lib/lolita-report/version_rb.html +52 -0
- data/doc/lib/lolita-report_rb.html +58 -0
- data/doc/rdoc.css +706 -0
- data/doc/spec/configuration/report_spec_rb.html +56 -0
- data/doc/spec/configuration/reports_spec_rb.html +56 -0
- data/doc/spec/factories/factories_rb.html +52 -0
- data/doc/spec/orm/mongoid_rb.html +56 -0
- data/doc/spec/spec_helper_rb.html +58 -0
- data/lib/lolita-report.rb +33 -0
- data/lib/lolita-report/configuration/base.rb +22 -0
- data/lib/lolita-report/configuration/report.rb +147 -0
- data/lib/lolita-report/configuration/reports.rb +42 -0
- data/lib/lolita-report/module.rb +1 -0
- data/lib/lolita-report/rails.rb +6 -0
- data/lib/lolita-report/routes.rb +15 -0
- data/lolita-report.gemspec +150 -0
- data/spec/configuration/report_spec.rb +87 -0
- data/spec/configuration/reports_spec.rb +40 -0
- data/spec/factories/factories.rb +7 -0
- data/spec/orm/mongoid.rb +27 -0
- data/spec/spec_helper.rb +38 -0
- metadata +259 -0
@@ -0,0 +1,42 @@
|
|
1
|
+
# Reports class object store Report class objects like an array
|
2
|
+
|
3
|
+
module Lolita
|
4
|
+
module Configuration
|
5
|
+
class Reports
|
6
|
+
#include Lolita::Builder
|
7
|
+
include Lolita::ObservedArray
|
8
|
+
|
9
|
+
def initialize dbi,*args,&block
|
10
|
+
@dbi=dbi
|
11
|
+
@reports=[]
|
12
|
+
self.instance_eval(&block) if block_given?
|
13
|
+
# self.set_attributes(*args)
|
14
|
+
end
|
15
|
+
|
16
|
+
# Add Lolita::Configuration::Report object to Lolita::Configuration::Reports object
|
17
|
+
def add *args,&block
|
18
|
+
report=Lolita::Configuration::Report.new(@dbi,*args,&block)
|
19
|
+
report.title=args[0]
|
20
|
+
self<<report
|
21
|
+
end
|
22
|
+
|
23
|
+
# Return all titles of all Lolita::Configuration::Report objetc, which contains Lolita::Configuration::Reports object
|
24
|
+
def titles
|
25
|
+
@reports.map(&:title)
|
26
|
+
end
|
27
|
+
|
28
|
+
def by_name(name)
|
29
|
+
@reports.detect{|report| report.name==name}
|
30
|
+
end
|
31
|
+
|
32
|
+
private
|
33
|
+
def collection_variable
|
34
|
+
@reports
|
35
|
+
end
|
36
|
+
def build_element(element,&block)
|
37
|
+
element
|
38
|
+
end
|
39
|
+
|
40
|
+
end
|
41
|
+
end
|
42
|
+
end
|
@@ -0,0 +1 @@
|
|
1
|
+
Lolita.add_module Lolita::Report, :nested=>true, :route=>:report
|
@@ -0,0 +1,15 @@
|
|
1
|
+
module ActionDispatch::Routing
|
2
|
+
class Mapper
|
3
|
+
protected
|
4
|
+
|
5
|
+
def lolita_report_route mapping, controllers
|
6
|
+
# /categories/report/by-user-comments
|
7
|
+
resources mapping.plural,:only=>[:none],:module=>mapping.module do
|
8
|
+
collection do
|
9
|
+
match "reports/:name", :to=>"#{controllers[:reports]}#show", :as=>"reports"
|
10
|
+
end
|
11
|
+
end
|
12
|
+
|
13
|
+
end
|
14
|
+
end
|
15
|
+
end
|
@@ -0,0 +1,150 @@
|
|
1
|
+
# Generated by jeweler
|
2
|
+
# DO NOT EDIT THIS FILE DIRECTLY
|
3
|
+
# Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
|
4
|
+
# -*- encoding: utf-8 -*-
|
5
|
+
|
6
|
+
Gem::Specification.new do |s|
|
7
|
+
s.name = %q{lolita-report}
|
8
|
+
s.version = "0.0.2"
|
9
|
+
|
10
|
+
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
|
+
s.authors = ["ITHouse (Latvia)", "Arturs Meisters", "Artjoms Tjangins"]
|
12
|
+
s.date = %q{2011-04-15}
|
13
|
+
s.description = %q{Enable configuration and generate HTML view for Lolita resources, and also has ability to export to different formats.}
|
14
|
+
s.email = %q{support@ithouse.lv}
|
15
|
+
s.extra_rdoc_files = [
|
16
|
+
"LICENSE.txt",
|
17
|
+
"README.rdoc"
|
18
|
+
]
|
19
|
+
s.files = [
|
20
|
+
".document",
|
21
|
+
"Gemfile",
|
22
|
+
"LICENSE.txt",
|
23
|
+
"README.rdoc",
|
24
|
+
"Rakefile",
|
25
|
+
"VERSION",
|
26
|
+
"app/controllers/lolita/reports_controller.rb",
|
27
|
+
"app/views/components/lolita/configuration/report/_display.html.erb",
|
28
|
+
"app/views/lolita/reports/show.html.erb",
|
29
|
+
"author",
|
30
|
+
"doc/ActiveSupport.html",
|
31
|
+
"doc/ActiveSupport/TestCase.html",
|
32
|
+
"doc/Comment.html",
|
33
|
+
"doc/Gemfile.html",
|
34
|
+
"doc/LICENSE.html",
|
35
|
+
"doc/Lolita.html",
|
36
|
+
"doc/Lolita/Configuration.html",
|
37
|
+
"doc/Lolita/Configuration/Report.html",
|
38
|
+
"doc/Lolita/Configuration/Reports.html",
|
39
|
+
"doc/LolitaReport.html",
|
40
|
+
"doc/LolitaReport/Configuration.html",
|
41
|
+
"doc/Post.html",
|
42
|
+
"doc/Rakefile.html",
|
43
|
+
"doc/author.html",
|
44
|
+
"doc/created.rid",
|
45
|
+
"doc/images/brick.png",
|
46
|
+
"doc/images/brick_link.png",
|
47
|
+
"doc/images/bug.png",
|
48
|
+
"doc/images/bullet_black.png",
|
49
|
+
"doc/images/bullet_toggle_minus.png",
|
50
|
+
"doc/images/bullet_toggle_plus.png",
|
51
|
+
"doc/images/date.png",
|
52
|
+
"doc/images/find.png",
|
53
|
+
"doc/images/loadingAnimation.gif",
|
54
|
+
"doc/images/macFFBgHack.png",
|
55
|
+
"doc/images/package.png",
|
56
|
+
"doc/images/page_green.png",
|
57
|
+
"doc/images/page_white_text.png",
|
58
|
+
"doc/images/page_white_width.png",
|
59
|
+
"doc/images/plugin.png",
|
60
|
+
"doc/images/ruby.png",
|
61
|
+
"doc/images/tag_green.png",
|
62
|
+
"doc/images/wrench.png",
|
63
|
+
"doc/images/wrench_orange.png",
|
64
|
+
"doc/images/zoom.png",
|
65
|
+
"doc/index.html",
|
66
|
+
"doc/js/darkfish.js",
|
67
|
+
"doc/js/jquery.js",
|
68
|
+
"doc/js/quicksearch.js",
|
69
|
+
"doc/js/thickbox-compressed.js",
|
70
|
+
"doc/lib/lolita-report/configuration/base_rb.html",
|
71
|
+
"doc/lib/lolita-report/configuration/report_rb.html",
|
72
|
+
"doc/lib/lolita-report/configuration/reports_rb.html",
|
73
|
+
"doc/lib/lolita-report/version_rb.html",
|
74
|
+
"doc/lib/lolita-report_rb.html",
|
75
|
+
"doc/rdoc.css",
|
76
|
+
"doc/spec/configuration/report_spec_rb.html",
|
77
|
+
"doc/spec/configuration/reports_spec_rb.html",
|
78
|
+
"doc/spec/factories/factories_rb.html",
|
79
|
+
"doc/spec/orm/mongoid_rb.html",
|
80
|
+
"doc/spec/spec_helper_rb.html",
|
81
|
+
"lib/lolita-report.rb",
|
82
|
+
"lib/lolita-report/configuration/base.rb",
|
83
|
+
"lib/lolita-report/configuration/report.rb",
|
84
|
+
"lib/lolita-report/configuration/reports.rb",
|
85
|
+
"lib/lolita-report/module.rb",
|
86
|
+
"lib/lolita-report/rails.rb",
|
87
|
+
"lib/lolita-report/routes.rb",
|
88
|
+
"lolita-report.gemspec",
|
89
|
+
"spec/configuration/report_spec.rb",
|
90
|
+
"spec/configuration/reports_spec.rb",
|
91
|
+
"spec/factories/factories.rb",
|
92
|
+
"spec/orm/mongoid.rb",
|
93
|
+
"spec/spec_helper.rb"
|
94
|
+
]
|
95
|
+
s.homepage = %q{http://github.com/ithouse/lolita-report}
|
96
|
+
s.licenses = ["MIT"]
|
97
|
+
s.require_paths = ["lib"]
|
98
|
+
s.rubygems_version = %q{1.6.1}
|
99
|
+
s.summary = %q{Report plugin for Lolita 3}
|
100
|
+
s.test_files = [
|
101
|
+
"spec/configuration/report_spec.rb",
|
102
|
+
"spec/configuration/reports_spec.rb",
|
103
|
+
"spec/factories/factories.rb",
|
104
|
+
"spec/orm/mongoid.rb",
|
105
|
+
"spec/spec_helper.rb"
|
106
|
+
]
|
107
|
+
|
108
|
+
if s.respond_to? :specification_version then
|
109
|
+
s.specification_version = 3
|
110
|
+
|
111
|
+
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
112
|
+
s.add_runtime_dependency(%q<abstract>, [">= 0"])
|
113
|
+
s.add_runtime_dependency(%q<ruport>, [">= 0"])
|
114
|
+
s.add_runtime_dependency(%q<lolita>, ["~> 3.1.0"])
|
115
|
+
s.add_runtime_dependency(%q<spreadsheet>, [">= 0"])
|
116
|
+
s.add_development_dependency(%q<factory_girl_rails>, [">= 0"])
|
117
|
+
s.add_development_dependency(%q<cover_me>, [">= 1.0.0.rc6"])
|
118
|
+
s.add_development_dependency(%q<mongoid>, ["~> 2.0.0.beta"])
|
119
|
+
s.add_development_dependency(%q<bson_ext>, [">= 1.0.9"])
|
120
|
+
s.add_development_dependency(%q<ruby-debug19>, [">= 0"])
|
121
|
+
s.add_development_dependency(%q<bundler>, ["~> 1.0.0"])
|
122
|
+
s.add_development_dependency(%q<jeweler>, ["~> 1.5.2"])
|
123
|
+
else
|
124
|
+
s.add_dependency(%q<abstract>, [">= 0"])
|
125
|
+
s.add_dependency(%q<ruport>, [">= 0"])
|
126
|
+
s.add_dependency(%q<lolita>, ["~> 3.1.0"])
|
127
|
+
s.add_dependency(%q<spreadsheet>, [">= 0"])
|
128
|
+
s.add_dependency(%q<factory_girl_rails>, [">= 0"])
|
129
|
+
s.add_dependency(%q<cover_me>, [">= 1.0.0.rc6"])
|
130
|
+
s.add_dependency(%q<mongoid>, ["~> 2.0.0.beta"])
|
131
|
+
s.add_dependency(%q<bson_ext>, [">= 1.0.9"])
|
132
|
+
s.add_dependency(%q<ruby-debug19>, [">= 0"])
|
133
|
+
s.add_dependency(%q<bundler>, ["~> 1.0.0"])
|
134
|
+
s.add_dependency(%q<jeweler>, ["~> 1.5.2"])
|
135
|
+
end
|
136
|
+
else
|
137
|
+
s.add_dependency(%q<abstract>, [">= 0"])
|
138
|
+
s.add_dependency(%q<ruport>, [">= 0"])
|
139
|
+
s.add_dependency(%q<lolita>, ["~> 3.1.0"])
|
140
|
+
s.add_dependency(%q<spreadsheet>, [">= 0"])
|
141
|
+
s.add_dependency(%q<factory_girl_rails>, [">= 0"])
|
142
|
+
s.add_dependency(%q<cover_me>, [">= 1.0.0.rc6"])
|
143
|
+
s.add_dependency(%q<mongoid>, ["~> 2.0.0.beta"])
|
144
|
+
s.add_dependency(%q<bson_ext>, [">= 1.0.9"])
|
145
|
+
s.add_dependency(%q<ruby-debug19>, [">= 0"])
|
146
|
+
s.add_dependency(%q<bundler>, ["~> 1.0.0"])
|
147
|
+
s.add_dependency(%q<jeweler>, ["~> 1.5.2"])
|
148
|
+
end
|
149
|
+
end
|
150
|
+
|
@@ -0,0 +1,87 @@
|
|
1
|
+
# To change this template, choose Tools | Templates
|
2
|
+
# and open the template in the editor.
|
3
|
+
|
4
|
+
require File.expand_path(File.dirname(__FILE__) + '/../spec_helper')
|
5
|
+
|
6
|
+
describe Lolita::Configuration::Report do
|
7
|
+
before(:each) do
|
8
|
+
@dbi=Lolita::DBI::Base.new(Post)
|
9
|
+
end
|
10
|
+
|
11
|
+
it "should create report" do
|
12
|
+
report=Lolita::Configuration::Report.new(@dbi,"new_report")
|
13
|
+
report.title.should == "new_report"
|
14
|
+
end
|
15
|
+
|
16
|
+
it "should create report when block given" do
|
17
|
+
report=Lolita::Configuration::Report.new(@dbi) do
|
18
|
+
title("new_report")
|
19
|
+
end
|
20
|
+
report.title.should == "new_report"
|
21
|
+
end
|
22
|
+
|
23
|
+
it "should create report with custom fields " do
|
24
|
+
report=Lolita::Configuration::Report.new(@dbi,"new_report") do
|
25
|
+
fields(:title,:content)
|
26
|
+
end
|
27
|
+
report.custom_fields.size.should==2
|
28
|
+
end
|
29
|
+
|
30
|
+
it "should create report with summon comments" do
|
31
|
+
report=Lolita::Configuration::Report.new(@dbi,"new_report") do
|
32
|
+
total(:comments)
|
33
|
+
end
|
34
|
+
report.total_columns.size.should==1
|
35
|
+
end
|
36
|
+
|
37
|
+
it "should generate report about post's comments count" do
|
38
|
+
post_1=Factory.create(:post,:title=>"pirma raksta virsraksts",:content=>"pirma raksta saturs")
|
39
|
+
post_2=Factory.create(:post,:title=>"otra raksta virsraksts",:content=>"otra raksta saturs")
|
40
|
+
post_3=Factory.create(:post,:title=>"tresa raksta virsraksts",:content=>"tresa raksta saturs")
|
41
|
+
comment_1=Factory.create(:comment)
|
42
|
+
comment_2=Factory.create(:comment)
|
43
|
+
comment_3=Factory.create(:comment)
|
44
|
+
post_1.comments<<comment_1
|
45
|
+
post_2.comments<<comment_2
|
46
|
+
post_2.comments<<comment_3
|
47
|
+
report=Lolita::Configuration::Report.new(@dbi) do
|
48
|
+
name("post's comments count")
|
49
|
+
fields(:title,:content)
|
50
|
+
total(:comments)
|
51
|
+
end
|
52
|
+
report.generate_table_for_report
|
53
|
+
|
54
|
+
post_1.destroy
|
55
|
+
post_2.destroy
|
56
|
+
post_3.destroy
|
57
|
+
comment_1.destroy
|
58
|
+
comment_2.destroy
|
59
|
+
comment_3.destroy
|
60
|
+
end
|
61
|
+
it "should export excel file for report" do
|
62
|
+
post_1=Factory.create(:post)
|
63
|
+
post_2=Factory.create(:post)
|
64
|
+
report=Lolita::Configuration::Report.new(@dbi) do
|
65
|
+
fields(:title,:content)
|
66
|
+
total(:comments)
|
67
|
+
end
|
68
|
+
report.generate_table_for_report
|
69
|
+
report.export_excel
|
70
|
+
post_1.destroy
|
71
|
+
post_2.destroy
|
72
|
+
# Reading generated Excel file
|
73
|
+
Spreadsheet.client_encoding = 'UTF-8'
|
74
|
+
book=Spreadsheet.open "test.xls"
|
75
|
+
sheet1 = book.worksheet 0
|
76
|
+
table_head=sheet1.row(0)
|
77
|
+
table_head[0].should == "title"
|
78
|
+
table_head[1].should == "content"
|
79
|
+
table_head[2].should == "comments_total"
|
80
|
+
data=sheet1.row(1)
|
81
|
+
data[0].nil?.should == false
|
82
|
+
data[1].nil?.should == false
|
83
|
+
data[2].nil?.should == false
|
84
|
+
data[3].nil?.should == true
|
85
|
+
end
|
86
|
+
end
|
87
|
+
|
@@ -0,0 +1,40 @@
|
|
1
|
+
# To change this template, choose Tools | Templates
|
2
|
+
# and open the template in the editor.
|
3
|
+
|
4
|
+
require File.expand_path(File.dirname(__FILE__) + '/../spec_helper')
|
5
|
+
|
6
|
+
describe Lolita::Configuration::Reports do
|
7
|
+
before(:each) do
|
8
|
+
@dbi=Lolita::DBI::Base.new(Post)
|
9
|
+
end
|
10
|
+
|
11
|
+
it "should create new reports container" do
|
12
|
+
reports=Lolita::Configuration::Reports.new(@dbi)
|
13
|
+
reports.size.should == 0
|
14
|
+
end
|
15
|
+
it "should create new container when block given" do
|
16
|
+
reports=Lolita::Configuration::Reports.new(@dbi){}
|
17
|
+
reports.size.should == 0
|
18
|
+
end
|
19
|
+
it "should add new report" do
|
20
|
+
reports=Lolita::Configuration::Reports.new(@dbi)do
|
21
|
+
add("new report")
|
22
|
+
end
|
23
|
+
reports.first.title.should == "new report"
|
24
|
+
end
|
25
|
+
it "should add reports" do
|
26
|
+
reports=Lolita::Configuration::Reports.new(@dbi)
|
27
|
+
reports.add("report_1")
|
28
|
+
reports<<"report_2"
|
29
|
+
reports<<Lolita::Configuration::Report.new(@dbi,"report_3")
|
30
|
+
reports.size.should == 3
|
31
|
+
end
|
32
|
+
it "should return titles for all reports" do
|
33
|
+
reports=Lolita::Configuration::Reports.new(@dbi) do
|
34
|
+
add("new_report")
|
35
|
+
end
|
36
|
+
reports.titles.size.should == 1
|
37
|
+
reports.titles.first.should == "new_report"
|
38
|
+
end
|
39
|
+
end
|
40
|
+
|
data/spec/orm/mongoid.rb
ADDED
@@ -0,0 +1,27 @@
|
|
1
|
+
require 'mongoid'
|
2
|
+
require 'ruport'
|
3
|
+
Mongoid.configure do |config|
|
4
|
+
config.master = Mongo::Connection.new('127.0.0.1', 27017).db("lolita-report-test")
|
5
|
+
end
|
6
|
+
|
7
|
+
#
|
8
|
+
# Class Post is necessary for testin Lolita-report gem. Class Post is using Mongo DB
|
9
|
+
class Post
|
10
|
+
include Mongoid::Document
|
11
|
+
references_many :comments
|
12
|
+
field :title
|
13
|
+
field :content
|
14
|
+
end
|
15
|
+
|
16
|
+
# Class Comment is necessary for testin Lolita-report gem. Class Comment is using Mongo DB
|
17
|
+
class Comment
|
18
|
+
include Mongoid::Document
|
19
|
+
referenced_in :post
|
20
|
+
field :content
|
21
|
+
end
|
22
|
+
|
23
|
+
class ActiveSupport::TestCase
|
24
|
+
setup do
|
25
|
+
Post.delete_all
|
26
|
+
end
|
27
|
+
end
|
data/spec/spec_helper.rb
ADDED
@@ -0,0 +1,38 @@
|
|
1
|
+
require 'cover_me'
|
2
|
+
require 'rubygems'
|
3
|
+
require 'abstract'
|
4
|
+
require 'factory_girl_rails'
|
5
|
+
require File.dirname(__FILE__) + "/factories/factories"
|
6
|
+
LOLITA_ORM=:mongoid
|
7
|
+
require "orm/#{LOLITA_ORM}"
|
8
|
+
require File.expand_path(File.dirname(__FILE__) + '/../lib/lolita-report')
|
9
|
+
|
10
|
+
RSpec.configure do |config|
|
11
|
+
# config.mock_with :mocha
|
12
|
+
# config.mock_with :flexmock
|
13
|
+
# config.mock_with :rr
|
14
|
+
config.mock_with :rspec
|
15
|
+
if LOLITA_ORM==:active_record
|
16
|
+
#config.fixture_path = "#{::Rails.root}/spec/fixtures"
|
17
|
+
config.use_transactional_fixtures = true
|
18
|
+
end
|
19
|
+
end
|
20
|
+
CoverMe.config do |c|
|
21
|
+
# where is your project's root:
|
22
|
+
# debugger
|
23
|
+
puts "Project root=>"+c.project.root= File.expand_path('../../',__FILE__)
|
24
|
+
|
25
|
+
# what files are you interested in coverage for:
|
26
|
+
c.file_pattern # => /(#{CoverMe.config.project.root}\/app\/.+\.rb|#{CoverMe.config.project.root}\/lib\/.+\.rb)/i (default)
|
27
|
+
|
28
|
+
# where do you want the HTML generated:
|
29
|
+
c.html_formatter.output_path # => File.join(CoverMe.config.project.root, 'coverage') (default)
|
30
|
+
|
31
|
+
# what do you want to happen when it finishes:
|
32
|
+
|
33
|
+
end
|
34
|
+
|
35
|
+
|
36
|
+
CoverMe.complete!
|
37
|
+
|
38
|
+
|
metadata
ADDED
@@ -0,0 +1,259 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: lolita-report
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
prerelease:
|
5
|
+
version: 0.0.2
|
6
|
+
platform: ruby
|
7
|
+
authors:
|
8
|
+
- ITHouse (Latvia)
|
9
|
+
- Arturs Meisters
|
10
|
+
- Artjoms Tjangins
|
11
|
+
autorequire:
|
12
|
+
bindir: bin
|
13
|
+
cert_chain: []
|
14
|
+
|
15
|
+
date: 2011-04-15 00:00:00 +03:00
|
16
|
+
default_executable:
|
17
|
+
dependencies:
|
18
|
+
- !ruby/object:Gem::Dependency
|
19
|
+
name: abstract
|
20
|
+
requirement: &id001 !ruby/object:Gem::Requirement
|
21
|
+
none: false
|
22
|
+
requirements:
|
23
|
+
- - ">="
|
24
|
+
- !ruby/object:Gem::Version
|
25
|
+
version: "0"
|
26
|
+
type: :runtime
|
27
|
+
prerelease: false
|
28
|
+
version_requirements: *id001
|
29
|
+
- !ruby/object:Gem::Dependency
|
30
|
+
name: ruport
|
31
|
+
requirement: &id002 !ruby/object:Gem::Requirement
|
32
|
+
none: false
|
33
|
+
requirements:
|
34
|
+
- - ">="
|
35
|
+
- !ruby/object:Gem::Version
|
36
|
+
version: "0"
|
37
|
+
type: :runtime
|
38
|
+
prerelease: false
|
39
|
+
version_requirements: *id002
|
40
|
+
- !ruby/object:Gem::Dependency
|
41
|
+
name: lolita
|
42
|
+
requirement: &id003 !ruby/object:Gem::Requirement
|
43
|
+
none: false
|
44
|
+
requirements:
|
45
|
+
- - ~>
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: 3.1.0
|
48
|
+
type: :runtime
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: *id003
|
51
|
+
- !ruby/object:Gem::Dependency
|
52
|
+
name: spreadsheet
|
53
|
+
requirement: &id004 !ruby/object:Gem::Requirement
|
54
|
+
none: false
|
55
|
+
requirements:
|
56
|
+
- - ">="
|
57
|
+
- !ruby/object:Gem::Version
|
58
|
+
version: "0"
|
59
|
+
type: :runtime
|
60
|
+
prerelease: false
|
61
|
+
version_requirements: *id004
|
62
|
+
- !ruby/object:Gem::Dependency
|
63
|
+
name: factory_girl_rails
|
64
|
+
requirement: &id005 !ruby/object:Gem::Requirement
|
65
|
+
none: false
|
66
|
+
requirements:
|
67
|
+
- - ">="
|
68
|
+
- !ruby/object:Gem::Version
|
69
|
+
version: "0"
|
70
|
+
type: :development
|
71
|
+
prerelease: false
|
72
|
+
version_requirements: *id005
|
73
|
+
- !ruby/object:Gem::Dependency
|
74
|
+
name: cover_me
|
75
|
+
requirement: &id006 !ruby/object:Gem::Requirement
|
76
|
+
none: false
|
77
|
+
requirements:
|
78
|
+
- - ">="
|
79
|
+
- !ruby/object:Gem::Version
|
80
|
+
version: 1.0.0.rc6
|
81
|
+
type: :development
|
82
|
+
prerelease: false
|
83
|
+
version_requirements: *id006
|
84
|
+
- !ruby/object:Gem::Dependency
|
85
|
+
name: mongoid
|
86
|
+
requirement: &id007 !ruby/object:Gem::Requirement
|
87
|
+
none: false
|
88
|
+
requirements:
|
89
|
+
- - ~>
|
90
|
+
- !ruby/object:Gem::Version
|
91
|
+
version: 2.0.0.beta
|
92
|
+
type: :development
|
93
|
+
prerelease: false
|
94
|
+
version_requirements: *id007
|
95
|
+
- !ruby/object:Gem::Dependency
|
96
|
+
name: bson_ext
|
97
|
+
requirement: &id008 !ruby/object:Gem::Requirement
|
98
|
+
none: false
|
99
|
+
requirements:
|
100
|
+
- - ">="
|
101
|
+
- !ruby/object:Gem::Version
|
102
|
+
version: 1.0.9
|
103
|
+
type: :development
|
104
|
+
prerelease: false
|
105
|
+
version_requirements: *id008
|
106
|
+
- !ruby/object:Gem::Dependency
|
107
|
+
name: ruby-debug19
|
108
|
+
requirement: &id009 !ruby/object:Gem::Requirement
|
109
|
+
none: false
|
110
|
+
requirements:
|
111
|
+
- - ">="
|
112
|
+
- !ruby/object:Gem::Version
|
113
|
+
version: "0"
|
114
|
+
type: :development
|
115
|
+
prerelease: false
|
116
|
+
version_requirements: *id009
|
117
|
+
- !ruby/object:Gem::Dependency
|
118
|
+
name: bundler
|
119
|
+
requirement: &id010 !ruby/object:Gem::Requirement
|
120
|
+
none: false
|
121
|
+
requirements:
|
122
|
+
- - ~>
|
123
|
+
- !ruby/object:Gem::Version
|
124
|
+
version: 1.0.0
|
125
|
+
type: :development
|
126
|
+
prerelease: false
|
127
|
+
version_requirements: *id010
|
128
|
+
- !ruby/object:Gem::Dependency
|
129
|
+
name: jeweler
|
130
|
+
requirement: &id011 !ruby/object:Gem::Requirement
|
131
|
+
none: false
|
132
|
+
requirements:
|
133
|
+
- - ~>
|
134
|
+
- !ruby/object:Gem::Version
|
135
|
+
version: 1.5.2
|
136
|
+
type: :development
|
137
|
+
prerelease: false
|
138
|
+
version_requirements: *id011
|
139
|
+
description: Enable configuration and generate HTML view for Lolita resources, and also has ability to export to different formats.
|
140
|
+
email: support@ithouse.lv
|
141
|
+
executables: []
|
142
|
+
|
143
|
+
extensions: []
|
144
|
+
|
145
|
+
extra_rdoc_files:
|
146
|
+
- LICENSE.txt
|
147
|
+
- README.rdoc
|
148
|
+
files:
|
149
|
+
- .document
|
150
|
+
- Gemfile
|
151
|
+
- LICENSE.txt
|
152
|
+
- README.rdoc
|
153
|
+
- Rakefile
|
154
|
+
- VERSION
|
155
|
+
- app/controllers/lolita/reports_controller.rb
|
156
|
+
- app/views/components/lolita/configuration/report/_display.html.erb
|
157
|
+
- app/views/lolita/reports/show.html.erb
|
158
|
+
- author
|
159
|
+
- doc/ActiveSupport.html
|
160
|
+
- doc/ActiveSupport/TestCase.html
|
161
|
+
- doc/Comment.html
|
162
|
+
- doc/Gemfile.html
|
163
|
+
- doc/LICENSE.html
|
164
|
+
- doc/Lolita.html
|
165
|
+
- doc/Lolita/Configuration.html
|
166
|
+
- doc/Lolita/Configuration/Report.html
|
167
|
+
- doc/Lolita/Configuration/Reports.html
|
168
|
+
- doc/LolitaReport.html
|
169
|
+
- doc/LolitaReport/Configuration.html
|
170
|
+
- doc/Post.html
|
171
|
+
- doc/Rakefile.html
|
172
|
+
- doc/author.html
|
173
|
+
- doc/created.rid
|
174
|
+
- doc/images/brick.png
|
175
|
+
- doc/images/brick_link.png
|
176
|
+
- doc/images/bug.png
|
177
|
+
- doc/images/bullet_black.png
|
178
|
+
- doc/images/bullet_toggle_minus.png
|
179
|
+
- doc/images/bullet_toggle_plus.png
|
180
|
+
- doc/images/date.png
|
181
|
+
- doc/images/find.png
|
182
|
+
- doc/images/loadingAnimation.gif
|
183
|
+
- doc/images/macFFBgHack.png
|
184
|
+
- doc/images/package.png
|
185
|
+
- doc/images/page_green.png
|
186
|
+
- doc/images/page_white_text.png
|
187
|
+
- doc/images/page_white_width.png
|
188
|
+
- doc/images/plugin.png
|
189
|
+
- doc/images/ruby.png
|
190
|
+
- doc/images/tag_green.png
|
191
|
+
- doc/images/wrench.png
|
192
|
+
- doc/images/wrench_orange.png
|
193
|
+
- doc/images/zoom.png
|
194
|
+
- doc/index.html
|
195
|
+
- doc/js/darkfish.js
|
196
|
+
- doc/js/jquery.js
|
197
|
+
- doc/js/quicksearch.js
|
198
|
+
- doc/js/thickbox-compressed.js
|
199
|
+
- doc/lib/lolita-report/configuration/base_rb.html
|
200
|
+
- doc/lib/lolita-report/configuration/report_rb.html
|
201
|
+
- doc/lib/lolita-report/configuration/reports_rb.html
|
202
|
+
- doc/lib/lolita-report/version_rb.html
|
203
|
+
- doc/lib/lolita-report_rb.html
|
204
|
+
- doc/rdoc.css
|
205
|
+
- doc/spec/configuration/report_spec_rb.html
|
206
|
+
- doc/spec/configuration/reports_spec_rb.html
|
207
|
+
- doc/spec/factories/factories_rb.html
|
208
|
+
- doc/spec/orm/mongoid_rb.html
|
209
|
+
- doc/spec/spec_helper_rb.html
|
210
|
+
- lib/lolita-report.rb
|
211
|
+
- lib/lolita-report/configuration/base.rb
|
212
|
+
- lib/lolita-report/configuration/report.rb
|
213
|
+
- lib/lolita-report/configuration/reports.rb
|
214
|
+
- lib/lolita-report/module.rb
|
215
|
+
- lib/lolita-report/rails.rb
|
216
|
+
- lib/lolita-report/routes.rb
|
217
|
+
- lolita-report.gemspec
|
218
|
+
- spec/configuration/report_spec.rb
|
219
|
+
- spec/configuration/reports_spec.rb
|
220
|
+
- spec/factories/factories.rb
|
221
|
+
- spec/orm/mongoid.rb
|
222
|
+
- spec/spec_helper.rb
|
223
|
+
has_rdoc: true
|
224
|
+
homepage: http://github.com/ithouse/lolita-report
|
225
|
+
licenses:
|
226
|
+
- MIT
|
227
|
+
post_install_message:
|
228
|
+
rdoc_options: []
|
229
|
+
|
230
|
+
require_paths:
|
231
|
+
- lib
|
232
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
233
|
+
none: false
|
234
|
+
requirements:
|
235
|
+
- - ">="
|
236
|
+
- !ruby/object:Gem::Version
|
237
|
+
hash: -493738605
|
238
|
+
segments:
|
239
|
+
- 0
|
240
|
+
version: "0"
|
241
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
242
|
+
none: false
|
243
|
+
requirements:
|
244
|
+
- - ">="
|
245
|
+
- !ruby/object:Gem::Version
|
246
|
+
version: "0"
|
247
|
+
requirements: []
|
248
|
+
|
249
|
+
rubyforge_project:
|
250
|
+
rubygems_version: 1.6.1
|
251
|
+
signing_key:
|
252
|
+
specification_version: 3
|
253
|
+
summary: Report plugin for Lolita 3
|
254
|
+
test_files:
|
255
|
+
- spec/configuration/report_spec.rb
|
256
|
+
- spec/configuration/reports_spec.rb
|
257
|
+
- spec/factories/factories.rb
|
258
|
+
- spec/orm/mongoid.rb
|
259
|
+
- spec/spec_helper.rb
|