erp_app 3.0.12 → 3.0.13
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/erp_app/version.rb +1 -1
- data/public/javascripts/erp_app/codemirror/doc/compress.html +27 -25
- data/public/javascripts/erp_app/codemirror/doc/manual.html +8 -1
- data/public/javascripts/erp_app/codemirror/doc/oldrelease.html +51 -0
- data/public/javascripts/erp_app/codemirror/doc/realworld.html +72 -0
- data/public/javascripts/erp_app/codemirror/keymap/vim.js +9 -10
- data/public/javascripts/erp_app/codemirror/lib/codemirror.css +1 -0
- data/public/javascripts/erp_app/codemirror/lib/codemirror.js +53 -31
- data/public/javascripts/erp_app/codemirror/lib/util/overlay.js +6 -1
- data/public/javascripts/erp_app/codemirror/lib/util/runmode.js +1 -1
- data/public/javascripts/erp_app/codemirror/lib/util/searchcursor.js +3 -3
- data/public/javascripts/erp_app/codemirror/lib/util/simple-hint.js +9 -4
- data/public/javascripts/erp_app/codemirror/mode/clike/clike.js +1 -0
- data/public/javascripts/erp_app/codemirror/mode/css/css.js +1 -1
- data/public/javascripts/erp_app/codemirror/mode/css/test.js +2 -2
- data/public/javascripts/erp_app/codemirror/mode/gfm/gfm.js +83 -139
- data/public/javascripts/erp_app/codemirror/mode/gfm/index.html +27 -4
- data/public/javascripts/erp_app/codemirror/mode/gfm/test.js +225 -0
- data/public/javascripts/erp_app/codemirror/mode/htmlembedded/htmlembedded.js +1 -0
- data/public/javascripts/erp_app/codemirror/mode/javascript/index.html +11 -4
- data/public/javascripts/erp_app/codemirror/mode/javascript/javascript.js +63 -15
- data/public/javascripts/erp_app/codemirror/mode/javascript/typescript.html +48 -0
- data/public/javascripts/erp_app/codemirror/mode/lua/lua.js +1 -1
- data/public/javascripts/erp_app/codemirror/mode/markdown/markdown.js +122 -23
- data/public/javascripts/erp_app/codemirror/mode/markdown/test.js +183 -1
- data/public/javascripts/erp_app/codemirror/package.json +1 -1
- data/public/javascripts/erp_app/codemirror/test/index.html +3 -0
- data/public/javascripts/erp_app/codemirror/test/test.js +11 -6
- metadata +15 -32
@@ -20,6 +20,36 @@ MT.testMode(
|
|
20
20
|
'comment', 'foo'
|
21
21
|
]
|
22
22
|
);
|
23
|
+
// Code blocks using 4 spaces with internal indentation
|
24
|
+
MT.testMode(
|
25
|
+
'codeBlocksUsing4SpacesIndentation',
|
26
|
+
' bar\n hello\n world\n foo\nbar',
|
27
|
+
[
|
28
|
+
null, ' ',
|
29
|
+
'comment', 'bar',
|
30
|
+
null, ' ',
|
31
|
+
'comment', 'hello',
|
32
|
+
null, ' ',
|
33
|
+
'comment', 'world',
|
34
|
+
null, ' ',
|
35
|
+
'comment', 'foo',
|
36
|
+
null, 'bar'
|
37
|
+
]
|
38
|
+
);
|
39
|
+
// Code blocks using 4 spaces with internal indentation
|
40
|
+
MT.testMode(
|
41
|
+
'codeBlocksUsing4SpacesIndentation',
|
42
|
+
' foo\n bar\n hello\n world',
|
43
|
+
[
|
44
|
+
null, ' foo',
|
45
|
+
null, ' ',
|
46
|
+
'comment', 'bar',
|
47
|
+
null, ' ',
|
48
|
+
'comment', 'hello',
|
49
|
+
null, ' ',
|
50
|
+
'comment', 'world'
|
51
|
+
]
|
52
|
+
);
|
23
53
|
|
24
54
|
// Code blocks using 1 tab (regardless of CodeMirror.indentWithTabs value)
|
25
55
|
MT.testMode(
|
@@ -41,6 +71,17 @@ MT.testMode(
|
|
41
71
|
]
|
42
72
|
);
|
43
73
|
|
74
|
+
// Block code using single backtick (shouldn't work)
|
75
|
+
MT.testMode(
|
76
|
+
'blockCodeSingleBacktick',
|
77
|
+
'`\nfoo\n`',
|
78
|
+
[
|
79
|
+
'comment', '`',
|
80
|
+
null, 'foo',
|
81
|
+
'comment', '`'
|
82
|
+
]
|
83
|
+
);
|
84
|
+
|
44
85
|
// Unclosed backticks
|
45
86
|
// Instead of simply marking as CODE, it would be nice to have an
|
46
87
|
// incomplete flag for CODE, that is styled slightly different.
|
@@ -584,6 +625,24 @@ MT.testMode(
|
|
584
625
|
'comment', 'hello'
|
585
626
|
]
|
586
627
|
);
|
628
|
+
// Code with internal indentation
|
629
|
+
MT.testMode(
|
630
|
+
'listCodeIndentation',
|
631
|
+
'* foo\n\n bar\n hello\n world\n foo\n bar',
|
632
|
+
[
|
633
|
+
'string', '* foo',
|
634
|
+
null, ' ',
|
635
|
+
'comment', 'bar',
|
636
|
+
null, ' ',
|
637
|
+
'comment', 'hello',
|
638
|
+
null, ' ',
|
639
|
+
'comment', 'world',
|
640
|
+
null, ' ',
|
641
|
+
'comment', 'foo',
|
642
|
+
null, ' ',
|
643
|
+
'string', 'bar'
|
644
|
+
]
|
645
|
+
);
|
587
646
|
// Code followed by text
|
588
647
|
MT.testMode(
|
589
648
|
'listCodeText',
|
@@ -660,6 +719,91 @@ MT.testMode(
|
|
660
719
|
]
|
661
720
|
);
|
662
721
|
|
722
|
+
// Inline link with Em
|
723
|
+
MT.testMode(
|
724
|
+
'linkEm',
|
725
|
+
'[*foo*](http://example.com/) bar',
|
726
|
+
[
|
727
|
+
'link', '[',
|
728
|
+
'link em', '*foo*',
|
729
|
+
'link', ']',
|
730
|
+
'string', '(http://example.com/)',
|
731
|
+
null, ' bar'
|
732
|
+
]
|
733
|
+
);
|
734
|
+
|
735
|
+
// Inline link with Strong
|
736
|
+
MT.testMode(
|
737
|
+
'linkStrong',
|
738
|
+
'[**foo**](http://example.com/) bar',
|
739
|
+
[
|
740
|
+
'link', '[',
|
741
|
+
'link strong', '**foo**',
|
742
|
+
'link', ']',
|
743
|
+
'string', '(http://example.com/)',
|
744
|
+
null, ' bar'
|
745
|
+
]
|
746
|
+
);
|
747
|
+
|
748
|
+
// Inline link with EmStrong
|
749
|
+
MT.testMode(
|
750
|
+
'linkEmStrong',
|
751
|
+
'[***foo***](http://example.com/) bar',
|
752
|
+
[
|
753
|
+
'link', '[',
|
754
|
+
'link strong', '**',
|
755
|
+
'link emstrong', '*foo**',
|
756
|
+
'link em', '*',
|
757
|
+
'link', ']',
|
758
|
+
'string', '(http://example.com/)',
|
759
|
+
null, ' bar'
|
760
|
+
]
|
761
|
+
);
|
762
|
+
|
763
|
+
// Image with title
|
764
|
+
MT.testMode(
|
765
|
+
'imageTitle',
|
766
|
+
' hello',
|
767
|
+
[
|
768
|
+
'tag', '![foo]',
|
769
|
+
'string', '(http://example.com/ "bar")',
|
770
|
+
null, ' hello'
|
771
|
+
]
|
772
|
+
);
|
773
|
+
|
774
|
+
// Image without title
|
775
|
+
MT.testMode(
|
776
|
+
'imageNoTitle',
|
777
|
+
' bar',
|
778
|
+
[
|
779
|
+
'tag', '![foo]',
|
780
|
+
'string', '(http://example.com/)',
|
781
|
+
null, ' bar'
|
782
|
+
]
|
783
|
+
);
|
784
|
+
|
785
|
+
// Image with asterisks
|
786
|
+
MT.testMode(
|
787
|
+
'imageAsterisks',
|
788
|
+
' bar',
|
789
|
+
[
|
790
|
+
'tag', '![*foo*]',
|
791
|
+
'string', '(http://example.com/)',
|
792
|
+
null, ' bar'
|
793
|
+
]
|
794
|
+
);
|
795
|
+
|
796
|
+
// Not a link. Should be normal text due to square brackets being used
|
797
|
+
// regularly in text, especially in quoted material, and no space is allowed
|
798
|
+
// between square brackets and parentheses (per Dingus).
|
799
|
+
MT.testMode(
|
800
|
+
'notALink',
|
801
|
+
'[foo] (bar)',
|
802
|
+
[
|
803
|
+
null, '[foo] (bar)'
|
804
|
+
]
|
805
|
+
);
|
806
|
+
|
663
807
|
// Reference-style links
|
664
808
|
MT.testMode(
|
665
809
|
'linkReference',
|
@@ -670,6 +814,44 @@ MT.testMode(
|
|
670
814
|
null, ' hello'
|
671
815
|
]
|
672
816
|
);
|
817
|
+
// Reference-style links with Em
|
818
|
+
MT.testMode(
|
819
|
+
'linkReferenceEm',
|
820
|
+
'[*foo*][bar] hello',
|
821
|
+
[
|
822
|
+
'link', '[',
|
823
|
+
'link em', '*foo*',
|
824
|
+
'link', ']',
|
825
|
+
'string', '[bar]',
|
826
|
+
null, ' hello'
|
827
|
+
]
|
828
|
+
);
|
829
|
+
// Reference-style links with Strong
|
830
|
+
MT.testMode(
|
831
|
+
'linkReferenceStrong',
|
832
|
+
'[**foo**][bar] hello',
|
833
|
+
[
|
834
|
+
'link', '[',
|
835
|
+
'link strong', '**foo**',
|
836
|
+
'link', ']',
|
837
|
+
'string', '[bar]',
|
838
|
+
null, ' hello'
|
839
|
+
]
|
840
|
+
);
|
841
|
+
// Reference-style links with EmStrong
|
842
|
+
MT.testMode(
|
843
|
+
'linkReferenceEmStrong',
|
844
|
+
'[***foo***][bar] hello',
|
845
|
+
[
|
846
|
+
'link', '[',
|
847
|
+
'link strong', '**',
|
848
|
+
'link emstrong', '*foo**',
|
849
|
+
'link em', '*',
|
850
|
+
'link', ']',
|
851
|
+
'string', '[bar]',
|
852
|
+
null, ' hello'
|
853
|
+
]
|
854
|
+
);
|
673
855
|
|
674
856
|
// Reference-style links with optional space separator (per docuentation)
|
675
857
|
// "You can optionally use a space to separate the sets of brackets"
|
@@ -1081,4 +1263,4 @@ MT.testMode(
|
|
1081
1263
|
[
|
1082
1264
|
null, '\\\\# foo'
|
1083
1265
|
]
|
1084
|
-
);
|
1266
|
+
);
|
@@ -7,6 +7,7 @@
|
|
7
7
|
<link rel="stylesheet" href="../doc/docs.css">
|
8
8
|
<link rel="stylesheet" href="mode_test.css">
|
9
9
|
<script src="../lib/codemirror.js"></script>
|
10
|
+
<script src="../lib/util/overlay.js"></script>
|
10
11
|
<script src="../mode/javascript/javascript.js"></script>
|
11
12
|
<script src="../mode/xml/xml.js"></script>
|
12
13
|
|
@@ -44,6 +45,8 @@
|
|
44
45
|
<script src="../mode/css/test.js"></script>
|
45
46
|
<script src="../mode/markdown/markdown.js"></script>
|
46
47
|
<script src="../mode/markdown/test.js"></script>
|
48
|
+
<script src="../mode/gfm/gfm.js"></script>
|
49
|
+
<script src="../mode/gfm/test.js"></script>
|
47
50
|
<script src="../mode/stex/stex.js"></script>
|
48
51
|
<script src="../mode/stex/test.js"></script>
|
49
52
|
<script>
|
@@ -287,16 +287,21 @@ testCM("markTextMultiLine", function(cm) {
|
|
287
287
|
});
|
288
288
|
|
289
289
|
testCM("markTextUndo", function(cm) {
|
290
|
-
var marker1
|
291
|
-
|
292
|
-
|
293
|
-
|
294
|
-
|
290
|
+
var marker1, marker2, bookmark;
|
291
|
+
cm.compoundChange(function(){
|
292
|
+
marker1 = cm.markText({line: 0, ch: 1}, {line: 0, ch: 3}, "CodeMirror-matchingbracket");
|
293
|
+
marker2 = cm.markText({line: 0, ch: 0}, {line: 2, ch: 1}, "CodeMirror-matchingbracket");
|
294
|
+
bookmark = cm.setBookmark({line: 1, ch: 5});
|
295
|
+
});
|
296
|
+
cm.compoundChange(function(){
|
297
|
+
cm.replaceRange("foo", {line: 0, ch: 2});
|
298
|
+
cm.replaceRange("bar\baz\bug\n", {line: 2, ch: 0}, {line: 3, ch: 0});
|
299
|
+
});
|
295
300
|
cm.setValue("");
|
296
301
|
eq(marker1.find(), null); eq(marker2.find(), null); eq(bookmark.find(), null);
|
297
302
|
cm.undo();
|
298
303
|
eqPos(bookmark.find(), {line: 1, ch: 5});
|
299
|
-
cm.undo();
|
304
|
+
cm.undo();
|
300
305
|
var m1Pos = marker1.find(), m2Pos = marker2.find();
|
301
306
|
eqPos(m1Pos.from, {line: 0, ch: 1}); eqPos(m1Pos.to, {line: 0, ch: 3});
|
302
307
|
eqPos(m2Pos.from, {line: 0, ch: 0}); eqPos(m2Pos.to, {line: 2, ch: 1});
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: erp_app
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.0.
|
4
|
+
version: 3.0.13
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,27 +9,22 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-10-
|
12
|
+
date: 2012-10-26 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: will_paginate
|
16
|
-
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirement: &70249237502620 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
|
-
- -
|
19
|
+
- - =
|
20
20
|
- !ruby/object:Gem::Version
|
21
21
|
version: 3.0.2
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
|
-
version_requirements:
|
25
|
-
none: false
|
26
|
-
requirements:
|
27
|
-
- - '='
|
28
|
-
- !ruby/object:Gem::Version
|
29
|
-
version: 3.0.2
|
24
|
+
version_requirements: *70249237502620
|
30
25
|
- !ruby/object:Gem::Dependency
|
31
26
|
name: uglifier
|
32
|
-
requirement: !ruby/object:Gem::Requirement
|
27
|
+
requirement: &70249237502100 !ruby/object:Gem::Requirement
|
33
28
|
none: false
|
34
29
|
requirements:
|
35
30
|
- - ~>
|
@@ -37,15 +32,10 @@ dependencies:
|
|
37
32
|
version: 1.0.3
|
38
33
|
type: :runtime
|
39
34
|
prerelease: false
|
40
|
-
version_requirements:
|
41
|
-
none: false
|
42
|
-
requirements:
|
43
|
-
- - ~>
|
44
|
-
- !ruby/object:Gem::Version
|
45
|
-
version: 1.0.3
|
35
|
+
version_requirements: *70249237502100
|
46
36
|
- !ruby/object:Gem::Dependency
|
47
37
|
name: erp_tech_svcs
|
48
|
-
requirement: !ruby/object:Gem::Requirement
|
38
|
+
requirement: &70249237501640 !ruby/object:Gem::Requirement
|
49
39
|
none: false
|
50
40
|
requirements:
|
51
41
|
- - ~>
|
@@ -53,15 +43,10 @@ dependencies:
|
|
53
43
|
version: '3.0'
|
54
44
|
type: :runtime
|
55
45
|
prerelease: false
|
56
|
-
version_requirements:
|
57
|
-
none: false
|
58
|
-
requirements:
|
59
|
-
- - ~>
|
60
|
-
- !ruby/object:Gem::Version
|
61
|
-
version: '3.0'
|
46
|
+
version_requirements: *70249237501640
|
62
47
|
- !ruby/object:Gem::Dependency
|
63
48
|
name: erp_dev_svcs
|
64
|
-
requirement: !ruby/object:Gem::Requirement
|
49
|
+
requirement: &70249237501180 !ruby/object:Gem::Requirement
|
65
50
|
none: false
|
66
51
|
requirements:
|
67
52
|
- - ~>
|
@@ -69,12 +54,7 @@ dependencies:
|
|
69
54
|
version: '3.0'
|
70
55
|
type: :development
|
71
56
|
prerelease: false
|
72
|
-
version_requirements:
|
73
|
-
none: false
|
74
|
-
requirements:
|
75
|
-
- - ~>
|
76
|
-
- !ruby/object:Gem::Version
|
77
|
-
version: '3.0'
|
57
|
+
version_requirements: *70249237501180
|
78
58
|
description: Provides an application infrastructure based on the Sencha/extjs UI framework,
|
79
59
|
as well as several utilities and example applications. It houses the core application
|
80
60
|
container framework and component model infrastructure that play a key role in the
|
@@ -1324,6 +1304,7 @@ files:
|
|
1324
1304
|
- public/javascripts/erp_app/codemirror/doc/internals.html
|
1325
1305
|
- public/javascripts/erp_app/codemirror/doc/manual.html
|
1326
1306
|
- public/javascripts/erp_app/codemirror/doc/oldrelease.html
|
1307
|
+
- public/javascripts/erp_app/codemirror/doc/realworld.html
|
1327
1308
|
- public/javascripts/erp_app/codemirror/doc/reporting.html
|
1328
1309
|
- public/javascripts/erp_app/codemirror/doc/upgrade_v2.2.html
|
1329
1310
|
- public/javascripts/erp_app/codemirror/keymap/emacs.js
|
@@ -1370,6 +1351,7 @@ files:
|
|
1370
1351
|
- public/javascripts/erp_app/codemirror/mode/erlang/index.html
|
1371
1352
|
- public/javascripts/erp_app/codemirror/mode/gfm/gfm.js
|
1372
1353
|
- public/javascripts/erp_app/codemirror/mode/gfm/index.html
|
1354
|
+
- public/javascripts/erp_app/codemirror/mode/gfm/test.js
|
1373
1355
|
- public/javascripts/erp_app/codemirror/mode/go/go.js
|
1374
1356
|
- public/javascripts/erp_app/codemirror/mode/go/index.html
|
1375
1357
|
- public/javascripts/erp_app/codemirror/mode/groovy/groovy.js
|
@@ -1384,6 +1366,7 @@ files:
|
|
1384
1366
|
- public/javascripts/erp_app/codemirror/mode/htmlmixed/index.html
|
1385
1367
|
- public/javascripts/erp_app/codemirror/mode/javascript/index.html
|
1386
1368
|
- public/javascripts/erp_app/codemirror/mode/javascript/javascript.js
|
1369
|
+
- public/javascripts/erp_app/codemirror/mode/javascript/typescript.html
|
1387
1370
|
- public/javascripts/erp_app/codemirror/mode/jinja2/index.html
|
1388
1371
|
- public/javascripts/erp_app/codemirror/mode/jinja2/jinja2.js
|
1389
1372
|
- public/javascripts/erp_app/codemirror/mode/less/index.html
|
@@ -3715,7 +3698,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
3715
3698
|
version: '0'
|
3716
3699
|
requirements: []
|
3717
3700
|
rubyforge_project:
|
3718
|
-
rubygems_version: 1.8.
|
3701
|
+
rubygems_version: 1.8.15
|
3719
3702
|
signing_key:
|
3720
3703
|
specification_version: 3
|
3721
3704
|
summary: Provides an application infrastructure based on the Sencha/extjs UI framework,
|