beautiful_scaffold 0.3.6 → 1.0.0.pre

Sign up to get free protection for your applications and to get access to all the features.
Files changed (151) hide show
  1. checksums.yaml +7 -0
  2. data/.gitattributes +2 -0
  3. data/CHANGELOG +8 -0
  4. data/README.rdoc +47 -34
  5. data/beautiful_scaffold.gemspec +2 -1
  6. data/lib/generators/beautiful_locale_generator.rb +2 -2
  7. data/lib/generators/beautiful_migration_generator.rb +2 -2
  8. data/lib/generators/beautiful_scaffold_common_methods.rb +10 -14
  9. data/lib/generators/beautiful_scaffold_generator.rb +7 -15
  10. data/lib/generators/templates/app/assets/javascripts/application-bs.js +4 -12
  11. data/lib/generators/templates/app/assets/javascripts/beautiful_scaffold.js +0 -33
  12. data/lib/generators/templates/app/assets/stylesheets/application-bs.css +0 -6
  13. data/lib/generators/templates/app/assets/stylesheets/bootstrap_and_overrides.css.less +6 -6
  14. data/lib/generators/templates/app/helpers/beautiful_helper.rb +1 -0
  15. data/lib/generators/templates/app/initializers/link_renderer.rb +2 -0
  16. data/lib/generators/templates/app/locales/beautiful_scaffold.ja.yml +50 -0
  17. data/lib/generators/templates/app/models/concerns/fulltext_concern.rb +10 -10
  18. data/lib/generators/templates/app/views/partials/_form_field.html.erb +1 -27
  19. data/lib/generators/templates/app/views/partials/_index_column.html.erb +0 -2
  20. data/lib/generators/templates/app/views/partials/_index_search.html.erb +0 -2
  21. metadata +25 -173
  22. data/lib/generators/templates/app/assets/javascripts/jquery.livequery.js +0 -226
  23. data/lib/generators/templates/markitup/jquery.markitup.js +0 -593
  24. data/lib/generators/templates/markitup/sets/bbcode/images/bold.png +0 -0
  25. data/lib/generators/templates/markitup/sets/bbcode/images/clean.png +0 -0
  26. data/lib/generators/templates/markitup/sets/bbcode/images/code.png +0 -0
  27. data/lib/generators/templates/markitup/sets/bbcode/images/fonts.png +0 -0
  28. data/lib/generators/templates/markitup/sets/bbcode/images/italic.png +0 -0
  29. data/lib/generators/templates/markitup/sets/bbcode/images/link.png +0 -0
  30. data/lib/generators/templates/markitup/sets/bbcode/images/list-bullet.png +0 -0
  31. data/lib/generators/templates/markitup/sets/bbcode/images/list-item.png +0 -0
  32. data/lib/generators/templates/markitup/sets/bbcode/images/list-numeric.png +0 -0
  33. data/lib/generators/templates/markitup/sets/bbcode/images/picture.png +0 -0
  34. data/lib/generators/templates/markitup/sets/bbcode/images/preview.png +0 -0
  35. data/lib/generators/templates/markitup/sets/bbcode/images/quotes.png +0 -0
  36. data/lib/generators/templates/markitup/sets/bbcode/images/stroke.png +0 -0
  37. data/lib/generators/templates/markitup/sets/bbcode/images/underline.png +0 -0
  38. data/lib/generators/templates/markitup/sets/bbcode/readme.txt +0 -11
  39. data/lib/generators/templates/markitup/sets/bbcode/set.js +0 -39
  40. data/lib/generators/templates/markitup/sets/bbcode/style.css +0 -47
  41. data/lib/generators/templates/markitup/sets/default/images/bold.png +0 -0
  42. data/lib/generators/templates/markitup/sets/default/images/clean.png +0 -0
  43. data/lib/generators/templates/markitup/sets/default/images/image.png +0 -0
  44. data/lib/generators/templates/markitup/sets/default/images/italic.png +0 -0
  45. data/lib/generators/templates/markitup/sets/default/images/link.png +0 -0
  46. data/lib/generators/templates/markitup/sets/default/images/list-bullet.png +0 -0
  47. data/lib/generators/templates/markitup/sets/default/images/list-numeric.png +0 -0
  48. data/lib/generators/templates/markitup/sets/default/images/picture.png +0 -0
  49. data/lib/generators/templates/markitup/sets/default/images/preview.png +0 -0
  50. data/lib/generators/templates/markitup/sets/default/images/stroke.png +0 -0
  51. data/lib/generators/templates/markitup/sets/default/set.js +0 -30
  52. data/lib/generators/templates/markitup/sets/default/style.css +0 -34
  53. data/lib/generators/templates/markitup/sets/html/images/bold.png +0 -0
  54. data/lib/generators/templates/markitup/sets/html/images/clean.png +0 -0
  55. data/lib/generators/templates/markitup/sets/html/images/h1.png +0 -0
  56. data/lib/generators/templates/markitup/sets/html/images/h2.png +0 -0
  57. data/lib/generators/templates/markitup/sets/html/images/h3.png +0 -0
  58. data/lib/generators/templates/markitup/sets/html/images/h4.png +0 -0
  59. data/lib/generators/templates/markitup/sets/html/images/h5.png +0 -0
  60. data/lib/generators/templates/markitup/sets/html/images/h6.png +0 -0
  61. data/lib/generators/templates/markitup/sets/html/images/image.png +0 -0
  62. data/lib/generators/templates/markitup/sets/html/images/italic.png +0 -0
  63. data/lib/generators/templates/markitup/sets/html/images/link.png +0 -0
  64. data/lib/generators/templates/markitup/sets/html/images/list-bullet.png +0 -0
  65. data/lib/generators/templates/markitup/sets/html/images/list-item.png +0 -0
  66. data/lib/generators/templates/markitup/sets/html/images/list-numeric.png +0 -0
  67. data/lib/generators/templates/markitup/sets/html/images/paragraph.png +0 -0
  68. data/lib/generators/templates/markitup/sets/html/images/picture.png +0 -0
  69. data/lib/generators/templates/markitup/sets/html/images/preview.png +0 -0
  70. data/lib/generators/templates/markitup/sets/html/images/stroke.png +0 -0
  71. data/lib/generators/templates/markitup/sets/html/readme.txt +0 -11
  72. data/lib/generators/templates/markitup/sets/html/set.js +0 -39
  73. data/lib/generators/templates/markitup/sets/html/style.css +0 -59
  74. data/lib/generators/templates/markitup/sets/markdown/images/bold.png +0 -0
  75. data/lib/generators/templates/markitup/sets/markdown/images/code.png +0 -0
  76. data/lib/generators/templates/markitup/sets/markdown/images/h1.png +0 -0
  77. data/lib/generators/templates/markitup/sets/markdown/images/h2.png +0 -0
  78. data/lib/generators/templates/markitup/sets/markdown/images/h3.png +0 -0
  79. data/lib/generators/templates/markitup/sets/markdown/images/h4.png +0 -0
  80. data/lib/generators/templates/markitup/sets/markdown/images/h5.png +0 -0
  81. data/lib/generators/templates/markitup/sets/markdown/images/h6.png +0 -0
  82. data/lib/generators/templates/markitup/sets/markdown/images/italic.png +0 -0
  83. data/lib/generators/templates/markitup/sets/markdown/images/link.png +0 -0
  84. data/lib/generators/templates/markitup/sets/markdown/images/list-bullet.png +0 -0
  85. data/lib/generators/templates/markitup/sets/markdown/images/list-numeric.png +0 -0
  86. data/lib/generators/templates/markitup/sets/markdown/images/picture.png +0 -0
  87. data/lib/generators/templates/markitup/sets/markdown/images/preview.png +0 -0
  88. data/lib/generators/templates/markitup/sets/markdown/images/quotes.png +0 -0
  89. data/lib/generators/templates/markitup/sets/markdown/readme.txt +0 -11
  90. data/lib/generators/templates/markitup/sets/markdown/set.js +0 -52
  91. data/lib/generators/templates/markitup/sets/markdown/style.css +0 -54
  92. data/lib/generators/templates/markitup/sets/textile/images/bold.png +0 -0
  93. data/lib/generators/templates/markitup/sets/textile/images/code.png +0 -0
  94. data/lib/generators/templates/markitup/sets/textile/images/h1.png +0 -0
  95. data/lib/generators/templates/markitup/sets/textile/images/h2.png +0 -0
  96. data/lib/generators/templates/markitup/sets/textile/images/h3.png +0 -0
  97. data/lib/generators/templates/markitup/sets/textile/images/h4.png +0 -0
  98. data/lib/generators/templates/markitup/sets/textile/images/h5.png +0 -0
  99. data/lib/generators/templates/markitup/sets/textile/images/h6.png +0 -0
  100. data/lib/generators/templates/markitup/sets/textile/images/italic.png +0 -0
  101. data/lib/generators/templates/markitup/sets/textile/images/link.png +0 -0
  102. data/lib/generators/templates/markitup/sets/textile/images/list-bullet.png +0 -0
  103. data/lib/generators/templates/markitup/sets/textile/images/list-numeric.png +0 -0
  104. data/lib/generators/templates/markitup/sets/textile/images/paragraph.png +0 -0
  105. data/lib/generators/templates/markitup/sets/textile/images/picture.png +0 -0
  106. data/lib/generators/templates/markitup/sets/textile/images/preview.png +0 -0
  107. data/lib/generators/templates/markitup/sets/textile/images/quotes.png +0 -0
  108. data/lib/generators/templates/markitup/sets/textile/images/stroke.png +0 -0
  109. data/lib/generators/templates/markitup/sets/textile/readme.txt +0 -11
  110. data/lib/generators/templates/markitup/sets/textile/set.js +0 -40
  111. data/lib/generators/templates/markitup/sets/textile/style.css +0 -60
  112. data/lib/generators/templates/markitup/sets/wiki/images/bold.png +0 -0
  113. data/lib/generators/templates/markitup/sets/wiki/images/code.png +0 -0
  114. data/lib/generators/templates/markitup/sets/wiki/images/h1.png +0 -0
  115. data/lib/generators/templates/markitup/sets/wiki/images/h2.png +0 -0
  116. data/lib/generators/templates/markitup/sets/wiki/images/h3.png +0 -0
  117. data/lib/generators/templates/markitup/sets/wiki/images/h4.png +0 -0
  118. data/lib/generators/templates/markitup/sets/wiki/images/h5.png +0 -0
  119. data/lib/generators/templates/markitup/sets/wiki/images/h6.png +0 -0
  120. data/lib/generators/templates/markitup/sets/wiki/images/italic.png +0 -0
  121. data/lib/generators/templates/markitup/sets/wiki/images/link.png +0 -0
  122. data/lib/generators/templates/markitup/sets/wiki/images/list-bullet.png +0 -0
  123. data/lib/generators/templates/markitup/sets/wiki/images/list-numeric.png +0 -0
  124. data/lib/generators/templates/markitup/sets/wiki/images/picture.png +0 -0
  125. data/lib/generators/templates/markitup/sets/wiki/images/preview.png +0 -0
  126. data/lib/generators/templates/markitup/sets/wiki/images/quotes.png +0 -0
  127. data/lib/generators/templates/markitup/sets/wiki/images/stroke.png +0 -0
  128. data/lib/generators/templates/markitup/sets/wiki/images/url.png +0 -0
  129. data/lib/generators/templates/markitup/sets/wiki/readme.txt +0 -11
  130. data/lib/generators/templates/markitup/sets/wiki/set.js +0 -37
  131. data/lib/generators/templates/markitup/sets/wiki/style.css +0 -57
  132. data/lib/generators/templates/markitup/skins/markitup/images/bg-container.png +0 -0
  133. data/lib/generators/templates/markitup/skins/markitup/images/bg-editor-bbcode.png +0 -0
  134. data/lib/generators/templates/markitup/skins/markitup/images/bg-editor-dotclear.png +0 -0
  135. data/lib/generators/templates/markitup/skins/markitup/images/bg-editor-html.png +0 -0
  136. data/lib/generators/templates/markitup/skins/markitup/images/bg-editor-json.png +0 -0
  137. data/lib/generators/templates/markitup/skins/markitup/images/bg-editor-markdown.png +0 -0
  138. data/lib/generators/templates/markitup/skins/markitup/images/bg-editor-textile.png +0 -0
  139. data/lib/generators/templates/markitup/skins/markitup/images/bg-editor-wiki.png +0 -0
  140. data/lib/generators/templates/markitup/skins/markitup/images/bg-editor-xml.png +0 -0
  141. data/lib/generators/templates/markitup/skins/markitup/images/bg-editor.png +0 -0
  142. data/lib/generators/templates/markitup/skins/markitup/images/handle.png +0 -0
  143. data/lib/generators/templates/markitup/skins/markitup/images/menu.png +0 -0
  144. data/lib/generators/templates/markitup/skins/markitup/images/submenu.png +0 -0
  145. data/lib/generators/templates/markitup/skins/markitup/style.css +0 -147
  146. data/lib/generators/templates/markitup/skins/simple/images/handle.png +0 -0
  147. data/lib/generators/templates/markitup/skins/simple/images/menu.png +0 -0
  148. data/lib/generators/templates/markitup/skins/simple/images/submenu.png +0 -0
  149. data/lib/generators/templates/markitup/skins/simple/style.css +0 -118
  150. data/lib/generators/templates/markitup/templates/preview.css +0 -5
  151. data/lib/generators/templates/markitup/templates/preview.html +0 -11
metadata CHANGED
@@ -1,32 +1,23 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: beautiful_scaffold
3
- version: !ruby/object:Gem::Version
4
- hash: 31
5
- prerelease:
6
- segments:
7
- - 0
8
- - 3
9
- - 6
10
- version: 0.3.6
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.0.0.pre
11
5
  platform: ruby
12
- authors:
6
+ authors:
13
7
  - Sylvain Claudel
14
8
  autorequire:
15
9
  bindir: bin
16
10
  cert_chain: []
17
-
18
- date: 2015-03-20 00:00:00 Z
11
+ date: 2017-01-24 00:00:00.000000000 Z
19
12
  dependencies: []
20
-
21
- description: Beautiful Scaffold generate a complete scaffold (sort, export, paginate and filter data) http://www.beautiful-scaffold.com
13
+ description: Beautiful Scaffold generate a complete scaffold (sort, export, paginate
14
+ and filter data) http://www.beautiful-scaffold.com
22
15
  email: claudel.sylvain@gmail.com
23
16
  executables: []
24
-
25
17
  extensions: []
26
-
27
18
  extra_rdoc_files: []
28
-
29
- files:
19
+ files:
20
+ - ".gitattributes"
30
21
  - CHANGELOG
31
22
  - Gemfile
32
23
  - MIT-LICENSE
@@ -55,7 +46,6 @@ files:
55
46
  - lib/generators/templates/app/assets/javascripts/fixed_menu.js
56
47
  - lib/generators/templates/app/assets/javascripts/jquery-barcode.js
57
48
  - lib/generators/templates/app/assets/javascripts/jquery.jstree.js
58
- - lib/generators/templates/app/assets/javascripts/jquery.livequery.js
59
49
  - lib/generators/templates/app/assets/javascripts/modernizr.custom.js
60
50
  - lib/generators/templates/app/assets/javascripts/tagit.js
61
51
  - lib/generators/templates/app/assets/stylesheets/application-bs.css
@@ -79,6 +69,7 @@ files:
79
69
  - lib/generators/templates/app/initializers/link_renderer.rb
80
70
  - lib/generators/templates/app/locales/beautiful_scaffold.en.yml
81
71
  - lib/generators/templates/app/locales/beautiful_scaffold.fr.yml
72
+ - lib/generators/templates/app/locales/beautiful_scaffold.ja.yml
82
73
  - lib/generators/templates/app/models/concerns/caption_concern.rb
83
74
  - lib/generators/templates/app/models/concerns/default_sorting_concern.rb
84
75
  - lib/generators/templates/app/models/concerns/fulltext_concern.rb
@@ -107,168 +98,29 @@ files:
107
98
  - lib/generators/templates/app/views/show.html.erb
108
99
  - lib/generators/templates/app/views/treeview.html.erb
109
100
  - lib/generators/templates/lib/custom_failure.rb
110
- - lib/generators/templates/markitup/jquery.markitup.js
111
- - lib/generators/templates/markitup/sets/bbcode/images/bold.png
112
- - lib/generators/templates/markitup/sets/bbcode/images/clean.png
113
- - lib/generators/templates/markitup/sets/bbcode/images/code.png
114
- - lib/generators/templates/markitup/sets/bbcode/images/fonts.png
115
- - lib/generators/templates/markitup/sets/bbcode/images/italic.png
116
- - lib/generators/templates/markitup/sets/bbcode/images/link.png
117
- - lib/generators/templates/markitup/sets/bbcode/images/list-bullet.png
118
- - lib/generators/templates/markitup/sets/bbcode/images/list-item.png
119
- - lib/generators/templates/markitup/sets/bbcode/images/list-numeric.png
120
- - lib/generators/templates/markitup/sets/bbcode/images/picture.png
121
- - lib/generators/templates/markitup/sets/bbcode/images/preview.png
122
- - lib/generators/templates/markitup/sets/bbcode/images/quotes.png
123
- - lib/generators/templates/markitup/sets/bbcode/images/stroke.png
124
- - lib/generators/templates/markitup/sets/bbcode/images/underline.png
125
- - lib/generators/templates/markitup/sets/bbcode/readme.txt
126
- - lib/generators/templates/markitup/sets/bbcode/set.js
127
- - lib/generators/templates/markitup/sets/bbcode/style.css
128
- - lib/generators/templates/markitup/sets/default/images/bold.png
129
- - lib/generators/templates/markitup/sets/default/images/clean.png
130
- - lib/generators/templates/markitup/sets/default/images/image.png
131
- - lib/generators/templates/markitup/sets/default/images/italic.png
132
- - lib/generators/templates/markitup/sets/default/images/link.png
133
- - lib/generators/templates/markitup/sets/default/images/list-bullet.png
134
- - lib/generators/templates/markitup/sets/default/images/list-numeric.png
135
- - lib/generators/templates/markitup/sets/default/images/picture.png
136
- - lib/generators/templates/markitup/sets/default/images/preview.png
137
- - lib/generators/templates/markitup/sets/default/images/stroke.png
138
- - lib/generators/templates/markitup/sets/default/set.js
139
- - lib/generators/templates/markitup/sets/default/style.css
140
- - lib/generators/templates/markitup/sets/html/images/bold.png
141
- - lib/generators/templates/markitup/sets/html/images/clean.png
142
- - lib/generators/templates/markitup/sets/html/images/h1.png
143
- - lib/generators/templates/markitup/sets/html/images/h2.png
144
- - lib/generators/templates/markitup/sets/html/images/h3.png
145
- - lib/generators/templates/markitup/sets/html/images/h4.png
146
- - lib/generators/templates/markitup/sets/html/images/h5.png
147
- - lib/generators/templates/markitup/sets/html/images/h6.png
148
- - lib/generators/templates/markitup/sets/html/images/image.png
149
- - lib/generators/templates/markitup/sets/html/images/italic.png
150
- - lib/generators/templates/markitup/sets/html/images/link.png
151
- - lib/generators/templates/markitup/sets/html/images/list-bullet.png
152
- - lib/generators/templates/markitup/sets/html/images/list-item.png
153
- - lib/generators/templates/markitup/sets/html/images/list-numeric.png
154
- - lib/generators/templates/markitup/sets/html/images/paragraph.png
155
- - lib/generators/templates/markitup/sets/html/images/picture.png
156
- - lib/generators/templates/markitup/sets/html/images/preview.png
157
- - lib/generators/templates/markitup/sets/html/images/stroke.png
158
- - lib/generators/templates/markitup/sets/html/readme.txt
159
- - lib/generators/templates/markitup/sets/html/set.js
160
- - lib/generators/templates/markitup/sets/html/style.css
161
- - lib/generators/templates/markitup/sets/markdown/images/bold.png
162
- - lib/generators/templates/markitup/sets/markdown/images/code.png
163
- - lib/generators/templates/markitup/sets/markdown/images/h1.png
164
- - lib/generators/templates/markitup/sets/markdown/images/h2.png
165
- - lib/generators/templates/markitup/sets/markdown/images/h3.png
166
- - lib/generators/templates/markitup/sets/markdown/images/h4.png
167
- - lib/generators/templates/markitup/sets/markdown/images/h5.png
168
- - lib/generators/templates/markitup/sets/markdown/images/h6.png
169
- - lib/generators/templates/markitup/sets/markdown/images/italic.png
170
- - lib/generators/templates/markitup/sets/markdown/images/link.png
171
- - lib/generators/templates/markitup/sets/markdown/images/list-bullet.png
172
- - lib/generators/templates/markitup/sets/markdown/images/list-numeric.png
173
- - lib/generators/templates/markitup/sets/markdown/images/picture.png
174
- - lib/generators/templates/markitup/sets/markdown/images/preview.png
175
- - lib/generators/templates/markitup/sets/markdown/images/quotes.png
176
- - lib/generators/templates/markitup/sets/markdown/readme.txt
177
- - lib/generators/templates/markitup/sets/markdown/set.js
178
- - lib/generators/templates/markitup/sets/markdown/style.css
179
- - lib/generators/templates/markitup/sets/textile/images/bold.png
180
- - lib/generators/templates/markitup/sets/textile/images/code.png
181
- - lib/generators/templates/markitup/sets/textile/images/h1.png
182
- - lib/generators/templates/markitup/sets/textile/images/h2.png
183
- - lib/generators/templates/markitup/sets/textile/images/h3.png
184
- - lib/generators/templates/markitup/sets/textile/images/h4.png
185
- - lib/generators/templates/markitup/sets/textile/images/h5.png
186
- - lib/generators/templates/markitup/sets/textile/images/h6.png
187
- - lib/generators/templates/markitup/sets/textile/images/italic.png
188
- - lib/generators/templates/markitup/sets/textile/images/link.png
189
- - lib/generators/templates/markitup/sets/textile/images/list-bullet.png
190
- - lib/generators/templates/markitup/sets/textile/images/list-numeric.png
191
- - lib/generators/templates/markitup/sets/textile/images/paragraph.png
192
- - lib/generators/templates/markitup/sets/textile/images/picture.png
193
- - lib/generators/templates/markitup/sets/textile/images/preview.png
194
- - lib/generators/templates/markitup/sets/textile/images/quotes.png
195
- - lib/generators/templates/markitup/sets/textile/images/stroke.png
196
- - lib/generators/templates/markitup/sets/textile/readme.txt
197
- - lib/generators/templates/markitup/sets/textile/set.js
198
- - lib/generators/templates/markitup/sets/textile/style.css
199
- - lib/generators/templates/markitup/sets/wiki/images/bold.png
200
- - lib/generators/templates/markitup/sets/wiki/images/code.png
201
- - lib/generators/templates/markitup/sets/wiki/images/h1.png
202
- - lib/generators/templates/markitup/sets/wiki/images/h2.png
203
- - lib/generators/templates/markitup/sets/wiki/images/h3.png
204
- - lib/generators/templates/markitup/sets/wiki/images/h4.png
205
- - lib/generators/templates/markitup/sets/wiki/images/h5.png
206
- - lib/generators/templates/markitup/sets/wiki/images/h6.png
207
- - lib/generators/templates/markitup/sets/wiki/images/italic.png
208
- - lib/generators/templates/markitup/sets/wiki/images/link.png
209
- - lib/generators/templates/markitup/sets/wiki/images/list-bullet.png
210
- - lib/generators/templates/markitup/sets/wiki/images/list-numeric.png
211
- - lib/generators/templates/markitup/sets/wiki/images/picture.png
212
- - lib/generators/templates/markitup/sets/wiki/images/preview.png
213
- - lib/generators/templates/markitup/sets/wiki/images/quotes.png
214
- - lib/generators/templates/markitup/sets/wiki/images/stroke.png
215
- - lib/generators/templates/markitup/sets/wiki/images/url.png
216
- - lib/generators/templates/markitup/sets/wiki/readme.txt
217
- - lib/generators/templates/markitup/sets/wiki/set.js
218
- - lib/generators/templates/markitup/sets/wiki/style.css
219
- - lib/generators/templates/markitup/skins/markitup/images/bg-container.png
220
- - lib/generators/templates/markitup/skins/markitup/images/bg-editor-bbcode.png
221
- - lib/generators/templates/markitup/skins/markitup/images/bg-editor-dotclear.png
222
- - lib/generators/templates/markitup/skins/markitup/images/bg-editor-html.png
223
- - lib/generators/templates/markitup/skins/markitup/images/bg-editor-json.png
224
- - lib/generators/templates/markitup/skins/markitup/images/bg-editor-markdown.png
225
- - lib/generators/templates/markitup/skins/markitup/images/bg-editor-textile.png
226
- - lib/generators/templates/markitup/skins/markitup/images/bg-editor-wiki.png
227
- - lib/generators/templates/markitup/skins/markitup/images/bg-editor-xml.png
228
- - lib/generators/templates/markitup/skins/markitup/images/bg-editor.png
229
- - lib/generators/templates/markitup/skins/markitup/images/handle.png
230
- - lib/generators/templates/markitup/skins/markitup/images/menu.png
231
- - lib/generators/templates/markitup/skins/markitup/images/submenu.png
232
- - lib/generators/templates/markitup/skins/markitup/style.css
233
- - lib/generators/templates/markitup/skins/simple/images/handle.png
234
- - lib/generators/templates/markitup/skins/simple/images/menu.png
235
- - lib/generators/templates/markitup/skins/simple/images/submenu.png
236
- - lib/generators/templates/markitup/skins/simple/style.css
237
- - lib/generators/templates/markitup/templates/preview.css
238
- - lib/generators/templates/markitup/templates/preview.html
239
101
  homepage: http://beautiful-scaffold.com
240
- licenses: []
241
-
102
+ licenses:
103
+ - MIT
104
+ metadata: {}
242
105
  post_install_message:
243
106
  rdoc_options: []
244
-
245
- require_paths:
107
+ require_paths:
246
108
  - lib
247
109
  - lib/generators
248
- required_ruby_version: !ruby/object:Gem::Requirement
249
- none: false
250
- requirements:
110
+ required_ruby_version: !ruby/object:Gem::Requirement
111
+ requirements:
251
112
  - - ">="
252
- - !ruby/object:Gem::Version
253
- hash: 3
254
- segments:
255
- - 0
256
- version: "0"
257
- required_rubygems_version: !ruby/object:Gem::Requirement
258
- none: false
259
- requirements:
260
- - - ">="
261
- - !ruby/object:Gem::Version
262
- hash: 3
263
- segments:
264
- - 0
265
- version: "0"
113
+ - !ruby/object:Gem::Version
114
+ version: '0'
115
+ required_rubygems_version: !ruby/object:Gem::Requirement
116
+ requirements:
117
+ - - ">"
118
+ - !ruby/object:Gem::Version
119
+ version: 1.3.1
266
120
  requirements: []
267
-
268
121
  rubyforge_project: beautiful_scaffold
269
- rubygems_version: 1.8.25
122
+ rubygems_version: 2.5.2
270
123
  signing_key:
271
- specification_version: 3
124
+ specification_version: 4
272
125
  summary: Beautiful Scaffold generate fully customizable scaffold
273
126
  test_files: []
274
-
@@ -1,226 +0,0 @@
1
- /*! Copyright (c) 2010 Brandon Aaron (http://brandonaaron.net)
2
- * Dual licensed under the MIT (MIT_LICENSE.txt)
3
- * and GPL Version 2 (GPL_LICENSE.txt) licenses.
4
- *
5
- * Version: 1.1.1
6
- * Requires jQuery 1.3+
7
- * Docs: http://docs.jquery.com/Plugins/livequery
8
- */
9
-
10
- (function($) {
11
-
12
- $.extend($.fn, {
13
- livequery: function(type, fn, fn2) {
14
- var self = this, q;
15
-
16
- // Handle different call patterns
17
- if ($.isFunction(type))
18
- fn2 = fn, fn = type, type = undefined;
19
-
20
- // See if Live Query already exists
21
- $.each( $.livequery.queries, function(i, query) {
22
- if ( self.selector == query.selector && self.context == query.context &&
23
- type == query.type && (!fn || fn.$lqguid == query.fn.$lqguid) && (!fn2 || fn2.$lqguid == query.fn2.$lqguid) )
24
- // Found the query, exit the each loop
25
- return (q = query) && false;
26
- });
27
-
28
- // Create new Live Query if it wasn't found
29
- q = q || new $.livequery(this.selector, this.context, type, fn, fn2);
30
-
31
- // Make sure it is running
32
- q.stopped = false;
33
-
34
- // Run it immediately for the first time
35
- q.run();
36
-
37
- // Contnue the chain
38
- return this;
39
- },
40
-
41
- expire: function(type, fn, fn2) {
42
- var self = this;
43
-
44
- // Handle different call patterns
45
- if ($.isFunction(type))
46
- fn2 = fn, fn = type, type = undefined;
47
-
48
- // Find the Live Query based on arguments and stop it
49
- $.each( $.livequery.queries, function(i, query) {
50
- if ( self.selector == query.selector && self.context == query.context &&
51
- (!type || type == query.type) && (!fn || fn.$lqguid == query.fn.$lqguid) && (!fn2 || fn2.$lqguid == query.fn2.$lqguid) && !this.stopped )
52
- $.livequery.stop(query.id);
53
- });
54
-
55
- // Continue the chain
56
- return this;
57
- }
58
- });
59
-
60
- $.livequery = function(selector, context, type, fn, fn2) {
61
- this.selector = selector;
62
- this.context = context;
63
- this.type = type;
64
- this.fn = fn;
65
- this.fn2 = fn2;
66
- this.elements = [];
67
- this.stopped = false;
68
-
69
- // The id is the index of the Live Query in $.livequery.queries
70
- this.id = $.livequery.queries.push(this)-1;
71
-
72
- // Mark the functions for matching later on
73
- fn.$lqguid = fn.$lqguid || $.livequery.guid++;
74
- if (fn2) fn2.$lqguid = fn2.$lqguid || $.livequery.guid++;
75
-
76
- // Return the Live Query
77
- return this;
78
- };
79
-
80
- $.livequery.prototype = {
81
- stop: function() {
82
- var query = this;
83
-
84
- if ( this.type )
85
- // Unbind all bound events
86
- this.elements.unbind(this.type, this.fn);
87
- else if (this.fn2)
88
- // Call the second function for all matched elements
89
- this.elements.each(function(i, el) {
90
- query.fn2.apply(el);
91
- });
92
-
93
- // Clear out matched elements
94
- this.elements = [];
95
-
96
- // Stop the Live Query from running until restarted
97
- this.stopped = true;
98
- },
99
-
100
- run: function() {
101
- // Short-circuit if stopped
102
- if ( this.stopped ) return;
103
- var query = this;
104
-
105
- var oEls = this.elements,
106
- els = $(this.selector, this.context),
107
- nEls = els.not(oEls);
108
-
109
- // Set elements to the latest set of matched elements
110
- this.elements = els;
111
-
112
- if (this.type) {
113
- // Bind events to newly matched elements
114
- nEls.bind(this.type, this.fn);
115
-
116
- // Unbind events to elements no longer matched
117
- if (oEls.length > 0)
118
- $.each(oEls, function(i, el) {
119
- if ( $.inArray(el, els) < 0 )
120
- $.event.remove(el, query.type, query.fn);
121
- });
122
- }
123
- else {
124
- // Call the first function for newly matched elements
125
- nEls.each(function() {
126
- query.fn.apply(this);
127
- });
128
-
129
- // Call the second function for elements no longer matched
130
- if ( this.fn2 && oEls.length > 0 )
131
- $.each(oEls, function(i, el) {
132
- if ( $.inArray(el, els) < 0 )
133
- query.fn2.apply(el);
134
- });
135
- }
136
- }
137
- };
138
-
139
- $.extend($.livequery, {
140
- guid: 0,
141
- queries: [],
142
- queue: [],
143
- running: false,
144
- timeout: null,
145
-
146
- checkQueue: function() {
147
- if ( $.livequery.running && $.livequery.queue.length ) {
148
- var length = $.livequery.queue.length;
149
- // Run each Live Query currently in the queue
150
- while ( length-- )
151
- $.livequery.queries[ $.livequery.queue.shift() ].run();
152
- }
153
- },
154
-
155
- pause: function() {
156
- // Don't run anymore Live Queries until restarted
157
- $.livequery.running = false;
158
- },
159
-
160
- play: function() {
161
- // Restart Live Queries
162
- $.livequery.running = true;
163
- // Request a run of the Live Queries
164
- $.livequery.run();
165
- },
166
-
167
- registerPlugin: function() {
168
- $.each( arguments, function(i,n) {
169
- // Short-circuit if the method doesn't exist
170
- if (!$.fn[n]) return;
171
-
172
- // Save a reference to the original method
173
- var old = $.fn[n];
174
-
175
- // Create a new method
176
- $.fn[n] = function() {
177
- // Call the original method
178
- var r = old.apply(this, arguments);
179
-
180
- // Request a run of the Live Queries
181
- $.livequery.run();
182
-
183
- // Return the original methods result
184
- return r;
185
- }
186
- });
187
- },
188
-
189
- run: function(id) {
190
- if (id != undefined) {
191
- // Put the particular Live Query in the queue if it doesn't already exist
192
- if ( $.inArray(id, $.livequery.queue) < 0 )
193
- $.livequery.queue.push( id );
194
- }
195
- else
196
- // Put each Live Query in the queue if it doesn't already exist
197
- $.each( $.livequery.queries, function(id) {
198
- if ( $.inArray(id, $.livequery.queue) < 0 )
199
- $.livequery.queue.push( id );
200
- });
201
-
202
- // Clear timeout if it already exists
203
- if ($.livequery.timeout) clearTimeout($.livequery.timeout);
204
- // Create a timeout to check the queue and actually run the Live Queries
205
- $.livequery.timeout = setTimeout($.livequery.checkQueue, 20);
206
- },
207
-
208
- stop: function(id) {
209
- if (id != undefined)
210
- // Stop are particular Live Query
211
- $.livequery.queries[ id ].stop();
212
- else
213
- // Stop all Live Queries
214
- $.each( $.livequery.queries, function(id) {
215
- $.livequery.queries[ id ].stop();
216
- });
217
- }
218
- });
219
-
220
- // Register core DOM manipulation methods
221
- $.livequery.registerPlugin('append', 'prepend', 'after', 'before', 'wrap', 'attr', 'removeAttr', 'addClass', 'removeClass', 'toggleClass', 'empty', 'remove', 'html');
222
-
223
- // Run Live Queries when the Document is ready
224
- $(function() { $.livequery.play(); });
225
-
226
- })(jQuery);