jqueryplugingen 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- data/History.txt +7 -0
- data/Manifest.txt +160 -1
- data/README.rdoc +1 -3
- data/bundles/JavaScript jQuery.tmbundle/Commands/Documentation for Word : Selection.tmCommand +68 -0
- data/bundles/JavaScript jQuery.tmbundle/Snippets/$ (Select DOM Element).tmSnippet +16 -0
- data/bundles/JavaScript jQuery.tmbundle/Snippets/$(this).tmSnippet +16 -0
- data/bundles/JavaScript jQuery.tmbundle/Snippets/$_ajax(hash).tmSnippet +28 -0
- data/bundles/JavaScript jQuery.tmbundle/Snippets/$_ajaxError.tmSnippet +19 -0
- data/bundles/JavaScript jQuery.tmbundle/Snippets/$_ajaxSend.tmSnippet +19 -0
- data/bundles/JavaScript jQuery.tmbundle/Snippets/$_ajaxSetup.tmSnippet +28 -0
- data/bundles/JavaScript jQuery.tmbundle/Snippets/$_ajaxSuccess.tmSnippet +18 -0
- data/bundles/JavaScript jQuery.tmbundle/Snippets/$_get.tmSnippet +19 -0
- data/bundles/JavaScript jQuery.tmbundle/Snippets/$_getIfModified.tmSnippet +19 -0
- data/bundles/JavaScript jQuery.tmbundle/Snippets/$_getJSON.tmSnippet +21 -0
- data/bundles/JavaScript jQuery.tmbundle/Snippets/$_getScript.tmSnippet +19 -0
- data/bundles/JavaScript jQuery.tmbundle/Snippets/$_post.tmSnippet +23 -0
- data/bundles/JavaScript jQuery.tmbundle/Snippets/$_trim.tmSnippet +16 -0
- data/bundles/JavaScript jQuery.tmbundle/Snippets/:checked.tmSnippet +18 -0
- data/bundles/JavaScript jQuery.tmbundle/Snippets/:contains('test').tmSnippet +18 -0
- data/bundles/JavaScript jQuery.tmbundle/Snippets/:disabled.tmSnippet +18 -0
- data/bundles/JavaScript jQuery.tmbundle/Snippets/:empty.tmSnippet +18 -0
- data/bundles/JavaScript jQuery.tmbundle/Snippets/:enabled.tmSnippet +18 -0
- data/bundles/JavaScript jQuery.tmbundle/Snippets/:eq(n).tmSnippet +18 -0
- data/bundles/JavaScript jQuery.tmbundle/Snippets/:even.tmSnippet +18 -0
- data/bundles/JavaScript jQuery.tmbundle/Snippets/:first-child.tmSnippet +18 -0
- data/bundles/JavaScript jQuery.tmbundle/Snippets/:first-of-type.tmSnippet +18 -0
- data/bundles/JavaScript jQuery.tmbundle/Snippets/:first.tmSnippet +18 -0
- data/bundles/JavaScript jQuery.tmbundle/Snippets/:gt(n).tmSnippet +18 -0
- data/bundles/JavaScript jQuery.tmbundle/Snippets/:hidden.tmSnippet +19 -0
- data/bundles/JavaScript jQuery.tmbundle/Snippets/:last-child.tmSnippet +18 -0
- data/bundles/JavaScript jQuery.tmbundle/Snippets/:last-of-type.tmSnippet +18 -0
- data/bundles/JavaScript jQuery.tmbundle/Snippets/:last.tmSnippet +18 -0
- data/bundles/JavaScript jQuery.tmbundle/Snippets/:lt(n).tmSnippet +18 -0
- data/bundles/JavaScript jQuery.tmbundle/Snippets/:not(s).tmSnippet +18 -0
- data/bundles/JavaScript jQuery.tmbundle/Snippets/:nth-child(n).tmSnippet +18 -0
- data/bundles/JavaScript jQuery.tmbundle/Snippets/:nth-last-child(n).tmSnippet +18 -0
- data/bundles/JavaScript jQuery.tmbundle/Snippets/:nth-of-type(n).tmSnippet +18 -0
- data/bundles/JavaScript jQuery.tmbundle/Snippets/:odd.tmSnippet +18 -0
- data/bundles/JavaScript jQuery.tmbundle/Snippets/:only-child.tmSnippet +18 -0
- data/bundles/JavaScript jQuery.tmbundle/Snippets/:only-of-type.tmSnippet +18 -0
- data/bundles/JavaScript jQuery.tmbundle/Snippets/:parent.tmSnippet +19 -0
- data/bundles/JavaScript jQuery.tmbundle/Snippets/:root.tmSnippet +18 -0
- data/bundles/JavaScript jQuery.tmbundle/Snippets/:visible.tmSnippet +19 -0
- data/bundles/JavaScript jQuery.tmbundle/Snippets/add.tmSnippet +16 -0
- data/bundles/JavaScript jQuery.tmbundle/Snippets/addClass.tmSnippet +16 -0
- data/bundles/JavaScript jQuery.tmbundle/Snippets/after.tmSnippet +16 -0
- data/bundles/JavaScript jQuery.tmbundle/Snippets/ajaxStart.tmSnippet +19 -0
- data/bundles/JavaScript jQuery.tmbundle/Snippets/ajaxStop.tmSnippet +19 -0
- data/bundles/JavaScript jQuery.tmbundle/Snippets/animate.tmSnippet +16 -0
- data/bundles/JavaScript jQuery.tmbundle/Snippets/append.tmSnippet +16 -0
- data/bundles/JavaScript jQuery.tmbundle/Snippets/appendTo.tmSnippet +16 -0
- data/bundles/JavaScript jQuery.tmbundle/Snippets/attr(hash).tmSnippet +16 -0
- data/bundles/JavaScript jQuery.tmbundle/Snippets/attr.tmSnippet +16 -0
- data/bundles/JavaScript jQuery.tmbundle/Snippets/before.tmSnippet +16 -0
- data/bundles/JavaScript jQuery.tmbundle/Snippets/bind.tmSnippet +18 -0
- data/bundles/JavaScript jQuery.tmbundle/Snippets/blur.tmSnippet +18 -0
- data/bundles/JavaScript jQuery.tmbundle/Snippets/change.tmSnippet +18 -0
- data/bundles/JavaScript jQuery.tmbundle/Snippets/children.tmSnippet +16 -0
- data/bundles/JavaScript jQuery.tmbundle/Snippets/click.tmSnippet +18 -0
- data/bundles/JavaScript jQuery.tmbundle/Snippets/clone.tmSnippet +16 -0
- data/bundles/JavaScript jQuery.tmbundle/Snippets/contains.tmSnippet +16 -0
- data/bundles/JavaScript jQuery.tmbundle/Snippets/css(hash).tmSnippet +16 -0
- data/bundles/JavaScript jQuery.tmbundle/Snippets/css.tmSnippet +16 -0
- data/bundles/JavaScript jQuery.tmbundle/Snippets/dblclick.tmSnippet +18 -0
- data/bundles/JavaScript jQuery.tmbundle/Snippets/each.tmSnippet +18 -0
- data/bundles/JavaScript jQuery.tmbundle/Snippets/end.tmSnippet +16 -0
- data/bundles/JavaScript jQuery.tmbundle/Snippets/error.tmSnippet +18 -0
- data/bundles/JavaScript jQuery.tmbundle/Snippets/fadeIn - with callback.tmSnippet +19 -0
- data/bundles/JavaScript jQuery.tmbundle/Snippets/fadeIn.tmSnippet +16 -0
- data/bundles/JavaScript jQuery.tmbundle/Snippets/fadeOut - with callback.tmSnippet +19 -0
- data/bundles/JavaScript jQuery.tmbundle/Snippets/fadeOut.tmSnippet +16 -0
- data/bundles/JavaScript jQuery.tmbundle/Snippets/fadeTo - with callback.tmSnippet +19 -0
- data/bundles/JavaScript jQuery.tmbundle/Snippets/fadeTo.tmSnippet +16 -0
- data/bundles/JavaScript jQuery.tmbundle/Snippets/filter.tmSnippet +16 -0
- data/bundles/JavaScript jQuery.tmbundle/Snippets/find.tmSnippet +16 -0
- data/bundles/JavaScript jQuery.tmbundle/Snippets/focus.tmSnippet +18 -0
- data/bundles/JavaScript jQuery.tmbundle/Snippets/get.tmSnippet +16 -0
- data/bundles/JavaScript jQuery.tmbundle/Snippets/height.tmSnippet +16 -0
- data/bundles/JavaScript jQuery.tmbundle/Snippets/hide - with callback.tmSnippet +19 -0
- data/bundles/JavaScript jQuery.tmbundle/Snippets/hide.tmSnippet +16 -0
- data/bundles/JavaScript jQuery.tmbundle/Snippets/hover.tmSnippet +20 -0
- data/bundles/JavaScript jQuery.tmbundle/Snippets/html.tmSnippet +16 -0
- data/bundles/JavaScript jQuery.tmbundle/Snippets/insertAfter.tmSnippet +16 -0
- data/bundles/JavaScript jQuery.tmbundle/Snippets/insertBefore.tmSnippet +16 -0
- data/bundles/JavaScript jQuery.tmbundle/Snippets/is.tmSnippet +16 -0
- data/bundles/JavaScript jQuery.tmbundle/Snippets/load (AHAH).tmSnippet +21 -0
- data/bundles/JavaScript jQuery.tmbundle/Snippets/load.tmSnippet +18 -0
- data/bundles/JavaScript jQuery.tmbundle/Snippets/loadIfModified.tmSnippet +21 -0
- data/bundles/JavaScript jQuery.tmbundle/Snippets/mousedown.tmSnippet +18 -0
- data/bundles/JavaScript jQuery.tmbundle/Snippets/mousemove.tmSnippet +18 -0
- data/bundles/JavaScript jQuery.tmbundle/Snippets/mouseout.tmSnippet +18 -0
- data/bundles/JavaScript jQuery.tmbundle/Snippets/mouseover.tmSnippet +18 -0
- data/bundles/JavaScript jQuery.tmbundle/Snippets/mouseup.tmSnippet +18 -0
- data/bundles/JavaScript jQuery.tmbundle/Snippets/next.tmSnippet +16 -0
- data/bundles/JavaScript jQuery.tmbundle/Snippets/not.tmSnippet +16 -0
- data/bundles/JavaScript jQuery.tmbundle/Snippets/one.tmSnippet +18 -0
- data/bundles/JavaScript jQuery.tmbundle/Snippets/parent.tmSnippet +16 -0
- data/bundles/JavaScript jQuery.tmbundle/Snippets/parents.tmSnippet +16 -0
- data/bundles/JavaScript jQuery.tmbundle/Snippets/prepend.tmSnippet +16 -0
- data/bundles/JavaScript jQuery.tmbundle/Snippets/prependTo.tmSnippet +16 -0
- data/bundles/JavaScript jQuery.tmbundle/Snippets/prev.tmSnippet +16 -0
- data/bundles/JavaScript jQuery.tmbundle/Snippets/ready.tmSnippet +19 -0
- data/bundles/JavaScript jQuery.tmbundle/Snippets/remove.tmSnippet +16 -0
- data/bundles/JavaScript jQuery.tmbundle/Snippets/removeAttr.tmSnippet +16 -0
- data/bundles/JavaScript jQuery.tmbundle/Snippets/removeClass.tmSnippet +16 -0
- data/bundles/JavaScript jQuery.tmbundle/Snippets/reset.tmSnippet +18 -0
- data/bundles/JavaScript jQuery.tmbundle/Snippets/resize.tmSnippet +18 -0
- data/bundles/JavaScript jQuery.tmbundle/Snippets/scroll.tmSnippet +18 -0
- data/bundles/JavaScript jQuery.tmbundle/Snippets/select.tmSnippet +18 -0
- data/bundles/JavaScript jQuery.tmbundle/Snippets/show - with callback.tmSnippet +19 -0
- data/bundles/JavaScript jQuery.tmbundle/Snippets/show.tmSnippet +16 -0
- data/bundles/JavaScript jQuery.tmbundle/Snippets/siblings.tmSnippet +16 -0
- data/bundles/JavaScript jQuery.tmbundle/Snippets/size.tmSnippet +16 -0
- data/bundles/JavaScript jQuery.tmbundle/Snippets/slideDown - with callback.tmSnippet +19 -0
- data/bundles/JavaScript jQuery.tmbundle/Snippets/slideDown.tmSnippet +16 -0
- data/bundles/JavaScript jQuery.tmbundle/Snippets/slideToggle.tmSnippet +16 -0
- data/bundles/JavaScript jQuery.tmbundle/Snippets/slideUp - with callback.tmSnippet +19 -0
- data/bundles/JavaScript jQuery.tmbundle/Snippets/slideUp.tmSnippet +16 -0
- data/bundles/JavaScript jQuery.tmbundle/Snippets/submit.tmSnippet +18 -0
- data/bundles/JavaScript jQuery.tmbundle/Snippets/text.tmSnippet +16 -0
- data/bundles/JavaScript jQuery.tmbundle/Snippets/toggle (show:hide).tmSnippet +16 -0
- data/bundles/JavaScript jQuery.tmbundle/Snippets/toggle.tmSnippet +21 -0
- data/bundles/JavaScript jQuery.tmbundle/Snippets/toggleClass.tmSnippet +16 -0
- data/bundles/JavaScript jQuery.tmbundle/Snippets/trigger.tmSnippet +16 -0
- data/bundles/JavaScript jQuery.tmbundle/Snippets/unbind.tmSnippet +16 -0
- data/bundles/JavaScript jQuery.tmbundle/Snippets/val.tmSnippet +16 -0
- data/bundles/JavaScript jQuery.tmbundle/Snippets/width.tmSnippet +16 -0
- data/bundles/JavaScript jQuery.tmbundle/Snippets/wrap.tmSnippet +16 -0
- data/bundles/JavaScript jQuery.tmbundle/Syntaxes/jQuery (JavaScript).tmLanguage +440 -0
- data/bundles/JavaScript jQuery.tmbundle/info.plist +387 -0
- data/bundles/JavaScript.tmbundle/Commands/Copy as Bookmarklet to Clipboard.tmCommand +54 -0
- data/bundles/JavaScript.tmbundle/Commands/Documentation for Word.plist +30 -0
- data/bundles/JavaScript.tmbundle/Commands/New Function.tmCommand +28 -0
- data/bundles/JavaScript.tmbundle/Commands/New Method.tmCommand +28 -0
- data/bundles/JavaScript.tmbundle/Commands/Reformat Document : Selection.tmCommand +50 -0
- data/bundles/JavaScript.tmbundle/Preferences/Comments.tmPreferences +36 -0
- data/bundles/JavaScript.tmbundle/Preferences/JavaScript Indent.tmPreferences +19 -0
- data/bundles/JavaScript.tmbundle/Preferences/Symbol List Banned.tmPreferences +17 -0
- data/bundles/JavaScript.tmbundle/Preferences/Symbol List Class.tmPreferences +21 -0
- data/bundles/JavaScript.tmbundle/Preferences/Symbol List Instance.tmPreferences +21 -0
- data/bundles/JavaScript.tmbundle/Preferences/Symbol List Sub 1.tmPreferences +21 -0
- data/bundles/JavaScript.tmbundle/Preferences/Symbol List Sub 2.tmPreferences +21 -0
- data/bundles/JavaScript.tmbundle/Snippets/Get Elements.tmSnippet +16 -0
- data/bundles/JavaScript.tmbundle/Snippets/Object Method String.tmSnippet +18 -0
- data/bundles/JavaScript.tmbundle/Snippets/Object Method.tmSnippet +18 -0
- data/bundles/JavaScript.tmbundle/Snippets/Object Value JS.tmSnippet +16 -0
- data/bundles/JavaScript.tmbundle/Snippets/Object key /342/200/224 key: /"value/".tmSnippet" +18 -0
- data/bundles/JavaScript.tmbundle/Snippets/Prototype (proto).plist +19 -0
- data/bundles/JavaScript.tmbundle/Snippets/for (/342/200/246) {/342/200/246} (faster).tmSnippet" +18 -0
- data/bundles/JavaScript.tmbundle/Snippets/for (/342/200/246) {/342/200/246}.tmSnippet" +18 -0
- data/bundles/JavaScript.tmbundle/Snippets/function (fun).plist +18 -0
- data/bundles/JavaScript.tmbundle/Snippets/function.tmSnippet +16 -0
- data/bundles/JavaScript.tmbundle/Snippets/if ___ else.tmSnippet +16 -0
- data/bundles/JavaScript.tmbundle/Snippets/if.tmSnippet +16 -0
- data/bundles/JavaScript.tmbundle/Snippets/setTimeout function.tmSnippet +16 -0
- data/bundles/JavaScript.tmbundle/Support/dev_guru_index.gz +0 -0
- data/bundles/JavaScript.tmbundle/Support/lib/beautify.php +557 -0
- data/bundles/JavaScript.tmbundle/Syntaxes/JavaScript.plist +712 -0
- data/bundles/JavaScript.tmbundle/info.plist +136 -0
- data/jQuery-Plugin-Generator.tmproj +190 -2
- data/lib/jquery_plugin_gen.rb +3 -5
- data/lib/jquery_plugin_gen/quick_template.rb +2 -2
- data/lib/jquery_plugin_gen/support/bundles.rake +28 -0
- data/lib/jquery_plugin_gen/support/jquery.rake +143 -0
- data/lib/jquery_plugin_gen/tasks.rb +5 -0
- data/lib/templates/Rakefile.erb +8 -2
- data/spec/data/templates/Rakefile +8 -2
- metadata +162 -3
@@ -0,0 +1,136 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
3
|
+
<plist version="1.0">
|
4
|
+
<dict>
|
5
|
+
<key>contactEmailRot13</key>
|
6
|
+
<string>boyvivbhf@fhogyrTenqvrag.pbz</string>
|
7
|
+
<key>contactName</key>
|
8
|
+
<string>Thomas Aylott</string>
|
9
|
+
<key>deleted</key>
|
10
|
+
<array>
|
11
|
+
<string>0FE55436-0C29-4545-A3BE-B858EF81E27B</string>
|
12
|
+
</array>
|
13
|
+
<key>description</key>
|
14
|
+
<string>Support for <a href="http://developer.mozilla.org/en/docs/About_JavaScript">JavaScript</a>.</string>
|
15
|
+
<key>mainMenu</key>
|
16
|
+
<dict>
|
17
|
+
<key>items</key>
|
18
|
+
<array>
|
19
|
+
<string>D2E6A1FE-2881-4754-B399-B65F61F29C2F</string>
|
20
|
+
<string>43F40EB6-5839-4BE8-99C8-4976D0534E5D</string>
|
21
|
+
<string>52090C49-D8B2-49A0-9597-80574354B3CD</string>
|
22
|
+
<string>------------------------------------</string>
|
23
|
+
<string>B4874A14-2491-465A-A349-61E4EBCF4700</string>
|
24
|
+
<string>------------------------------------</string>
|
25
|
+
<string>36EC03E9-EFF4-479A-AB90-8DFA16800642</string>
|
26
|
+
<string>20E61C43-B81F-4FB9-9362-BFFE668EB9C9</string>
|
27
|
+
</array>
|
28
|
+
<key>submenus</key>
|
29
|
+
<dict>
|
30
|
+
<key>43F40EB6-5839-4BE8-99C8-4976D0534E5D</key>
|
31
|
+
<dict>
|
32
|
+
<key>items</key>
|
33
|
+
<array>
|
34
|
+
<string>9E0E3BCC-7F20-4D6B-891D-A44D6EC56E31</string>
|
35
|
+
</array>
|
36
|
+
<key>name</key>
|
37
|
+
<string>DOM</string>
|
38
|
+
</dict>
|
39
|
+
<key>52090C49-D8B2-49A0-9597-80574354B3CD</key>
|
40
|
+
<dict>
|
41
|
+
<key>items</key>
|
42
|
+
<array>
|
43
|
+
<string>009A3E6C-FE3F-4A18-8759-2DC31F17BBE2</string>
|
44
|
+
</array>
|
45
|
+
<key>name</key>
|
46
|
+
<string>BOM</string>
|
47
|
+
</dict>
|
48
|
+
<key>66778C58-CE08-4F21-AD36-562149AEEE80</key>
|
49
|
+
<dict>
|
50
|
+
<key>items</key>
|
51
|
+
<array>
|
52
|
+
<string>4C6EDB43-3E2E-411B-A016-13C135C59833</string>
|
53
|
+
<string>F0E4FB6A-4878-48C6-A777-62438DF1E14F</string>
|
54
|
+
<string>------------------------------------</string>
|
55
|
+
<string>73951799-AC15-40A6-81DB-EC051AB4A033</string>
|
56
|
+
<string>1717B5AE-209B-4548-9155-9E88A7230C1C</string>
|
57
|
+
<string>------------------------------------</string>
|
58
|
+
<string>77065D69-742A-4FF0-9A41-AD211DFBE72F</string>
|
59
|
+
<string>7B9AEFCC-B450-416D-8527-430FE2A08568</string>
|
60
|
+
</array>
|
61
|
+
<key>name</key>
|
62
|
+
<string>Function</string>
|
63
|
+
</dict>
|
64
|
+
<key>7699AC1A-80AC-4120-A375-9371D1591F79</key>
|
65
|
+
<dict>
|
66
|
+
<key>items</key>
|
67
|
+
<array>
|
68
|
+
<string>F19F3732-39A7-48EC-A72B-A8F477A01795</string>
|
69
|
+
<string>31964029-9D71-4ADC-8213-DFE5C4E222B3</string>
|
70
|
+
<string>------------------------------------</string>
|
71
|
+
<string>011C4681-FBEC-4891-9326-3DECFCDED6D6</string>
|
72
|
+
<string>C207B7C3-5597-4873-8AAD-C46FB8842AF2</string>
|
73
|
+
</array>
|
74
|
+
<key>name</key>
|
75
|
+
<string>Control</string>
|
76
|
+
</dict>
|
77
|
+
<key>D2E6A1FE-2881-4754-B399-B65F61F29C2F</key>
|
78
|
+
<dict>
|
79
|
+
<key>items</key>
|
80
|
+
<array>
|
81
|
+
<string>7699AC1A-80AC-4120-A375-9371D1591F79</string>
|
82
|
+
<string>EC690F46-1906-4F55-9089-3C2929D5BB69</string>
|
83
|
+
<string>66778C58-CE08-4F21-AD36-562149AEEE80</string>
|
84
|
+
</array>
|
85
|
+
<key>name</key>
|
86
|
+
<string>Core</string>
|
87
|
+
</dict>
|
88
|
+
<key>EC690F46-1906-4F55-9089-3C2929D5BB69</key>
|
89
|
+
<dict>
|
90
|
+
<key>items</key>
|
91
|
+
<array>
|
92
|
+
<string>DC8B46FB-8ADA-45EA-8F36-94C807A0D302</string>
|
93
|
+
<string>AD506BEC-B33C-4168-A900-0A4D386A4B05</string>
|
94
|
+
<string>------------------------------------</string>
|
95
|
+
<string>2F96136B-0193-42F5-90FC-B6F456A3AD77</string>
|
96
|
+
</array>
|
97
|
+
<key>name</key>
|
98
|
+
<string>Language</string>
|
99
|
+
</dict>
|
100
|
+
</dict>
|
101
|
+
</dict>
|
102
|
+
<key>name</key>
|
103
|
+
<string>JavaScript</string>
|
104
|
+
<key>ordering</key>
|
105
|
+
<array>
|
106
|
+
<string>73951799-AC15-40A6-81DB-EC051AB4A033</string>
|
107
|
+
<string>1717B5AE-209B-4548-9155-9E88A7230C1C</string>
|
108
|
+
<string>B4874A14-2491-465A-A349-61E4EBCF4700</string>
|
109
|
+
<string>36EC03E9-EFF4-479A-AB90-8DFA16800642</string>
|
110
|
+
<string>20E61C43-B81F-4FB9-9362-BFFE668EB9C9</string>
|
111
|
+
<string>77065D69-742A-4FF0-9A41-AD211DFBE72F</string>
|
112
|
+
<string>F0E4FB6A-4878-48C6-A777-62438DF1E14F</string>
|
113
|
+
<string>2F96136B-0193-42F5-90FC-B6F456A3AD77</string>
|
114
|
+
<string>4C6EDB43-3E2E-411B-A016-13C135C59833</string>
|
115
|
+
<string>93E017CC-6F27-11D9-90EB-000D93589AF6</string>
|
116
|
+
<string>A67A8BD9-A951-406F-9175-018DD4B52FD1</string>
|
117
|
+
<string>BC062860-3346-4D3B-8421-C5543F83D11F</string>
|
118
|
+
<string>834BC727-6B31-4073-A161-4823227219EF</string>
|
119
|
+
<string>3CEA49B2-A5C5-405C-82E2-B8B668877C37</string>
|
120
|
+
<string>E6EB7CC8-04E8-43A9-93B2-BC9EF5BA862B</string>
|
121
|
+
<string>73557394-4F0F-4DD3-8029-EEE8201AC7F5</string>
|
122
|
+
<string>51841DDB-C2A4-461C-A8AB-6C124AD50EAE</string>
|
123
|
+
<string>F19F3732-39A7-48EC-A72B-A8F477A01795</string>
|
124
|
+
<string>31964029-9D71-4ADC-8213-DFE5C4E222B3</string>
|
125
|
+
<string>011C4681-FBEC-4891-9326-3DECFCDED6D6</string>
|
126
|
+
<string>C207B7C3-5597-4873-8AAD-C46FB8842AF2</string>
|
127
|
+
<string>AD506BEC-B33C-4168-A900-0A4D386A4B05</string>
|
128
|
+
<string>DC8B46FB-8ADA-45EA-8F36-94C807A0D302</string>
|
129
|
+
<string>009A3E6C-FE3F-4A18-8759-2DC31F17BBE2</string>
|
130
|
+
<string>7B9AEFCC-B450-416D-8527-430FE2A08568</string>
|
131
|
+
<string>9E0E3BCC-7F20-4D6B-891D-A44D6EC56E31</string>
|
132
|
+
</array>
|
133
|
+
<key>uuid</key>
|
134
|
+
<string>AAB4FD74-73F9-11D9-B89A-000D93589AF6</string>
|
135
|
+
</dict>
|
136
|
+
</plist>
|
@@ -2,6 +2,8 @@
|
|
2
2
|
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
3
3
|
<plist version="1.0">
|
4
4
|
<dict>
|
5
|
+
<key>currentDocument</key>
|
6
|
+
<string>tasks/jquery.rake</string>
|
5
7
|
<key>documents</key>
|
6
8
|
<array>
|
7
9
|
<dict>
|
@@ -18,10 +20,196 @@
|
|
18
20
|
<key>fileHierarchyDrawerWidth</key>
|
19
21
|
<integer>200</integer>
|
20
22
|
<key>metaData</key>
|
21
|
-
<dict
|
23
|
+
<dict>
|
24
|
+
<key>Rakefile</key>
|
25
|
+
<dict>
|
26
|
+
<key>caret</key>
|
27
|
+
<dict>
|
28
|
+
<key>column</key>
|
29
|
+
<integer>0</integer>
|
30
|
+
<key>line</key>
|
31
|
+
<integer>23</integer>
|
32
|
+
</dict>
|
33
|
+
<key>firstVisibleColumn</key>
|
34
|
+
<integer>0</integer>
|
35
|
+
<key>firstVisibleLine</key>
|
36
|
+
<integer>0</integer>
|
37
|
+
</dict>
|
38
|
+
<key>bin/jqp</key>
|
39
|
+
<dict>
|
40
|
+
<key>caret</key>
|
41
|
+
<dict>
|
42
|
+
<key>column</key>
|
43
|
+
<integer>0</integer>
|
44
|
+
<key>line</key>
|
45
|
+
<integer>10</integer>
|
46
|
+
</dict>
|
47
|
+
<key>firstVisibleColumn</key>
|
48
|
+
<integer>0</integer>
|
49
|
+
<key>firstVisibleLine</key>
|
50
|
+
<integer>0</integer>
|
51
|
+
</dict>
|
52
|
+
<key>lib/jqp/cli.rb</key>
|
53
|
+
<dict>
|
54
|
+
<key>caret</key>
|
55
|
+
<dict>
|
56
|
+
<key>column</key>
|
57
|
+
<integer>5</integer>
|
58
|
+
<key>line</key>
|
59
|
+
<integer>55</integer>
|
60
|
+
</dict>
|
61
|
+
<key>firstVisibleColumn</key>
|
62
|
+
<integer>0</integer>
|
63
|
+
<key>firstVisibleLine</key>
|
64
|
+
<integer>10</integer>
|
65
|
+
</dict>
|
66
|
+
<key>lib/jquery_plugin_gen.rb</key>
|
67
|
+
<dict>
|
68
|
+
<key>caret</key>
|
69
|
+
<dict>
|
70
|
+
<key>column</key>
|
71
|
+
<integer>3</integer>
|
72
|
+
<key>line</key>
|
73
|
+
<integer>10</integer>
|
74
|
+
</dict>
|
75
|
+
<key>firstVisibleColumn</key>
|
76
|
+
<integer>0</integer>
|
77
|
+
<key>firstVisibleLine</key>
|
78
|
+
<integer>0</integer>
|
79
|
+
</dict>
|
80
|
+
<key>sample.rb</key>
|
81
|
+
<dict>
|
82
|
+
<key>caret</key>
|
83
|
+
<dict>
|
84
|
+
<key>column</key>
|
85
|
+
<integer>0</integer>
|
86
|
+
<key>line</key>
|
87
|
+
<integer>58</integer>
|
88
|
+
</dict>
|
89
|
+
<key>columnSelection</key>
|
90
|
+
<false/>
|
91
|
+
<key>firstVisibleColumn</key>
|
92
|
+
<integer>0</integer>
|
93
|
+
<key>firstVisibleLine</key>
|
94
|
+
<integer>30</integer>
|
95
|
+
<key>selectFrom</key>
|
96
|
+
<dict>
|
97
|
+
<key>column</key>
|
98
|
+
<integer>8</integer>
|
99
|
+
<key>line</key>
|
100
|
+
<integer>65</integer>
|
101
|
+
</dict>
|
102
|
+
<key>selectTo</key>
|
103
|
+
<dict>
|
104
|
+
<key>column</key>
|
105
|
+
<integer>0</integer>
|
106
|
+
<key>line</key>
|
107
|
+
<integer>58</integer>
|
108
|
+
</dict>
|
109
|
+
</dict>
|
110
|
+
<key>spec/jqp_cli_spec.rb</key>
|
111
|
+
<dict>
|
112
|
+
<key>caret</key>
|
113
|
+
<dict>
|
114
|
+
<key>column</key>
|
115
|
+
<integer>0</integer>
|
116
|
+
<key>line</key>
|
117
|
+
<integer>27</integer>
|
118
|
+
</dict>
|
119
|
+
<key>firstVisibleColumn</key>
|
120
|
+
<integer>0</integer>
|
121
|
+
<key>firstVisibleLine</key>
|
122
|
+
<integer>0</integer>
|
123
|
+
</dict>
|
124
|
+
<key>spec/jquery_plugin_gen_spec.rb</key>
|
125
|
+
<dict>
|
126
|
+
<key>caret</key>
|
127
|
+
<dict>
|
128
|
+
<key>column</key>
|
129
|
+
<integer>5</integer>
|
130
|
+
<key>line</key>
|
131
|
+
<integer>20</integer>
|
132
|
+
</dict>
|
133
|
+
<key>firstVisibleColumn</key>
|
134
|
+
<integer>0</integer>
|
135
|
+
<key>firstVisibleLine</key>
|
136
|
+
<integer>0</integer>
|
137
|
+
</dict>
|
138
|
+
<key>spec/spec_helper.rb</key>
|
139
|
+
<dict>
|
140
|
+
<key>caret</key>
|
141
|
+
<dict>
|
142
|
+
<key>column</key>
|
143
|
+
<integer>0</integer>
|
144
|
+
<key>line</key>
|
145
|
+
<integer>10</integer>
|
146
|
+
</dict>
|
147
|
+
<key>columnSelection</key>
|
148
|
+
<false/>
|
149
|
+
<key>firstVisibleColumn</key>
|
150
|
+
<integer>0</integer>
|
151
|
+
<key>firstVisibleLine</key>
|
152
|
+
<integer>0</integer>
|
153
|
+
<key>selectFrom</key>
|
154
|
+
<dict>
|
155
|
+
<key>column</key>
|
156
|
+
<integer>0</integer>
|
157
|
+
<key>line</key>
|
158
|
+
<integer>8</integer>
|
159
|
+
</dict>
|
160
|
+
<key>selectTo</key>
|
161
|
+
<dict>
|
162
|
+
<key>column</key>
|
163
|
+
<integer>0</integer>
|
164
|
+
<key>line</key>
|
165
|
+
<integer>10</integer>
|
166
|
+
</dict>
|
167
|
+
</dict>
|
168
|
+
<key>tasks/jquery.rake</key>
|
169
|
+
<dict>
|
170
|
+
<key>caret</key>
|
171
|
+
<dict>
|
172
|
+
<key>column</key>
|
173
|
+
<integer>15</integer>
|
174
|
+
<key>line</key>
|
175
|
+
<integer>36</integer>
|
176
|
+
</dict>
|
177
|
+
<key>firstVisibleColumn</key>
|
178
|
+
<integer>0</integer>
|
179
|
+
<key>firstVisibleLine</key>
|
180
|
+
<integer>17</integer>
|
181
|
+
</dict>
|
182
|
+
<key>tasks/rspec.rake</key>
|
183
|
+
<dict>
|
184
|
+
<key>caret</key>
|
185
|
+
<dict>
|
186
|
+
<key>column</key>
|
187
|
+
<integer>0</integer>
|
188
|
+
<key>line</key>
|
189
|
+
<integer>15</integer>
|
190
|
+
</dict>
|
191
|
+
<key>firstVisibleColumn</key>
|
192
|
+
<integer>0</integer>
|
193
|
+
<key>firstVisibleLine</key>
|
194
|
+
<integer>0</integer>
|
195
|
+
</dict>
|
196
|
+
</dict>
|
197
|
+
<key>openDocuments</key>
|
198
|
+
<array>
|
199
|
+
<string>lib/jqp/cli.rb</string>
|
200
|
+
<string>Rakefile</string>
|
201
|
+
<string>tasks/rspec.rake</string>
|
202
|
+
<string>tasks/jquery.rake</string>
|
203
|
+
<string>sample.rb</string>
|
204
|
+
<string>lib/jquery_plugin_gen.rb</string>
|
205
|
+
<string>bin/jqp</string>
|
206
|
+
<string>spec/jqp_cli_spec.rb</string>
|
207
|
+
<string>spec/jquery_plugin_gen_spec.rb</string>
|
208
|
+
<string>spec/spec_helper.rb</string>
|
209
|
+
</array>
|
22
210
|
<key>showFileHierarchyDrawer</key>
|
23
211
|
<true/>
|
24
212
|
<key>windowFrame</key>
|
25
|
-
<string>{{203,
|
213
|
+
<string>{{203, 28}, {811, 850}}</string>
|
26
214
|
</dict>
|
27
215
|
</plist>
|
data/lib/jquery_plugin_gen.rb
CHANGED
@@ -1,11 +1,9 @@
|
|
1
1
|
$:.unshift(File.dirname(__FILE__)) unless
|
2
2
|
$:.include?(File.dirname(__FILE__)) || $:.include?(File.expand_path(File.dirname(__FILE__)))
|
3
3
|
|
4
|
-
|
5
|
-
|
6
|
-
require 'quick_template'
|
7
|
-
require 'generator'
|
4
|
+
require 'jquery_plugin_gen/quick_template'
|
5
|
+
require 'jquery_plugin_gen/generator'
|
8
6
|
|
9
7
|
module JqueryPluginGen
|
10
|
-
VERSION = '0.1.
|
8
|
+
VERSION = '0.1.2'
|
11
9
|
end
|
@@ -7,8 +7,8 @@ module JqueryPluginGen
|
|
7
7
|
details = {:version => 'xxx'}
|
8
8
|
|
9
9
|
def initialize(file, path="")
|
10
|
-
@path = path.empty? ? File.dirname(__FILE__)
|
11
|
-
@file = @path
|
10
|
+
@path = path.empty? ? File.join(File.dirname(__FILE__), '..', 'templates') : path
|
11
|
+
@file = File.join(@path, file) + '.erb'
|
12
12
|
@text = File.read(@file)
|
13
13
|
end
|
14
14
|
|
@@ -0,0 +1,28 @@
|
|
1
|
+
namespace :bundles do
|
2
|
+
|
3
|
+
BUNDLES = ["JavaScript\ jQuery.tmbundle", "JavaScript.tmbundle"]
|
4
|
+
|
5
|
+
desc 'Install TextMate bundles for jQuery and Jsspec(include in general javascript)'
|
6
|
+
task :tm do
|
7
|
+
require 'tmpdir'
|
8
|
+
require 'fileutils'
|
9
|
+
BUNDLES.each { |bundle|
|
10
|
+
bundle_dir = File.join(File.dirname(__FILE__), "../../../bundles", bundle)
|
11
|
+
FileUtils.cp_r(bundle_dir, Dir.tmpdir)
|
12
|
+
`open "#{File.join(Dir.tmpdir, bundle)}"`
|
13
|
+
}
|
14
|
+
end
|
15
|
+
|
16
|
+
desc 'Install TextMate bundles from SVN for jQuery and Jsspec(include in general javascript). This requires svn to be installed.'
|
17
|
+
task :tm_svn do
|
18
|
+
require 'tmpdir'
|
19
|
+
require 'fileutils'
|
20
|
+
BUNDLES.each { |bundle|
|
21
|
+
bundle_filename = File.join(Dir.tmpdir, bundle)
|
22
|
+
puts "Getting #{bundle} from svn http://svn.textmate.org/trunk/Bundles/#{bundle} and will open in Textmate"
|
23
|
+
`svn export --force "http://svn.textmate.org/trunk/Bundles/#{bundle}" "#{bundle_filename}"`
|
24
|
+
`open "#{bundle_filename}"`
|
25
|
+
}
|
26
|
+
end
|
27
|
+
end
|
28
|
+
|
@@ -0,0 +1,143 @@
|
|
1
|
+
begin
|
2
|
+
%w[rake fileutils simple-rss open-uri].each { |f| require f }
|
3
|
+
rescue LoadError
|
4
|
+
require 'rubygems' unless ENV['NO_RUBYGEMS']
|
5
|
+
%w[rake tmpdir fileutils simple-rss open-uri].each { |f| require f }
|
6
|
+
end
|
7
|
+
|
8
|
+
lib_dir = 'lib'
|
9
|
+
|
10
|
+
namespace :jquery do
|
11
|
+
|
12
|
+
desc "Add latest jquery core, ui and themes to #{lib_dir}"
|
13
|
+
task :all => ['core:add', 'ui:add', 'themes:add']
|
14
|
+
|
15
|
+
namespace :core do
|
16
|
+
|
17
|
+
desc "List versions of released packages"
|
18
|
+
task :packages do
|
19
|
+
versions(jquery_atom){ |e| e.title }
|
20
|
+
end
|
21
|
+
|
22
|
+
desc "List jQuery packages available"
|
23
|
+
task :versions do
|
24
|
+
versions(jquery_atom){ |e| e.title.gsub(/jquery-(\d\.\d\.\d|\d\.\d).*/, '\1') }
|
25
|
+
end
|
26
|
+
|
27
|
+
desc "Add latest jQuery to library"
|
28
|
+
task :add do
|
29
|
+
uri = first(jquery_atom){ |e| e.content.gsub(/.*a href="(.*)".*/m, '\1') if e.title.include?('.min.js') }
|
30
|
+
get_and_install(uri, lib_dir, 'jquery.min.js')
|
31
|
+
end
|
32
|
+
|
33
|
+
desc "Add specific version of jQuery library: see with VERSION=X.X.X on command line"
|
34
|
+
task :add_version do
|
35
|
+
version = ENV['VERSION']
|
36
|
+
return puts('No version specified - add VERSION=X.X.X to rake command') if version.nil?
|
37
|
+
uri = first(jquery_atom){ |e| e.content.gsub(/.*a href="(.*)".*/m, '\1') if e.title.include?(version) }
|
38
|
+
return puts("Specified version #{version} not found in repository - use rake jquery:core:versions to determine available versions") if uri.nil?
|
39
|
+
get_and_install(uri, lib_dir, "jquery-#{version}.min.js")
|
40
|
+
end
|
41
|
+
end
|
42
|
+
|
43
|
+
namespace :ui do
|
44
|
+
|
45
|
+
desc "List versions of released packages"
|
46
|
+
task :packages do
|
47
|
+
versions(jqueryui_atom){ |e| e.title }
|
48
|
+
end
|
49
|
+
|
50
|
+
desc "List jQuery UI packages available"
|
51
|
+
task :versions do
|
52
|
+
versions(jqueryui_atom){ |e| e.title.gsub(/.*-(\d.\drc\d.\d|\d.\drc\d|\d\.\d\.\d|\d\.\d).*/, '\1') }
|
53
|
+
end
|
54
|
+
|
55
|
+
desc "Add latest jQueryUI (without theme) to library"
|
56
|
+
task :add do
|
57
|
+
uri = first(jqueryui_atom){ |e| e.content.gsub(/.*a href="(.*)".*/m, '\1') unless e.title.include?('themes') }
|
58
|
+
file = uri.gsub(/.*files\/(.*)(\d.\drc\d.\d|\d.\drc\d|\d\.\d\.\d|\d\.\d)(.*)/, '\1\2\3')
|
59
|
+
get_and_install(uri, lib_dir, file)
|
60
|
+
unzip_and_install(lib_dir, file)
|
61
|
+
end
|
62
|
+
end
|
63
|
+
|
64
|
+
namespace :themes do
|
65
|
+
|
66
|
+
desc "Add all themes to libary"
|
67
|
+
task :add do
|
68
|
+
uri = first(jqueryui_atom){ |e| e.content.gsub(/.*a href="(.*)".*/m, '\1') if e.title.include?('themes') }
|
69
|
+
file = uri.gsub(/.*files\/(.*)(\d.\drc\d.\d|\d.\drc\d|\d\.\d\.\d|\d\.\d)(.*)/, '\1\2\3')
|
70
|
+
get_and_install(uri, lib_dir, file)
|
71
|
+
unzip_and_install(lib_dir, file)
|
72
|
+
end
|
73
|
+
end
|
74
|
+
end
|
75
|
+
|
76
|
+
|
77
|
+
def jqueryui_atom
|
78
|
+
puts "Checking jQueryUI respository on Google Code"
|
79
|
+
SimpleRSS.parse open('http://code.google.com/feeds/p/jquery-ui/downloads/basic')
|
80
|
+
end
|
81
|
+
|
82
|
+
def jquery_atom
|
83
|
+
puts "Checking jQuery respository on Google Code"
|
84
|
+
SimpleRSS.parse open('http://code.google.com/feeds/p/jqueryjs/downloads/basic')
|
85
|
+
end
|
86
|
+
|
87
|
+
def versions(atom)
|
88
|
+
versions = []
|
89
|
+
atom.entries.each do |entry|
|
90
|
+
versions << yield(entry)
|
91
|
+
end
|
92
|
+
puts versions.uniq
|
93
|
+
versions
|
94
|
+
end
|
95
|
+
|
96
|
+
def first(atom)
|
97
|
+
atom.entries.each do |entry|
|
98
|
+
link = yield(entry)
|
99
|
+
return link unless link.nil?
|
100
|
+
end
|
101
|
+
nil
|
102
|
+
end
|
103
|
+
|
104
|
+
def get_and_install(uri, path, file)
|
105
|
+
puts "Downloading file #{uri}"
|
106
|
+
download = URI.parse(uri)
|
107
|
+
|
108
|
+
unless File.directory?(path)
|
109
|
+
puts "Making new directory #{path}"
|
110
|
+
FileUtils.mkdir_p(path)
|
111
|
+
end
|
112
|
+
|
113
|
+
new_file = File.join(path, file)
|
114
|
+
puts "Saving new library file: #{new_file}"
|
115
|
+
|
116
|
+
File.open(new_file, 'w') do |file|
|
117
|
+
download.open { |jq| jq.each_line {|line| file.puts line} }
|
118
|
+
end
|
119
|
+
new_file
|
120
|
+
end
|
121
|
+
|
122
|
+
def unzip_and_install(path, file)
|
123
|
+
|
124
|
+
path = File.join(File.dirname(__FILE__), path)
|
125
|
+
extracted_folder = File.join(Dir.tmpdir, file.gsub(/(.*)\.zip/, '\1'))
|
126
|
+
|
127
|
+
if /mswin|mingw/ =~ RUBY_PLATFORM then
|
128
|
+
zip = ENV['ZIP'] || '7z'
|
129
|
+
puts "Extracting using #{zip} - this should be on your path or set the ZIP=path/to/zip/cmd on rake command"
|
130
|
+
`#{zip} #{file} -o #{Dir.tmpdir}`
|
131
|
+
else
|
132
|
+
puts 'Extracting files'
|
133
|
+
`unzip -o #{path}/#{file} -d #{Dir.tmpdir}`
|
134
|
+
end
|
135
|
+
|
136
|
+
puts 'Copying ui and themes'
|
137
|
+
FileUtils.cp Dir.glob("#{extracted_folder}/ui/jquery*.js") , path
|
138
|
+
FileUtils.cp_r "#{extracted_folder}/themes", path
|
139
|
+
|
140
|
+
puts 'Cleaning extracted files'
|
141
|
+
FileUtils.rm "#{path}/#{file}"
|
142
|
+
FileUtils.rm_rf extracted_folder
|
143
|
+
end
|