query_report 0.1.2 → 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- data/{LICENSE.txt → MIT-LICENSE} +2 -4
- data/README.md +32 -53
- data/Rakefile +50 -0
- data/app/helpers/query_report_filter_helper.rb +22 -0
- data/app/helpers/query_report_helper.rb +31 -0
- data/app/views/query_report/_charts.html.erb +10 -0
- data/app/views/query_report/_search.html.erb +8 -0
- data/app/views/query_report/list.html.erb +19 -38
- data/config/locales/query_report.yml +7 -0
- data/config/routes.rb +2 -0
- data/db/schema.rb +34 -0
- data/lib/query_report.rb +22 -15
- data/lib/query_report/chart/chart_base.rb +60 -0
- data/lib/query_report/chart/chart_column.rb +12 -0
- data/lib/query_report/chart/column_chart.rb +40 -0
- data/lib/query_report/chart/pie_chart.rb +22 -25
- data/lib/query_report/chart/themes.rb +18 -114
- data/lib/query_report/column.rb +29 -18
- data/lib/query_report/config.rb +6 -0
- data/lib/query_report/engine.rb +4 -0
- data/lib/query_report/errors.rb +4 -0
- data/lib/query_report/filter.rb +110 -31
- data/lib/query_report/helper.rb +19 -3
- data/lib/query_report/paginate.rb +13 -0
- data/lib/query_report/record.rb +46 -0
- data/lib/query_report/report.rb +19 -102
- data/lib/query_report/report_pdf.rb +68 -84
- data/lib/query_report/version.rb +1 -1
- data/lib/tasks/query_report_tasks.rake +4 -0
- data/test/dummy/README.rdoc +261 -0
- data/test/dummy/Rakefile +7 -0
- data/test/dummy/app/assets/javascripts/application.js +15 -0
- data/test/dummy/app/assets/javascripts/invoices.js +2 -0
- data/test/dummy/app/assets/javascripts/users.js +2 -0
- data/test/dummy/app/assets/stylesheets/application.css +13 -0
- data/test/dummy/app/assets/stylesheets/invoices.css +4 -0
- data/test/dummy/app/assets/stylesheets/scaffold.css +56 -0
- data/test/dummy/app/assets/stylesheets/users.css +4 -0
- data/test/dummy/app/controllers/application_controller.rb +3 -0
- data/test/dummy/app/controllers/invoices_controller.rb +114 -0
- data/test/dummy/app/controllers/users_controller.rb +91 -0
- data/test/dummy/app/helpers/application_helper.rb +2 -0
- data/test/dummy/app/helpers/invoices_helper.rb +2 -0
- data/test/dummy/app/helpers/users_helper.rb +2 -0
- data/test/dummy/app/models/invoice.rb +3 -0
- data/test/dummy/app/models/pdf_report_template.rb +24 -0
- data/test/dummy/app/models/user.rb +3 -0
- data/test/dummy/app/views/invoices/_form.html.erb +33 -0
- data/test/dummy/app/views/invoices/edit.html.erb +6 -0
- data/test/dummy/app/views/invoices/index.html.erb +29 -0
- data/test/dummy/app/views/invoices/new.html.erb +5 -0
- data/test/dummy/app/views/invoices/show.html.erb +25 -0
- data/test/dummy/app/views/layouts/application.html.erb +14 -0
- data/test/dummy/app/views/users/_form.html.erb +33 -0
- data/test/dummy/app/views/users/edit.html.erb +6 -0
- data/test/dummy/app/views/users/index.html.erb +29 -0
- data/test/dummy/app/views/users/new.html.erb +5 -0
- data/test/dummy/app/views/users/show.html.erb +25 -0
- data/test/dummy/config.ru +4 -0
- data/test/dummy/config/application.rb +60 -0
- data/test/dummy/config/boot.rb +10 -0
- data/test/dummy/config/database.yml +25 -0
- data/test/dummy/config/environment.rb +5 -0
- data/test/dummy/config/environments/development.rb +37 -0
- data/test/dummy/config/environments/production.rb +67 -0
- data/test/dummy/config/environments/test.rb +37 -0
- data/test/dummy/config/initializers/backtrace_silencers.rb +7 -0
- data/test/dummy/config/initializers/inflections.rb +15 -0
- data/test/dummy/config/initializers/mime_types.rb +5 -0
- data/test/dummy/config/initializers/query_report.rb +3 -0
- data/test/dummy/config/initializers/secret_token.rb +7 -0
- data/test/dummy/config/initializers/session_store.rb +8 -0
- data/test/dummy/config/initializers/wrap_parameters.rb +14 -0
- data/test/dummy/config/locales/en.yml +10 -0
- data/test/dummy/config/routes.rb +64 -0
- data/test/dummy/db/development.sqlite3 +0 -0
- data/test/dummy/db/migrate/20130622120853_create_users.rb +12 -0
- data/test/dummy/db/migrate/20130630132513_create_invoices.rb +12 -0
- data/test/dummy/db/schema.rb +34 -0
- data/test/dummy/db/seed.rb +4 -0
- data/test/dummy/db/test.sqlite3 +0 -0
- data/test/dummy/log/development.log +30613 -0
- data/test/dummy/log/test.log +28 -0
- data/test/dummy/public/404.html +26 -0
- data/test/dummy/public/422.html +26 -0
- data/test/dummy/public/500.html +25 -0
- data/test/dummy/public/favicon.ico +0 -0
- data/test/dummy/script/rails +6 -0
- data/test/dummy/test/fixtures/invoices.yml +13 -0
- data/test/dummy/test/functional/invoices_controller_test.rb +49 -0
- data/test/dummy/test/unit/helpers/invoices_helper_test.rb +4 -0
- data/test/dummy/test/unit/invoice_test.rb +7 -0
- data/test/dummy/tmp/cache/assets/C8C/B80/sprockets%2F371bf96e99717688ed7313a0c53f4212 +0 -0
- data/test/dummy/tmp/cache/assets/CA9/F20/sprockets%2F00ff4f84806dd8834ab35f800a082640 +0 -0
- data/test/dummy/tmp/cache/assets/CAA/620/sprockets%2F87b209c0c9da28094a8d5581a21262c6 +0 -0
- data/test/dummy/tmp/cache/assets/CB5/B70/sprockets%2Fa769d915e72b1c8c0614793b54d02c86 +0 -0
- data/test/dummy/tmp/cache/assets/CD8/370/sprockets%2F357970feca3ac29060c1e3861e2c0953 +0 -0
- data/test/dummy/tmp/cache/assets/CD8/B70/sprockets%2F4050a4e5062ab95c9f32e9b6940821ea +0 -0
- data/test/dummy/tmp/cache/assets/CF0/1D0/sprockets%2F6fc757c2c8329244ca95d6909865bbc2 +0 -0
- data/test/dummy/tmp/cache/assets/D32/A10/sprockets%2F13fe41fee1fe35b49d145bcc06610705 +0 -0
- data/test/dummy/tmp/cache/assets/D46/650/sprockets%2Ff56253b5f374fff1a33fbbc9881c9124 +0 -0
- data/test/dummy/tmp/cache/assets/D4E/1B0/sprockets%2Ff7cbd26ba1d28d48de824f0e94586655 +0 -0
- data/test/dummy/tmp/cache/assets/D54/B90/sprockets%2F90719d7bdca76469cd487928f710decb +0 -0
- data/test/dummy/tmp/cache/assets/D5A/EA0/sprockets%2Fd771ace226fc8215a3572e0aa35bb0d6 +0 -0
- data/test/dummy/tmp/cache/assets/D67/B60/sprockets%2F5f1a0d05e77ca8b9a1fc2a47e17a8174 +0 -0
- data/test/dummy/tmp/cache/assets/D7C/990/sprockets%2F302f7d851fcdb17936f8096bfb967cab +0 -0
- data/test/dummy/tmp/cache/assets/D7F/AF0/sprockets%2Fa7deca9af827ab462635389b96c7da39 +0 -0
- data/test/dummy/tmp/cache/assets/DA3/AC0/sprockets%2F797d3e5f21daaf5c046cc6ec4830e95b +0 -0
- data/test/dummy/tmp/cache/assets/DDC/400/sprockets%2Fcffd775d018f68ce5dba1ee0d951a994 +0 -0
- data/test/dummy/tmp/cache/assets/DFC/6F0/sprockets%2F2c45c36e4d7c7bfaeb826eeba29a09d2 +0 -0
- data/test/dummy/tmp/cache/assets/E04/890/sprockets%2F2f5173deea6c795b8fdde723bb4b63af +0 -0
- data/test/dummy/tmp/cache/assets/E0E/8A0/sprockets%2Fbecd48a9cf2ece858e433d7dcf0554f6 +0 -0
- data/test/dummy/tmp/miniprofiler/mp_timers_5awpjfhldzcfjkeiia3p +0 -0
- data/test/dummy/tmp/miniprofiler/mp_timers_a7ev5lal7xp2xzjj2n9p +0 -0
- data/test/dummy/tmp/miniprofiler/mp_timers_c5lzifpf785aic4t3cm8 +0 -0
- data/test/dummy/tmp/miniprofiler/mp_timers_etmdhvrbbmdadc7oyw8q +0 -0
- data/test/dummy/tmp/miniprofiler/mp_timers_m0kxxiow6jlfcjulu02t +0 -0
- data/test/dummy/tmp/miniprofiler/mp_timers_m2ow1xy7c6tw0f4fj2co +0 -0
- data/test/dummy/tmp/miniprofiler/mp_timers_mitzsa7y0lvka04il6an +0 -0
- data/test/dummy/tmp/miniprofiler/mp_timers_ujpdek4jfp8flbqp7fi3 +0 -0
- data/test/dummy/tmp/miniprofiler/mp_timers_wbiyljqrnox89js4m0at +0 -0
- data/test/dummy/tmp/miniprofiler/mp_views_127.0.0.1 +1 -0
- data/test/test_helper.rb +15 -0
- metadata +380 -24
- data/.gitignore +0 -18
- data/Gemfile +0 -10
- data/README.rdoc +0 -3
- data/app/views/query_report/_custom_filters.html.erb +0 -7
- data/lib/query_report/chart/basic_chart.rb +0 -41
- data/lib/query_report/chart/custom_chart.rb +0 -55
- data/lib/query_report/row.rb +0 -11
- data/query_report.gemspec +0 -31
@@ -0,0 +1,28 @@
|
|
1
|
+
Connecting to database specified by database.yml
|
2
|
+
Connecting to database specified by database.yml
|
3
|
+
Connecting to database specified by database.yml
|
4
|
+
Connecting to database specified by database.yml
|
5
|
+
Connecting to database specified by database.yml
|
6
|
+
Connecting to database specified by database.yml
|
7
|
+
Connecting to database specified by database.yml
|
8
|
+
Connecting to database specified by database.yml
|
9
|
+
Connecting to database specified by database.yml
|
10
|
+
Connecting to database specified by database.yml
|
11
|
+
Connecting to database specified by database.yml
|
12
|
+
Connecting to database specified by database.yml
|
13
|
+
Connecting to database specified by database.yml
|
14
|
+
Connecting to database specified by database.yml
|
15
|
+
Connecting to database specified by database.yml
|
16
|
+
Connecting to database specified by database.yml
|
17
|
+
Connecting to database specified by database.yml
|
18
|
+
Connecting to database specified by database.yml
|
19
|
+
Connecting to database specified by database.yml
|
20
|
+
Connecting to database specified by database.yml
|
21
|
+
Connecting to database specified by database.yml
|
22
|
+
Connecting to database specified by database.yml
|
23
|
+
Connecting to database specified by database.yml
|
24
|
+
Connecting to database specified by database.yml
|
25
|
+
Connecting to database specified by database.yml
|
26
|
+
Connecting to database specified by database.yml
|
27
|
+
Connecting to database specified by database.yml
|
28
|
+
Connecting to database specified by database.yml
|
@@ -0,0 +1,26 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<title>The page you were looking for doesn't exist (404)</title>
|
5
|
+
<style type="text/css">
|
6
|
+
body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; }
|
7
|
+
div.dialog {
|
8
|
+
width: 25em;
|
9
|
+
padding: 0 4em;
|
10
|
+
margin: 4em auto 0 auto;
|
11
|
+
border: 1px solid #ccc;
|
12
|
+
border-right-color: #999;
|
13
|
+
border-bottom-color: #999;
|
14
|
+
}
|
15
|
+
h1 { font-size: 100%; color: #f00; line-height: 1.5em; }
|
16
|
+
</style>
|
17
|
+
</head>
|
18
|
+
|
19
|
+
<body>
|
20
|
+
<!-- This file lives in public/404.html -->
|
21
|
+
<div class="dialog">
|
22
|
+
<h1>The page you were looking for doesn't exist.</h1>
|
23
|
+
<p>You may have mistyped the address or the page may have moved.</p>
|
24
|
+
</div>
|
25
|
+
</body>
|
26
|
+
</html>
|
@@ -0,0 +1,26 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<title>The change you wanted was rejected (422)</title>
|
5
|
+
<style type="text/css">
|
6
|
+
body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; }
|
7
|
+
div.dialog {
|
8
|
+
width: 25em;
|
9
|
+
padding: 0 4em;
|
10
|
+
margin: 4em auto 0 auto;
|
11
|
+
border: 1px solid #ccc;
|
12
|
+
border-right-color: #999;
|
13
|
+
border-bottom-color: #999;
|
14
|
+
}
|
15
|
+
h1 { font-size: 100%; color: #f00; line-height: 1.5em; }
|
16
|
+
</style>
|
17
|
+
</head>
|
18
|
+
|
19
|
+
<body>
|
20
|
+
<!-- This file lives in public/422.html -->
|
21
|
+
<div class="dialog">
|
22
|
+
<h1>The change you wanted was rejected.</h1>
|
23
|
+
<p>Maybe you tried to change something you didn't have access to.</p>
|
24
|
+
</div>
|
25
|
+
</body>
|
26
|
+
</html>
|
@@ -0,0 +1,25 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<title>We're sorry, but something went wrong (500)</title>
|
5
|
+
<style type="text/css">
|
6
|
+
body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; }
|
7
|
+
div.dialog {
|
8
|
+
width: 25em;
|
9
|
+
padding: 0 4em;
|
10
|
+
margin: 4em auto 0 auto;
|
11
|
+
border: 1px solid #ccc;
|
12
|
+
border-right-color: #999;
|
13
|
+
border-bottom-color: #999;
|
14
|
+
}
|
15
|
+
h1 { font-size: 100%; color: #f00; line-height: 1.5em; }
|
16
|
+
</style>
|
17
|
+
</head>
|
18
|
+
|
19
|
+
<body>
|
20
|
+
<!-- This file lives in public/500.html -->
|
21
|
+
<div class="dialog">
|
22
|
+
<h1>We're sorry, but something went wrong.</h1>
|
23
|
+
</div>
|
24
|
+
</body>
|
25
|
+
</html>
|
File without changes
|
@@ -0,0 +1,6 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
# This command will automatically be run when you run "rails" with Rails 3 gems installed from the root of your application.
|
3
|
+
|
4
|
+
APP_PATH = File.expand_path('../../config/application', __FILE__)
|
5
|
+
require File.expand_path('../../config/boot', __FILE__)
|
6
|
+
require 'rails/commands'
|
@@ -0,0 +1,49 @@
|
|
1
|
+
require 'test_helper'
|
2
|
+
|
3
|
+
class InvoicesControllerTest < ActionController::TestCase
|
4
|
+
setup do
|
5
|
+
@invoice = invoices(:one)
|
6
|
+
end
|
7
|
+
|
8
|
+
test "should get index" do
|
9
|
+
get :index
|
10
|
+
assert_response :success
|
11
|
+
assert_not_nil assigns(:invoices)
|
12
|
+
end
|
13
|
+
|
14
|
+
test "should get new" do
|
15
|
+
get :new
|
16
|
+
assert_response :success
|
17
|
+
end
|
18
|
+
|
19
|
+
test "should create invoice" do
|
20
|
+
assert_difference('Invoice.count') do
|
21
|
+
post :create, invoice: { paid: @invoice.paid, title: @invoice.title, total_charged: @invoice.total_charged, total_paid: @invoice.total_paid }
|
22
|
+
end
|
23
|
+
|
24
|
+
assert_redirected_to invoice_path(assigns(:invoice))
|
25
|
+
end
|
26
|
+
|
27
|
+
test "should show invoice" do
|
28
|
+
get :show, id: @invoice
|
29
|
+
assert_response :success
|
30
|
+
end
|
31
|
+
|
32
|
+
test "should get edit" do
|
33
|
+
get :edit, id: @invoice
|
34
|
+
assert_response :success
|
35
|
+
end
|
36
|
+
|
37
|
+
test "should update invoice" do
|
38
|
+
put :update, id: @invoice, invoice: { paid: @invoice.paid, title: @invoice.title, total_charged: @invoice.total_charged, total_paid: @invoice.total_paid }
|
39
|
+
assert_redirected_to invoice_path(assigns(:invoice))
|
40
|
+
end
|
41
|
+
|
42
|
+
test "should destroy invoice" do
|
43
|
+
assert_difference('Invoice.count', -1) do
|
44
|
+
delete :destroy, id: @invoice
|
45
|
+
end
|
46
|
+
|
47
|
+
assert_redirected_to invoices_path
|
48
|
+
end
|
49
|
+
end
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
@@ -0,0 +1 @@
|
|
1
|
+
[I"wbiyljqrnox89js4m0at:EF
|
data/test/test_helper.rb
ADDED
@@ -0,0 +1,15 @@
|
|
1
|
+
# Configure Rails Environment
|
2
|
+
ENV["RAILS_ENV"] = "test"
|
3
|
+
|
4
|
+
require File.expand_path("../dummy/config/environment.rb", __FILE__)
|
5
|
+
require "rails/test_help"
|
6
|
+
|
7
|
+
Rails.backtrace_cleaner.remove_silencers!
|
8
|
+
|
9
|
+
# Load support files
|
10
|
+
Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each { |f| require f }
|
11
|
+
|
12
|
+
# Load fixtures from the engine
|
13
|
+
if ActiveSupport::TestCase.method_defined?(:fixture_path=)
|
14
|
+
ActiveSupport::TestCase.fixture_path = File.expand_path("../fixtures", __FILE__)
|
15
|
+
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: query_report
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 1.0.0
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,24 +9,24 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-
|
12
|
+
date: 2013-08-28 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rails
|
16
16
|
requirement: !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
|
-
- -
|
19
|
+
- - ! '>='
|
20
20
|
- !ruby/object:Gem::Version
|
21
|
-
version: 3.
|
21
|
+
version: 3.0.0
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
24
|
version_requirements: !ruby/object:Gem::Requirement
|
25
25
|
none: false
|
26
26
|
requirements:
|
27
|
-
- -
|
27
|
+
- - ! '>='
|
28
28
|
- !ruby/object:Gem::Version
|
29
|
-
version: 3.
|
29
|
+
version: 3.0.0
|
30
30
|
- !ruby/object:Gem::Dependency
|
31
31
|
name: ransack
|
32
32
|
requirement: !ruby/object:Gem::Requirement
|
@@ -107,6 +107,102 @@ dependencies:
|
|
107
107
|
- - ! '>='
|
108
108
|
- !ruby/object:Gem::Version
|
109
109
|
version: '0'
|
110
|
+
- !ruby/object:Gem::Dependency
|
111
|
+
name: prawn
|
112
|
+
requirement: !ruby/object:Gem::Requirement
|
113
|
+
none: false
|
114
|
+
requirements:
|
115
|
+
- - ! '>='
|
116
|
+
- !ruby/object:Gem::Version
|
117
|
+
version: '0'
|
118
|
+
type: :runtime
|
119
|
+
prerelease: false
|
120
|
+
version_requirements: !ruby/object:Gem::Requirement
|
121
|
+
none: false
|
122
|
+
requirements:
|
123
|
+
- - ! '>='
|
124
|
+
- !ruby/object:Gem::Version
|
125
|
+
version: '0'
|
126
|
+
- !ruby/object:Gem::Dependency
|
127
|
+
name: gruff
|
128
|
+
requirement: !ruby/object:Gem::Requirement
|
129
|
+
none: false
|
130
|
+
requirements:
|
131
|
+
- - ! '>='
|
132
|
+
- !ruby/object:Gem::Version
|
133
|
+
version: '0'
|
134
|
+
type: :development
|
135
|
+
prerelease: false
|
136
|
+
version_requirements: !ruby/object:Gem::Requirement
|
137
|
+
none: false
|
138
|
+
requirements:
|
139
|
+
- - ! '>='
|
140
|
+
- !ruby/object:Gem::Version
|
141
|
+
version: '0'
|
142
|
+
- !ruby/object:Gem::Dependency
|
143
|
+
name: awesome_print
|
144
|
+
requirement: !ruby/object:Gem::Requirement
|
145
|
+
none: false
|
146
|
+
requirements:
|
147
|
+
- - ! '>='
|
148
|
+
- !ruby/object:Gem::Version
|
149
|
+
version: '0'
|
150
|
+
type: :development
|
151
|
+
prerelease: false
|
152
|
+
version_requirements: !ruby/object:Gem::Requirement
|
153
|
+
none: false
|
154
|
+
requirements:
|
155
|
+
- - ! '>='
|
156
|
+
- !ruby/object:Gem::Version
|
157
|
+
version: '0'
|
158
|
+
- !ruby/object:Gem::Dependency
|
159
|
+
name: prawn
|
160
|
+
requirement: !ruby/object:Gem::Requirement
|
161
|
+
none: false
|
162
|
+
requirements:
|
163
|
+
- - ! '>='
|
164
|
+
- !ruby/object:Gem::Version
|
165
|
+
version: '0'
|
166
|
+
type: :development
|
167
|
+
prerelease: false
|
168
|
+
version_requirements: !ruby/object:Gem::Requirement
|
169
|
+
none: false
|
170
|
+
requirements:
|
171
|
+
- - ! '>='
|
172
|
+
- !ruby/object:Gem::Version
|
173
|
+
version: '0'
|
174
|
+
- !ruby/object:Gem::Dependency
|
175
|
+
name: kaminari
|
176
|
+
requirement: !ruby/object:Gem::Requirement
|
177
|
+
none: false
|
178
|
+
requirements:
|
179
|
+
- - ! '>='
|
180
|
+
- !ruby/object:Gem::Version
|
181
|
+
version: '0'
|
182
|
+
type: :development
|
183
|
+
prerelease: false
|
184
|
+
version_requirements: !ruby/object:Gem::Requirement
|
185
|
+
none: false
|
186
|
+
requirements:
|
187
|
+
- - ! '>='
|
188
|
+
- !ruby/object:Gem::Version
|
189
|
+
version: '0'
|
190
|
+
- !ruby/object:Gem::Dependency
|
191
|
+
name: ransack
|
192
|
+
requirement: !ruby/object:Gem::Requirement
|
193
|
+
none: false
|
194
|
+
requirements:
|
195
|
+
- - ! '>='
|
196
|
+
- !ruby/object:Gem::Version
|
197
|
+
version: '0'
|
198
|
+
type: :development
|
199
|
+
prerelease: false
|
200
|
+
version_requirements: !ruby/object:Gem::Requirement
|
201
|
+
none: false
|
202
|
+
requirements:
|
203
|
+
- - ! '>='
|
204
|
+
- !ruby/object:Gem::Version
|
205
|
+
version: '0'
|
110
206
|
- !ruby/object:Gem::Dependency
|
111
207
|
name: sqlite3
|
112
208
|
requirement: !ruby/object:Gem::Requirement
|
@@ -171,6 +267,70 @@ dependencies:
|
|
171
267
|
- - ! '>='
|
172
268
|
- !ruby/object:Gem::Version
|
173
269
|
version: '0'
|
270
|
+
- !ruby/object:Gem::Dependency
|
271
|
+
name: rspec
|
272
|
+
requirement: !ruby/object:Gem::Requirement
|
273
|
+
none: false
|
274
|
+
requirements:
|
275
|
+
- - ! '>='
|
276
|
+
- !ruby/object:Gem::Version
|
277
|
+
version: '0'
|
278
|
+
type: :development
|
279
|
+
prerelease: false
|
280
|
+
version_requirements: !ruby/object:Gem::Requirement
|
281
|
+
none: false
|
282
|
+
requirements:
|
283
|
+
- - ! '>='
|
284
|
+
- !ruby/object:Gem::Version
|
285
|
+
version: '0'
|
286
|
+
- !ruby/object:Gem::Dependency
|
287
|
+
name: rspec-mocks
|
288
|
+
requirement: !ruby/object:Gem::Requirement
|
289
|
+
none: false
|
290
|
+
requirements:
|
291
|
+
- - ! '>='
|
292
|
+
- !ruby/object:Gem::Version
|
293
|
+
version: '0'
|
294
|
+
type: :development
|
295
|
+
prerelease: false
|
296
|
+
version_requirements: !ruby/object:Gem::Requirement
|
297
|
+
none: false
|
298
|
+
requirements:
|
299
|
+
- - ! '>='
|
300
|
+
- !ruby/object:Gem::Version
|
301
|
+
version: '0'
|
302
|
+
- !ruby/object:Gem::Dependency
|
303
|
+
name: temping
|
304
|
+
requirement: !ruby/object:Gem::Requirement
|
305
|
+
none: false
|
306
|
+
requirements:
|
307
|
+
- - ! '>='
|
308
|
+
- !ruby/object:Gem::Version
|
309
|
+
version: '0'
|
310
|
+
type: :development
|
311
|
+
prerelease: false
|
312
|
+
version_requirements: !ruby/object:Gem::Requirement
|
313
|
+
none: false
|
314
|
+
requirements:
|
315
|
+
- - ! '>='
|
316
|
+
- !ruby/object:Gem::Version
|
317
|
+
version: '0'
|
318
|
+
- !ruby/object:Gem::Dependency
|
319
|
+
name: google_visualr
|
320
|
+
requirement: !ruby/object:Gem::Requirement
|
321
|
+
none: false
|
322
|
+
requirements:
|
323
|
+
- - ~>
|
324
|
+
- !ruby/object:Gem::Version
|
325
|
+
version: 2.1.7
|
326
|
+
type: :development
|
327
|
+
prerelease: false
|
328
|
+
version_requirements: !ruby/object:Gem::Requirement
|
329
|
+
none: false
|
330
|
+
requirements:
|
331
|
+
- - ~>
|
332
|
+
- !ruby/object:Gem::Version
|
333
|
+
version: 2.1.7
|
174
334
|
description: This is a gem to help you to structure common reports of you application
|
175
335
|
just by writing in the controller
|
176
336
|
email:
|
@@ -179,34 +339,135 @@ executables: []
|
|
179
339
|
extensions: []
|
180
340
|
extra_rdoc_files: []
|
181
341
|
files:
|
182
|
-
- .
|
183
|
-
-
|
184
|
-
-
|
185
|
-
-
|
186
|
-
- README.rdoc
|
187
|
-
- Rakefile
|
188
|
-
- app/views/query_report/_custom_filters.html.erb
|
342
|
+
- app/helpers/query_report_helper.rb
|
343
|
+
- app/helpers/query_report_filter_helper.rb
|
344
|
+
- app/views/query_report/_charts.html.erb
|
345
|
+
- app/views/query_report/_search.html.erb
|
189
346
|
- app/views/query_report/list.html.erb
|
347
|
+
- config/routes.rb
|
348
|
+
- config/locales/query_report.yml
|
349
|
+
- db/schema.rb
|
350
|
+
- lib/tasks/query_report_tasks.rake
|
190
351
|
- lib/query_report.rb
|
191
|
-
- lib/query_report/
|
192
|
-
- lib/query_report/
|
193
|
-
- lib/query_report/chart/
|
352
|
+
- lib/query_report/helper.rb
|
353
|
+
- lib/query_report/engine.rb
|
354
|
+
- lib/query_report/chart/chart_base.rb
|
194
355
|
- lib/query_report/chart/themes.rb
|
195
|
-
- lib/query_report/
|
356
|
+
- lib/query_report/chart/column_chart.rb
|
357
|
+
- lib/query_report/chart/pie_chart.rb
|
358
|
+
- lib/query_report/chart/chart_column.rb
|
196
359
|
- lib/query_report/filter.rb
|
197
|
-
- lib/query_report/
|
198
|
-
- lib/query_report/
|
199
|
-
- lib/query_report/report_pdf.rb
|
200
|
-
- lib/query_report/row.rb
|
360
|
+
- lib/query_report/paginate.rb
|
361
|
+
- lib/query_report/column.rb
|
201
362
|
- lib/query_report/version.rb
|
202
|
-
- query_report.
|
363
|
+
- lib/query_report/errors.rb
|
364
|
+
- lib/query_report/report_pdf.rb
|
365
|
+
- lib/query_report/config.rb
|
366
|
+
- lib/query_report/report.rb
|
367
|
+
- lib/query_report/record.rb
|
368
|
+
- MIT-LICENSE
|
369
|
+
- Rakefile
|
370
|
+
- README.md
|
371
|
+
- test/test_helper.rb
|
372
|
+
- test/dummy/config/environment.rb
|
373
|
+
- test/dummy/config/database.yml
|
374
|
+
- test/dummy/config/application.rb
|
375
|
+
- test/dummy/config/routes.rb
|
376
|
+
- test/dummy/config/boot.rb
|
377
|
+
- test/dummy/config/locales/en.yml
|
378
|
+
- test/dummy/config/environments/development.rb
|
379
|
+
- test/dummy/config/environments/test.rb
|
380
|
+
- test/dummy/config/environments/production.rb
|
381
|
+
- test/dummy/config/initializers/secret_token.rb
|
382
|
+
- test/dummy/config/initializers/session_store.rb
|
383
|
+
- test/dummy/config/initializers/query_report.rb
|
384
|
+
- test/dummy/config/initializers/mime_types.rb
|
385
|
+
- test/dummy/config/initializers/wrap_parameters.rb
|
386
|
+
- test/dummy/config/initializers/backtrace_silencers.rb
|
387
|
+
- test/dummy/config/initializers/inflections.rb
|
388
|
+
- test/dummy/config.ru
|
389
|
+
- test/dummy/script/rails
|
390
|
+
- test/dummy/app/controllers/invoices_controller.rb
|
391
|
+
- test/dummy/app/controllers/application_controller.rb
|
392
|
+
- test/dummy/app/controllers/users_controller.rb
|
393
|
+
- test/dummy/app/assets/stylesheets/invoices.css
|
394
|
+
- test/dummy/app/assets/stylesheets/scaffold.css
|
395
|
+
- test/dummy/app/assets/stylesheets/application.css
|
396
|
+
- test/dummy/app/assets/stylesheets/users.css
|
397
|
+
- test/dummy/app/assets/javascripts/invoices.js
|
398
|
+
- test/dummy/app/assets/javascripts/users.js
|
399
|
+
- test/dummy/app/assets/javascripts/application.js
|
400
|
+
- test/dummy/app/helpers/users_helper.rb
|
401
|
+
- test/dummy/app/helpers/invoices_helper.rb
|
402
|
+
- test/dummy/app/helpers/application_helper.rb
|
403
|
+
- test/dummy/app/views/users/index.html.erb
|
404
|
+
- test/dummy/app/views/users/edit.html.erb
|
405
|
+
- test/dummy/app/views/users/_form.html.erb
|
406
|
+
- test/dummy/app/views/users/new.html.erb
|
407
|
+
- test/dummy/app/views/users/show.html.erb
|
408
|
+
- test/dummy/app/views/layouts/application.html.erb
|
409
|
+
- test/dummy/app/views/invoices/index.html.erb
|
410
|
+
- test/dummy/app/views/invoices/edit.html.erb
|
411
|
+
- test/dummy/app/views/invoices/_form.html.erb
|
412
|
+
- test/dummy/app/views/invoices/new.html.erb
|
413
|
+
- test/dummy/app/views/invoices/show.html.erb
|
414
|
+
- test/dummy/app/models/invoice.rb
|
415
|
+
- test/dummy/app/models/user.rb
|
416
|
+
- test/dummy/app/models/pdf_report_template.rb
|
417
|
+
- test/dummy/log/development.log
|
418
|
+
- test/dummy/log/test.log
|
419
|
+
- test/dummy/README.rdoc
|
420
|
+
- test/dummy/Rakefile
|
421
|
+
- test/dummy/tmp/cache/assets/D5A/EA0/sprockets%2Fd771ace226fc8215a3572e0aa35bb0d6
|
422
|
+
- test/dummy/tmp/cache/assets/E04/890/sprockets%2F2f5173deea6c795b8fdde723bb4b63af
|
423
|
+
- test/dummy/tmp/cache/assets/D32/A10/sprockets%2F13fe41fee1fe35b49d145bcc06610705
|
424
|
+
- test/dummy/tmp/cache/assets/CA9/F20/sprockets%2F00ff4f84806dd8834ab35f800a082640
|
425
|
+
- test/dummy/tmp/cache/assets/CD8/370/sprockets%2F357970feca3ac29060c1e3861e2c0953
|
426
|
+
- test/dummy/tmp/cache/assets/CD8/B70/sprockets%2F4050a4e5062ab95c9f32e9b6940821ea
|
427
|
+
- test/dummy/tmp/cache/assets/D54/B90/sprockets%2F90719d7bdca76469cd487928f710decb
|
428
|
+
- test/dummy/tmp/cache/assets/D7C/990/sprockets%2F302f7d851fcdb17936f8096bfb967cab
|
429
|
+
- test/dummy/tmp/cache/assets/DA3/AC0/sprockets%2F797d3e5f21daaf5c046cc6ec4830e95b
|
430
|
+
- test/dummy/tmp/cache/assets/D7F/AF0/sprockets%2Fa7deca9af827ab462635389b96c7da39
|
431
|
+
- test/dummy/tmp/cache/assets/CB5/B70/sprockets%2Fa769d915e72b1c8c0614793b54d02c86
|
432
|
+
- test/dummy/tmp/cache/assets/CAA/620/sprockets%2F87b209c0c9da28094a8d5581a21262c6
|
433
|
+
- test/dummy/tmp/cache/assets/D67/B60/sprockets%2F5f1a0d05e77ca8b9a1fc2a47e17a8174
|
434
|
+
- test/dummy/tmp/cache/assets/E0E/8A0/sprockets%2Fbecd48a9cf2ece858e433d7dcf0554f6
|
435
|
+
- test/dummy/tmp/cache/assets/CF0/1D0/sprockets%2F6fc757c2c8329244ca95d6909865bbc2
|
436
|
+
- test/dummy/tmp/cache/assets/C8C/B80/sprockets%2F371bf96e99717688ed7313a0c53f4212
|
437
|
+
- test/dummy/tmp/cache/assets/DFC/6F0/sprockets%2F2c45c36e4d7c7bfaeb826eeba29a09d2
|
438
|
+
- test/dummy/tmp/cache/assets/D4E/1B0/sprockets%2Ff7cbd26ba1d28d48de824f0e94586655
|
439
|
+
- test/dummy/tmp/cache/assets/DDC/400/sprockets%2Fcffd775d018f68ce5dba1ee0d951a994
|
440
|
+
- test/dummy/tmp/cache/assets/D46/650/sprockets%2Ff56253b5f374fff1a33fbbc9881c9124
|
441
|
+
- test/dummy/tmp/miniprofiler/mp_timers_m2ow1xy7c6tw0f4fj2co
|
442
|
+
- test/dummy/tmp/miniprofiler/mp_timers_etmdhvrbbmdadc7oyw8q
|
443
|
+
- test/dummy/tmp/miniprofiler/mp_timers_a7ev5lal7xp2xzjj2n9p
|
444
|
+
- test/dummy/tmp/miniprofiler/mp_timers_c5lzifpf785aic4t3cm8
|
445
|
+
- test/dummy/tmp/miniprofiler/mp_timers_m0kxxiow6jlfcjulu02t
|
446
|
+
- test/dummy/tmp/miniprofiler/mp_timers_5awpjfhldzcfjkeiia3p
|
447
|
+
- test/dummy/tmp/miniprofiler/mp_timers_wbiyljqrnox89js4m0at
|
448
|
+
- test/dummy/tmp/miniprofiler/mp_views_127.0.0.1
|
449
|
+
- test/dummy/tmp/miniprofiler/mp_timers_ujpdek4jfp8flbqp7fi3
|
450
|
+
- test/dummy/tmp/miniprofiler/mp_timers_mitzsa7y0lvka04il6an
|
451
|
+
- test/dummy/db/test.sqlite3
|
452
|
+
- test/dummy/db/migrate/20130630132513_create_invoices.rb
|
453
|
+
- test/dummy/db/migrate/20130622120853_create_users.rb
|
454
|
+
- test/dummy/db/schema.rb
|
455
|
+
- test/dummy/db/seed.rb
|
456
|
+
- test/dummy/db/development.sqlite3
|
457
|
+
- test/dummy/public/favicon.ico
|
458
|
+
- test/dummy/public/500.html
|
459
|
+
- test/dummy/public/404.html
|
460
|
+
- test/dummy/public/422.html
|
461
|
+
- test/dummy/test/functional/invoices_controller_test.rb
|
462
|
+
- test/dummy/test/unit/invoice_test.rb
|
463
|
+
- test/dummy/test/unit/helpers/invoices_helper_test.rb
|
464
|
+
- test/dummy/test/fixtures/invoices.yml
|
203
465
|
homepage: https://github.com/ashrafuzzaman/query_report
|
204
466
|
licenses: []
|
205
467
|
post_install_message:
|
206
468
|
rdoc_options: []
|
207
469
|
require_paths:
|
208
470
|
- lib
|
209
|
-
- app
|
210
471
|
required_ruby_version: !ruby/object:Gem::Requirement
|
211
472
|
none: false
|
212
473
|
requirements:
|
@@ -225,4 +486,99 @@ rubygems_version: 1.8.25
|
|
225
486
|
signing_key:
|
226
487
|
specification_version: 3
|
227
488
|
summary: Structure you reports
|
228
|
-
test_files:
|
489
|
+
test_files:
|
490
|
+
- test/test_helper.rb
|
491
|
+
- test/dummy/config/environment.rb
|
492
|
+
- test/dummy/config/database.yml
|
493
|
+
- test/dummy/config/application.rb
|
494
|
+
- test/dummy/config/routes.rb
|
495
|
+
- test/dummy/config/boot.rb
|
496
|
+
- test/dummy/config/locales/en.yml
|
497
|
+
- test/dummy/config/environments/development.rb
|
498
|
+
- test/dummy/config/environments/test.rb
|
499
|
+
- test/dummy/config/environments/production.rb
|
500
|
+
- test/dummy/config/initializers/secret_token.rb
|
501
|
+
- test/dummy/config/initializers/session_store.rb
|
502
|
+
- test/dummy/config/initializers/query_report.rb
|
503
|
+
- test/dummy/config/initializers/mime_types.rb
|
504
|
+
- test/dummy/config/initializers/wrap_parameters.rb
|
505
|
+
- test/dummy/config/initializers/backtrace_silencers.rb
|
506
|
+
- test/dummy/config/initializers/inflections.rb
|
507
|
+
- test/dummy/config.ru
|
508
|
+
- test/dummy/script/rails
|
509
|
+
- test/dummy/app/controllers/invoices_controller.rb
|
510
|
+
- test/dummy/app/controllers/application_controller.rb
|
511
|
+
- test/dummy/app/controllers/users_controller.rb
|
512
|
+
- test/dummy/app/assets/stylesheets/invoices.css
|
513
|
+
- test/dummy/app/assets/stylesheets/scaffold.css
|
514
|
+
- test/dummy/app/assets/stylesheets/application.css
|
515
|
+
- test/dummy/app/assets/stylesheets/users.css
|
516
|
+
- test/dummy/app/assets/javascripts/invoices.js
|
517
|
+
- test/dummy/app/assets/javascripts/users.js
|
518
|
+
- test/dummy/app/assets/javascripts/application.js
|
519
|
+
- test/dummy/app/helpers/users_helper.rb
|
520
|
+
- test/dummy/app/helpers/invoices_helper.rb
|
521
|
+
- test/dummy/app/helpers/application_helper.rb
|
522
|
+
- test/dummy/app/views/users/index.html.erb
|
523
|
+
- test/dummy/app/views/users/edit.html.erb
|
524
|
+
- test/dummy/app/views/users/_form.html.erb
|
525
|
+
- test/dummy/app/views/users/new.html.erb
|
526
|
+
- test/dummy/app/views/users/show.html.erb
|
527
|
+
- test/dummy/app/views/layouts/application.html.erb
|
528
|
+
- test/dummy/app/views/invoices/index.html.erb
|
529
|
+
- test/dummy/app/views/invoices/edit.html.erb
|
530
|
+
- test/dummy/app/views/invoices/_form.html.erb
|
531
|
+
- test/dummy/app/views/invoices/new.html.erb
|
532
|
+
- test/dummy/app/views/invoices/show.html.erb
|
533
|
+
- test/dummy/app/models/invoice.rb
|
534
|
+
- test/dummy/app/models/user.rb
|
535
|
+
- test/dummy/app/models/pdf_report_template.rb
|
536
|
+
- test/dummy/log/development.log
|
537
|
+
- test/dummy/log/test.log
|
538
|
+
- test/dummy/README.rdoc
|
539
|
+
- test/dummy/Rakefile
|
540
|
+
- test/dummy/tmp/cache/assets/D5A/EA0/sprockets%2Fd771ace226fc8215a3572e0aa35bb0d6
|
541
|
+
- test/dummy/tmp/cache/assets/E04/890/sprockets%2F2f5173deea6c795b8fdde723bb4b63af
|
542
|
+
- test/dummy/tmp/cache/assets/D32/A10/sprockets%2F13fe41fee1fe35b49d145bcc06610705
|
543
|
+
- test/dummy/tmp/cache/assets/CA9/F20/sprockets%2F00ff4f84806dd8834ab35f800a082640
|
544
|
+
- test/dummy/tmp/cache/assets/CD8/370/sprockets%2F357970feca3ac29060c1e3861e2c0953
|
545
|
+
- test/dummy/tmp/cache/assets/CD8/B70/sprockets%2F4050a4e5062ab95c9f32e9b6940821ea
|
546
|
+
- test/dummy/tmp/cache/assets/D54/B90/sprockets%2F90719d7bdca76469cd487928f710decb
|
547
|
+
- test/dummy/tmp/cache/assets/D7C/990/sprockets%2F302f7d851fcdb17936f8096bfb967cab
|
548
|
+
- test/dummy/tmp/cache/assets/DA3/AC0/sprockets%2F797d3e5f21daaf5c046cc6ec4830e95b
|
549
|
+
- test/dummy/tmp/cache/assets/D7F/AF0/sprockets%2Fa7deca9af827ab462635389b96c7da39
|
550
|
+
- test/dummy/tmp/cache/assets/CB5/B70/sprockets%2Fa769d915e72b1c8c0614793b54d02c86
|
551
|
+
- test/dummy/tmp/cache/assets/CAA/620/sprockets%2F87b209c0c9da28094a8d5581a21262c6
|
552
|
+
- test/dummy/tmp/cache/assets/D67/B60/sprockets%2F5f1a0d05e77ca8b9a1fc2a47e17a8174
|
553
|
+
- test/dummy/tmp/cache/assets/E0E/8A0/sprockets%2Fbecd48a9cf2ece858e433d7dcf0554f6
|
554
|
+
- test/dummy/tmp/cache/assets/CF0/1D0/sprockets%2F6fc757c2c8329244ca95d6909865bbc2
|
555
|
+
- test/dummy/tmp/cache/assets/C8C/B80/sprockets%2F371bf96e99717688ed7313a0c53f4212
|
556
|
+
- test/dummy/tmp/cache/assets/DFC/6F0/sprockets%2F2c45c36e4d7c7bfaeb826eeba29a09d2
|
557
|
+
- test/dummy/tmp/cache/assets/D4E/1B0/sprockets%2Ff7cbd26ba1d28d48de824f0e94586655
|
558
|
+
- test/dummy/tmp/cache/assets/DDC/400/sprockets%2Fcffd775d018f68ce5dba1ee0d951a994
|
559
|
+
- test/dummy/tmp/cache/assets/D46/650/sprockets%2Ff56253b5f374fff1a33fbbc9881c9124
|
560
|
+
- test/dummy/tmp/miniprofiler/mp_timers_m2ow1xy7c6tw0f4fj2co
|
561
|
+
- test/dummy/tmp/miniprofiler/mp_timers_etmdhvrbbmdadc7oyw8q
|
562
|
+
- test/dummy/tmp/miniprofiler/mp_timers_a7ev5lal7xp2xzjj2n9p
|
563
|
+
- test/dummy/tmp/miniprofiler/mp_timers_c5lzifpf785aic4t3cm8
|
564
|
+
- test/dummy/tmp/miniprofiler/mp_timers_m0kxxiow6jlfcjulu02t
|
565
|
+
- test/dummy/tmp/miniprofiler/mp_timers_5awpjfhldzcfjkeiia3p
|
566
|
+
- test/dummy/tmp/miniprofiler/mp_timers_wbiyljqrnox89js4m0at
|
567
|
+
- test/dummy/tmp/miniprofiler/mp_views_127.0.0.1
|
568
|
+
- test/dummy/tmp/miniprofiler/mp_timers_ujpdek4jfp8flbqp7fi3
|
569
|
+
- test/dummy/tmp/miniprofiler/mp_timers_mitzsa7y0lvka04il6an
|
570
|
+
- test/dummy/db/test.sqlite3
|
571
|
+
- test/dummy/db/migrate/20130630132513_create_invoices.rb
|
572
|
+
- test/dummy/db/migrate/20130622120853_create_users.rb
|
573
|
+
- test/dummy/db/schema.rb
|
574
|
+
- test/dummy/db/seed.rb
|
575
|
+
- test/dummy/db/development.sqlite3
|
576
|
+
- test/dummy/public/favicon.ico
|
577
|
+
- test/dummy/public/500.html
|
578
|
+
- test/dummy/public/404.html
|
579
|
+
- test/dummy/public/422.html
|
580
|
+
- test/dummy/test/functional/invoices_controller_test.rb
|
581
|
+
- test/dummy/test/unit/invoice_test.rb
|
582
|
+
- test/dummy/test/unit/helpers/invoices_helper_test.rb
|
583
|
+
- test/dummy/test/fixtures/invoices.yml
|
584
|
+
has_rdoc:
|