trusty-cms 4.3.1 → 5.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (201) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile +2 -1
  3. data/Gemfile.lock +99 -87
  4. data/app/assets/config/trusty-cms-manifest.js +6 -0
  5. data/app/assets/javascripts/ckeditor/config.js +2 -2
  6. data/app/assets/stylesheets/admin/partials/_content.scss +1 -0
  7. data/app/controllers/admin/assets_controller.rb +6 -2
  8. data/app/models/asset.rb +39 -48
  9. data/app/models/asset_type.rb +6 -2
  10. data/app/views/admin/assets/edit.html.haml +5 -3
  11. data/config/database.yml +2 -2
  12. data/config/locales/en.yml +1 -0
  13. data/coverage/index.html +1 -1
  14. data/lib/trusty_cms/deprecation.rb +13 -0
  15. data/lib/trusty_cms.rb +1 -1
  16. data/node_modules/path-parse/index.js +17 -35
  17. data/node_modules/path-parse/package.json +1 -1
  18. data/node_modules/postcss/CHANGELOG.md +27 -0
  19. data/node_modules/postcss/README.md +21 -0
  20. data/node_modules/postcss/lib/at-rule.js +2 -4
  21. data/node_modules/postcss/lib/comment.js +2 -4
  22. data/node_modules/postcss/lib/container.js +27 -122
  23. data/node_modules/postcss/lib/css-syntax-error.js +5 -7
  24. data/node_modules/postcss/lib/declaration.js +2 -4
  25. data/node_modules/postcss/lib/input.js +3 -5
  26. data/node_modules/postcss/lib/lazy-result.js +10 -17
  27. data/node_modules/postcss/lib/map-generator.js +10 -17
  28. data/node_modules/postcss/lib/node.js +2 -4
  29. data/node_modules/postcss/lib/parser.js +2 -4
  30. data/node_modules/postcss/lib/postcss.d.ts +25 -19
  31. data/node_modules/postcss/lib/previous-map.js +17 -6
  32. data/node_modules/postcss/lib/processor.js +16 -15
  33. data/node_modules/postcss/lib/result.js +2 -4
  34. data/node_modules/postcss/lib/root.js +10 -17
  35. data/node_modules/postcss/lib/rule.js +2 -4
  36. data/node_modules/postcss/lib/stringifier.js +2 -4
  37. data/node_modules/postcss/lib/warning.js +2 -4
  38. data/node_modules/postcss/package.json +16 -12
  39. data/spec/dummy/log/test.log +542 -443
  40. data/spec/dummy/tmp/cache/747/A70/TrustyCms%3A%3AConfig +0 -0
  41. data/spec/dummy/tmp/cache/85C/FA0/TrustyCms.cache_mtime +1 -1
  42. data/trusty_cms.gemspec +4 -2
  43. data/vendor/extensions/clipped-extension/lib/clipped/engine.rb +1 -1
  44. data/yarn.lock +6 -6
  45. metadata +69 -345
  46. data/app/assets/config/trusty-cms/manifest.js +0 -7
  47. data/config/initializers/interpolation.rb +0 -6
  48. data/node_modules/path-parse/test.js +0 -77
  49. data/node_modules/postcss/docs/api/assets/scripts.min.js +0 -8
  50. data/node_modules/postcss/docs/api/assets/styles.min.css +0 -1
  51. data/node_modules/postcss/docs/api/index.html +0 -22716
  52. data/spec/dummy/log/development.log +0 -158
  53. data/spec/dummy/node_modules/jquery/AUTHORS.txt +0 -327
  54. data/spec/dummy/node_modules/jquery/LICENSE.txt +0 -20
  55. data/spec/dummy/node_modules/jquery/README.md +0 -62
  56. data/spec/dummy/node_modules/jquery/bower.json +0 -14
  57. data/spec/dummy/node_modules/jquery/dist/jquery.js +0 -10872
  58. data/spec/dummy/node_modules/jquery/dist/jquery.min.js +0 -2
  59. data/spec/dummy/node_modules/jquery/dist/jquery.min.map +0 -1
  60. data/spec/dummy/node_modules/jquery/dist/jquery.slim.js +0 -8777
  61. data/spec/dummy/node_modules/jquery/dist/jquery.slim.min.js +0 -2
  62. data/spec/dummy/node_modules/jquery/dist/jquery.slim.min.map +0 -1
  63. data/spec/dummy/node_modules/jquery/external/sizzle/LICENSE.txt +0 -36
  64. data/spec/dummy/node_modules/jquery/external/sizzle/dist/sizzle.js +0 -2478
  65. data/spec/dummy/node_modules/jquery/external/sizzle/dist/sizzle.min.js +0 -3
  66. data/spec/dummy/node_modules/jquery/external/sizzle/dist/sizzle.min.map +0 -1
  67. data/spec/dummy/node_modules/jquery/package.json +0 -117
  68. data/spec/dummy/node_modules/jquery/src/ajax/jsonp.js +0 -103
  69. data/spec/dummy/node_modules/jquery/src/ajax/load.js +0 -77
  70. data/spec/dummy/node_modules/jquery/src/ajax/script.js +0 -74
  71. data/spec/dummy/node_modules/jquery/src/ajax/var/location.js +0 -5
  72. data/spec/dummy/node_modules/jquery/src/ajax/var/nonce.js +0 -5
  73. data/spec/dummy/node_modules/jquery/src/ajax/var/rquery.js +0 -5
  74. data/spec/dummy/node_modules/jquery/src/ajax/xhr.js +0 -170
  75. data/spec/dummy/node_modules/jquery/src/ajax.js +0 -873
  76. data/spec/dummy/node_modules/jquery/src/attributes/attr.js +0 -141
  77. data/spec/dummy/node_modules/jquery/src/attributes/classes.js +0 -186
  78. data/spec/dummy/node_modules/jquery/src/attributes/prop.js +0 -143
  79. data/spec/dummy/node_modules/jquery/src/attributes/support.js +0 -33
  80. data/spec/dummy/node_modules/jquery/src/attributes/val.js +0 -191
  81. data/spec/dummy/node_modules/jquery/src/attributes.js +0 -13
  82. data/spec/dummy/node_modules/jquery/src/callbacks.js +0 -236
  83. data/spec/dummy/node_modules/jquery/src/core/DOMEval.js +0 -43
  84. data/spec/dummy/node_modules/jquery/src/core/access.js +0 -72
  85. data/spec/dummy/node_modules/jquery/src/core/camelCase.js +0 -23
  86. data/spec/dummy/node_modules/jquery/src/core/init.js +0 -129
  87. data/spec/dummy/node_modules/jquery/src/core/isAttached.js +0 -26
  88. data/spec/dummy/node_modules/jquery/src/core/nodeName.js +0 -13
  89. data/spec/dummy/node_modules/jquery/src/core/parseHTML.js +0 -65
  90. data/spec/dummy/node_modules/jquery/src/core/parseXML.js +0 -30
  91. data/spec/dummy/node_modules/jquery/src/core/ready-no-deferred.js +0 -97
  92. data/spec/dummy/node_modules/jquery/src/core/ready.js +0 -86
  93. data/spec/dummy/node_modules/jquery/src/core/readyException.js +0 -13
  94. data/spec/dummy/node_modules/jquery/src/core/stripAndCollapse.js +0 -14
  95. data/spec/dummy/node_modules/jquery/src/core/support.js +0 -20
  96. data/spec/dummy/node_modules/jquery/src/core/toType.js +0 -20
  97. data/spec/dummy/node_modules/jquery/src/core/var/rsingleTag.js +0 -7
  98. data/spec/dummy/node_modules/jquery/src/core.js +0 -400
  99. data/spec/dummy/node_modules/jquery/src/css/addGetHookIf.js +0 -26
  100. data/spec/dummy/node_modules/jquery/src/css/adjustCSS.js +0 -74
  101. data/spec/dummy/node_modules/jquery/src/css/curCSS.js +0 -65
  102. data/spec/dummy/node_modules/jquery/src/css/finalPropName.js +0 -42
  103. data/spec/dummy/node_modules/jquery/src/css/hiddenVisibleSelectors.js +0 -15
  104. data/spec/dummy/node_modules/jquery/src/css/showHide.js +0 -105
  105. data/spec/dummy/node_modules/jquery/src/css/support.js +0 -133
  106. data/spec/dummy/node_modules/jquery/src/css/var/cssExpand.js +0 -5
  107. data/spec/dummy/node_modules/jquery/src/css/var/getStyles.js +0 -17
  108. data/spec/dummy/node_modules/jquery/src/css/var/isHiddenWithinTree.js +0 -34
  109. data/spec/dummy/node_modules/jquery/src/css/var/rboxStyle.js +0 -7
  110. data/spec/dummy/node_modules/jquery/src/css/var/rnumnonpx.js +0 -7
  111. data/spec/dummy/node_modules/jquery/src/css/var/swap.js +0 -26
  112. data/spec/dummy/node_modules/jquery/src/css.js +0 -494
  113. data/spec/dummy/node_modules/jquery/src/data/Data.js +0 -162
  114. data/spec/dummy/node_modules/jquery/src/data/var/acceptData.js +0 -19
  115. data/spec/dummy/node_modules/jquery/src/data/var/dataPriv.js +0 -7
  116. data/spec/dummy/node_modules/jquery/src/data/var/dataUser.js +0 -7
  117. data/spec/dummy/node_modules/jquery/src/data.js +0 -180
  118. data/spec/dummy/node_modules/jquery/src/deferred/exceptionHook.js +0 -21
  119. data/spec/dummy/node_modules/jquery/src/deferred.js +0 -399
  120. data/spec/dummy/node_modules/jquery/src/deprecated/ajax-event-alias.js +0 -22
  121. data/spec/dummy/node_modules/jquery/src/deprecated/event.js +0 -48
  122. data/spec/dummy/node_modules/jquery/src/deprecated.js +0 -87
  123. data/spec/dummy/node_modules/jquery/src/dimensions.js +0 -57
  124. data/spec/dummy/node_modules/jquery/src/effects/Tween.js +0 -125
  125. data/spec/dummy/node_modules/jquery/src/effects/animatedSelector.js +0 -15
  126. data/spec/dummy/node_modules/jquery/src/effects.js +0 -701
  127. data/spec/dummy/node_modules/jquery/src/event/focusin.js +0 -58
  128. data/spec/dummy/node_modules/jquery/src/event/support.js +0 -11
  129. data/spec/dummy/node_modules/jquery/src/event/trigger.js +0 -201
  130. data/spec/dummy/node_modules/jquery/src/event.js +0 -892
  131. data/spec/dummy/node_modules/jquery/src/exports/amd.js +0 -26
  132. data/spec/dummy/node_modules/jquery/src/exports/global.js +0 -34
  133. data/spec/dummy/node_modules/jquery/src/jquery.js +0 -41
  134. data/spec/dummy/node_modules/jquery/src/manipulation/_evalUrl.js +0 -32
  135. data/spec/dummy/node_modules/jquery/src/manipulation/buildFragment.js +0 -106
  136. data/spec/dummy/node_modules/jquery/src/manipulation/getAll.js +0 -32
  137. data/spec/dummy/node_modules/jquery/src/manipulation/setGlobalEval.js +0 -22
  138. data/spec/dummy/node_modules/jquery/src/manipulation/support.js +0 -41
  139. data/spec/dummy/node_modules/jquery/src/manipulation/var/rscriptType.js +0 -5
  140. data/spec/dummy/node_modules/jquery/src/manipulation/var/rtagName.js +0 -8
  141. data/spec/dummy/node_modules/jquery/src/manipulation/wrapMap.js +0 -30
  142. data/spec/dummy/node_modules/jquery/src/manipulation.js +0 -480
  143. data/spec/dummy/node_modules/jquery/src/offset.js +0 -238
  144. data/spec/dummy/node_modules/jquery/src/queue/delay.js +0 -24
  145. data/spec/dummy/node_modules/jquery/src/queue.js +0 -145
  146. data/spec/dummy/node_modules/jquery/src/selector-native.js +0 -241
  147. data/spec/dummy/node_modules/jquery/src/selector-sizzle.js +0 -19
  148. data/spec/dummy/node_modules/jquery/src/selector.js +0 -3
  149. data/spec/dummy/node_modules/jquery/src/serialize.js +0 -136
  150. data/spec/dummy/node_modules/jquery/src/traversing/findFilter.js +0 -97
  151. data/spec/dummy/node_modules/jquery/src/traversing/var/dir.js +0 -22
  152. data/spec/dummy/node_modules/jquery/src/traversing/var/rneedsContext.js +0 -8
  153. data/spec/dummy/node_modules/jquery/src/traversing/var/siblings.js +0 -17
  154. data/spec/dummy/node_modules/jquery/src/traversing.js +0 -198
  155. data/spec/dummy/node_modules/jquery/src/var/ObjectFunctionString.js +0 -7
  156. data/spec/dummy/node_modules/jquery/src/var/arr.js +0 -5
  157. data/spec/dummy/node_modules/jquery/src/var/class2type.js +0 -6
  158. data/spec/dummy/node_modules/jquery/src/var/document.js +0 -5
  159. data/spec/dummy/node_modules/jquery/src/var/documentElement.js +0 -7
  160. data/spec/dummy/node_modules/jquery/src/var/flat.js +0 -16
  161. data/spec/dummy/node_modules/jquery/src/var/fnToString.js +0 -7
  162. data/spec/dummy/node_modules/jquery/src/var/getProto.js +0 -5
  163. data/spec/dummy/node_modules/jquery/src/var/hasOwn.js +0 -7
  164. data/spec/dummy/node_modules/jquery/src/var/indexOf.js +0 -7
  165. data/spec/dummy/node_modules/jquery/src/var/isFunction.js +0 -13
  166. data/spec/dummy/node_modules/jquery/src/var/isWindow.js +0 -8
  167. data/spec/dummy/node_modules/jquery/src/var/pnum.js +0 -5
  168. data/spec/dummy/node_modules/jquery/src/var/push.js +0 -7
  169. data/spec/dummy/node_modules/jquery/src/var/rcheckableType.js +0 -5
  170. data/spec/dummy/node_modules/jquery/src/var/rcssNum.js +0 -9
  171. data/spec/dummy/node_modules/jquery/src/var/rnothtmlwhite.js +0 -8
  172. data/spec/dummy/node_modules/jquery/src/var/slice.js +0 -7
  173. data/spec/dummy/node_modules/jquery/src/var/support.js +0 -6
  174. data/spec/dummy/node_modules/jquery/src/var/toString.js +0 -7
  175. data/spec/dummy/node_modules/jquery/src/wrap.js +0 -78
  176. data/spec/dummy/node_modules/jquery-ui-bundle/AUTHORS.txt +0 -333
  177. data/spec/dummy/node_modules/jquery-ui-bundle/LICENSE.txt +0 -43
  178. data/spec/dummy/node_modules/jquery-ui-bundle/external/jquery/jquery.js +0 -11008
  179. data/spec/dummy/node_modules/jquery-ui-bundle/images/ui-icons_444444_256x240.png +0 -0
  180. data/spec/dummy/node_modules/jquery-ui-bundle/images/ui-icons_555555_256x240.png +0 -0
  181. data/spec/dummy/node_modules/jquery-ui-bundle/images/ui-icons_777620_256x240.png +0 -0
  182. data/spec/dummy/node_modules/jquery-ui-bundle/images/ui-icons_777777_256x240.png +0 -0
  183. data/spec/dummy/node_modules/jquery-ui-bundle/images/ui-icons_cc0000_256x240.png +0 -0
  184. data/spec/dummy/node_modules/jquery-ui-bundle/images/ui-icons_ffffff_256x240.png +0 -0
  185. data/spec/dummy/node_modules/jquery-ui-bundle/index.html +0 -559
  186. data/spec/dummy/node_modules/jquery-ui-bundle/jquery-ui.css +0 -1312
  187. data/spec/dummy/node_modules/jquery-ui-bundle/jquery-ui.js +0 -18706
  188. data/spec/dummy/node_modules/jquery-ui-bundle/jquery-ui.min.css +0 -7
  189. data/spec/dummy/node_modules/jquery-ui-bundle/jquery-ui.min.js +0 -13
  190. data/spec/dummy/node_modules/jquery-ui-bundle/jquery-ui.structure.css +0 -886
  191. data/spec/dummy/node_modules/jquery-ui-bundle/jquery-ui.structure.min.css +0 -5
  192. data/spec/dummy/node_modules/jquery-ui-bundle/jquery-ui.theme.css +0 -443
  193. data/spec/dummy/node_modules/jquery-ui-bundle/jquery-ui.theme.min.css +0 -5
  194. data/spec/dummy/node_modules/jquery-ui-bundle/package.json +0 -33
  195. data/spec/dummy/node_modules/jquery-ujs/CONTRIBUTING.md +0 -109
  196. data/spec/dummy/node_modules/jquery-ujs/MIT-LICENSE +0 -20
  197. data/spec/dummy/node_modules/jquery-ujs/README.md +0 -86
  198. data/spec/dummy/node_modules/jquery-ujs/RELEASE.md +0 -23
  199. data/spec/dummy/node_modules/jquery-ujs/bower.json +0 -19
  200. data/spec/dummy/node_modules/jquery-ujs/package.json +0 -26
  201. data/spec/dummy/node_modules/jquery-ujs/src/rails.js +0 -555
@@ -1,86 +0,0 @@
1
- Unobtrusive scripting adapter for jQuery
2
- ========================================
3
-
4
- This unobtrusive scripting support file is developed for the Ruby on Rails framework, but is not strictly tied to any specific backend. You can drop this into any application to:
5
-
6
- - force confirmation dialogs for various actions;
7
- - make non-GET requests from hyperlinks;
8
- - make forms or hyperlinks submit data asynchronously with Ajax;
9
- - have submit buttons become automatically disabled on form submit to prevent double-clicking.
10
-
11
- These features are achieved by adding certain ["data" attributes][data] to your HTML markup. In Rails, they are added by the framework's template helpers.
12
-
13
- Full [documentation is on the wiki][wiki], including the [list of published Ajax events][events].
14
-
15
- Requirements
16
- ------------
17
-
18
- - [jQuery 1.8.x or higher][jquery];
19
- - HTML5 doctype (optional).
20
-
21
- If you don't use HTML5, adding "data" attributes to your HTML4 or XHTML pages might make them fail [W3C markup validation][validator]. However, this shouldn't create any issues for web browsers or other user agents.
22
-
23
- Installation using the jquery-rails gem
24
- ------------
25
-
26
- For automated installation in Rails, use the "jquery-rails" gem. Place this in your Gemfile:
27
-
28
- ```ruby
29
- gem 'jquery-rails'
30
- ```
31
-
32
- And run:
33
-
34
- ```shell
35
- $ bundle install
36
- ```
37
-
38
- Require both `jquery` and `jquery_ujs` into your application.js manifest.
39
-
40
- ```javascript
41
- //= require jquery
42
- //= require jquery_ujs
43
- ```
44
-
45
- Installation using npm.
46
- ------------
47
-
48
- Run `npm install --save jquery-ujs` to install the jquery-ujs package.
49
-
50
- Installation using Bower
51
- ------------
52
-
53
- Run `bower install jquery-ujs --save` to install the jquery-ujs package.
54
-
55
- Usage
56
- ------------
57
-
58
- Require both `jquery` and `jquery-ujs` into your application.js manifest.
59
-
60
- ```javascript
61
- //= require jquery
62
- //= require jquery-ujs
63
- ```
64
-
65
- How to run tests
66
- ------------
67
-
68
- Follow [this wiki](https://github.com/rails/jquery-ujs/wiki/Running-Tests-and-Contributing) to run tests.
69
-
70
- ## Contributing to jquery-ujs
71
-
72
- jquery-ujs is work of many contributors. You're encouraged to submit pull requests, propose
73
- features and discuss issues.
74
-
75
- See [CONTRIBUTING](CONTRIBUTING.md).
76
-
77
- ## License
78
- jquery-ujs is released under the [MIT License](MIT-LICENSE).
79
-
80
- [data]: http://www.w3.org/TR/html5/dom.html#embedding-custom-non-visible-data-with-the-data-*-attributes "Embedding custom non-visible data with the data-* attributes"
81
- [wiki]: https://github.com/rails/jquery-ujs/wiki
82
- [events]: https://github.com/rails/jquery-ujs/wiki/ajax
83
- [jquery]: http://docs.jquery.com/Downloading_jQuery
84
- [validator]: http://validator.w3.org/
85
- [csrf]: http://api.rubyonrails.org/classes/ActionController/RequestForgeryProtection.html
86
- [adapter]: https://github.com/rails/jquery-ujs/raw/master/src/rails.js
@@ -1,23 +0,0 @@
1
- ## Releasing jquery-ujs
2
-
3
- ### Releasing to npm
4
-
5
- Make sure npm's configuration `sign-git-tag` is set to true.
6
-
7
- ```
8
- npm config set sign-git-tag true
9
- ```
10
-
11
- Release it to npm using the [npm version command](https://docs.npmjs.com/cli/version). Like:
12
-
13
- ```
14
- npm version patch
15
- ```
16
-
17
- This will:
18
-
19
- * Bump a patch version
20
- * Commit the change
21
- * Generate the tag
22
- * Push the commit and the tag to the repository
23
- * Publish the package in https://www.npmjs.com
@@ -1,19 +0,0 @@
1
- {
2
- "name": "jquery-ujs",
3
- "homepage": "https://github.com/rails/jquery-ujs",
4
- "authors": ["Stephen St. Martin", "Steve Schwartz"],
5
- "description": "Ruby on Rails unobtrusive scripting adapter for jQuery",
6
- "main": "src/rails.js",
7
- "license": "MIT",
8
- "dependencies": {
9
- "jquery": ">1.8.*"
10
- },
11
- "ignore": [
12
- "**/.*",
13
- "Gemfile*",
14
- "Rakefile",
15
- "bower_components",
16
- "script",
17
- "test"
18
- ]
19
- }
@@ -1,26 +0,0 @@
1
- {
2
- "name": "jquery-ujs",
3
- "version": "1.2.2",
4
- "description": "Unobtrusive scripting adapter for jQuery",
5
- "main": "src/rails.js",
6
- "scripts": {
7
- "test": "echo \"See the wiki: https://github.com/rails/jquery-ujs/wiki/Running-Tests-and-Contributing\" && exit 1",
8
- "postversion": "git push && git push --tags && npm publish"
9
- },
10
- "repository": {
11
- "type": "git",
12
- "url": "https://github.com/rails/jquery-ujs.git"
13
- },
14
- "author": [
15
- "Stephen St. Martin",
16
- "Steve Schwartz"
17
- ],
18
- "license": "MIT",
19
- "bugs": {
20
- "url": "https://github.com/rails/jquery-ujs/issues"
21
- },
22
- "homepage": "https://github.com/rails/jquery-ujs#readme",
23
- "dependencies": {
24
- "jquery": ">=1.8.0"
25
- }
26
- }