Introduction
Introduction Statistics Contact Development Disclaimer Help
Adding ReportableJqueryFlotAssetsGenerator and rename ReportableAssetsGenerator…
Log
Files
Refs
README
---
commit c4395a017d0ae744f6644be99b17732254380103
parent cfb13be3fe3d6acdfb1d50ae49701bac363278fc
Author: Martin Kavalar <[email protected]>
Date: Wed, 21 Apr 2010 18:29:54 +0200
Adding ReportableJqueryFlotAssetsGenerator and rename ReportableAssetsGenerator…
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.