Introduction
Introduction Statistics Contact Development Disclaimer Help
Merge branch 'master' of [email protected]:saulabs/reportable - reportable - Fork …
Log
Files
Refs
README
---
commit 1d774153ecd40e3bc00bb6e0ac18501bdf9350b2
parent 55bb1205c1d8720d7a693b95f790e38ac2ba508a
Author: Marco Otte-Witte <[email protected]>
Date: Thu, 22 Apr 2010 09:31:49 +0200
Merge branch 'master' of [email protected]:saulabs/reportable
Diffstat:
D generators/reportable_assets/repor… | 37 ---------------------------…
A generators/reportable_grafico_asse… | 37 +++++++++++++++++++++++++++…
R generators/reportable_assets/templ… | 0
R generators/reportable_assets/templ… | 0
R generators/reportable_assets/templ… | 0
A generators/reportable_jquery_flot_… | 42 +++++++++++++++++++++++++++…
A generators/reportable_jquery_flot_… | 2 ++
A generators/reportable_jquery_flot_… | 2 ++
A generators/reportable_jquery_flot_… | 2 ++
A generators/reportable_jquery_flot_… | 20 ++++++++++++++++++++
10 files changed, 105 insertions(+), 37 deletions(-)
---
diff --git a/generators/reportable_assets/reportable_assets_generator.rb b/gene…
@@ -1,37 +0,0 @@
-if Saulabs::Reportable::IS_RAILS3
-
- class ReportableAssetsGenerator < Rails::Generators::Base
-
- include Rails::Generators::Actions
-
- def create_grafico_file
- empty_directory('public/javascripts')
- copy_file(
- File.join(File.dirname(__FILE__), 'templates', 'raphael.js'),
- 'public/javascripts/raphael.js'
- )
- copy_file(
- File.join(File.dirname(__FILE__), 'templates', 'grafico.min.js'),
- 'public/javascripts/grafico.min.js'
- )
- readme(File.join(File.dirname(__FILE__), 'templates', 'NOTES'))
- end
-
- end
-
-else
-
- class ReportableAssetsGenerator < Rails::Generator::Base
-
- def manifest
- record do |m|
- m.directory('public/javascripts')
- m.file('raphael.js', 'public/javascripts/raphael.js')
- m.file('grafico.min.js', 'public/javascripts/grafico.min.js')
- m.readme('NOTES')
- end
- end
-
- end
-
-end
diff --git a/generators/reportable_grafico_assets/reportable_grafico_assets_gen…
@@ -0,0 +1,37 @@
+if Saulabs::Reportable::IS_RAILS3
+
+ class ReportableGraficoAssetsGenerator < Rails::Generators::Base
+
+ include Rails::Generators::Actions
+
+ def create_grafico_file
+ empty_directory('public/javascripts')
+ copy_file(
+ File.join(File.dirname(__FILE__), 'templates', 'raphael.js'),
+ 'public/javascripts/raphael.js'
+ )
+ copy_file(
+ File.join(File.dirname(__FILE__), 'templates', 'grafico.min.js'),
+ 'public/javascripts/grafico.min.js'
+ )
+ readme(File.join(File.dirname(__FILE__), 'templates', 'NOTES'))
+ end
+
+ end
+
+else
+
+ class ReportableGraficoAssetsGenerator < Rails::Generator::Base
+
+ def manifest
+ record do |m|
+ m.directory('public/javascripts')
+ m.file('raphael.js', 'public/javascripts/raphael.js')
+ m.file('grafico.min.js', 'public/javascripts/grafico.min.js')
+ m.readme('NOTES')
+ end
+ end
+
+ end
+
+end
diff --git a/generators/reportable_assets/templates/NOTES b/generators/reportab…
diff --git a/generators/reportable_assets/templates/grafico.min.js b/generators…
diff --git a/generators/reportable_assets/templates/raphael.js b/generators/rep…
diff --git a/generators/reportable_jquery_flot_assets/reportable_jquery_flot_as…
@@ -0,0 +1,42 @@
+if Saulabs::Reportable::IS_RAILS3
+
+ class ReportableJqueryFlotAssetsGenerator < Rails::Generators::Base
+
+ include Rails::Generators::Actions
+
+ def create_grafico_file
+ empty_directory('public/javascripts')
+ copy_file(
+ File.join(File.dirname(__FILE__), 'templates', 'jquery.min.js'),
+ 'public/javascripts/jquery.min.js'
+ )
+ copy_file(
+ File.join(File.dirname(__FILE__), 'templates', 'jquery.flot.min.js'),
+ 'public/javascripts/jquery.flot.min.js'
+ )
+ copy_file(
+ File.join(File.dirname(__FILE__), 'templates', 'excanvas.min.js'),
+ 'public/javascripts/excanvas.min.js'
+ )
+ readme(File.join(File.dirname(__FILE__), 'templates', 'NOTES'))
+ end
+
+ end
+
+else
+
+ class ReportableJqueryFlotAssetsGenerator < Rails::Generator::Base
+
+ def manifest
+ record do |m|
+ m.directory('public/javascripts')
+ m.file('jquery.min.js', 'public/javascripts/jquery.min.js')
+ m.file('jquery.flot.min.js', 'public/javascripts/jquery.flot.min.js')
+ m.file('excanvas.min.js', 'public/javascripts/excanvas.min.js')
+ m.readme('NOTES')
+ end
+ end
+
+ end
+
+end
diff --git a/generators/reportable_jquery_flot_assets/templates/NOTES b/generat…
@@ -0,0 +1,2 @@
+
+ ** Don't forget to include jquery, excanvas, jquery float in your layout's h…
diff --git a/generators/reportable_jquery_flot_assets/templates/excanvas.min.js…
@@ -0,0 +1 @@
+if(!document.createElement("canvas").getContext){(function(){var z=Math;var K=…
+\ No newline at end of file
diff --git a/generators/reportable_jquery_flot_assets/templates/jquery.flot.min…
@@ -0,0 +1 @@
+(function(){jQuery.color={};jQuery.color.make=function(G,H,J,I){var A={};A.r=G…
+\ No newline at end of file
diff --git a/generators/reportable_jquery_flot_assets/templates/jquery.min.js b…
@@ -0,0 +1,19 @@
+/*
+ * jQuery JavaScript Library v1.3.2
+ * http://jquery.com/
+ *
+ * Copyright (c) 2009 John Resig
+ * Dual licensed under the MIT and GPL licenses.
+ * http://docs.jquery.com/License
+ *
+ * Date: 2009-02-19 17:34:21 -0500 (Thu, 19 Feb 2009)
+ * Revision: 6246
+ */
+(function(){var window=this,undefined,_jQuery=window.jQuery,_$=window.$,jQuery…
+/*
+ * Sizzle CSS Selector Engine - v0.9.3
+ * Copyright 2009, The Dojo Foundation
+ * Released under the MIT, BSD, and GPL Licenses.
+ * More information: http://sizzlejs.com/
+ */
+(function(){var chunker=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^[\]]*\]|['"][…
+\ No newline at end of file
You are viewing proxied material from jay.scot. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.