noodall-ui 0.5.0.pre.9 → 0.5.0.pre.10
Sign up to get free protection for your applications and to get access to all the features.
data/lib/noodall/ui/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: noodall-ui
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.0.pre.
|
4
|
+
version: 0.5.0.pre.10
|
5
5
|
prerelease: 6
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -13,7 +13,7 @@ date: 2011-10-28 00:00:00.000000000Z
|
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: noodall-core
|
16
|
-
requirement: &
|
16
|
+
requirement: &11453960 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ! '>='
|
@@ -21,10 +21,10 @@ dependencies:
|
|
21
21
|
version: 0.7.5
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
|
-
version_requirements: *
|
24
|
+
version_requirements: *11453960
|
25
25
|
- !ruby/object:Gem::Dependency
|
26
26
|
name: thoughtbot-sortable_table
|
27
|
-
requirement: &
|
27
|
+
requirement: &11453480 !ruby/object:Gem::Requirement
|
28
28
|
none: false
|
29
29
|
requirements:
|
30
30
|
- - ! '>='
|
@@ -32,10 +32,10 @@ dependencies:
|
|
32
32
|
version: 0.0.6
|
33
33
|
type: :runtime
|
34
34
|
prerelease: false
|
35
|
-
version_requirements: *
|
35
|
+
version_requirements: *11453480
|
36
36
|
- !ruby/object:Gem::Dependency
|
37
37
|
name: will_paginate
|
38
|
-
requirement: &
|
38
|
+
requirement: &11452960 !ruby/object:Gem::Requirement
|
39
39
|
none: false
|
40
40
|
requirements:
|
41
41
|
- - ~>
|
@@ -43,10 +43,10 @@ dependencies:
|
|
43
43
|
version: '3.0'
|
44
44
|
type: :runtime
|
45
45
|
prerelease: false
|
46
|
-
version_requirements: *
|
46
|
+
version_requirements: *11452960
|
47
47
|
- !ruby/object:Gem::Dependency
|
48
48
|
name: dynamic_form
|
49
|
-
requirement: &
|
49
|
+
requirement: &11452480 !ruby/object:Gem::Requirement
|
50
50
|
none: false
|
51
51
|
requirements:
|
52
52
|
- - ! '>='
|
@@ -54,10 +54,10 @@ dependencies:
|
|
54
54
|
version: '0'
|
55
55
|
type: :runtime
|
56
56
|
prerelease: false
|
57
|
-
version_requirements: *
|
57
|
+
version_requirements: *11452480
|
58
58
|
- !ruby/object:Gem::Dependency
|
59
59
|
name: bundler
|
60
|
-
requirement: &
|
60
|
+
requirement: &11452000 !ruby/object:Gem::Requirement
|
61
61
|
none: false
|
62
62
|
requirements:
|
63
63
|
- - ! '>='
|
@@ -65,7 +65,7 @@ dependencies:
|
|
65
65
|
version: 1.0.0
|
66
66
|
type: :development
|
67
67
|
prerelease: false
|
68
|
-
version_requirements: *
|
68
|
+
version_requirements: *11452000
|
69
69
|
description: Noodall Rails User Interface Engine. Requires Noodall Core
|
70
70
|
email:
|
71
71
|
- steve@wearebeef.co.uk
|
@@ -593,8 +593,6 @@ files:
|
|
593
593
|
- vendor/assets/javascripts/tiny_mce/plugins/template/template.htm
|
594
594
|
- vendor/assets/javascripts/tiny_mce/plugins/visualchars/editor_plugin.js
|
595
595
|
- vendor/assets/javascripts/tiny_mce/plugins/visualchars/editor_plugin_src.js
|
596
|
-
- vendor/assets/javascripts/tiny_mce/plugins/wordcount/editor_plugin.js
|
597
|
-
- vendor/assets/javascripts/tiny_mce/plugins/wordcount/editor_plugin_src.js
|
598
596
|
- vendor/assets/javascripts/tiny_mce/plugins/xhtmlxtras/abbr.htm
|
599
597
|
- vendor/assets/javascripts/tiny_mce/plugins/xhtmlxtras/acronym.htm
|
600
598
|
- vendor/assets/javascripts/tiny_mce/plugins/xhtmlxtras/attributes.htm
|
@@ -695,7 +693,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
695
693
|
version: '0'
|
696
694
|
segments:
|
697
695
|
- 0
|
698
|
-
hash:
|
696
|
+
hash: 1512166424488099633
|
699
697
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
700
698
|
none: false
|
701
699
|
requirements:
|
@@ -1 +0,0 @@
|
|
1
|
-
(function(){tinymce.create("tinymce.plugins.WordCount",{block:0,id:null,countre:null,cleanre:null,init:function(a,b){var c=this,d=0;c.countre=a.getParam("wordcount_countregex",/\S\s+/g);c.cleanre=a.getParam("wordcount_cleanregex",/[0-9.(),;:!?%#$�'"_+=\\/-]*/g);c.id=a.id+"-word-count";a.onPostRender.add(function(f,e){var g,h;h=f.getParam("wordcount_target_id");if(!h){g=tinymce.DOM.get(f.id+"_path_row");if(g){tinymce.DOM.add(g.parentNode,"div",{style:"float: right"},f.getLang("wordcount.words","Words: ")+'<span id="'+c.id+'">0</span>')}}else{tinymce.DOM.add(h,"span",{},'<span id="'+c.id+'">0</span>')}});a.onInit.add(function(e){e.selection.onSetContent.add(function(){c._count(e)});c._count(e)});a.onSetContent.add(function(e){c._count(e)});a.onKeyUp.add(function(f,g){if(g.keyCode==d){return}if(13==g.keyCode||8==d||46==d){c._count(f)}d=g.keyCode})},_count:function(b){var c=this,a=0;if(c.block){return}c.block=1;setTimeout(function(){var d=b.getContent({format:"raw"});if(d){d=d.replace(/<.[^<>]*?>/g," ").replace(/ | /gi," ");d=d.replace(c.cleanre,"");d.replace(c.countre,function(){a++})}tinymce.DOM.setHTML(c.id,a.toString());setTimeout(function(){c.block=0},2000)},1)},getInfo:function(){return{longname:"Word Count plugin",author:"Moxiecode Systems AB",authorurl:"http://tinymce.moxiecode.com",infourl:"http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/wordcount",version:tinymce.majorVersion+"."+tinymce.minorVersion}}});tinymce.PluginManager.add("wordcount",tinymce.plugins.WordCount)})();
|
@@ -1,98 +0,0 @@
|
|
1
|
-
/**
|
2
|
-
* editor_plugin_src.js
|
3
|
-
*
|
4
|
-
* Copyright 2009, Moxiecode Systems AB
|
5
|
-
* Released under LGPL License.
|
6
|
-
*
|
7
|
-
* License: http://tinymce.moxiecode.com/license
|
8
|
-
* Contributing: http://tinymce.moxiecode.com/contributing
|
9
|
-
*/
|
10
|
-
|
11
|
-
(function() {
|
12
|
-
tinymce.create('tinymce.plugins.WordCount', {
|
13
|
-
block : 0,
|
14
|
-
id : null,
|
15
|
-
countre : null,
|
16
|
-
cleanre : null,
|
17
|
-
|
18
|
-
init : function(ed, url) {
|
19
|
-
var t = this, last = 0;
|
20
|
-
|
21
|
-
t.countre = ed.getParam('wordcount_countregex', /\S\s+/g);
|
22
|
-
t.cleanre = ed.getParam('wordcount_cleanregex', /[0-9.(),;:!?%#$�'"_+=\\/-]*/g);
|
23
|
-
t.id = ed.id + '-word-count';
|
24
|
-
|
25
|
-
ed.onPostRender.add(function(ed, cm) {
|
26
|
-
var row, id;
|
27
|
-
|
28
|
-
// Add it to the specified id or the theme advanced path
|
29
|
-
id = ed.getParam('wordcount_target_id');
|
30
|
-
if (!id) {
|
31
|
-
row = tinymce.DOM.get(ed.id + '_path_row');
|
32
|
-
|
33
|
-
if (row)
|
34
|
-
tinymce.DOM.add(row.parentNode, 'div', {'style': 'float: right'}, ed.getLang('wordcount.words', 'Words: ') + '<span id="' + t.id + '">0</span>');
|
35
|
-
} else
|
36
|
-
tinymce.DOM.add(id, 'span', {}, '<span id="' + t.id + '">0</span>');
|
37
|
-
});
|
38
|
-
|
39
|
-
ed.onInit.add(function(ed) {
|
40
|
-
ed.selection.onSetContent.add(function() {
|
41
|
-
t._count(ed);
|
42
|
-
});
|
43
|
-
|
44
|
-
t._count(ed);
|
45
|
-
});
|
46
|
-
|
47
|
-
ed.onSetContent.add(function(ed) {
|
48
|
-
t._count(ed);
|
49
|
-
});
|
50
|
-
|
51
|
-
ed.onKeyUp.add(function(ed, e) {
|
52
|
-
if (e.keyCode == last)
|
53
|
-
return;
|
54
|
-
|
55
|
-
if (13 == e.keyCode || 8 == last || 46 == last)
|
56
|
-
t._count(ed);
|
57
|
-
|
58
|
-
last = e.keyCode;
|
59
|
-
});
|
60
|
-
},
|
61
|
-
|
62
|
-
_count : function(ed) {
|
63
|
-
var t = this, tc = 0;
|
64
|
-
|
65
|
-
// Keep multiple calls from happening at the same time
|
66
|
-
if (t.block)
|
67
|
-
return;
|
68
|
-
|
69
|
-
t.block = 1;
|
70
|
-
|
71
|
-
setTimeout(function() {
|
72
|
-
var tx = ed.getContent({format : 'raw'});
|
73
|
-
|
74
|
-
if (tx) {
|
75
|
-
tx = tx.replace(/<.[^<>]*?>/g, ' ').replace(/ | /gi, ' '); // remove html tags and space chars
|
76
|
-
tx = tx.replace(t.cleanre, ''); // remove numbers and punctuation
|
77
|
-
tx.replace(t.countre, function() {tc++;}); // count the words
|
78
|
-
}
|
79
|
-
|
80
|
-
tinymce.DOM.setHTML(t.id, tc.toString());
|
81
|
-
|
82
|
-
setTimeout(function() {t.block = 0;}, 2000);
|
83
|
-
}, 1);
|
84
|
-
},
|
85
|
-
|
86
|
-
getInfo: function() {
|
87
|
-
return {
|
88
|
-
longname : 'Word Count plugin',
|
89
|
-
author : 'Moxiecode Systems AB',
|
90
|
-
authorurl : 'http://tinymce.moxiecode.com',
|
91
|
-
infourl : 'http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/wordcount',
|
92
|
-
version : tinymce.majorVersion + "." + tinymce.minorVersion
|
93
|
-
};
|
94
|
-
}
|
95
|
-
});
|
96
|
-
|
97
|
-
tinymce.PluginManager.add('wordcount', tinymce.plugins.WordCount);
|
98
|
-
})();
|