birt 0.1.4 → 0.1.7
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
- data/MIT-LICENSE +20 -0
- data/README.rdoc +2 -27
- data/Rakefile +32 -4
- data/{lib → app}/assets/javascripts/birt.js +0 -0
- data/{lib → app}/assets/javascripts/birt/birt.js +3 -3
- data/{lib → app}/assets/javascripts/birt/components/loading.js +0 -0
- data/{lib → app}/assets/javascripts/birt/utils/string.js +0 -0
- data/{lib → app}/assets/stylesheets/birt.scss +0 -0
- data/{lib → app}/assets/stylesheets/birt/base/constant.scss +1 -0
- data/{lib → app}/assets/stylesheets/birt/base/mixins.scss +0 -0
- data/{lib → app}/assets/stylesheets/birt/components/loading.scss +0 -0
- data/{lib → app}/assets/stylesheets/birt/components/table.scss +0 -0
- data/app/views/birt/api/index.json.jbuilder +1 -1
- data/config/routes.rb +6 -0
- data/{app → lib/app}/controllers/birt/api_controller.rb +5 -3
- data/{app → lib/app}/helpers/application_helper.rb +0 -0
- data/{app → lib/app}/helpers/birt/api_helper.rb +0 -0
- data/lib/birt.rb +16 -1
- data/lib/birt/engine.rb +4 -0
- data/lib/birt/routing.rb +9 -0
- data/lib/birt/version.rb +2 -2
- data/lib/tasks/birt_tasks.rake +4 -0
- data/rails/init.rb +1 -0
- metadata +41 -59
- data/.gitignore +0 -39
- data/.project +0 -12
- data/.travis.yml +0 -3
- data/Gemfile +0 -43
- data/Gemfile.lock +0 -162
- data/LICENSE +0 -22
- data/README.md +0 -39
- data/app/assets/images/.keep +0 -0
- data/app/assets/javascripts/application.js +0 -16
- data/app/assets/stylesheets/application.css +0 -16
- data/app/controllers/application_controller.rb +0 -5
- data/app/controllers/birt_test_controller.rb +0 -4
- data/app/views/birt_test/index.html.erb +0 -1
- data/app/views/layouts/application.html.erb +0 -19
- data/bin/bundle +0 -3
- data/bin/console +0 -14
- data/bin/rails +0 -8
- data/bin/rake +0 -8
- data/bin/setup +0 -29
- data/bin/spring +0 -15
- data/birt.gemspec +0 -38
- data/config.ru +0 -4
- data/lib/assets/.keep +0 -0
- data/lib/birt/api.rb +0 -4
- data/lib/birt/core.rb +0 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 420f5c4cd97bdb89ca52decfd2fda1f3e8b15ee6
|
4
|
+
data.tar.gz: a8bbdaf7e239efb6bb5b5eddd0bedf65e81a09e8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8b3df83a44c00186a8bbc7e0963f8b3d75b8199eb69aa7778558e036ef75e1850b4c45f881202c4cc34153bfdd526dcb84a43a63168c6568bdbcdf519ac7cb04
|
7
|
+
data.tar.gz: 919b8b32ebce806fed8931f674def382fa37ad0ba9edbe12c4a4a38f17064743b275b8dff0d7d32d9866536ce456200cebf5c9866e1a0a52874759dfbac97149
|
data/MIT-LICENSE
ADDED
@@ -0,0 +1,20 @@
|
|
1
|
+
Copyright 2015 sunyafei
|
2
|
+
|
3
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
4
|
+
a copy of this software and associated documentation files (the
|
5
|
+
"Software"), to deal in the Software without restriction, including
|
6
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
7
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
8
|
+
permit persons to whom the Software is furnished to do so, subject to
|
9
|
+
the following conditions:
|
10
|
+
|
11
|
+
The above copyright notice and this permission notice shall be
|
12
|
+
included in all copies or substantial portions of the Software.
|
13
|
+
|
14
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
15
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
16
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
17
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
18
|
+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
19
|
+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
20
|
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/README.rdoc
CHANGED
@@ -1,28 +1,3 @@
|
|
1
|
-
|
1
|
+
= Birt
|
2
2
|
|
3
|
-
This
|
4
|
-
application up and running.
|
5
|
-
|
6
|
-
Things you may want to cover:
|
7
|
-
|
8
|
-
* Ruby version
|
9
|
-
|
10
|
-
* System dependencies
|
11
|
-
|
12
|
-
* Configuration
|
13
|
-
|
14
|
-
* Database creation
|
15
|
-
|
16
|
-
* Database initialization
|
17
|
-
|
18
|
-
* How to run the test suite
|
19
|
-
|
20
|
-
* Services (job queues, cache servers, search engines, etc.)
|
21
|
-
|
22
|
-
* Deployment instructions
|
23
|
-
|
24
|
-
* ...
|
25
|
-
|
26
|
-
|
27
|
-
Please feel free to use a different markup language if you do not plan to run
|
28
|
-
<tt>rake doc:app</tt>.
|
3
|
+
This project rocks and uses MIT-LICENSE.
|
data/Rakefile
CHANGED
@@ -1,6 +1,34 @@
|
|
1
|
-
|
2
|
-
|
1
|
+
begin
|
2
|
+
require 'bundler/setup'
|
3
|
+
rescue LoadError
|
4
|
+
puts 'You must `gem install bundler` and `bundle install` to run rake tasks'
|
5
|
+
end
|
3
6
|
|
4
|
-
require
|
7
|
+
require 'rdoc/task'
|
5
8
|
|
6
|
-
|
9
|
+
RDoc::Task.new(:rdoc) do |rdoc|
|
10
|
+
rdoc.rdoc_dir = 'rdoc'
|
11
|
+
rdoc.title = 'Birt'
|
12
|
+
rdoc.options << '--line-numbers'
|
13
|
+
rdoc.rdoc_files.include('README.rdoc')
|
14
|
+
rdoc.rdoc_files.include('lib/**/*.rb')
|
15
|
+
end
|
16
|
+
|
17
|
+
|
18
|
+
|
19
|
+
|
20
|
+
|
21
|
+
|
22
|
+
Bundler::GemHelper.install_tasks
|
23
|
+
|
24
|
+
require 'rake/testtask'
|
25
|
+
|
26
|
+
Rake::TestTask.new(:test) do |t|
|
27
|
+
t.libs << 'lib'
|
28
|
+
t.libs << 'test'
|
29
|
+
t.pattern = 'test/**/*_test.rb'
|
30
|
+
t.verbose = false
|
31
|
+
end
|
32
|
+
|
33
|
+
|
34
|
+
task default: :test
|
File without changes
|
@@ -19,7 +19,7 @@ var Birt = (function () {
|
|
19
19
|
$.birtLoading();
|
20
20
|
$.ajax(
|
21
21
|
{
|
22
|
-
url: '/birt/api.json?_report={0}'.format(rptDesignName
|
22
|
+
url: '/birt/api.json?_report={0}'.format(rptDesignName || $birt.data('rptdesign')),
|
23
23
|
type: 'GET',
|
24
24
|
success: function (data) {
|
25
25
|
$.birtLoading('hide');
|
@@ -76,7 +76,7 @@ var Birt = (function () {
|
|
76
76
|
* @returns {string}
|
77
77
|
*/
|
78
78
|
Birt.prototype.showTable = function (table) {
|
79
|
-
var table_html = '<table class="birt-table">';
|
79
|
+
var table_html = '<table id="report_{0}" class="birt-table"> '.format(table.id);
|
80
80
|
|
81
81
|
for (var i = 0; i < table.header.length; i++) {
|
82
82
|
table_html += _this.showTableRow(table.header[i], 'th');
|
@@ -125,4 +125,4 @@ var Birt = (function () {
|
|
125
125
|
});
|
126
126
|
};
|
127
127
|
return Birt;
|
128
|
-
})();
|
128
|
+
})();
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
data/config/routes.rb
ADDED
@@ -5,12 +5,14 @@ module Birt
|
|
5
5
|
|
6
6
|
def index
|
7
7
|
|
8
|
-
rpt_design_path = params[:_report] || '003.rptdesign'
|
9
|
-
|
8
|
+
# rpt_design_path = params[:_report] || '003.rptdesign'
|
9
|
+
rpt_design_path = '003.rptdesign'
|
10
|
+
@rpt_design = Birt::Core::RptDesign.new("#{Rails.root}/reports/#{rpt_design_path}")
|
10
11
|
|
11
12
|
#数据解析
|
12
13
|
@rpt_design.parse_rpt
|
13
14
|
@rpt_design.data_sets.values.each { |data_set| data_set.data_set_result }
|
15
|
+
|
14
16
|
end
|
15
17
|
end
|
16
|
-
end
|
18
|
+
end
|
File without changes
|
File without changes
|
data/lib/birt.rb
CHANGED
@@ -1,12 +1,27 @@
|
|
1
|
+
require "birt/routing"
|
1
2
|
require "birt/version"
|
3
|
+
require "birt/engine"
|
2
4
|
require 'rexml/document'
|
3
5
|
require 'base64'
|
4
6
|
require 'pry'
|
5
7
|
require 'mysql2'
|
8
|
+
require 'rails'
|
6
9
|
|
10
|
+
|
11
|
+
%w{ controllers helpers views}.each do |dir|
|
12
|
+
path = File.join(File.dirname(__FILE__), 'app', dir)
|
13
|
+
$LOAD_PATH << path
|
14
|
+
ActiveSupport::Dependencies.autoload_paths << path
|
15
|
+
ActiveSupport::Dependencies.autoload_once_paths.delete(path)
|
16
|
+
end
|
7
17
|
Dir.glob("#{File.dirname(__FILE__)}/birt/core/*.rb") { |f| require f }
|
8
18
|
Dir.glob("#{File.dirname(__FILE__)}/birt/core/table/*.rb") { |f| require f }
|
9
19
|
Dir.glob("#{File.dirname(__FILE__)}/birt/core/chart/*.rb") { |f| require f }
|
10
20
|
|
21
|
+
|
11
22
|
module Birt
|
12
|
-
|
23
|
+
module_function
|
24
|
+
def birt(rptdesign_name)
|
25
|
+
"<div class=\"birt\" data-rptdesign=\"#{rptdesign_name}.rptdesign\"></div>"
|
26
|
+
end
|
27
|
+
end
|
data/lib/birt/engine.rb
ADDED
data/lib/birt/routing.rb
ADDED
data/lib/birt/version.rb
CHANGED
data/rails/init.rb
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
require 'birt'
|
metadata
CHANGED
@@ -1,57 +1,57 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: birt
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- saxer
|
8
8
|
autorequire:
|
9
|
-
bindir:
|
9
|
+
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-08-
|
11
|
+
date: 2015-08-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
|
-
name:
|
14
|
+
name: rails
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version:
|
20
|
-
type: :
|
19
|
+
version: 4.2.3
|
20
|
+
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version:
|
26
|
+
version: 4.2.3
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
|
-
name:
|
28
|
+
name: bundler
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
31
|
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: '
|
33
|
+
version: '1.9'
|
34
34
|
type: :development
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: '
|
40
|
+
version: '1.9'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
|
-
name:
|
42
|
+
name: rake
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
45
|
- - "~>"
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version: '
|
47
|
+
version: '10.4'
|
48
48
|
type: :development
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
52
|
- - "~>"
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version: '
|
54
|
+
version: '10.4'
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: core_extend
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
@@ -86,62 +86,39 @@ dependencies:
|
|
86
86
|
requirements:
|
87
87
|
- - "~>"
|
88
88
|
- !ruby/object:Gem::Version
|
89
|
-
version: 0.3.
|
89
|
+
version: 0.3.18
|
90
90
|
type: :runtime
|
91
91
|
prerelease: false
|
92
92
|
version_requirements: !ruby/object:Gem::Requirement
|
93
93
|
requirements:
|
94
94
|
- - "~>"
|
95
95
|
- !ruby/object:Gem::Version
|
96
|
-
version: 0.3.
|
97
|
-
description: birt report
|
96
|
+
version: 0.3.18
|
97
|
+
description: birt report
|
98
98
|
email:
|
99
99
|
- 15201280641@qq.com
|
100
100
|
executables: []
|
101
101
|
extensions: []
|
102
102
|
extra_rdoc_files: []
|
103
103
|
files:
|
104
|
-
-
|
105
|
-
- ".project"
|
106
|
-
- ".travis.yml"
|
107
|
-
- Gemfile
|
108
|
-
- Gemfile.lock
|
109
|
-
- LICENSE
|
110
|
-
- README.md
|
104
|
+
- MIT-LICENSE
|
111
105
|
- README.rdoc
|
112
106
|
- Rakefile
|
113
|
-
- app/assets/
|
114
|
-
- app/assets/javascripts/
|
115
|
-
- app/assets/
|
116
|
-
- app/
|
117
|
-
- app/
|
118
|
-
- app/
|
119
|
-
- app/
|
120
|
-
- app/
|
107
|
+
- app/assets/javascripts/birt.js
|
108
|
+
- app/assets/javascripts/birt/birt.js
|
109
|
+
- app/assets/javascripts/birt/components/loading.js
|
110
|
+
- app/assets/javascripts/birt/utils/string.js
|
111
|
+
- app/assets/stylesheets/birt.scss
|
112
|
+
- app/assets/stylesheets/birt/base/constant.scss
|
113
|
+
- app/assets/stylesheets/birt/base/mixins.scss
|
114
|
+
- app/assets/stylesheets/birt/components/loading.scss
|
115
|
+
- app/assets/stylesheets/birt/components/table.scss
|
121
116
|
- app/views/birt/api/index.json.jbuilder
|
122
|
-
-
|
123
|
-
- app/
|
124
|
-
-
|
125
|
-
-
|
126
|
-
- bin/rails
|
127
|
-
- bin/rake
|
128
|
-
- bin/setup
|
129
|
-
- bin/spring
|
130
|
-
- birt.gemspec
|
131
|
-
- config.ru
|
132
|
-
- lib/assets/.keep
|
133
|
-
- lib/assets/javascripts/birt.js
|
134
|
-
- lib/assets/javascripts/birt/birt.js
|
135
|
-
- lib/assets/javascripts/birt/components/loading.js
|
136
|
-
- lib/assets/javascripts/birt/utils/string.js
|
137
|
-
- lib/assets/stylesheets/birt.scss
|
138
|
-
- lib/assets/stylesheets/birt/base/constant.scss
|
139
|
-
- lib/assets/stylesheets/birt/base/mixins.scss
|
140
|
-
- lib/assets/stylesheets/birt/components/loading.scss
|
141
|
-
- lib/assets/stylesheets/birt/components/table.scss
|
117
|
+
- config/routes.rb
|
118
|
+
- lib/app/controllers/birt/api_controller.rb
|
119
|
+
- lib/app/helpers/application_helper.rb
|
120
|
+
- lib/app/helpers/birt/api_helper.rb
|
142
121
|
- lib/birt.rb
|
143
|
-
- lib/birt/api.rb
|
144
|
-
- lib/birt/core.rb
|
145
122
|
- lib/birt/core/base_report.rb
|
146
123
|
- lib/birt/core/chart/line_chart_report.rb
|
147
124
|
- lib/birt/core/chart/series_row.rb
|
@@ -160,17 +137,22 @@ files:
|
|
160
137
|
- lib/birt/core/table/table_row.rb
|
161
138
|
- lib/birt/core/table/table_row_cell.rb
|
162
139
|
- lib/birt/core/table/text_property.rb
|
140
|
+
- lib/birt/engine.rb
|
141
|
+
- lib/birt/routing.rb
|
163
142
|
- lib/birt/version.rb
|
164
|
-
|
143
|
+
- lib/tasks/birt_tasks.rake
|
144
|
+
- rails/init.rb
|
145
|
+
homepage: http://www.baidu.com
|
165
146
|
licenses:
|
166
147
|
- MIT
|
167
|
-
metadata:
|
168
|
-
allowed_push_host: https://rubygems.org
|
148
|
+
metadata: {}
|
169
149
|
post_install_message:
|
170
150
|
rdoc_options: []
|
171
151
|
require_paths:
|
172
|
-
- app
|
173
152
|
- lib
|
153
|
+
- lib/core
|
154
|
+
- lib/core/chart
|
155
|
+
- lib/core/table
|
174
156
|
required_ruby_version: !ruby/object:Gem::Requirement
|
175
157
|
requirements:
|
176
158
|
- - ">="
|
@@ -183,8 +165,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
183
165
|
version: '0'
|
184
166
|
requirements: []
|
185
167
|
rubyforge_project:
|
186
|
-
rubygems_version: 2.
|
168
|
+
rubygems_version: 2.2.2
|
187
169
|
signing_key:
|
188
170
|
specification_version: 4
|
189
|
-
summary:
|
171
|
+
summary: birt report
|
190
172
|
test_files: []
|
data/.gitignore
DELETED
@@ -1,39 +0,0 @@
|
|
1
|
-
*.rbc
|
2
|
-
capybara-*.html
|
3
|
-
.rspec
|
4
|
-
/log
|
5
|
-
/tmp
|
6
|
-
/db/*.sqlite3
|
7
|
-
/db/*.sqlite3-journal
|
8
|
-
/public/system
|
9
|
-
/coverage/
|
10
|
-
/spec/tmp
|
11
|
-
/birt/reports/*.rptdesign
|
12
|
-
/config/database.yml
|
13
|
-
*.gem
|
14
|
-
/.idea/
|
15
|
-
**.orig
|
16
|
-
rerun.txt
|
17
|
-
pickle-email-*.html
|
18
|
-
|
19
|
-
# TODO Comment out these rules if you are OK with secrets being uploaded to the repo
|
20
|
-
config/initializers/secret_token.rb
|
21
|
-
config/secrets.yml
|
22
|
-
|
23
|
-
## Environment normalisation:
|
24
|
-
/.bundle
|
25
|
-
/vendor/bundle
|
26
|
-
|
27
|
-
# these should all be checked in to normalise the environment:
|
28
|
-
# Gemfile.lock, .ruby-version, .ruby-gemset
|
29
|
-
|
30
|
-
# unless supporting rvm < 1.11.0 or doing something fancy, ignore this:
|
31
|
-
.rvmrc
|
32
|
-
|
33
|
-
# if using bower-rails ignore default bower_components path bower.json files
|
34
|
-
/vendor/assets/bower_components
|
35
|
-
*.bowerrc
|
36
|
-
bower.json
|
37
|
-
|
38
|
-
# Ignore pow environment settings
|
39
|
-
.powenv
|
data/.project
DELETED
@@ -1,12 +0,0 @@
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
-
<projectDescription>
|
3
|
-
<name>birt</name>
|
4
|
-
<comment></comment>
|
5
|
-
<projects>
|
6
|
-
</projects>
|
7
|
-
<buildSpec>
|
8
|
-
</buildSpec>
|
9
|
-
<natures>
|
10
|
-
<nature>org.eclipse.birt.report.designer.ui.reportprojectnature</nature>
|
11
|
-
</natures>
|
12
|
-
</projectDescription>
|
data/.travis.yml
DELETED
data/Gemfile
DELETED
@@ -1,43 +0,0 @@
|
|
1
|
-
source 'https://ruby.taobao.org'
|
2
|
-
|
3
|
-
|
4
|
-
# Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
|
5
|
-
gem 'rails', '4.2.3'
|
6
|
-
gem "rake", "~> 10.4.2"
|
7
|
-
gem 'mysql2'
|
8
|
-
# Use SCSS for stylesheets
|
9
|
-
gem 'sass-rails', '~> 5.0'
|
10
|
-
# Use Uglifier as compressor for JavaScript assets
|
11
|
-
gem 'uglifier', '>= 1.3.0'
|
12
|
-
# Use CoffeeScript for .coffee assets and views
|
13
|
-
gem 'coffee-rails', '~> 4.1.0'
|
14
|
-
# See https://github.com/rails/execjs#readme for more supported runtimes
|
15
|
-
# gem 'therubyracer', platforms: :ruby
|
16
|
-
|
17
|
-
# Use jquery as the JavaScript library
|
18
|
-
gem 'jquery-rails'
|
19
|
-
|
20
|
-
# Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder
|
21
|
-
gem 'jbuilder', '~> 2.0'
|
22
|
-
gem 'highcharts-rails', '~> 4.1'
|
23
|
-
# Use ActiveModel has_secure_password
|
24
|
-
# gem 'bcrypt', '~> 3.1.7'
|
25
|
-
|
26
|
-
# Use Unicorn as the app server
|
27
|
-
# gem 'unicorn'
|
28
|
-
|
29
|
-
# Use Capistrano for deployment
|
30
|
-
# gem 'capistrano-rails', group: :development
|
31
|
-
|
32
|
-
group :development, :test do
|
33
|
-
# Call 'byebug' anywhere in the code to stop execution and get a debugger console
|
34
|
-
gem 'byebug'
|
35
|
-
gem 'pry'
|
36
|
-
gem 'pry-nav'
|
37
|
-
# Access an IRB console on exception pages or by using <%= console %> in views
|
38
|
-
gem 'web-console', '~> 2.0'
|
39
|
-
|
40
|
-
# Spring speeds up development by keeping your application running in the background. Read more: https://github.com/rails/spring
|
41
|
-
gem 'spring'
|
42
|
-
end
|
43
|
-
|
data/Gemfile.lock
DELETED
@@ -1,162 +0,0 @@
|
|
1
|
-
GEM
|
2
|
-
remote: https://ruby.taobao.org/
|
3
|
-
specs:
|
4
|
-
actionmailer (4.2.3)
|
5
|
-
actionpack (= 4.2.3)
|
6
|
-
actionview (= 4.2.3)
|
7
|
-
activejob (= 4.2.3)
|
8
|
-
mail (~> 2.5, >= 2.5.4)
|
9
|
-
rails-dom-testing (~> 1.0, >= 1.0.5)
|
10
|
-
actionpack (4.2.3)
|
11
|
-
actionview (= 4.2.3)
|
12
|
-
activesupport (= 4.2.3)
|
13
|
-
rack (~> 1.6)
|
14
|
-
rack-test (~> 0.6.2)
|
15
|
-
rails-dom-testing (~> 1.0, >= 1.0.5)
|
16
|
-
rails-html-sanitizer (~> 1.0, >= 1.0.2)
|
17
|
-
actionview (4.2.3)
|
18
|
-
activesupport (= 4.2.3)
|
19
|
-
builder (~> 3.1)
|
20
|
-
erubis (~> 2.7.0)
|
21
|
-
rails-dom-testing (~> 1.0, >= 1.0.5)
|
22
|
-
rails-html-sanitizer (~> 1.0, >= 1.0.2)
|
23
|
-
activejob (4.2.3)
|
24
|
-
activesupport (= 4.2.3)
|
25
|
-
globalid (>= 0.3.0)
|
26
|
-
activemodel (4.2.3)
|
27
|
-
activesupport (= 4.2.3)
|
28
|
-
builder (~> 3.1)
|
29
|
-
activerecord (4.2.3)
|
30
|
-
activemodel (= 4.2.3)
|
31
|
-
activesupport (= 4.2.3)
|
32
|
-
arel (~> 6.0)
|
33
|
-
activesupport (4.2.3)
|
34
|
-
i18n (~> 0.7)
|
35
|
-
json (~> 1.7, >= 1.7.7)
|
36
|
-
minitest (~> 5.1)
|
37
|
-
thread_safe (~> 0.3, >= 0.3.4)
|
38
|
-
tzinfo (~> 1.1)
|
39
|
-
arel (6.0.2)
|
40
|
-
binding_of_caller (0.7.2)
|
41
|
-
debug_inspector (>= 0.0.1)
|
42
|
-
builder (3.2.2)
|
43
|
-
byebug (5.0.0)
|
44
|
-
columnize (= 0.9.0)
|
45
|
-
coderay (1.1.0)
|
46
|
-
coffee-rails (4.1.0)
|
47
|
-
coffee-script (>= 2.2.0)
|
48
|
-
railties (>= 4.0.0, < 5.0)
|
49
|
-
coffee-script (2.4.1)
|
50
|
-
coffee-script-source
|
51
|
-
execjs
|
52
|
-
coffee-script-source (1.9.1.1)
|
53
|
-
columnize (0.9.0)
|
54
|
-
debug_inspector (0.0.2)
|
55
|
-
erubis (2.7.0)
|
56
|
-
execjs (2.5.2)
|
57
|
-
globalid (0.3.5)
|
58
|
-
activesupport (>= 4.1.0)
|
59
|
-
highcharts-rails (4.1.5)
|
60
|
-
railties (>= 3.1)
|
61
|
-
i18n (0.7.0)
|
62
|
-
jbuilder (2.3.1)
|
63
|
-
activesupport (>= 3.0.0, < 5)
|
64
|
-
multi_json (~> 1.2)
|
65
|
-
jquery-rails (4.0.3)
|
66
|
-
rails-dom-testing (~> 1.0)
|
67
|
-
railties (>= 4.2.0)
|
68
|
-
thor (>= 0.14, < 2.0)
|
69
|
-
json (1.8.3)
|
70
|
-
loofah (2.0.2)
|
71
|
-
nokogiri (>= 1.5.9)
|
72
|
-
mail (2.6.3)
|
73
|
-
mime-types (>= 1.16, < 3)
|
74
|
-
method_source (0.8.2)
|
75
|
-
mime-types (2.6.1)
|
76
|
-
mini_portile (0.6.2)
|
77
|
-
minitest (5.7.0)
|
78
|
-
multi_json (1.11.2)
|
79
|
-
mysql2 (0.3.19)
|
80
|
-
nokogiri (1.6.6.2)
|
81
|
-
mini_portile (~> 0.6.0)
|
82
|
-
pry (0.10.1)
|
83
|
-
coderay (~> 1.1.0)
|
84
|
-
method_source (~> 0.8.1)
|
85
|
-
slop (~> 3.4)
|
86
|
-
pry-nav (0.2.4)
|
87
|
-
pry (>= 0.9.10, < 0.11.0)
|
88
|
-
rack (1.6.4)
|
89
|
-
rack-test (0.6.3)
|
90
|
-
rack (>= 1.0)
|
91
|
-
rails (4.2.3)
|
92
|
-
actionmailer (= 4.2.3)
|
93
|
-
actionpack (= 4.2.3)
|
94
|
-
actionview (= 4.2.3)
|
95
|
-
activejob (= 4.2.3)
|
96
|
-
activemodel (= 4.2.3)
|
97
|
-
activerecord (= 4.2.3)
|
98
|
-
activesupport (= 4.2.3)
|
99
|
-
bundler (>= 1.3.0, < 2.0)
|
100
|
-
railties (= 4.2.3)
|
101
|
-
sprockets-rails
|
102
|
-
rails-deprecated_sanitizer (1.0.3)
|
103
|
-
activesupport (>= 4.2.0.alpha)
|
104
|
-
rails-dom-testing (1.0.6)
|
105
|
-
activesupport (>= 4.2.0.beta, < 5.0)
|
106
|
-
nokogiri (~> 1.6.0)
|
107
|
-
rails-deprecated_sanitizer (>= 1.0.1)
|
108
|
-
rails-html-sanitizer (1.0.2)
|
109
|
-
loofah (~> 2.0)
|
110
|
-
railties (4.2.3)
|
111
|
-
actionpack (= 4.2.3)
|
112
|
-
activesupport (= 4.2.3)
|
113
|
-
rake (>= 0.8.7)
|
114
|
-
thor (>= 0.18.1, < 2.0)
|
115
|
-
rake (10.4.2)
|
116
|
-
sass (3.4.16)
|
117
|
-
sass-rails (5.0.3)
|
118
|
-
railties (>= 4.0.0, < 5.0)
|
119
|
-
sass (~> 3.1)
|
120
|
-
sprockets (>= 2.8, < 4.0)
|
121
|
-
sprockets-rails (>= 2.0, < 4.0)
|
122
|
-
tilt (~> 1.1)
|
123
|
-
slop (3.6.0)
|
124
|
-
spring (1.3.6)
|
125
|
-
sprockets (3.2.0)
|
126
|
-
rack (~> 1.0)
|
127
|
-
sprockets-rails (2.3.2)
|
128
|
-
actionpack (>= 3.0)
|
129
|
-
activesupport (>= 3.0)
|
130
|
-
sprockets (>= 2.8, < 4.0)
|
131
|
-
thor (0.19.1)
|
132
|
-
thread_safe (0.3.5)
|
133
|
-
tilt (1.4.1)
|
134
|
-
tzinfo (1.2.2)
|
135
|
-
thread_safe (~> 0.1)
|
136
|
-
uglifier (2.7.1)
|
137
|
-
execjs (>= 0.3.0)
|
138
|
-
json (>= 1.8.0)
|
139
|
-
web-console (2.2.1)
|
140
|
-
activemodel (>= 4.0)
|
141
|
-
binding_of_caller (>= 0.7.2)
|
142
|
-
railties (>= 4.0)
|
143
|
-
sprockets-rails (>= 2.0, < 4.0)
|
144
|
-
|
145
|
-
PLATFORMS
|
146
|
-
ruby
|
147
|
-
|
148
|
-
DEPENDENCIES
|
149
|
-
byebug
|
150
|
-
coffee-rails (~> 4.1.0)
|
151
|
-
highcharts-rails (~> 4.1)
|
152
|
-
jbuilder (~> 2.0)
|
153
|
-
jquery-rails
|
154
|
-
mysql2
|
155
|
-
pry
|
156
|
-
pry-nav
|
157
|
-
rails (= 4.2.3)
|
158
|
-
rake (~> 10.4.2)
|
159
|
-
sass-rails (~> 5.0)
|
160
|
-
spring
|
161
|
-
uglifier (>= 1.3.0)
|
162
|
-
web-console (~> 2.0)
|
data/LICENSE
DELETED
@@ -1,22 +0,0 @@
|
|
1
|
-
The MIT License (MIT)
|
2
|
-
|
3
|
-
Copyright (c) 2015 木卯溪
|
4
|
-
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
-
of this software and associated documentation files (the "Software"), to deal
|
7
|
-
in the Software without restriction, including without limitation the rights
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
10
|
-
furnished to do so, subject to the following conditions:
|
11
|
-
|
12
|
-
The above copyright notice and this permission notice shall be included in all
|
13
|
-
copies or substantial portions of the Software.
|
14
|
-
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
21
|
-
SOFTWARE.
|
22
|
-
|
data/README.md
DELETED
@@ -1,39 +0,0 @@
|
|
1
|
-
# Birt
|
2
|
-
|
3
|
-
Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/birt`. To experiment with that code, run `bin/console` for an interactive prompt.
|
4
|
-
|
5
|
-
TODO: Delete this and the text above, and describe your gem
|
6
|
-
|
7
|
-
## Installation
|
8
|
-
|
9
|
-
Add this line to your application's Gemfile:
|
10
|
-
|
11
|
-
```ruby
|
12
|
-
gem 'birt'
|
13
|
-
```
|
14
|
-
|
15
|
-
And then execute:
|
16
|
-
|
17
|
-
$ bundle
|
18
|
-
|
19
|
-
Or install it yourself as:
|
20
|
-
|
21
|
-
$ gem install birt
|
22
|
-
|
23
|
-
## Usage
|
24
|
-
|
25
|
-
TODO: Write usage instructions here
|
26
|
-
|
27
|
-
## Development
|
28
|
-
|
29
|
-
After checking out the repo, run `bin/setup` to install dependencies. Then, run `bin/console` for an interactive prompt that will allow you to experiment.
|
30
|
-
|
31
|
-
To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release` to create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
|
32
|
-
|
33
|
-
## Contributing
|
34
|
-
|
35
|
-
1. Fork it ( https://github.com/[my-github-username]/birt/fork )
|
36
|
-
2. Create your feature branch (`git checkout -b my-new-feature`)
|
37
|
-
3. Commit your changes (`git commit -am 'Add some feature'`)
|
38
|
-
4. Push to the branch (`git push origin my-new-feature`)
|
39
|
-
5. Create a new Pull Request
|
data/app/assets/images/.keep
DELETED
File without changes
|
@@ -1,16 +0,0 @@
|
|
1
|
-
// This is a manifest file that'll be compiled into application.js, which will include all the files
|
2
|
-
// listed below.
|
3
|
-
//
|
4
|
-
// Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts,
|
5
|
-
// or any plugin's vendor/assets/javascripts directory can be referenced here using a relative path.
|
6
|
-
//
|
7
|
-
// It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the
|
8
|
-
// compiled file.
|
9
|
-
//
|
10
|
-
// Read Sprockets README (https://github.com/rails/sprockets#sprockets-directives) for details
|
11
|
-
// about supported directives.
|
12
|
-
//
|
13
|
-
//= require jquery
|
14
|
-
//= require jquery_ujs
|
15
|
-
//= require birt
|
16
|
-
//= require_tree .
|
@@ -1,16 +0,0 @@
|
|
1
|
-
/*
|
2
|
-
* This is a manifest file that'll be compiled into application.css, which will include all the files
|
3
|
-
* listed below.
|
4
|
-
*
|
5
|
-
* Any CSS and SCSS file within this directory, lib/assets/stylesheets, vendor/assets/stylesheets,
|
6
|
-
* or any plugin's vendor/assets/stylesheets directory can be referenced here using a relative path.
|
7
|
-
*
|
8
|
-
* You're free to add application-wide styles to this file and they'll appear at the bottom of the
|
9
|
-
* compiled file so the styles you add here take precedence over styles defined in any styles
|
10
|
-
* defined in the other CSS/SCSS files in this directory. It is generally better to create a new
|
11
|
-
* file per style scope.
|
12
|
-
*
|
13
|
-
*= require_tree .
|
14
|
-
*= require birt
|
15
|
-
*= require_self
|
16
|
-
*/
|
@@ -1 +0,0 @@
|
|
1
|
-
<%= birt %>
|
@@ -1,19 +0,0 @@
|
|
1
|
-
<!DOCTYPE html>
|
2
|
-
<html>
|
3
|
-
<head>
|
4
|
-
<meta charset="utf-8">
|
5
|
-
<title>BirtView</title>
|
6
|
-
|
7
|
-
<%= stylesheet_link_tag 'application' %>
|
8
|
-
<%= csrf_meta_tags %>
|
9
|
-
|
10
|
-
<meta id="viewport" name="viewport" content="width=device-width,minimum-scale=1,maximum-scale=1,initial-scale=1,user-scalable=no">
|
11
|
-
<meta name="apple-mobile-web-app-capable" content="yes">
|
12
|
-
</head>
|
13
|
-
<body>
|
14
|
-
|
15
|
-
<%= yield %>
|
16
|
-
|
17
|
-
<%= javascript_include_tag 'application' %>
|
18
|
-
</body>
|
19
|
-
</html>
|
data/bin/bundle
DELETED
data/bin/console
DELETED
@@ -1,14 +0,0 @@
|
|
1
|
-
#!/usr/bin/env ruby
|
2
|
-
|
3
|
-
require "bundler/setup"
|
4
|
-
require "birt"
|
5
|
-
|
6
|
-
# You can add fixtures and/or initialization code here to make experimenting
|
7
|
-
# with your gem easier. You can also use a different console, if you like.
|
8
|
-
|
9
|
-
# (If you use this, don't forget to add pry to your Gemfile!)
|
10
|
-
# require "pry"
|
11
|
-
# Pry.start
|
12
|
-
|
13
|
-
require "irb"
|
14
|
-
IRB.start
|
data/bin/rails
DELETED
data/bin/rake
DELETED
data/bin/setup
DELETED
@@ -1,29 +0,0 @@
|
|
1
|
-
#!/usr/bin/env ruby
|
2
|
-
require 'pathname'
|
3
|
-
|
4
|
-
# path to your application root.
|
5
|
-
APP_ROOT = Pathname.new File.expand_path('../../', __FILE__)
|
6
|
-
|
7
|
-
Dir.chdir APP_ROOT do
|
8
|
-
# This script is a starting point to setup your application.
|
9
|
-
# Add necessary setup steps to this file:
|
10
|
-
|
11
|
-
puts "== Installing dependencies =="
|
12
|
-
system "gem install bundler --conservative"
|
13
|
-
system "bundle check || bundle install"
|
14
|
-
|
15
|
-
# puts "\n== Copying sample files =="
|
16
|
-
# unless File.exist?("config/database.yml")
|
17
|
-
# system "cp config/database.yml.sample config/database.yml"
|
18
|
-
# end
|
19
|
-
|
20
|
-
puts "\n== Preparing database =="
|
21
|
-
system "bin/rake db:setup"
|
22
|
-
|
23
|
-
puts "\n== Removing old logs and tempfiles =="
|
24
|
-
system "rm -f log/*"
|
25
|
-
system "rm -rf tmp/cache"
|
26
|
-
|
27
|
-
puts "\n== Restarting application server =="
|
28
|
-
system "touch tmp/restart.txt"
|
29
|
-
end
|
data/bin/spring
DELETED
@@ -1,15 +0,0 @@
|
|
1
|
-
#!/usr/bin/env ruby
|
2
|
-
|
3
|
-
# This file loads spring without using Bundler, in order to be fast.
|
4
|
-
# It gets overwritten when you run the `spring binstub` command.
|
5
|
-
|
6
|
-
unless defined?(Spring)
|
7
|
-
require "rubygems"
|
8
|
-
require "bundler"
|
9
|
-
|
10
|
-
if match = Bundler.default_lockfile.read.match(/^GEM$.*?^ (?: )*spring \((.*?)\)$.*?^$/m)
|
11
|
-
Gem.paths = { "GEM_PATH" => [Bundler.bundle_path.to_s, *Gem.path].uniq }
|
12
|
-
gem "spring", match[1]
|
13
|
-
require "spring/binstub"
|
14
|
-
end
|
15
|
-
end
|
data/birt.gemspec
DELETED
@@ -1,38 +0,0 @@
|
|
1
|
-
# coding: utf-8
|
2
|
-
lib = File.expand_path('../lib', __FILE__)
|
3
|
-
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
-
require 'birt/version'
|
5
|
-
|
6
|
-
Gem::Specification.new do |spec|
|
7
|
-
spec.name = "birt"
|
8
|
-
spec.version = Birt::VERSION
|
9
|
-
spec.authors = ["saxer"]
|
10
|
-
spec.email = ["15201280641@qq.com"]
|
11
|
-
|
12
|
-
spec.summary = %q{百灵报表(birt)rails runtime}
|
13
|
-
spec.description = %q{birt report rails runtime}
|
14
|
-
spec.homepage = "https://github.com/mumaoxi/birt"
|
15
|
-
spec.licenses = ["MIT"]
|
16
|
-
|
17
|
-
# Prevent pushing this gem to RubyGems.org by setting 'allowed_push_host', or
|
18
|
-
# delete this section to allow pushing this gem to any host.
|
19
|
-
if spec.respond_to?(:metadata)
|
20
|
-
spec.metadata['allowed_push_host'] = "https://rubygems.org"
|
21
|
-
else
|
22
|
-
raise "RubyGems 2.0 or newer is required to protect against public gem pushes."
|
23
|
-
end
|
24
|
-
|
25
|
-
spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(tmp|log|test|spec|features|pkg|public|config|birt)/}) }
|
26
|
-
spec.bindir = "exe"
|
27
|
-
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
28
|
-
spec.require_paths = ["app","lib"]
|
29
|
-
|
30
|
-
spec.add_development_dependency "bundler", "~> 1.9"
|
31
|
-
spec.add_development_dependency "rake", "~> 10.4"
|
32
|
-
spec.add_development_dependency 'rails', '~> 0'
|
33
|
-
|
34
|
-
spec.add_runtime_dependency "core_extend", "~> 0.1.5"
|
35
|
-
spec.add_runtime_dependency "highcharts-rails", "~> 4.1"
|
36
|
-
spec.add_runtime_dependency "mysql2","~> 0.3.19"
|
37
|
-
|
38
|
-
end
|
data/config.ru
DELETED
data/lib/assets/.keep
DELETED
File without changes
|
data/lib/birt/api.rb
DELETED
data/lib/birt/core.rb
DELETED