compass-jquery-plugin 0.3.0.beta.4 → 0.3.0.beta.5
Sign up to get free protection for your applications and to get access to all the features.
- data/README.textile +166 -165
- data/Rakefile +3 -1
- data/VERSION.yml +1 -1
- data/compass-jquery-plugin.gemspec +20 -5
- data/gem_tasks/calendar.rake +78 -0
- data/gem_tasks/jqgrid.rake +1 -1
- data/gem_tasks/rubygems.rake +1 -1
- data/lib/eventually.rb +4 -0
- data/lib/eventually/event.rb +84 -0
- data/lib/jquery.ui.rb +29 -16
- data/lib/jquery/calendar.rb +5 -0
- data/templates/calendar/config/initializers/calendar.rb +3 -0
- data/templates/calendar/jquery.calendar.js +5621 -0
- data/templates/calendar/jquery.calendar.min.js +198 -0
- data/templates/calendar/jquery.ui/calendar.scss +693 -0
- data/templates/calendar/manifest.rb +7 -0
- data/templates/jqgrid/jquery.jqGrid.js +28 -23
- data/templates/jqgrid/jquery.jqGrid.min.js +58 -58
- data/templates/jrails-1.3/jquery.ui/_theme.scss +4 -2
- data/templates/jrails-1.3/jquery.ui/base.scss +5 -3
- data/templates/jrails-1.3/jquery.ui/black-tie.scss +5 -3
- data/templates/jrails-1.3/jquery.ui/blitzer.scss +5 -3
- data/templates/jrails-1.3/jquery.ui/cupertino.scss +5 -3
- data/templates/jrails-1.3/jquery.ui/dark-hive.scss +5 -3
- data/templates/jrails-1.3/jquery.ui/dot-luv.scss +5 -3
- data/templates/jrails-1.3/jquery.ui/eggplant.scss +5 -3
- data/templates/jrails-1.3/jquery.ui/excite-bike.scss +5 -3
- data/templates/jrails-1.3/jquery.ui/flick.scss +5 -3
- data/templates/jrails-1.3/jquery.ui/hot-sneaks.scss +5 -3
- data/templates/jrails-1.3/jquery.ui/humanity.scss +5 -3
- data/templates/jrails-1.3/jquery.ui/le-frog.scss +5 -3
- data/templates/jrails-1.3/jquery.ui/mint-choc.scss +5 -3
- data/templates/jrails-1.3/jquery.ui/overcast.scss +5 -3
- data/templates/jrails-1.3/jquery.ui/pepper-grinder.scss +5 -3
- data/templates/jrails-1.3/jquery.ui/redmond.scss +5 -3
- data/templates/jrails-1.3/jquery.ui/smoothness.scss +5 -3
- data/templates/jrails-1.3/jquery.ui/south-street.scss +5 -3
- data/templates/jrails-1.3/jquery.ui/sunny.scss +5 -3
- data/templates/jrails-1.3/jquery.ui/swanky-purse.scss +5 -3
- data/templates/jrails-1.3/jquery.ui/trontastic.scss +5 -3
- data/templates/jrails-1.3/jquery.ui/ui-darkness.scss +5 -3
- data/templates/jrails-1.3/jquery.ui/ui-lightness.scss +5 -3
- data/templates/jrails-1.3/jquery.ui/vader.scss +5 -3
- data/templates/jrails-1.4/jquery.ui/_theme.scss +4 -2
- data/templates/jrails-1.4/jquery.ui/base.scss +5 -3
- data/templates/jrails-1.4/jquery.ui/black-tie.scss +5 -3
- data/templates/jrails-1.4/jquery.ui/blitzer.scss +5 -3
- data/templates/jrails-1.4/jquery.ui/cupertino.scss +5 -3
- data/templates/jrails-1.4/jquery.ui/dark-hive.scss +5 -3
- data/templates/jrails-1.4/jquery.ui/dot-luv.scss +5 -3
- data/templates/jrails-1.4/jquery.ui/eggplant.scss +5 -3
- data/templates/jrails-1.4/jquery.ui/excite-bike.scss +5 -3
- data/templates/jrails-1.4/jquery.ui/flick.scss +5 -3
- data/templates/jrails-1.4/jquery.ui/hot-sneaks.scss +5 -3
- data/templates/jrails-1.4/jquery.ui/humanity.scss +5 -3
- data/templates/jrails-1.4/jquery.ui/le-frog.scss +5 -3
- data/templates/jrails-1.4/jquery.ui/mint-choc.scss +5 -3
- data/templates/jrails-1.4/jquery.ui/overcast.scss +5 -3
- data/templates/jrails-1.4/jquery.ui/pepper-grinder.scss +5 -3
- data/templates/jrails-1.4/jquery.ui/redmond.scss +5 -3
- data/templates/jrails-1.4/jquery.ui/smoothness.scss +5 -3
- data/templates/jrails-1.4/jquery.ui/south-street.scss +5 -3
- data/templates/jrails-1.4/jquery.ui/start.scss +5 -3
- data/templates/jrails-1.4/jquery.ui/sunny.scss +5 -3
- data/templates/jrails-1.4/jquery.ui/swanky-purse.scss +5 -3
- data/templates/jrails-1.4/jquery.ui/trontastic.scss +5 -3
- data/templates/jrails-1.4/jquery.ui/ui-darkness.scss +5 -3
- data/templates/jrails-1.4/jquery.ui/ui-lightness.scss +5 -3
- data/templates/jrails-1.4/jquery.ui/vader.scss +5 -3
- metadata +44 -7
data/README.textile
CHANGED
@@ -1,165 +1,166 @@
|
|
1
|
-
h1. compass-jquery-plugin
|
2
|
-
|
3
|
-
Get gem from <b>"Gemcutter":http://gemcutter.org/gems/compass-jquery-plugin</b>.
|
4
|
-
Get source from <b>"github":http://github.com/kosmas58/compass-jquery-plugin</b>.
|
5
|
-
|
6
|
-
|
7
|
-
h2. Description
|
8
|
-
|
9
|
-
A Sass-based Meta-Framework for Compass that allows you to mix and match any of the following:
|
10
|
-
|
11
|
-
* jRails with
|
12
|
-
** jQuery 1.4.2 and jQuery.UI 1.8.1 including themes
|
13
|
-
or
|
14
|
-
** jQuery 1.3.2 and jQuery.UI 1.7.3 including themes
|
15
|
-
* jquery.dynatree.js V0.5.3
|
16
|
-
* jquery.ribbon.js
|
17
|
-
* jquery.jqGrid.js V3.6.
|
18
|
-
* jquery.jqtouch.js V1.0b2
|
19
|
-
|
20
|
-
This library requires <b>"Compass":http://wiki.github.com/chriseppstein/compass</b>.
|
21
|
-
|
22
|
-
h3. jRails, jQuery and jQuery.UI including themes
|
23
|
-
|
24
|
-
Use compass to install the jRails, jQuery and jQuery.UI javascript library including themes into your project.
|
25
|
-
|
26
|
-
For jQuery 1.4.x:
|
27
|
-
<pre>compass [-r jquery]
|
28
|
-
|
29
|
-
For jQuery 1.3.x
|
30
|
-
<pre>compass [-r jquery]
|
31
|
-
|
32
|
-
You will find all the stylesheets in easy-to-read Sass format at:
|
33
|
-
|
34
|
-
<pre>stylesheets/jquery.ui</pre>
|
35
|
-
|
36
|
-
To use the localized stylesheets and javacripts for jQuery include (using the rails_xss plugin):
|
37
|
-
|
38
|
-
<pre>
|
39
|
-
= stylesheet_link_tag "compiled/jquery.ui/[theme].css", :media => 'screen, projection'
|
40
|
-
= javascript_include_tag :defaults
|
41
|
-
= raw jrails_javascripts(I18n.locale)</pre>
|
42
|
-
|
43
|
-
alternatively you can include:
|
44
|
-
<pre>
|
45
|
-
= stylesheet_link_tag "compiled/jquery.ui/[theme].css", :media => 'screen, projection'
|
46
|
-
= javascript_include_tag :jquery_142 (or :jquery_132)
|
47
|
-
= javascript_include_tag :jrails
|
48
|
-
= raw jrails_javascripts(I18n.locale)</pre>
|
49
|
-
|
50
|
-
into your layouts.
|
51
|
-
|
52
|
-
h3. jQuery Dynatree Plugin
|
53
|
-
|
54
|
-
Use compass to install the jQuery Dynatree javascript library into your project.
|
55
|
-
|
56
|
-
<pre>compass [-r jquery]
|
57
|
-
|
58
|
-
You will find all the stylesheets in easy-to-read Sass format at:
|
59
|
-
|
60
|
-
<pre>stylesheets/jquery.ui</pre>
|
61
|
-
|
62
|
-
To use the localized stylesheets and javacripts include:
|
63
|
-
|
64
|
-
<pre>
|
65
|
-
= stylesheet_link_tag 'compiled/jquery.ui/dynatree.[skin].css', :media => 'screen, projection'
|
66
|
-
= javascript_include_tag :dynatree</pre>
|
67
|
-
|
68
|
-
h3. jqGrid
|
69
|
-
|
70
|
-
Use compass to install the jqGrid javascript library into your project.
|
71
|
-
|
72
|
-
<pre>compass [-r jquery]
|
73
|
-
|
74
|
-
You will find the jqGrid stylesheet in easy-to-read Sass format at:
|
75
|
-
|
76
|
-
<pre>stylesheets/jquery.ui</pre>
|
77
|
-
|
78
|
-
To use the localized stylesheets and javacripts include:
|
79
|
-
|
80
|
-
<pre>
|
81
|
-
= stylesheet_link_tag 'compiled/jquery.ui/jqGrid.css', :media => 'screen, projection'
|
82
|
-
= raw jqgrid_javascripts(I18n.locale)</pre>
|
83
|
-
|
84
|
-
h3. Secret Sauce
|
85
|
-
|
86
|
-
Use compass to install the Secret Sauce for jqGrid javascript library into your project.
|
87
|
-
|
88
|
-
<pre>compass [-r jquery]
|
89
|
-
|
90
|
-
You will find all the stylesheets in easy-to-read Sass format.
|
91
|
-
|
92
|
-
<pre>stylesheets/jquery.ui</pre>
|
93
|
-
|
94
|
-
To use the localized stylesheets and javacripts include:
|
95
|
-
|
96
|
-
<pre>
|
97
|
-
= stylesheet_link_tag 'compiled/jquery.ui/secret_sauce.css', :media => 'screen, projection'
|
98
|
-
= javascript_include_tag :secret_sauce</pre>
|
99
|
-
|
100
|
-
h3. jQTouch
|
101
|
-
|
102
|
-
Use compass to install the jQTouch javascript library into your project.
|
103
|
-
|
104
|
-
<pre>compass [-r jquery]
|
105
|
-
|
106
|
-
You will find all the stylesheets in easy-to-read Sass format at:
|
107
|
-
|
108
|
-
<pre>stylesheets/jqtouch</pre>
|
109
|
-
|
110
|
-
To use the localized stylesheets and javacripts include:
|
111
|
-
|
112
|
-
<pre>
|
113
|
-
= stylesheet_link_tag 'compiled/jqtouch/[theme].css', :media => 'screen, projection'
|
114
|
-
= javascript_include_tag :jqtouch'</pre>
|
115
|
-
|
116
|
-
There is iPhone lookalike stylesheet using an IFrame available for tests without a iPhone. You can include it by
|
117
|
-
|
118
|
-
<pre>
|
119
|
-
= stylesheet_link_tag 'compiled/jqtouch/iphone-emulator.css', :media => 'screen, projection'</pre>
|
120
|
-
|
121
|
-
h2. Thanks to the Contributors:
|
122
|
-
|
123
|
-
h3. Rails
|
124
|
-
|
125
|
-
* aaron for <b>"jRails":http://code.google.com/p/ennerchi/</b>
|
126
|
-
* David Turnbull for <b>"compass-jquery":http://github.com/dturnbull/compass-jquery/tree/master</b>
|
127
|
-
* Jonathan Linowes for <b>"gridify":http://github.com/linoj/gridify</b>
|
128
|
-
* ahe for <b>"2dc_jqgrid":http://github.com/ahe/2dc_jqgrid/tree/master</b>
|
129
|
-
* scrubber for <b>"jquery_grid_for_rails":http://github.com/scrubber/jquery_grid_for_rails/tree/master</b>
|
130
|
-
* ariesroyaal for <b>"secret_sauce":http://github.com/ariesroyaal/secret_sauce/tree/master</b> now <b>"at":http://github.com/fugufish/secret_sauce</b>.
|
131
|
-
|
132
|
-
h3. jQuery Plugins included
|
133
|
-
|
134
|
-
* Andreas Eberhard for <b>"jQuery PngFix Plugin (for IE)":http://jquery.andreaseberhard.de/</b>
|
135
|
-
* Kalus Hartl for <b>"jQuery Cookie Plugin":http://stilbuero.de</b>
|
136
|
-
* Fabrizio Balliano and Fabrizio Balliano for <b>"jQuery Layout Plugin":http://www.fabrizioballiano.net/</b>
|
137
|
-
* John Reisig et. al. for <b>"jQuery Form Plugin":http://malsup.com/jquery/form/</b>
|
138
|
-
* Martin Wendt for <b>"jQuery Dynatree Plugin":http://www.wwwendt.de</b>
|
139
|
-
* Mikael Soederstroem for <b>"jQuery Ribbon Plugin":http://jqueryribbon.codeplex.com/</b>
|
140
|
-
* Tony Tomov for <b>"jQuery Grid Plugin":http://www.trirand.com/blog/</b>
|
141
|
-
* David Kaneda for <b>"jQTouch":http://www.jqtouch.com/</b>
|
142
|
-
* Chris Domigan for <b>"jQuery ContextMenu Plugin":http://www.trendskitchens.co.nz/jquery/contextmenu/</b>
|
143
|
-
* Denis Howlett for <b>"jQuery Table Drag and Drop Plugin":http://www.isocra.com/2008/02/table-drag-and-drop-jquery-plugin/</b>
|
144
|
-
* Michael Aufreiter for <b>"jQuery UI Multiselect Plugin":http://quasipartikel.at</b>
|
145
|
-
* Tim Caswell for <b>"jQuery haml Plugin":http://github.com/creationix/haml-js</b>
|
146
|
-
|
147
|
-
* Working on integration of:
|
148
|
-
**
|
149
|
-
**
|
150
|
-
|
151
|
-
|
152
|
-
|
153
|
-
|
154
|
-
*
|
155
|
-
*
|
156
|
-
|
157
|
-
|
158
|
-
|
159
|
-
|
160
|
-
|
161
|
-
|
162
|
-
|
163
|
-
|
164
|
-
|
165
|
-
|
1
|
+
h1. compass-jquery-plugin
|
2
|
+
|
3
|
+
Get gem from <b>"Gemcutter":http://gemcutter.org/gems/compass-jquery-plugin</b>.
|
4
|
+
Get source from <b>"github":http://github.com/kosmas58/compass-jquery-plugin</b>.
|
5
|
+
|
6
|
+
|
7
|
+
h2. Description
|
8
|
+
|
9
|
+
A Sass-based Meta-Framework for Compass that allows you to mix and match any of the following:
|
10
|
+
|
11
|
+
* jRails with
|
12
|
+
** jQuery 1.4.2 and jQuery.UI 1.8.1 including themes
|
13
|
+
or
|
14
|
+
** jQuery 1.3.2 and jQuery.UI 1.7.3 including themes
|
15
|
+
* jquery.dynatree.js V0.5.3
|
16
|
+
* jquery.ribbon.js
|
17
|
+
* jquery.jqGrid.js V3.6.5 (with minor changes to make in RESTful)
|
18
|
+
* jquery.jqtouch.js V1.0b2
|
19
|
+
|
20
|
+
This library requires <b>"Compass":http://wiki.github.com/chriseppstein/compass</b>.
|
21
|
+
|
22
|
+
h3. jRails, jQuery and jQuery.UI including themes
|
23
|
+
|
24
|
+
Use compass to install the jRails, jQuery and jQuery.UI javascript library including themes into your project.
|
25
|
+
|
26
|
+
For jQuery 1.4.x:
|
27
|
+
<pre>compass install [-r jquery] jquery/jrails-1.4 <project name></pre>
|
28
|
+
|
29
|
+
For jQuery 1.3.x
|
30
|
+
<pre>compass install [-r jquery] jquery/jrails-1.3 <project name></pre>
|
31
|
+
|
32
|
+
You will find all the stylesheets in easy-to-read Sass format at:
|
33
|
+
|
34
|
+
<pre>stylesheets/jquery.ui</pre>
|
35
|
+
|
36
|
+
To use the localized stylesheets and javacripts for jQuery include (using the rails_xss plugin):
|
37
|
+
|
38
|
+
<pre>
|
39
|
+
= stylesheet_link_tag "compiled/jquery.ui/[theme].css", :media => 'screen, projection'
|
40
|
+
= javascript_include_tag :defaults
|
41
|
+
= raw jrails_javascripts(I18n.locale)</pre>
|
42
|
+
|
43
|
+
alternatively you can include:
|
44
|
+
<pre>
|
45
|
+
= stylesheet_link_tag "compiled/jquery.ui/[theme].css", :media => 'screen, projection'
|
46
|
+
= javascript_include_tag :jquery_142 (or :jquery_132)
|
47
|
+
= javascript_include_tag :jrails
|
48
|
+
= raw jrails_javascripts(I18n.locale)</pre>
|
49
|
+
|
50
|
+
into your layouts.
|
51
|
+
|
52
|
+
h3. jQuery Dynatree Plugin
|
53
|
+
|
54
|
+
Use compass to install the jQuery Dynatree javascript library into your project.
|
55
|
+
|
56
|
+
<pre>compass install [-r jquery] jquery/dynatree <project name></pre>
|
57
|
+
|
58
|
+
You will find all the stylesheets in easy-to-read Sass format at:
|
59
|
+
|
60
|
+
<pre>stylesheets/jquery.ui</pre>
|
61
|
+
|
62
|
+
To use the localized stylesheets and javacripts include:
|
63
|
+
|
64
|
+
<pre>
|
65
|
+
= stylesheet_link_tag 'compiled/jquery.ui/dynatree.[skin].css', :media => 'screen, projection'
|
66
|
+
= javascript_include_tag :dynatree</pre>
|
67
|
+
|
68
|
+
h3. jqGrid
|
69
|
+
|
70
|
+
Use compass to install the jqGrid javascript library into your project.
|
71
|
+
|
72
|
+
<pre>compass install [-r jquery] jquery/jqgrid <project name></pre>
|
73
|
+
|
74
|
+
You will find the jqGrid stylesheet in easy-to-read Sass format at:
|
75
|
+
|
76
|
+
<pre>stylesheets/jquery.ui</pre>
|
77
|
+
|
78
|
+
To use the localized stylesheets and javacripts include:
|
79
|
+
|
80
|
+
<pre>
|
81
|
+
= stylesheet_link_tag 'compiled/jquery.ui/jqGrid.css', :media => 'screen, projection'
|
82
|
+
= raw jqgrid_javascripts(I18n.locale)</pre>
|
83
|
+
|
84
|
+
h3. Secret Sauce
|
85
|
+
|
86
|
+
Use compass to install the Secret Sauce for jqGrid javascript library into your project.
|
87
|
+
|
88
|
+
<pre>compass install [-r jquery] jquery/secret_sauce <project name></pre>
|
89
|
+
|
90
|
+
You will find all the stylesheets in easy-to-read Sass format.
|
91
|
+
|
92
|
+
<pre>stylesheets/jquery.ui</pre>
|
93
|
+
|
94
|
+
To use the localized stylesheets and javacripts include:
|
95
|
+
|
96
|
+
<pre>
|
97
|
+
= stylesheet_link_tag 'compiled/jquery.ui/secret_sauce.css', :media => 'screen, projection'
|
98
|
+
= javascript_include_tag :secret_sauce</pre>
|
99
|
+
|
100
|
+
h3. jQTouch
|
101
|
+
|
102
|
+
Use compass to install the jQTouch javascript library into your project.
|
103
|
+
|
104
|
+
<pre>compass install [-r jquery] jquery/jqtouch <project name></pre>
|
105
|
+
|
106
|
+
You will find all the stylesheets in easy-to-read Sass format at:
|
107
|
+
|
108
|
+
<pre>stylesheets/jqtouch</pre>
|
109
|
+
|
110
|
+
To use the localized stylesheets and javacripts include:
|
111
|
+
|
112
|
+
<pre>
|
113
|
+
= stylesheet_link_tag 'compiled/jqtouch/[theme].css', :media => 'screen, projection'
|
114
|
+
= javascript_include_tag :jqtouch'</pre>
|
115
|
+
|
116
|
+
There is iPhone lookalike stylesheet using an IFrame available for tests without a iPhone. You can include it by
|
117
|
+
|
118
|
+
<pre>
|
119
|
+
= stylesheet_link_tag 'compiled/jqtouch/iphone-emulator.css', :media => 'screen, projection'</pre>
|
120
|
+
|
121
|
+
h2. Thanks to the Contributors:
|
122
|
+
|
123
|
+
h3. Rails
|
124
|
+
|
125
|
+
* aaron for <b>"jRails":http://code.google.com/p/ennerchi/</b>
|
126
|
+
* David Turnbull for <b>"compass-jquery":http://github.com/dturnbull/compass-jquery/tree/master</b>
|
127
|
+
* Jonathan Linowes for <b>"gridify":http://github.com/linoj/gridify</b>
|
128
|
+
* ahe for <b>"2dc_jqgrid":http://github.com/ahe/2dc_jqgrid/tree/master</b>
|
129
|
+
* scrubber for <b>"jquery_grid_for_rails":http://github.com/scrubber/jquery_grid_for_rails/tree/master</b>
|
130
|
+
* ariesroyaal for <b>"secret_sauce":http://github.com/ariesroyaal/secret_sauce/tree/master</b> now <b>"at":http://github.com/fugufish/secret_sauce</b>.
|
131
|
+
|
132
|
+
h3. jQuery Plugins included
|
133
|
+
|
134
|
+
* Andreas Eberhard for <b>"jQuery PngFix Plugin (for IE)":http://jquery.andreaseberhard.de/</b>
|
135
|
+
* Kalus Hartl for <b>"jQuery Cookie Plugin":http://stilbuero.de</b>
|
136
|
+
* Fabrizio Balliano and Fabrizio Balliano for <b>"jQuery Layout Plugin":http://www.fabrizioballiano.net/</b>
|
137
|
+
* John Reisig et. al. for <b>"jQuery Form Plugin":http://malsup.com/jquery/form/</b>
|
138
|
+
* Martin Wendt for <b>"jQuery Dynatree Plugin":http://www.wwwendt.de</b>
|
139
|
+
* Mikael Soederstroem for <b>"jQuery Ribbon Plugin":http://jqueryribbon.codeplex.com/</b>
|
140
|
+
* Tony Tomov for <b>"jQuery Grid Plugin":http://www.trirand.com/blog/</b>
|
141
|
+
* David Kaneda for <b>"jQTouch":http://www.jqtouch.com/</b>
|
142
|
+
* Chris Domigan for <b>"jQuery ContextMenu Plugin":http://www.trendskitchens.co.nz/jquery/contextmenu/</b>
|
143
|
+
* Denis Howlett for <b>"jQuery Table Drag and Drop Plugin":http://www.isocra.com/2008/02/table-drag-and-drop-jquery-plugin/</b>
|
144
|
+
* Michael Aufreiter for <b>"jQuery UI Multiselect Plugin":http://quasipartikel.at</b>
|
145
|
+
* Tim Caswell for <b>"jQuery haml Plugin":http://github.com/creationix/haml-js</b>
|
146
|
+
|
147
|
+
* Working on integration of:
|
148
|
+
** Rick DeNatale for <b>"ri_cal":http://github.com/rubyredrick/ri_cal/</b>
|
149
|
+
** Rob Monie for <b>"jQuery.weekCalendar":http://www.redredred.com.au/</b>
|
150
|
+
** Kyle LeNeau for <b>"jMonthCalendar":http://www.bytecyclist.com/projects/jmonthcalendar</b>
|
151
|
+
|
152
|
+
h2. Note on Patches/Pull Requests
|
153
|
+
|
154
|
+
* Fork the project.
|
155
|
+
* Make your feature addition or bug fix.
|
156
|
+
* Add tests for it. This is important so I don't break it in a
|
157
|
+
future version unintentionally.
|
158
|
+
* Commit, do not mess with rakefile, version, or history.
|
159
|
+
(if you want to have your own version, that is fine but
|
160
|
+
bump version in a commit by itself I can ignore when I pull)
|
161
|
+
* Send me a pull request. Bonus points for topic branches.
|
162
|
+
|
163
|
+
h2. Copyright
|
164
|
+
|
165
|
+
Copyright (c) 2009-2010 Kosmas Schuetz. See LICENSE for details.
|
166
|
+
|
data/Rakefile
CHANGED
@@ -13,7 +13,9 @@ begin
|
|
13
13
|
gem.homepage = "http://github.com/kosmas58/compass-jquery-plugin"
|
14
14
|
gem.summary = "A compass plugin that integrates jRails, jQuery, jQuery UI and Themes, jqGrid and more into the Compass Sass framework."
|
15
15
|
gem.description = gem.summary
|
16
|
-
gem.add_dependency("
|
16
|
+
gem.add_dependency("haml", [">= 3.0.0"])
|
17
|
+
gem.add_dependency("compass", [">= 0.10.0"])
|
18
|
+
gem.add_dependency("ri_cal", [">= 0.8.7"])
|
17
19
|
gem.files.exclude("src/**/")
|
18
20
|
end
|
19
21
|
Jeweler::GemcutterTasks.new
|
data/VERSION.yml
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{compass-jquery-plugin}
|
8
|
-
s.version = "0.3.0.beta.
|
8
|
+
s.version = "0.3.0.beta.5"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new("> 1.3.1") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Kosmas Schuetz"]
|
12
|
-
s.date = %q{2010-05-
|
12
|
+
s.date = %q{2010-05-11}
|
13
13
|
s.description = %q{A compass plugin that integrates jRails, jQuery, jQuery UI and Themes, jqGrid and more into the Compass Sass framework.}
|
14
14
|
s.email = %q{kosmas.schuetz@gmx.com}
|
15
15
|
s.extra_rdoc_files = [
|
@@ -25,6 +25,7 @@ Gem::Specification.new do |s|
|
|
25
25
|
"Rakefile",
|
26
26
|
"VERSION.yml",
|
27
27
|
"compass-jquery-plugin.gemspec",
|
28
|
+
"gem_tasks/calendar.rake",
|
28
29
|
"gem_tasks/dynatree.rake",
|
29
30
|
"gem_tasks/jqgrid.rake",
|
30
31
|
"gem_tasks/jqtouch.rake",
|
@@ -35,10 +36,13 @@ Gem::Specification.new do |s|
|
|
35
36
|
"gem_tasks/rubygems.rake",
|
36
37
|
"gem_tasks/secret_sauce.rake",
|
37
38
|
"lib/compiler.jar",
|
39
|
+
"lib/eventually.rb",
|
40
|
+
"lib/eventually/event.rb",
|
38
41
|
"lib/handle_attributes.rb",
|
39
42
|
"lib/handle_js_files.rb",
|
40
43
|
"lib/jquery.rb",
|
41
44
|
"lib/jquery.ui.rb",
|
45
|
+
"lib/jquery/calendar.rb",
|
42
46
|
"lib/jquery/compass_plugin.rb",
|
43
47
|
"lib/jquery/dynatree.rb",
|
44
48
|
"lib/jquery/gridify.rb",
|
@@ -63,6 +67,11 @@ Gem::Specification.new do |s|
|
|
63
67
|
"lib/jquery/secret_sauce/helpers/ui_grid_helper.rb",
|
64
68
|
"lib/jquery/secret_sauce/model/find_for_grid.rb",
|
65
69
|
"lib/yuicompressor-2.4.2.jar",
|
70
|
+
"templates/calendar/config/initializers/calendar.rb",
|
71
|
+
"templates/calendar/jquery.calendar.js",
|
72
|
+
"templates/calendar/jquery.calendar.min.js",
|
73
|
+
"templates/calendar/jquery.ui/calendar.scss",
|
74
|
+
"templates/calendar/manifest.rb",
|
66
75
|
"templates/dynatree/config/initializers/dynatree.rb",
|
67
76
|
"templates/dynatree/jquery.dynatree.js",
|
68
77
|
"templates/dynatree/jquery.dynatree.min.js",
|
@@ -1734,12 +1743,18 @@ Gem::Specification.new do |s|
|
|
1734
1743
|
s.specification_version = 3
|
1735
1744
|
|
1736
1745
|
if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
|
1737
|
-
s.add_runtime_dependency(%q<
|
1746
|
+
s.add_runtime_dependency(%q<haml>, [">= 3.0.0"])
|
1747
|
+
s.add_runtime_dependency(%q<compass>, [">= 0.10.0"])
|
1748
|
+
s.add_runtime_dependency(%q<ri_cal>, [">= 0.8.7"])
|
1738
1749
|
else
|
1739
|
-
s.add_dependency(%q<
|
1750
|
+
s.add_dependency(%q<haml>, [">= 3.0.0"])
|
1751
|
+
s.add_dependency(%q<compass>, [">= 0.10.0"])
|
1752
|
+
s.add_dependency(%q<ri_cal>, [">= 0.8.7"])
|
1740
1753
|
end
|
1741
1754
|
else
|
1742
|
-
s.add_dependency(%q<
|
1755
|
+
s.add_dependency(%q<haml>, [">= 3.0.0"])
|
1756
|
+
s.add_dependency(%q<compass>, [">= 0.10.0"])
|
1757
|
+
s.add_dependency(%q<ri_cal>, [">= 0.8.7"])
|
1743
1758
|
end
|
1744
1759
|
end
|
1745
1760
|
|
@@ -0,0 +1,78 @@
|
|
1
|
+
require 'fileutils'
|
2
|
+
require 'lib/handle_js_files'
|
3
|
+
|
4
|
+
CALENDAR_SRC = File.join(GEM_ROOT, 'src', 'calendar')
|
5
|
+
CALENDAR_SRC_TRANSLATIONS = File.join(CALENDAR_SRC, 'js', 'i18n') + "/*.js"
|
6
|
+
|
7
|
+
CALENDAR_DEST_TEMPLATES = File.join(GEM_ROOT, 'templates', 'calendar')
|
8
|
+
CALENDAR_DEST_STYLESHEETS = File.join(CALENDAR_DEST_TEMPLATES, 'jquery.ui')
|
9
|
+
CALENDAR_DEST_TRANSLATIONS = File.join(CALENDAR_DEST_TEMPLATES, 'i18n', 'calendar')
|
10
|
+
|
11
|
+
CALENDAR_MESSAGE1 = "# Generated by compass-jquery-plugin/gem-tasks/calendar.rake\n# Install with: compass -f jquery -p calendar\n\n"
|
12
|
+
CALENDAR_MESSAGE2 = "// Generated by compass-jquery-plugin/gem-tasks/calendar.rake\n\n"
|
13
|
+
|
14
|
+
all_scripts = [
|
15
|
+
'js/fullcalendar.js',
|
16
|
+
'js/jquery.weekcalendar.js',
|
17
|
+
'js/jMonthCalendar.js'
|
18
|
+
].collect {|filename| File.read(File.join(CALENDAR_SRC, filename))}.join "\n\n"
|
19
|
+
|
20
|
+
all_stylesheets = [
|
21
|
+
'fullcalendar.css',
|
22
|
+
'jquery.weekcalendar.css',
|
23
|
+
'jMonthCalendar.css'
|
24
|
+
].collect {|filename| File.read(File.join(CALENDAR_SRC, 'css', filename))}.join "\n\n"
|
25
|
+
|
26
|
+
namespace :build do
|
27
|
+
desc 'Build the stylesheets and templates for calendar.'
|
28
|
+
task :calendar do
|
29
|
+
|
30
|
+
FileUtils.remove_dir CALENDAR_DEST_TEMPLATES if File.exists? CALENDAR_DEST_TEMPLATES
|
31
|
+
FileUtils.mkdir_p(File.join(CALENDAR_DEST_TEMPLATES, 'config', 'initializers'))
|
32
|
+
|
33
|
+
open File.join(CALENDAR_DEST_TEMPLATES, 'manifest.rb'), 'w' do |manifest|
|
34
|
+
manifest.print CALENDAR_MESSAGE1
|
35
|
+
|
36
|
+
open File.join(CALENDAR_DEST_TEMPLATES, 'config', 'initializers', 'calendar.rb'), 'w' do |f|
|
37
|
+
f.print(File.read(File.join(CALENDAR_SRC, 'config', 'initializers', 'calendar.rb')))
|
38
|
+
end
|
39
|
+
manifest.print "file 'config/initializers/calendar.rb'\n"
|
40
|
+
|
41
|
+
open File.join(CALENDAR_DEST_TEMPLATES, 'jquery.calendar.js'), 'w' do |f|
|
42
|
+
f.print concat_files(all_scripts)
|
43
|
+
end
|
44
|
+
manifest.print "javascript 'jquery.calendar.js'\n"
|
45
|
+
|
46
|
+
open File.join(CALENDAR_DEST_TEMPLATES, 'jquery.calendar.min.js'), 'w' do |f|
|
47
|
+
f.print compress_js(all_scripts, "google")
|
48
|
+
end
|
49
|
+
manifest.print "javascript 'jquery.calendar.min.js'\n"
|
50
|
+
|
51
|
+
# ['i18n'].each do |path|
|
52
|
+
# FileUtils.mkdir_p File.join(CALENDAR_DEST_TRANSLATIONS)
|
53
|
+
# Dir.foreach File.join(CALENDAR_SRC, 'js', path) do |file|
|
54
|
+
# next unless /\.js$/ =~ file
|
55
|
+
# js = File.read File.join(CALENDAR_SRC, 'js', path, file)
|
56
|
+
# file.gsub!(/^grid\./,'')
|
57
|
+
# manifest.print "javascript '#{File.join(path, 'calendar', file)}'\n"
|
58
|
+
# open File.join(CALENDAR_DEST_TRANSLATIONS, file), 'w' do |f|
|
59
|
+
# f.write js
|
60
|
+
# end
|
61
|
+
# file.gsub!(/\.js$/, '.min.js')
|
62
|
+
# manifest.print "javascript '#{File.join(path, 'calendar', file)}'\n"
|
63
|
+
# open File.join(CALENDAR_DEST_TRANSLATIONS, file), 'w' do |f|
|
64
|
+
# f.write compress_js(js, "google")
|
65
|
+
# end
|
66
|
+
# end
|
67
|
+
# end
|
68
|
+
|
69
|
+
FileUtils.mkdir_p File.join(CALENDAR_DEST_STYLESHEETS)
|
70
|
+
open File.join(CALENDAR_DEST_STYLESHEETS, 'calendar.scss'), 'w' do |f|
|
71
|
+
sass = CALENDAR_MESSAGE2
|
72
|
+
IO.popen("sass-convert -F css -T scss", 'r+') { |ff| ff.print(all_stylesheets); ff.close_write; sass += ff.read }
|
73
|
+
f.print sass
|
74
|
+
end
|
75
|
+
manifest.print "stylesheet 'jquery.ui/calendar.scss'\n"
|
76
|
+
end
|
77
|
+
end
|
78
|
+
end
|