Update structure for rails 3

pull/6827/head
Michael Frister 12 years ago committed by Michael Frister
parent 809068cc93
commit 3e5c5e3f67
  1. 10
      init.rb
  2. 5
      lib/reporting_engine.rb
  3. 0
      lib/reporting_engine/big_decimal_patch.rb
  4. 0
      lib/reporting_engine/engine.rb
  5. 0
      lib/reporting_engine/proactive_autoloader.rb
  6. 4
      lib/reporting_engine/report.rb
  7. 0
      lib/reporting_engine/report/chainable.rb
  8. 0
      lib/reporting_engine/report/controller.rb
  9. 0
      lib/reporting_engine/report/filter.rb
  10. 0
      lib/reporting_engine/report/filter/base.rb
  11. 0
      lib/reporting_engine/report/filter/multi_choice.rb
  12. 0
      lib/reporting_engine/report/filter/no_filter.rb
  13. 0
      lib/reporting_engine/report/group_by.rb
  14. 0
      lib/reporting_engine/report/group_by/base.rb
  15. 0
      lib/reporting_engine/report/group_by/ruby_aggregation.rb
  16. 0
      lib/reporting_engine/report/group_by/singleton_value.rb
  17. 0
      lib/reporting_engine/report/group_by/sql_aggregation.rb
  18. 1
      lib/reporting_engine/report/inherited_attribute.rb
  19. 0
      lib/reporting_engine/report/operator.rb
  20. 0
      lib/reporting_engine/report/query_utils.rb
  21. 0
      lib/reporting_engine/report/result.rb
  22. 0
      lib/reporting_engine/report/sql_statement.rb
  23. 0
      lib/reporting_engine/report/table.rb
  24. 0
      lib/reporting_engine/report/transformer.rb
  25. 0
      lib/reporting_engine/report/validation.rb
  26. 0
      lib/reporting_engine/report/validation/dates.rb
  27. 0
      lib/reporting_engine/report/validation/integers.rb
  28. 0
      lib/reporting_engine/report/validation/sql.rb
  29. 0
      lib/reporting_engine/report/walker.rb
  30. 0
      lib/reporting_engine/reporting_helper.rb
  31. 0
      lib/reporting_engine/tasks/spec.rake
  32. 0
      lib/reporting_engine/to_date_patch.rb
  33. 3
      lib/reporting_engine/version.rb
  34. 4
      lib/reporting_engine/widget.rb
  35. 0
      lib/reporting_engine/widget/base.rb
  36. 0
      lib/reporting_engine/widget/controls.rb
  37. 0
      lib/reporting_engine/widget/controls/apply.rb
  38. 0
      lib/reporting_engine/widget/controls/clear.rb
  39. 0
      lib/reporting_engine/widget/controls/delete.rb
  40. 0
      lib/reporting_engine/widget/controls/query_name.rb
  41. 0
      lib/reporting_engine/widget/controls/save.rb
  42. 0
      lib/reporting_engine/widget/controls/save_as.rb
  43. 0
      lib/reporting_engine/widget/filters.rb
  44. 0
      lib/reporting_engine/widget/filters/base.rb
  45. 0
      lib/reporting_engine/widget/filters/date.rb
  46. 0
      lib/reporting_engine/widget/filters/heavy.rb
  47. 0
      lib/reporting_engine/widget/filters/label.rb
  48. 0
      lib/reporting_engine/widget/filters/multi_choice.rb
  49. 0
      lib/reporting_engine/widget/filters/multi_values.rb
  50. 0
      lib/reporting_engine/widget/filters/operators.rb
  51. 0
      lib/reporting_engine/widget/filters/option.rb
  52. 0
      lib/reporting_engine/widget/filters/remove_button.rb
  53. 0
      lib/reporting_engine/widget/filters/text_box.rb
  54. 0
      lib/reporting_engine/widget/group_bys.rb
  55. 0
      lib/reporting_engine/widget/help.rb
  56. 0
      lib/reporting_engine/widget/settings.rb
  57. 0
      lib/reporting_engine/widget/settings/fieldset.rb
  58. 2
      lib/reporting_engine/widget/table.rb
  59. 9
      lib/reporting_engine/widget/table/progressbar.rb
  60. 0
      lib/reporting_engine/widget/table/report_table.rb
  61. 22
      reporting_engine.gemspec

@ -1,10 +0,0 @@
fail "upgrade ruby version, ruby < 1.8.7 suffers from Hash#hash bug" if {:a => 10}.hash != {:a => 10}.hash
#require "hwia_rails"
require 'big_decimal_patch'
require 'to_date_patch'
# Defines the minimum number of cells for a 'big' report
# Big reports may be handled differently in the UI - i.e. ask the user
# if he's really sure to execute such a heavy report
Widget::Table::Progressbar.const_set 'THRESHHOLD', 2000

@ -0,0 +1,5 @@
fail "upgrade ruby version, ruby < 1.8.7 suffers from Hash#hash bug" if {:a => 10}.hash != {:a => 10}.hash
#require "hwia_rails"
require 'reporting_engine/big_decimal_patch'
require 'reporting_engine/to_date_patch'

@ -1,6 +1,4 @@
require 'forwardable' require 'reporting_engine/engine'
require 'proactive_autoloader'
require 'engine'
class Report < ActiveRecord::Base class Report < ActiveRecord::Base
extend ProactiveAutoloader extend ProactiveAutoloader

@ -1,4 +1,5 @@
require 'set' require 'set'
require 'reporting_engine/report'
module Report::InheritedAttribute module Report::InheritedAttribute
include Report::QueryUtils include Report::QueryUtils

@ -0,0 +1,3 @@
module ReportingEngine
VERSION = '0.0.1'
end

@ -1,3 +1,7 @@
require 'reporting_engine/reporting_helper'
require 'reporting_engine/proactive_autoloader'
class Widget < ActionView::Base class Widget < ActionView::Base
include ActionView::Helpers::TagHelper include ActionView::Helpers::TagHelper
include ActionView::Helpers::AssetTagHelper include ActionView::Helpers::AssetTagHelper

@ -1,3 +1,5 @@
require 'reporting_engine/report/inherited_attribute'
class Widget::Table < Widget::Base class Widget::Table < Widget::Base
extend Report::InheritedAttribute extend Report::InheritedAttribute
include ReportingHelper include ReportingHelper

@ -1,12 +1,17 @@
class Widget::Table::Progressbar < Widget::Base class Widget::Table::Progressbar < Widget::Base
dont_cache! dont_cache!
# Defines the minimum number of cells for a 'big' report
# Big reports may be handled differently in the UI - i.e. ask the user
# if he's really sure to execute such a heavy report
THRESHHOLD = 2000
def render def render
if render_table? if render_table?
render_widget Widget::Table, @subject, :to => (@output ||= "".html_safe) render_widget Widget::Table, @subject, :to => (@output ||= "".html_safe)
else else
write(content_tag :label, :style => "display:none" do write (content_tag :label, :style => "display:none" do
content_tag(:div, l(:label_progress_bar_explanation).html_safe) + content_tag(:div, l(:label_progress_bar_explanation).html_safe) + \
render_progress_bar render_progress_bar
end) end)
end end

@ -0,0 +1,22 @@
$:.push File.expand_path("../lib", __FILE__)
# Maintain your gem's version:
require "reporting_engine/version"
# Describe your gem and declare its dependencies:
Gem::Specification.new do |s|
s.name = "reporting_engine"
s.version = ReportingEngine::VERSION
s.authors = "Finn GmbH"
s.email = "info@finn.de"
s.homepage = "http://www.finn.de"
s.summary = "Creates table reports with custom fields and grouping"
# s.description = "This plugin adds features enabling agile teams to work with OpenProject in Scrum projects."
# FIXME
#s.files = Dir["{app,config,db,lib}/**/*", "Rakefile", "README.rdoc"]
# FIXME
# s.test_files = Dir["spec/**/*"]
s.add_dependency "rails", "~> 3.2.9"
s.add_dependency "json"
end
Loading…
Cancel
Save