trusty-snippets-extension 2.0.1.pre.beta → 2.0.2.pre.beta

Sign up to get free protection for your applications and to get access to all the features.
Files changed (158) hide show
  1. checksums.yaml +5 -13
  2. data/Gemfile +48 -1
  3. data/Gemfile.lock +287 -0
  4. data/Rakefile +26 -109
  5. data/lib/trusty-snippets-extension.rb +1 -1
  6. data/spec/ci/database.mysql.yml +27 -0
  7. data/spec/controllers/admin/snippets_controller_spec.rb +110 -110
  8. data/spec/dummy/README.rdoc +28 -0
  9. data/spec/dummy/Rakefile +5 -0
  10. data/spec/dummy/bin/bundle +3 -0
  11. data/spec/dummy/bin/rails +4 -0
  12. data/spec/dummy/bin/rake +4 -0
  13. data/spec/dummy/bin/setup +29 -0
  14. data/spec/dummy/config/application.rb +152 -0
  15. data/spec/dummy/config/boot.rb +6 -0
  16. data/spec/dummy/config/database.yml +28 -0
  17. data/spec/dummy/config/environment.rb +5 -0
  18. data/spec/dummy/config/environments/development.rb +49 -0
  19. data/spec/dummy/config/environments/production.rb +79 -0
  20. data/spec/dummy/config/environments/test.rb +42 -0
  21. data/spec/dummy/config/initializers/assets.rb +11 -0
  22. data/spec/dummy/config/initializers/backtrace_silencers.rb +7 -0
  23. data/spec/dummy/config/initializers/cookies_serializer.rb +3 -0
  24. data/spec/dummy/config/initializers/filter_parameter_logging.rb +4 -0
  25. data/spec/dummy/config/initializers/inflections.rb +16 -0
  26. data/spec/dummy/config/initializers/mime_types.rb +4 -0
  27. data/spec/dummy/config/initializers/session_store.rb +3 -0
  28. data/spec/dummy/config/initializers/trusty_cms_config.rb +20 -0
  29. data/spec/dummy/config/initializers/wrap_parameters.rb +14 -0
  30. data/spec/dummy/config/locales/en.yml +23 -0
  31. data/spec/dummy/config/routes.rb +0 -0
  32. data/spec/dummy/config/secrets.yml +22 -0
  33. data/spec/dummy/config.ru +4 -0
  34. data/spec/dummy/db/schema.rb +144 -0
  35. data/spec/dummy/public/404.html +67 -0
  36. data/spec/dummy/public/422.html +67 -0
  37. data/spec/dummy/public/500.html +66 -0
  38. data/spec/dummy/public/favicon.ico +0 -0
  39. data/spec/dummy/tmp/cache/747/A70/TrustyCms%3A%3AConfig +0 -0
  40. data/spec/dummy/tmp/cache/85C/FA0/TrustyCms.cache_mtime +0 -0
  41. data/spec/dummy/tmp/cache/assets/test/sass/4efd780dc9118042804451835b878259e2afc5d1/_base.scssc +0 -0
  42. data/spec/dummy/tmp/cache/assets/test/sass/4efd780dc9118042804451835b878259e2afc5d1/main.scssc +0 -0
  43. data/spec/dummy/tmp/cache/assets/test/sass/66b1a0010012929c45ead4236f8cf67ab5e3ad10/_boxes.scssc +0 -0
  44. data/spec/dummy/tmp/cache/assets/test/sass/66b1a0010012929c45ead4236f8cf67ab5e3ad10/_gradients.scssc +0 -0
  45. data/spec/dummy/tmp/cache/assets/test/sass/66b1a0010012929c45ead4236f8cf67ab5e3ad10/_links.scssc +0 -0
  46. data/spec/dummy/tmp/cache/assets/test/sass/8d307e13c2e74a3d7d4d0eecd3e5daf9e7b1293d/_actions.scssc +0 -0
  47. data/spec/dummy/tmp/cache/assets/test/sass/8d307e13c2e74a3d7d4d0eecd3e5daf9e7b1293d/_avatars.scssc +0 -0
  48. data/spec/dummy/tmp/cache/assets/test/sass/8d307e13c2e74a3d7d4d0eecd3e5daf9e7b1293d/_content.scssc +0 -0
  49. data/spec/dummy/tmp/cache/assets/test/sass/8d307e13c2e74a3d7d4d0eecd3e5daf9e7b1293d/_dateinput.scssc +0 -0
  50. data/spec/dummy/tmp/cache/assets/test/sass/8d307e13c2e74a3d7d4d0eecd3e5daf9e7b1293d/_deprecated.scssc +0 -0
  51. data/spec/dummy/tmp/cache/assets/test/sass/8d307e13c2e74a3d7d4d0eecd3e5daf9e7b1293d/_dropdown.scssc +0 -0
  52. data/spec/dummy/tmp/cache/assets/test/sass/8d307e13c2e74a3d7d4d0eecd3e5daf9e7b1293d/_footer.scssc +0 -0
  53. data/spec/dummy/tmp/cache/assets/test/sass/8d307e13c2e74a3d7d4d0eecd3e5daf9e7b1293d/_forms.scssc +0 -0
  54. data/spec/dummy/tmp/cache/assets/test/sass/8d307e13c2e74a3d7d4d0eecd3e5daf9e7b1293d/_header.scssc +0 -0
  55. data/spec/dummy/tmp/cache/assets/test/sass/8d307e13c2e74a3d7d4d0eecd3e5daf9e7b1293d/_index.scssc +0 -0
  56. data/spec/dummy/tmp/cache/assets/test/sass/8d307e13c2e74a3d7d4d0eecd3e5daf9e7b1293d/_jquery-ui-structure.scssc +0 -0
  57. data/spec/dummy/tmp/cache/assets/test/sass/8d307e13c2e74a3d7d4d0eecd3e5daf9e7b1293d/_jquery-ui-theme.scssc +0 -0
  58. data/spec/dummy/tmp/cache/assets/test/sass/8d307e13c2e74a3d7d4d0eecd3e5daf9e7b1293d/_jquery-ui.scssc +0 -0
  59. data/spec/dummy/tmp/cache/assets/test/sass/8d307e13c2e74a3d7d4d0eecd3e5daf9e7b1293d/_layout.scssc +0 -0
  60. data/spec/dummy/tmp/cache/assets/test/sass/8d307e13c2e74a3d7d4d0eecd3e5daf9e7b1293d/_messages.scssc +0 -0
  61. data/spec/dummy/tmp/cache/assets/test/sass/8d307e13c2e74a3d7d4d0eecd3e5daf9e7b1293d/_popup.scssc +0 -0
  62. data/spec/dummy/tmp/cache/assets/test/sass/8d307e13c2e74a3d7d4d0eecd3e5daf9e7b1293d/_tabcontrol.scssc +0 -0
  63. data/spec/dummy/tmp/cache/assets/test/sass/8d307e13c2e74a3d7d4d0eecd3e5daf9e7b1293d/_toolbar.scssc +0 -0
  64. data/spec/dummy/tmp/cache/assets/test/sass/8d307e13c2e74a3d7d4d0eecd3e5daf9e7b1293d/_treetable.scssc +0 -0
  65. data/spec/dummy/tmp/cache/assets/test/sass/8d307e13c2e74a3d7d4d0eecd3e5daf9e7b1293d/_typography.scssc +0 -0
  66. data/spec/dummy/tmp/cache/assets/test/sass/8d307e13c2e74a3d7d4d0eecd3e5daf9e7b1293d/_validations.scssc +0 -0
  67. data/spec/dummy/tmp/cache/assets/test/sprockets/0253c2b6b6b5d225c38e795a508043e3 +0 -0
  68. data/spec/dummy/tmp/cache/assets/test/sprockets/05634c84f3e97c2e300a0988e9c571b4 +0 -0
  69. data/spec/dummy/tmp/cache/assets/test/sprockets/07c2bf9b54e44d186c3dc4fe775bf217 +0 -0
  70. data/spec/dummy/tmp/cache/assets/test/sprockets/0a5bab0f5c49aafe2bef1ad4f0fdaa95 +0 -0
  71. data/spec/dummy/tmp/cache/assets/test/sprockets/0b12b1d454f82ce157eba2a99c57b1c5 +0 -0
  72. data/spec/dummy/tmp/cache/assets/test/sprockets/0d0f578e1d526a5592454fd915f28722 +0 -0
  73. data/spec/dummy/tmp/cache/assets/test/sprockets/118a0efcdfc1be878d85967fb9eab9ab +0 -0
  74. data/spec/dummy/tmp/cache/assets/test/sprockets/126b3a20fbb3ee31f8d29ce1c0a3bae1 +0 -0
  75. data/spec/dummy/tmp/cache/assets/test/sprockets/128df4bcf253b7dbb8bb8b6bd40b92d5 +0 -0
  76. data/spec/dummy/tmp/cache/assets/test/sprockets/133ae3a6ec8ce5c435266446d406c497 +0 -0
  77. data/spec/dummy/tmp/cache/assets/test/sprockets/13da4e71b104d636208b7ea380c9028b +0 -0
  78. data/spec/dummy/tmp/cache/assets/test/sprockets/1a0cf8baad9957cea0290cac02ee4324 +0 -0
  79. data/spec/dummy/tmp/cache/assets/test/sprockets/22a8f218bcf0b68fecca4d5aa7b728b9 +0 -0
  80. data/spec/dummy/tmp/cache/assets/test/sprockets/276aad4896e9ee6929626bcea973ec2f +0 -0
  81. data/spec/dummy/tmp/cache/assets/test/sprockets/27977269178c1332d1b0085b9830c8c7 +0 -0
  82. data/spec/dummy/tmp/cache/assets/test/sprockets/2960553254e8b34684bd62fcd9ebcc88 +0 -0
  83. data/spec/dummy/tmp/cache/assets/test/sprockets/298838d1f354a7ce98875c7225e6a6a7 +0 -0
  84. data/spec/dummy/tmp/cache/assets/test/sprockets/29d248927769199391aa7c6b060730f2 +0 -0
  85. data/spec/dummy/tmp/cache/assets/test/sprockets/2b29e5c4175ed37eae13bb9445cd0398 +0 -0
  86. data/spec/dummy/tmp/cache/assets/test/sprockets/2c6aad6774b77dd0212ff0921a552fda +0 -0
  87. data/spec/dummy/tmp/cache/assets/test/sprockets/2e05b1c8f1f2eaa2c143c1097921fbaf +0 -0
  88. data/spec/dummy/tmp/cache/assets/test/sprockets/30f472e5b1cb95fcada64f956701fcfe +0 -0
  89. data/spec/dummy/tmp/cache/assets/test/sprockets/3722e239d8e0fc45691762190af60480 +0 -0
  90. data/spec/dummy/tmp/cache/assets/test/sprockets/3cc3bb17b7fbe5eeeb9e2fd59f353ac2 +0 -0
  91. data/spec/dummy/tmp/cache/assets/test/sprockets/4036e4e74ec8caaf31ebfa8200b11fc6 +0 -0
  92. data/spec/dummy/tmp/cache/assets/test/sprockets/4bde469b10d79020fae3d263ac3d7c41 +0 -0
  93. data/spec/dummy/tmp/cache/assets/test/sprockets/4dba5139e0cb793331971197e100dab7 +0 -0
  94. data/spec/dummy/tmp/cache/assets/test/sprockets/50340e99333efe25311ff69d804d0044 +0 -0
  95. data/spec/dummy/tmp/cache/assets/test/sprockets/566ea75053eeef9a45333422ebe11758 +0 -0
  96. data/spec/dummy/tmp/cache/assets/test/sprockets/57ba3771151e2d17eb1f1df421fe8a96 +0 -0
  97. data/spec/dummy/tmp/cache/assets/test/sprockets/5a8e4705d0930604da5dad00d49e7f49 +0 -0
  98. data/spec/dummy/tmp/cache/assets/test/sprockets/5eed3bf8cfe6dcb764bea5c574d2d9c9 +0 -0
  99. data/spec/dummy/tmp/cache/assets/test/sprockets/5f879c30ff953be36c9bd3bc12c58b15 +0 -0
  100. data/spec/dummy/tmp/cache/assets/test/sprockets/649393b36e60cee5747d66aa96862184 +0 -0
  101. data/spec/dummy/tmp/cache/assets/test/sprockets/649cb21e9d0e916026c8ff574f21cb7d +0 -0
  102. data/spec/dummy/tmp/cache/assets/test/sprockets/65aef06e5485abe748ec0f8ab5e83fa5 +0 -0
  103. data/spec/dummy/tmp/cache/assets/test/sprockets/6745248fbc6beb42d1ab2b04b63c5c1a +0 -0
  104. data/spec/dummy/tmp/cache/assets/test/sprockets/6781fb6027c64b314bd774aa672574f6 +0 -0
  105. data/spec/dummy/tmp/cache/assets/test/sprockets/6b3ab0bc5c8316baa291af39f5c44038 +0 -0
  106. data/spec/dummy/tmp/cache/assets/test/sprockets/6da37e398c8c9f006f6b544cd714d834 +0 -0
  107. data/spec/dummy/tmp/cache/assets/test/sprockets/72ce50f2edca010cee5ad75904a615c9 +0 -0
  108. data/spec/dummy/tmp/cache/assets/test/sprockets/74021cd8376ee1203af17bed0d2bf27f +0 -0
  109. data/spec/dummy/tmp/cache/assets/test/sprockets/76d535649eb9bd798d9e1e9f64860451 +0 -0
  110. data/spec/dummy/tmp/cache/assets/test/sprockets/7b3ae6ac77163f1d1c0bac4b66d0d910 +0 -0
  111. data/spec/dummy/tmp/cache/assets/test/sprockets/7e97394489bc5dd3989b7dcdbd33d080 +0 -0
  112. data/spec/dummy/tmp/cache/assets/test/sprockets/7eaf5a863f069a5571b3b0e12f2167fb +0 -0
  113. data/spec/dummy/tmp/cache/assets/test/sprockets/8117019177512a419d0852f3d871604e +0 -0
  114. data/spec/dummy/tmp/cache/assets/test/sprockets/8211e5da25cd8db999f3e83acc70b884 +0 -0
  115. data/spec/dummy/tmp/cache/assets/test/sprockets/82426bfd2b08cc8ec14a62d560643a8c +0 -0
  116. data/spec/dummy/tmp/cache/assets/test/sprockets/83eee805228b7b26a9e9027d05b95402 +0 -0
  117. data/spec/dummy/tmp/cache/assets/test/sprockets/858821775db3375fa2cdcfb2e1efe3cd +0 -0
  118. data/spec/dummy/tmp/cache/assets/test/sprockets/8cdfbf142f9e5dcb6785a6e61ca4861e +0 -0
  119. data/spec/dummy/tmp/cache/assets/test/sprockets/9316fc95ea7bd5108f6838f6c7e7be4e +0 -0
  120. data/spec/dummy/tmp/cache/assets/test/sprockets/95e0849d56a2a9e1e55d874be2c04ae2 +0 -0
  121. data/spec/dummy/tmp/cache/assets/test/sprockets/965a1812be0bfc82e220e7f22ae384dc +0 -0
  122. data/spec/dummy/tmp/cache/assets/test/sprockets/a1832984208c42e9a47980b4d6ac2dc9 +0 -0
  123. data/spec/dummy/tmp/cache/assets/test/sprockets/a1e86c22b2e6cfbcdf9d68792bcedb7f +0 -0
  124. data/spec/dummy/tmp/cache/assets/test/sprockets/ad62c91ea509a5e8e4caf11c4922f392 +0 -0
  125. data/spec/dummy/tmp/cache/assets/test/sprockets/b06ccd7385c6bd56ee7c6562a97e6b85 +0 -0
  126. data/spec/dummy/tmp/cache/assets/test/sprockets/b2f5b7fb5cbed27d897a0368d4a6d5d2 +0 -0
  127. data/spec/dummy/tmp/cache/assets/test/sprockets/b7505543b40b8ab466e9efe586d95346 +0 -0
  128. data/spec/dummy/tmp/cache/assets/test/sprockets/bab4140b592b87efaf49c7bf60598425 +0 -0
  129. data/spec/dummy/tmp/cache/assets/test/sprockets/baf8b56ddb9ca0245e093e29ade35c0a +0 -0
  130. data/spec/dummy/tmp/cache/assets/test/sprockets/be3cf8499757ed7678ee0a25d4aa3112 +0 -0
  131. data/spec/dummy/tmp/cache/assets/test/sprockets/be5b781b3de58aa915133b4d41b76a0b +0 -0
  132. data/spec/dummy/tmp/cache/assets/test/sprockets/c0fc05e9c36943a5437ef516f58ebcd8 +0 -0
  133. data/spec/dummy/tmp/cache/assets/test/sprockets/cb78e79ec2dd8bccf18927386de178ae +0 -0
  134. data/spec/dummy/tmp/cache/assets/test/sprockets/d2b5bbda0041b5ef56873dc8941d5ad9 +0 -0
  135. data/spec/dummy/tmp/cache/assets/test/sprockets/dcc163a0f3096123d374f5632ad48d4b +0 -0
  136. data/spec/dummy/tmp/cache/assets/test/sprockets/df7b2d1131b58c69eef783a1ab4be24e +0 -0
  137. data/spec/dummy/tmp/cache/assets/test/sprockets/e1f5e19236dcdd3e73c8b8dedb8e3daf +0 -0
  138. data/spec/dummy/tmp/cache/assets/test/sprockets/e57bae9b7a4c75c1d0c2a3e1c1aae160 +0 -0
  139. data/spec/dummy/tmp/cache/assets/test/sprockets/e63e2d8b377101ea8de761b46eb0f50f +0 -0
  140. data/spec/dummy/tmp/cache/assets/test/sprockets/ea25d11b296786fb90debfd6972d97d8 +0 -0
  141. data/spec/dummy/tmp/cache/assets/test/sprockets/ec5a73c71a7a240d83eab2b121328bcd +0 -0
  142. data/spec/dummy/tmp/cache/assets/test/sprockets/efd49fd3ad186d8dce200e0ca411e35d +0 -0
  143. data/spec/dummy/tmp/cache/assets/test/sprockets/f35adec61f96a28e6d188caddee1fd4b +0 -0
  144. data/spec/dummy/tmp/cache/assets/test/sprockets/f5855ddab883d0ee58146d0369cc8227 +0 -0
  145. data/spec/dummy/tmp/cache/assets/test/sprockets/f58cd07201e2fffd12f2e1829869c350 +0 -0
  146. data/spec/dummy/tmp/cache/assets/test/sprockets/f657dcaacbf72b65af3abd6b22bf68b3 +0 -0
  147. data/spec/dummy/tmp/cache/assets/test/sprockets/f91592d9720c5a81657c3198d7d525ac +0 -0
  148. data/spec/lib/radiant/admin_ui_spec.rb +33 -33
  149. data/spec/models/page_spec.rb +81 -81
  150. data/spec/models/snippet_finder_spec.rb +8 -7
  151. data/spec/models/snippet_spec.rb +59 -59
  152. data/spec/models/user_action_observer_spec.rb +25 -25
  153. data/spec/rails_helper.rb +73 -0
  154. data/spec/spec_helper.rb +14 -0
  155. metadata +293 -13
  156. data/spec/ci/before_script +0 -22
  157. data/spec/ci/script +0 -2
  158. data/spec/snippets_spec_helper.rb +0 -36
checksums.yaml CHANGED
@@ -1,15 +1,7 @@
1
1
  ---
2
- !binary "U0hBMQ==":
3
- metadata.gz: !binary |-
4
- MjVmMzUzMTQxN2U0MzczMzBlOWM5ZWFmNTNiOTdlMWFhZWQ0OWU2OA==
5
- data.tar.gz: !binary |-
6
- NTQ5OGYxNGI4MTk2ODRjMjRmNTQxMmU4NDE2ZGNkZDhmN2MwMTU1Mg==
2
+ SHA1:
3
+ metadata.gz: 94f7531d56223faae40a2814b9e4b68b3c79fe5d
4
+ data.tar.gz: 477db6d78598ebb4496401edb348028985c5f32c
7
5
  SHA512:
8
- metadata.gz: !binary |-
9
- ZjlhZDAwY2E3NmNiZmU1NGQwNDc4YTU4M2ZjYzJlZGYyM2Y3ZjdjZGI2NTEz
10
- ZTdlNDAxMDM5Nzk5NmJmNGI2ZWI1NzQ5ZjA3NzdhYTNhNTk2ZjczYmFhODBl
11
- N2FhOTBkNjNjOGQxYzFiYzNmMzc2ZDNkZjhiZmY4NWVjOWZhNmQ=
12
- data.tar.gz: !binary |-
13
- NTgyODBkMGY3YzdhY2ZmNGQ1MmI4ZTYwNGFkMTdkMjMyZTJkYjI1ZjRlYzY4
14
- NmU2MzRjNTY0NjgxOWViZTg3MjRkNTFhOTkwOTg0ZTczMWJjMWEyOTcwMTU1
15
- MzNjZTQ3ZjUxMGEzZTJiODI0NGQyMWU5M2E4ZDg0NWE1NDdiNjM=
6
+ metadata.gz: 3e3a0b27d223251eb45865ed8fb21bd7983eced401c45fba4c38f853a8acd5d2df53ad62bcab005d778093b8d3cf93f5bdc2dd1373dcf608f63f60c47663d4c3
7
+ data.tar.gz: d3bdc38c6eafb574a095fa608fc9e56f414cf7b9016d503d70ad927cc7d4bd4d1fb049a6c2c935ff773e9d2291d0fb54ff828d6947dff1876639333412cedd5d
data/Gemfile CHANGED
@@ -1,2 +1,49 @@
1
1
  source 'https://rubygems.org'
2
- gem 'trustygems', '~> 0.1.0'
2
+
3
+ # This is the minimum of dependency required to run
4
+ # the trusty-cms instance generator, which is (normally)
5
+ # the only time the trusty gem functions as an
6
+ # application. The instance has its own Gemfile, which
7
+ # requires radiant and therefore pulls in every
8
+ # dependency mentioned in radiant.gemspec.
9
+
10
+ gem 'trustygems', '~> 0.2.0'
11
+
12
+ gemspec
13
+
14
+ # When trusty is installed as a gem you can run all of
15
+ # its tests and specs from an instance. If you're working
16
+ # on trusty itself and you want to run specs from the
17
+ # radiant root directory, uncomment the lines below and
18
+ # run `bundle install`.
19
+
20
+ # gemspec
21
+ # gem "compass-rails", "~> 1.0.3"
22
+
23
+ # gem "radiant-archive-extension", "~> 1.0.7"
24
+ # gem "radiant-clipped-extension", "~> 1.1.0"
25
+ # gem "radiant-debug-extension", "~> 1.0.2"
26
+ # gem "radiant-exporter-extension", "~> 1.1.0"
27
+ # gem "radiant-markdown_filter-extension", "~> 1.0.2"
28
+ # gem "radiant-sheets-extension", "~> 1.1.0.alpha"
29
+ # gem "radiant-snippets-extension", "~> 1.1.0.alpha"
30
+ # gem "radiant-site_templates-extension", "~> 1.0.4"
31
+ # gem "radiant-smarty_pants_filter-extension", "~> 1.0.2"
32
+ # gem "radiant-textile_filter-extension", "~> 1.0.4"
33
+
34
+
35
+ group :development, :test do
36
+ gem "compass-rails", "~> 2.0.1"
37
+ gem 'thin', '~> 1.6.2'
38
+ gem 'pry', '~> 0.10.0'
39
+ gem 'capybara', '~> 2.3.0'
40
+ gem 'rspec-rails', '~> 3.0.0'
41
+ gem 'launchy', '~> 2.4.2'
42
+ gem 'database_cleaner', '~> 1.3.0'
43
+ gem 'poltergeist', '~> 1.5.1'
44
+ gem "ckeditor", "~> 4.1.0"
45
+ gem 'factory_girl_rails', '~> 4.5.0'
46
+ gem 'rails-observers'
47
+ gem "protected_attributes"
48
+ gem "pry-byebug"
49
+ end
data/Gemfile.lock CHANGED
@@ -1,7 +1,294 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ trusty-snippets-extension (2.0.2.pre.beta)
5
+ trusty-cms (~> 2.0.0.pre.beta)
6
+
1
7
  GEM
8
+ remote: https://rubygems.org/
2
9
  specs:
10
+ RedCloth (4.2.9)
11
+ actionmailer (4.2.3)
12
+ actionpack (= 4.2.3)
13
+ actionview (= 4.2.3)
14
+ activejob (= 4.2.3)
15
+ mail (~> 2.5, >= 2.5.4)
16
+ rails-dom-testing (~> 1.0, >= 1.0.5)
17
+ actionpack (4.2.3)
18
+ actionview (= 4.2.3)
19
+ activesupport (= 4.2.3)
20
+ rack (~> 1.6)
21
+ rack-test (~> 0.6.2)
22
+ rails-dom-testing (~> 1.0, >= 1.0.5)
23
+ rails-html-sanitizer (~> 1.0, >= 1.0.2)
24
+ actionview (4.2.3)
25
+ activesupport (= 4.2.3)
26
+ builder (~> 3.1)
27
+ erubis (~> 2.7.0)
28
+ rails-dom-testing (~> 1.0, >= 1.0.5)
29
+ rails-html-sanitizer (~> 1.0, >= 1.0.2)
30
+ activejob (4.2.3)
31
+ activesupport (= 4.2.3)
32
+ globalid (>= 0.3.0)
33
+ activemodel (4.2.3)
34
+ activesupport (= 4.2.3)
35
+ builder (~> 3.1)
36
+ activerecord (4.2.3)
37
+ activemodel (= 4.2.3)
38
+ activesupport (= 4.2.3)
39
+ arel (~> 6.0)
40
+ activesupport (4.2.3)
41
+ i18n (~> 0.7)
42
+ json (~> 1.7, >= 1.7.7)
43
+ minitest (~> 5.1)
44
+ thread_safe (~> 0.3, >= 0.3.4)
45
+ tzinfo (~> 1.1)
46
+ acts_as_tree (2.2.0)
47
+ activerecord (>= 3.0.0)
48
+ addressable (2.3.8)
49
+ arel (6.0.3)
50
+ builder (3.2.2)
51
+ byebug (5.0.0)
52
+ columnize (= 0.9.0)
53
+ capybara (2.3.0)
54
+ mime-types (>= 1.16)
55
+ nokogiri (>= 1.3.3)
56
+ rack (>= 1.0.0)
57
+ rack-test (>= 0.5.4)
58
+ xpath (~> 2.0)
59
+ chunky_png (1.3.4)
60
+ ckeditor (4.1.3)
61
+ cocaine
62
+ orm_adapter (~> 0.5.0)
63
+ climate_control (0.0.3)
64
+ activesupport (>= 3.0)
65
+ cliver (0.3.2)
66
+ cocaine (0.5.7)
67
+ climate_control (>= 0.0.3, < 1.0)
68
+ coderay (1.1.0)
69
+ columnize (0.9.0)
70
+ compass (1.0.3)
71
+ chunky_png (~> 1.2)
72
+ compass-core (~> 1.0.2)
73
+ compass-import-once (~> 1.0.5)
74
+ rb-fsevent (>= 0.9.3)
75
+ rb-inotify (>= 0.9)
76
+ sass (>= 3.3.13, < 3.5)
77
+ compass-core (1.0.3)
78
+ multi_json (~> 1.0)
79
+ sass (>= 3.3.0, < 3.5)
80
+ compass-import-once (1.0.5)
81
+ sass (>= 3.2, < 3.5)
82
+ compass-rails (2.0.4)
83
+ compass (~> 1.0.0)
84
+ sass-rails (<= 5.0.1)
85
+ sprockets (< 2.13)
86
+ daemons (1.2.3)
87
+ database_cleaner (1.3.0)
88
+ delocalize (0.4.0)
89
+ rails (>= 3.0)
90
+ diff-lcs (1.2.5)
91
+ erubis (2.7.0)
92
+ eventmachine (1.0.8)
93
+ execjs (2.5.2)
94
+ factory_girl (4.5.0)
95
+ activesupport (>= 3.0.0)
96
+ factory_girl_rails (4.5.0)
97
+ factory_girl (~> 4.5.0)
98
+ railties (>= 3.0.0)
99
+ ffi (1.9.10)
100
+ globalid (0.3.6)
101
+ activesupport (>= 4.1.0)
102
+ haml (4.0.7)
103
+ tilt
104
+ haml-rails (0.9.0)
105
+ actionpack (>= 4.0.1)
106
+ activesupport (>= 4.0.1)
107
+ haml (>= 4.0.6, < 5.0)
108
+ html2haml (>= 1.0.1)
109
+ railties (>= 4.0.1)
110
+ highline (1.7.3)
111
+ hike (1.2.3)
112
+ html2haml (2.0.0)
113
+ erubis (~> 2.7.0)
114
+ haml (~> 4.0.0)
115
+ nokogiri (~> 1.6.0)
116
+ ruby_parser (~> 3.5)
117
+ i18n (0.7.0)
118
+ jquery-rails (3.1.3)
119
+ railties (>= 3.0, < 5.0)
120
+ thor (>= 0.14, < 2.0)
121
+ json (1.8.3)
122
+ launchy (2.4.3)
123
+ addressable (~> 2.3)
124
+ libv8 (3.16.14.11)
125
+ loofah (2.0.2)
126
+ nokogiri (>= 1.5.9)
127
+ mail (2.6.3)
128
+ mime-types (>= 1.16, < 3)
129
+ method_source (0.8.2)
130
+ mime-types (2.6.1)
131
+ mini_portile (0.6.2)
132
+ minitest (5.8.0)
133
+ multi_json (1.11.2)
134
+ mysql (2.9.1)
135
+ nokogiri (1.6.6.2)
136
+ mini_portile (~> 0.6.0)
137
+ orm_adapter (0.5.0)
138
+ poltergeist (1.5.1)
139
+ capybara (~> 2.1)
140
+ cliver (~> 0.3.1)
141
+ multi_json (~> 1.0)
142
+ websocket-driver (>= 0.2.0)
143
+ protected_attributes (1.0.9)
144
+ activemodel (>= 4.0.1, < 5.0)
145
+ pry (0.10.1)
146
+ coderay (~> 1.1.0)
147
+ method_source (~> 0.8.1)
148
+ slop (~> 3.4)
149
+ pry-byebug (3.2.0)
150
+ byebug (~> 5.0)
151
+ pry (~> 0.10)
152
+ rack (1.6.4)
153
+ rack-cache (1.2)
154
+ rack (>= 0.4)
155
+ rack-test (0.6.3)
156
+ rack (>= 1.0)
157
+ radius (0.7.4)
158
+ rails (4.2.3)
159
+ actionmailer (= 4.2.3)
160
+ actionpack (= 4.2.3)
161
+ actionview (= 4.2.3)
162
+ activejob (= 4.2.3)
163
+ activemodel (= 4.2.3)
164
+ activerecord (= 4.2.3)
165
+ activesupport (= 4.2.3)
166
+ bundler (>= 1.3.0, < 2.0)
167
+ railties (= 4.2.3)
168
+ sprockets-rails
169
+ rails-deprecated_sanitizer (1.0.3)
170
+ activesupport (>= 4.2.0.alpha)
171
+ rails-dom-testing (1.0.6)
172
+ activesupport (>= 4.2.0.beta, < 5.0)
173
+ nokogiri (~> 1.6.0)
174
+ rails-deprecated_sanitizer (>= 1.0.1)
175
+ rails-html-sanitizer (1.0.2)
176
+ loofah (~> 2.0)
177
+ rails-observers (0.1.2)
178
+ activemodel (~> 4.0)
179
+ railties (4.2.3)
180
+ actionpack (= 4.2.3)
181
+ activesupport (= 4.2.3)
182
+ rake (>= 0.8.7)
183
+ thor (>= 0.18.1, < 2.0)
184
+ rake (10.4.2)
185
+ rb-fsevent (0.9.5)
186
+ rb-inotify (0.9.5)
187
+ ffi (>= 0.5.0)
188
+ rdoc (3.12.2)
189
+ json (~> 1.4)
190
+ ref (2.0.0)
191
+ rspec-core (3.0.4)
192
+ rspec-support (~> 3.0.0)
193
+ rspec-expectations (3.0.4)
194
+ diff-lcs (>= 1.2.0, < 2.0)
195
+ rspec-support (~> 3.0.0)
196
+ rspec-mocks (3.0.4)
197
+ rspec-support (~> 3.0.0)
198
+ rspec-rails (3.0.2)
199
+ actionpack (>= 3.0)
200
+ activesupport (>= 3.0)
201
+ railties (>= 3.0)
202
+ rspec-core (~> 3.0.0)
203
+ rspec-expectations (~> 3.0.0)
204
+ rspec-mocks (~> 3.0.0)
205
+ rspec-support (~> 3.0.0)
206
+ rspec-support (3.0.4)
207
+ ruby_parser (3.7.1)
208
+ sexp_processor (~> 4.1)
209
+ sass (3.4.16)
210
+ sass-rails (5.0.1)
211
+ railties (>= 4.0.0, < 5.0)
212
+ sass (~> 3.1)
213
+ sprockets (>= 2.8, < 4.0)
214
+ sprockets-rails (>= 2.0, < 4.0)
215
+ tilt (~> 1.1)
216
+ sexp_processor (4.6.0)
217
+ slop (3.6.0)
218
+ sprockets (2.12.4)
219
+ hike (~> 1.2)
220
+ multi_json (~> 1.0)
221
+ rack (~> 1.0)
222
+ tilt (~> 1.1, != 1.3.0)
223
+ sprockets-rails (2.3.2)
224
+ actionpack (>= 3.0)
225
+ activesupport (>= 3.0)
226
+ sprockets (>= 2.8, < 4.0)
227
+ stringex (1.5.1)
228
+ therubyracer (0.12.2)
229
+ libv8 (~> 3.16.14.0)
230
+ ref
231
+ thin (1.6.3)
232
+ daemons (~> 1.0, >= 1.0.9)
233
+ eventmachine (~> 1.0)
234
+ rack (~> 1.0)
235
+ thor (0.19.1)
236
+ thread_safe (0.3.5)
237
+ tilt (1.4.1)
238
+ trusty-cms (2.0.10.pre.beta)
239
+ RedCloth (~> 4.2)
240
+ acts_as_tree (~> 2.1)
241
+ bundler (~> 1.7)
242
+ ckeditor (~> 4.1)
243
+ compass-rails (~> 2.0)
244
+ delocalize (~> 0.2)
245
+ execjs (~> 2.2)
246
+ haml (~> 4.0)
247
+ haml-rails (~> 0.5)
248
+ highline (~> 1.6)
249
+ jquery-rails (~> 3.1)
250
+ mysql (~> 2.9)
251
+ protected_attributes (~> 1.0.9)
252
+ rack (~> 1.4)
253
+ rack-cache (~> 1.2)
254
+ radius (~> 0.7)
255
+ rails (~> 4.2)
256
+ rdoc (~> 3.9)
257
+ stringex (~> 1.3)
258
+ therubyracer (~> 0.12)
259
+ tzinfo (~> 1.2)
260
+ uglifier (~> 2.6)
261
+ will_paginate (~> 3.0)
262
+ trustygems (0.2.1)
263
+ rake
264
+ tzinfo (1.2.2)
265
+ thread_safe (~> 0.1)
266
+ uglifier (2.7.1)
267
+ execjs (>= 0.3.0)
268
+ json (>= 1.8.0)
269
+ websocket-driver (0.6.2)
270
+ websocket-extensions (>= 0.1.0)
271
+ websocket-extensions (0.1.2)
272
+ will_paginate (3.0.7)
273
+ xpath (2.0.0)
274
+ nokogiri (~> 1.3)
3
275
 
4
276
  PLATFORMS
5
277
  ruby
6
278
 
7
279
  DEPENDENCIES
280
+ capybara (~> 2.3.0)
281
+ ckeditor (~> 4.1.0)
282
+ compass-rails (~> 2.0.1)
283
+ database_cleaner (~> 1.3.0)
284
+ factory_girl_rails (~> 4.5.0)
285
+ launchy (~> 2.4.2)
286
+ poltergeist (~> 1.5.1)
287
+ protected_attributes
288
+ pry (~> 0.10.0)
289
+ pry-byebug
290
+ rails-observers
291
+ rspec-rails (~> 3.0.0)
292
+ thin (~> 1.6.2)
293
+ trusty-snippets-extension!
294
+ trustygems (~> 0.2.0)
data/Rakefile CHANGED
@@ -1,111 +1,28 @@
1
+ #!/usr/bin/env rake
2
+ # Add your own tasks in files placed in lib/tasks ending in .rake,
3
+ # for example lib/tasks/capistrano.rake, and they will automatically be available to Rake.
4
+
5
+ # require File.expand_path('../config/application', __FILE__)
6
+ # STDOUT.sync = true
7
+ # TrustyCms::Application.load_tasks
8
+
9
+ require 'pry'
10
+ require 'byebug'
1
11
  require 'trustygems'
2
12
 
3
- # # Determine where the RSpec plugin is by loading the boot
4
- # unless defined? RADIANT_ROOT
5
- # ENV["RAILS_ENV"] = "test"
6
- # case
7
- # when ENV["RADIANT_ENV_FILE"]
8
- # require File.dirname(ENV["RADIANT_ENV_FILE"]) + "/boot"
9
- # when File.dirname(__FILE__) =~ %r{vendor/radiant/vendor/extensions}
10
- # require "#{File.expand_path(File.dirname(__FILE__) + "/../../../../../")}/config/boot"
11
- # else
12
- # require "#{File.expand_path(File.dirname(__FILE__) + "/../../../")}/config/boot"
13
- # end
14
- # end
15
- #
16
- # require 'rake'
17
- # require 'rdoc/task'
18
- # require 'rake/testtask'
19
- #
20
- # rspec_base = File.expand_path(RADIANT_ROOT + '/vendor/plugins/rspec/lib')
21
- # $LOAD_PATH.unshift(rspec_base) if File.exist?(rspec_base)
22
- # require 'spec/rake/spectask'
23
- # require 'cucumber'
24
- # require 'cucumber/rake/task'
25
- #
26
- # # Cleanup the RADIANT_ROOT constant so specs will load the environment
27
- # Object.send(:remove_const, :RADIANT_ROOT)
28
- #
29
- # extension_root = File.expand_path(File.dirname(__FILE__))
30
- #
31
- # task :default => [:spec, :features]
32
- # task :stats => "spec:statsetup"
33
- #
34
- # desc "Run all specs in spec directory"
35
- # Spec::Rake::SpecTask.new(:spec) do |t|
36
- # t.spec_opts = ['--options', "\"#{extension_root}/spec/spec.opts\""]
37
- # t.spec_files = FileList['spec/**/*_spec.rb']
38
- # end
39
- #
40
- # task :features => 'spec:integration'
41
- #
42
- # namespace :spec do
43
- # desc "Run all specs in spec directory with RCov"
44
- # Spec::Rake::SpecTask.new(:rcov) do |t|
45
- # t.spec_opts = ['--options', "\"#{extension_root}/spec/spec.opts\""]
46
- # t.spec_files = FileList['spec/**/*_spec.rb']
47
- # t.rcov = true
48
- # t.rcov_opts = ['--exclude', 'spec', '--rails']
49
- # end
50
- #
51
- # desc "Print Specdoc for all specs"
52
- # Spec::Rake::SpecTask.new(:doc) do |t|
53
- # t.spec_opts = ["--format", "specdoc", "--dry-run"]
54
- # t.spec_files = FileList['spec/**/*_spec.rb']
55
- # end
56
- #
57
- # [:models, :controllers, :views, :helpers].each do |sub|
58
- # desc "Run the specs under spec/#{sub}"
59
- # Spec::Rake::SpecTask.new(sub) do |t|
60
- # t.spec_opts = ['--options', "\"#{extension_root}/spec/spec.opts\""]
61
- # t.spec_files = FileList["spec/#{sub}/**/*_spec.rb"]
62
- # end
63
- # end
64
- #
65
- # desc "Run the Cucumber features"
66
- # Cucumber::Rake::Task.new(:integration) do |t|
67
- # t.fork = true
68
- # t.cucumber_opts = ['--format', (ENV['CUCUMBER_FORMAT'] || 'pretty')]
69
- # # t.feature_pattern = "#{extension_root}/features/**/*.feature"
70
- # t.profile = "default"
71
- # end
72
- #
73
- # # Setup specs for stats
74
- # task :statsetup do
75
- # require 'code_statistics'
76
- # ::STATS_DIRECTORIES << %w(Model\ specs spec/models)
77
- # ::STATS_DIRECTORIES << %w(View\ specs spec/views)
78
- # ::STATS_DIRECTORIES << %w(Controller\ specs spec/controllers)
79
- # ::STATS_DIRECTORIES << %w(Helper\ specs spec/views)
80
- # ::CodeStatistics::TEST_TYPES << "Model specs"
81
- # ::CodeStatistics::TEST_TYPES << "View specs"
82
- # ::CodeStatistics::TEST_TYPES << "Controller specs"
83
- # ::CodeStatistics::TEST_TYPES << "Helper specs"
84
- # ::STATS_DIRECTORIES.delete_if {|a| a[0] =~ /test/}
85
- # end
86
- #
87
- # namespace :db do
88
- # namespace :fixtures do
89
- # desc "Load fixtures (from spec/fixtures) into the current environment's database. Load specific fixtures using FIXTURES=x,y"
90
- # task :load => :environment do
91
- # require 'active_record/fixtures'
92
- # ActiveRecord::Base.establish_connection(RAILS_ENV.to_sym)
93
- # (ENV['FIXTURES'] ? ENV['FIXTURES'].split(/,/) : Dir.glob(File.join(RAILS_ROOT, 'spec', 'fixtures', '*.{yml,csv}'))).each do |fixture_file|
94
- # Fixtures.create_fixtures('spec/fixtures', File.basename(fixture_file, '.*'))
95
- # end
96
- # end
97
- # end
98
- # end
99
- # end
100
- #
101
- # desc 'Generate documentation for the snippets extension.'
102
- # RDoc::Task.new(:rdoc) do |rdoc|
103
- # rdoc.rdoc_dir = 'rdoc'
104
- # rdoc.title = 'SnippetsExtension'
105
- # rdoc.options << '--line-numbers' << '--inline-source'
106
- # rdoc.rdoc_files.include('README')
107
- # rdoc.rdoc_files.include('lib/**/*.rb')
108
- # end
109
- #
110
- # # Load any custom rakefiles for extension
111
- # Dir[File.dirname(__FILE__) + '/tasks/*.rake'].sort.each { |f| require f }
13
+ #!/usr/bin/env rake
14
+ begin
15
+ require 'bundler/setup'
16
+ rescue LoadError
17
+ puts 'You must `gem install bundler` and `bundle install` to run rake tasks'
18
+ end
19
+ APP_RAKEFILE = File.expand_path("../spec/dummy/Rakefile", __FILE__)
20
+ load 'rails/tasks/engine.rake'
21
+ Bundler::GemHelper.install_tasks
22
+ Dir[File.join(File.dirname(__FILE__), 'tasks/**/*.rake')].each {|f| load f }
23
+ require 'rspec/core'
24
+ require 'rspec/core/rake_task'
25
+ desc "Run all specs in spec directory (excluding plugin specs)"
26
+ RSpec::Core::RakeTask.new(:spec => 'app:db:test:prepare')
27
+ task :default => :spec
28
+ #TrustyCms::Application.load_tasks
@@ -1,5 +1,5 @@
1
1
  module TrustySnippetsExtension
2
- VERSION = "2.0.1-beta"
2
+ VERSION = "2.0.2-beta"
3
3
  SUMMARY = "Snippets for Trusty CMS"
4
4
  DESCRIPTION = "Makes Trusty better by adding snippets!"
5
5
  URL = "http://github.com/pgharts/trusty-snippets-extension"
@@ -0,0 +1,27 @@
1
+ ---
2
+ sudo: false
3
+ cache: bundler
4
+
5
+ language: ruby
6
+ rvm:
7
+ - 2.1.5
8
+
9
+ services: mysql
10
+
11
+ before_script:
12
+ - cp spec/ci/database.mysql.yml config/database.yml;
13
+ - bundle exec rake app:db:create
14
+ - bundle exec rake app:db:migrate
15
+
16
+
17
+ script:
18
+ - bundle exec rake app:spec
19
+
20
+ branches:
21
+ only:
22
+ - master
23
+
24
+ notifications:
25
+ recipients:
26
+ - sipple@trustarts.org
27
+ slack: trustarts:FrVc7H8dDadhctfZ7NvHTZES