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.
- checksums.yaml +5 -13
- data/Gemfile +48 -1
- data/Gemfile.lock +287 -0
- data/Rakefile +26 -109
- data/lib/trusty-snippets-extension.rb +1 -1
- data/spec/ci/database.mysql.yml +27 -0
- data/spec/controllers/admin/snippets_controller_spec.rb +110 -110
- data/spec/dummy/README.rdoc +28 -0
- data/spec/dummy/Rakefile +5 -0
- data/spec/dummy/bin/bundle +3 -0
- data/spec/dummy/bin/rails +4 -0
- data/spec/dummy/bin/rake +4 -0
- data/spec/dummy/bin/setup +29 -0
- data/spec/dummy/config/application.rb +152 -0
- data/spec/dummy/config/boot.rb +6 -0
- data/spec/dummy/config/database.yml +28 -0
- data/spec/dummy/config/environment.rb +5 -0
- data/spec/dummy/config/environments/development.rb +49 -0
- data/spec/dummy/config/environments/production.rb +79 -0
- data/spec/dummy/config/environments/test.rb +42 -0
- data/spec/dummy/config/initializers/assets.rb +11 -0
- data/spec/dummy/config/initializers/backtrace_silencers.rb +7 -0
- data/spec/dummy/config/initializers/cookies_serializer.rb +3 -0
- data/spec/dummy/config/initializers/filter_parameter_logging.rb +4 -0
- data/spec/dummy/config/initializers/inflections.rb +16 -0
- data/spec/dummy/config/initializers/mime_types.rb +4 -0
- data/spec/dummy/config/initializers/session_store.rb +3 -0
- data/spec/dummy/config/initializers/trusty_cms_config.rb +20 -0
- data/spec/dummy/config/initializers/wrap_parameters.rb +14 -0
- data/spec/dummy/config/locales/en.yml +23 -0
- data/spec/dummy/config/routes.rb +0 -0
- data/spec/dummy/config/secrets.yml +22 -0
- data/spec/dummy/config.ru +4 -0
- data/spec/dummy/db/schema.rb +144 -0
- data/spec/dummy/public/404.html +67 -0
- data/spec/dummy/public/422.html +67 -0
- data/spec/dummy/public/500.html +66 -0
- data/spec/dummy/public/favicon.ico +0 -0
- data/spec/dummy/tmp/cache/747/A70/TrustyCms%3A%3AConfig +0 -0
- data/spec/dummy/tmp/cache/85C/FA0/TrustyCms.cache_mtime +0 -0
- data/spec/dummy/tmp/cache/assets/test/sass/4efd780dc9118042804451835b878259e2afc5d1/_base.scssc +0 -0
- data/spec/dummy/tmp/cache/assets/test/sass/4efd780dc9118042804451835b878259e2afc5d1/main.scssc +0 -0
- data/spec/dummy/tmp/cache/assets/test/sass/66b1a0010012929c45ead4236f8cf67ab5e3ad10/_boxes.scssc +0 -0
- data/spec/dummy/tmp/cache/assets/test/sass/66b1a0010012929c45ead4236f8cf67ab5e3ad10/_gradients.scssc +0 -0
- data/spec/dummy/tmp/cache/assets/test/sass/66b1a0010012929c45ead4236f8cf67ab5e3ad10/_links.scssc +0 -0
- data/spec/dummy/tmp/cache/assets/test/sass/8d307e13c2e74a3d7d4d0eecd3e5daf9e7b1293d/_actions.scssc +0 -0
- data/spec/dummy/tmp/cache/assets/test/sass/8d307e13c2e74a3d7d4d0eecd3e5daf9e7b1293d/_avatars.scssc +0 -0
- data/spec/dummy/tmp/cache/assets/test/sass/8d307e13c2e74a3d7d4d0eecd3e5daf9e7b1293d/_content.scssc +0 -0
- data/spec/dummy/tmp/cache/assets/test/sass/8d307e13c2e74a3d7d4d0eecd3e5daf9e7b1293d/_dateinput.scssc +0 -0
- data/spec/dummy/tmp/cache/assets/test/sass/8d307e13c2e74a3d7d4d0eecd3e5daf9e7b1293d/_deprecated.scssc +0 -0
- data/spec/dummy/tmp/cache/assets/test/sass/8d307e13c2e74a3d7d4d0eecd3e5daf9e7b1293d/_dropdown.scssc +0 -0
- data/spec/dummy/tmp/cache/assets/test/sass/8d307e13c2e74a3d7d4d0eecd3e5daf9e7b1293d/_footer.scssc +0 -0
- data/spec/dummy/tmp/cache/assets/test/sass/8d307e13c2e74a3d7d4d0eecd3e5daf9e7b1293d/_forms.scssc +0 -0
- data/spec/dummy/tmp/cache/assets/test/sass/8d307e13c2e74a3d7d4d0eecd3e5daf9e7b1293d/_header.scssc +0 -0
- data/spec/dummy/tmp/cache/assets/test/sass/8d307e13c2e74a3d7d4d0eecd3e5daf9e7b1293d/_index.scssc +0 -0
- data/spec/dummy/tmp/cache/assets/test/sass/8d307e13c2e74a3d7d4d0eecd3e5daf9e7b1293d/_jquery-ui-structure.scssc +0 -0
- data/spec/dummy/tmp/cache/assets/test/sass/8d307e13c2e74a3d7d4d0eecd3e5daf9e7b1293d/_jquery-ui-theme.scssc +0 -0
- data/spec/dummy/tmp/cache/assets/test/sass/8d307e13c2e74a3d7d4d0eecd3e5daf9e7b1293d/_jquery-ui.scssc +0 -0
- data/spec/dummy/tmp/cache/assets/test/sass/8d307e13c2e74a3d7d4d0eecd3e5daf9e7b1293d/_layout.scssc +0 -0
- data/spec/dummy/tmp/cache/assets/test/sass/8d307e13c2e74a3d7d4d0eecd3e5daf9e7b1293d/_messages.scssc +0 -0
- data/spec/dummy/tmp/cache/assets/test/sass/8d307e13c2e74a3d7d4d0eecd3e5daf9e7b1293d/_popup.scssc +0 -0
- data/spec/dummy/tmp/cache/assets/test/sass/8d307e13c2e74a3d7d4d0eecd3e5daf9e7b1293d/_tabcontrol.scssc +0 -0
- data/spec/dummy/tmp/cache/assets/test/sass/8d307e13c2e74a3d7d4d0eecd3e5daf9e7b1293d/_toolbar.scssc +0 -0
- data/spec/dummy/tmp/cache/assets/test/sass/8d307e13c2e74a3d7d4d0eecd3e5daf9e7b1293d/_treetable.scssc +0 -0
- data/spec/dummy/tmp/cache/assets/test/sass/8d307e13c2e74a3d7d4d0eecd3e5daf9e7b1293d/_typography.scssc +0 -0
- data/spec/dummy/tmp/cache/assets/test/sass/8d307e13c2e74a3d7d4d0eecd3e5daf9e7b1293d/_validations.scssc +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/0253c2b6b6b5d225c38e795a508043e3 +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/05634c84f3e97c2e300a0988e9c571b4 +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/07c2bf9b54e44d186c3dc4fe775bf217 +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/0a5bab0f5c49aafe2bef1ad4f0fdaa95 +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/0b12b1d454f82ce157eba2a99c57b1c5 +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/0d0f578e1d526a5592454fd915f28722 +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/118a0efcdfc1be878d85967fb9eab9ab +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/126b3a20fbb3ee31f8d29ce1c0a3bae1 +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/128df4bcf253b7dbb8bb8b6bd40b92d5 +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/133ae3a6ec8ce5c435266446d406c497 +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/13da4e71b104d636208b7ea380c9028b +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/1a0cf8baad9957cea0290cac02ee4324 +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/22a8f218bcf0b68fecca4d5aa7b728b9 +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/276aad4896e9ee6929626bcea973ec2f +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/27977269178c1332d1b0085b9830c8c7 +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/2960553254e8b34684bd62fcd9ebcc88 +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/298838d1f354a7ce98875c7225e6a6a7 +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/29d248927769199391aa7c6b060730f2 +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/2b29e5c4175ed37eae13bb9445cd0398 +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/2c6aad6774b77dd0212ff0921a552fda +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/2e05b1c8f1f2eaa2c143c1097921fbaf +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/30f472e5b1cb95fcada64f956701fcfe +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/3722e239d8e0fc45691762190af60480 +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/3cc3bb17b7fbe5eeeb9e2fd59f353ac2 +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/4036e4e74ec8caaf31ebfa8200b11fc6 +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/4bde469b10d79020fae3d263ac3d7c41 +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/4dba5139e0cb793331971197e100dab7 +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/50340e99333efe25311ff69d804d0044 +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/566ea75053eeef9a45333422ebe11758 +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/57ba3771151e2d17eb1f1df421fe8a96 +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/5a8e4705d0930604da5dad00d49e7f49 +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/5eed3bf8cfe6dcb764bea5c574d2d9c9 +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/5f879c30ff953be36c9bd3bc12c58b15 +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/649393b36e60cee5747d66aa96862184 +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/649cb21e9d0e916026c8ff574f21cb7d +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/65aef06e5485abe748ec0f8ab5e83fa5 +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/6745248fbc6beb42d1ab2b04b63c5c1a +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/6781fb6027c64b314bd774aa672574f6 +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/6b3ab0bc5c8316baa291af39f5c44038 +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/6da37e398c8c9f006f6b544cd714d834 +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/72ce50f2edca010cee5ad75904a615c9 +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/74021cd8376ee1203af17bed0d2bf27f +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/76d535649eb9bd798d9e1e9f64860451 +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/7b3ae6ac77163f1d1c0bac4b66d0d910 +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/7e97394489bc5dd3989b7dcdbd33d080 +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/7eaf5a863f069a5571b3b0e12f2167fb +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/8117019177512a419d0852f3d871604e +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/8211e5da25cd8db999f3e83acc70b884 +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/82426bfd2b08cc8ec14a62d560643a8c +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/83eee805228b7b26a9e9027d05b95402 +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/858821775db3375fa2cdcfb2e1efe3cd +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/8cdfbf142f9e5dcb6785a6e61ca4861e +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/9316fc95ea7bd5108f6838f6c7e7be4e +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/95e0849d56a2a9e1e55d874be2c04ae2 +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/965a1812be0bfc82e220e7f22ae384dc +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/a1832984208c42e9a47980b4d6ac2dc9 +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/a1e86c22b2e6cfbcdf9d68792bcedb7f +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/ad62c91ea509a5e8e4caf11c4922f392 +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/b06ccd7385c6bd56ee7c6562a97e6b85 +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/b2f5b7fb5cbed27d897a0368d4a6d5d2 +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/b7505543b40b8ab466e9efe586d95346 +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/bab4140b592b87efaf49c7bf60598425 +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/baf8b56ddb9ca0245e093e29ade35c0a +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/be3cf8499757ed7678ee0a25d4aa3112 +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/be5b781b3de58aa915133b4d41b76a0b +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/c0fc05e9c36943a5437ef516f58ebcd8 +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/cb78e79ec2dd8bccf18927386de178ae +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/d2b5bbda0041b5ef56873dc8941d5ad9 +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/dcc163a0f3096123d374f5632ad48d4b +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/df7b2d1131b58c69eef783a1ab4be24e +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/e1f5e19236dcdd3e73c8b8dedb8e3daf +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/e57bae9b7a4c75c1d0c2a3e1c1aae160 +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/e63e2d8b377101ea8de761b46eb0f50f +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/ea25d11b296786fb90debfd6972d97d8 +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/ec5a73c71a7a240d83eab2b121328bcd +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/efd49fd3ad186d8dce200e0ca411e35d +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/f35adec61f96a28e6d188caddee1fd4b +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/f5855ddab883d0ee58146d0369cc8227 +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/f58cd07201e2fffd12f2e1829869c350 +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/f657dcaacbf72b65af3abd6b22bf68b3 +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/f91592d9720c5a81657c3198d7d525ac +0 -0
- data/spec/lib/radiant/admin_ui_spec.rb +33 -33
- data/spec/models/page_spec.rb +81 -81
- data/spec/models/snippet_finder_spec.rb +8 -7
- data/spec/models/snippet_spec.rb +59 -59
- data/spec/models/user_action_observer_spec.rb +25 -25
- data/spec/rails_helper.rb +73 -0
- data/spec/spec_helper.rb +14 -0
- metadata +293 -13
- data/spec/ci/before_script +0 -22
- data/spec/ci/script +0 -2
- data/spec/snippets_spec_helper.rb +0 -36
@@ -0,0 +1,42 @@
|
|
1
|
+
TrustyCms::Application.configure do
|
2
|
+
# Settings specified here will take precedence over those in config/application.rb.
|
3
|
+
|
4
|
+
# The test environment is used exclusively to run your application's
|
5
|
+
# test suite. You never need to work with it otherwise. Remember that
|
6
|
+
# your test database is "scratch space" for the test suite and is wiped
|
7
|
+
# and recreated between test runs. Don't rely on the data there!
|
8
|
+
config.cache_classes = true
|
9
|
+
|
10
|
+
# Do not eager load code on boot. This avoids loading your whole application
|
11
|
+
# just for the purpose of running a single test. If you are using a tool that
|
12
|
+
# preloads Rails for running tests, you may have to set it to true.
|
13
|
+
config.eager_load = false
|
14
|
+
|
15
|
+
# Configure static file server for tests with Cache-Control for performance.
|
16
|
+
config.serve_static_files = true
|
17
|
+
config.static_cache_control = 'public, max-age=3600'
|
18
|
+
|
19
|
+
# Show full error reports and disable caching.
|
20
|
+
config.consider_all_requests_local = true
|
21
|
+
config.action_controller.perform_caching = false
|
22
|
+
|
23
|
+
# Raise exceptions instead of rendering exception templates.
|
24
|
+
config.action_dispatch.show_exceptions = false
|
25
|
+
|
26
|
+
# Disable request forgery protection in test environment.
|
27
|
+
config.action_controller.allow_forgery_protection = false
|
28
|
+
|
29
|
+
# Tell Action Mailer not to deliver emails to the real world.
|
30
|
+
# The :test delivery method accumulates sent emails in the
|
31
|
+
# ActionMailer::Base.deliveries array.
|
32
|
+
config.action_mailer.delivery_method = :test
|
33
|
+
|
34
|
+
# Randomize the order test cases are executed.
|
35
|
+
config.active_support.test_order = :random
|
36
|
+
|
37
|
+
# Print deprecation notices to the stderr.
|
38
|
+
config.active_support.deprecation = :stderr
|
39
|
+
|
40
|
+
# Raises error for missing translations
|
41
|
+
# config.action_view.raise_on_missing_translations = true
|
42
|
+
end
|
@@ -0,0 +1,11 @@
|
|
1
|
+
# Be sure to restart your server when you modify this file.
|
2
|
+
|
3
|
+
# Version of your assets, change this if you want to expire all your assets.
|
4
|
+
Rails.application.config.assets.version = '1.0'
|
5
|
+
|
6
|
+
# Add additional assets to the asset load path
|
7
|
+
# Rails.application.config.assets.paths << Emoji.images_path
|
8
|
+
|
9
|
+
# Precompile additional assets.
|
10
|
+
# application.js, application.css, and all non-JS/CSS in app/assets folder are already added.
|
11
|
+
# Rails.application.config.assets.precompile += %w( search.js )
|
@@ -0,0 +1,7 @@
|
|
1
|
+
# Be sure to restart your server when you modify this file.
|
2
|
+
|
3
|
+
# You can add backtrace silencers for libraries that you're using but don't wish to see in your backtraces.
|
4
|
+
# Rails.backtrace_cleaner.add_silencer { |line| line =~ /my_noisy_library/ }
|
5
|
+
|
6
|
+
# You can also remove all the silencers if you're trying to debug a problem that might stem from framework code.
|
7
|
+
# Rails.backtrace_cleaner.remove_silencers!
|
@@ -0,0 +1,16 @@
|
|
1
|
+
# Be sure to restart your server when you modify this file.
|
2
|
+
|
3
|
+
# Add new inflection rules using the following format. Inflections
|
4
|
+
# are locale specific, and you may define rules for as many different
|
5
|
+
# locales as you wish. All of these examples are active by default:
|
6
|
+
# ActiveSupport::Inflector.inflections(:en) do |inflect|
|
7
|
+
# inflect.plural /^(ox)$/i, '\1en'
|
8
|
+
# inflect.singular /^(ox)en/i, '\1'
|
9
|
+
# inflect.irregular 'person', 'people'
|
10
|
+
# inflect.uncountable %w( fish sheep )
|
11
|
+
# end
|
12
|
+
|
13
|
+
# These inflection rules are supported but not enabled by default:
|
14
|
+
# ActiveSupport::Inflector.inflections(:en) do |inflect|
|
15
|
+
# inflect.acronym 'RESTful'
|
16
|
+
# end
|
@@ -0,0 +1,20 @@
|
|
1
|
+
TrustyCms.config do |config|
|
2
|
+
config.define 'admin.title', :default => "TrustyCms CMS"
|
3
|
+
config.define 'dev.host'
|
4
|
+
config.define 'local.timezone', :allow_change => true, :select_from => lambda { ActiveSupport::TimeZone::MAPPING.keys.sort }
|
5
|
+
config.define 'defaults.locale', :select_from => lambda { TrustyCms::AvailableLocales.locales }, :allow_blank => true
|
6
|
+
config.define 'defaults.page.parts', :default => "Body,Extended"
|
7
|
+
config.define 'defaults.page.status', :select_from => lambda { Status.selectable_values }, :allow_blank => false, :default => "Draft"
|
8
|
+
config.define 'defaults.page.filter', :select_from => lambda { TextFilter.descendants.map { |s| s.filter_name }.sort }, :allow_blank => true
|
9
|
+
config.define 'defaults.page.fields'
|
10
|
+
config.define 'pagination.param_name', :default => 'page'
|
11
|
+
config.define 'pagination.per_page_param_name', :default => 'per_page'
|
12
|
+
config.define 'admin.pagination.per_page', :type => :integer, :default => 50
|
13
|
+
config.define 'site.title', :default => "Your site title", :allow_blank => false
|
14
|
+
config.define 'site.host', :default => "www.example.com", :allow_blank => false
|
15
|
+
config.define 'user.allow_password_reset?', :default => true
|
16
|
+
end
|
17
|
+
|
18
|
+
TrustyCms::Application.config do |config|
|
19
|
+
|
20
|
+
end
|
@@ -0,0 +1,14 @@
|
|
1
|
+
# Be sure to restart your server when you modify this file.
|
2
|
+
|
3
|
+
# This file contains settings for ActionController::ParamsWrapper which
|
4
|
+
# is enabled by default.
|
5
|
+
|
6
|
+
# Enable parameter wrapping for JSON. You can disable this by setting :format to an empty array.
|
7
|
+
ActiveSupport.on_load(:action_controller) do
|
8
|
+
wrap_parameters format: [:json] if respond_to?(:wrap_parameters)
|
9
|
+
end
|
10
|
+
|
11
|
+
# To enable root element in JSON for ActiveRecord objects.
|
12
|
+
# ActiveSupport.on_load(:active_record) do
|
13
|
+
# self.include_root_in_json = true
|
14
|
+
# end
|
@@ -0,0 +1,23 @@
|
|
1
|
+
# Files in the config/locales directory are used for internationalization
|
2
|
+
# and are automatically loaded by Rails. If you want to use locales other
|
3
|
+
# than English, add the necessary files in this directory.
|
4
|
+
#
|
5
|
+
# To use the locales, use `I18n.t`:
|
6
|
+
#
|
7
|
+
# I18n.t 'hello'
|
8
|
+
#
|
9
|
+
# In views, this is aliased to just `t`:
|
10
|
+
#
|
11
|
+
# <%= t('hello') %>
|
12
|
+
#
|
13
|
+
# To use a different locale, set it with `I18n.locale`:
|
14
|
+
#
|
15
|
+
# I18n.locale = :es
|
16
|
+
#
|
17
|
+
# This would use the information in config/locales/es.yml.
|
18
|
+
#
|
19
|
+
# To learn more, please read the Rails Internationalization guide
|
20
|
+
# available at http://guides.rubyonrails.org/i18n.html.
|
21
|
+
|
22
|
+
en:
|
23
|
+
hello: "Hello world"
|
File without changes
|
@@ -0,0 +1,22 @@
|
|
1
|
+
# Be sure to restart your server when you modify this file.
|
2
|
+
|
3
|
+
# Your secret key is used for verifying the integrity of signed cookies.
|
4
|
+
# If you change this key, all old signed cookies will become invalid!
|
5
|
+
|
6
|
+
# Make sure the secret is at least 30 characters and all random,
|
7
|
+
# no regular words or you'll be exposed to dictionary attacks.
|
8
|
+
# You can use `rake secret` to generate a secure secret key.
|
9
|
+
|
10
|
+
# Make sure the secrets in this file are kept private
|
11
|
+
# if you're sharing your code publicly.
|
12
|
+
|
13
|
+
development:
|
14
|
+
secret_key_base: 6af75efd2eb1645d2015a8ec98330874f11196e5301decbc067b40fadf71051d9f872cba2eab9eecbf96d07a64749e8d2cef2542413365ebb381755b4a44a237
|
15
|
+
|
16
|
+
test:
|
17
|
+
secret_key_base: fb2e882d635c7a6d1e86cfbf6bcd240812b005a345b61ef321cba66169b565b9a814fa0678cc463fce3c61acd7437bcc6f26aa64339cc893655df6785ef94b93
|
18
|
+
|
19
|
+
# Do not keep production secrets in the repository,
|
20
|
+
# instead read values from the environment.
|
21
|
+
production:
|
22
|
+
secret_key_base: <%= ENV["SECRET_KEY_BASE"] %>
|
@@ -0,0 +1,144 @@
|
|
1
|
+
# encoding: UTF-8
|
2
|
+
# This file is auto-generated from the current state of the database. Instead
|
3
|
+
# of editing this file, please use the migrations feature of Active Record to
|
4
|
+
# incrementally modify your database, and then regenerate this schema definition.
|
5
|
+
#
|
6
|
+
# Note that this schema.rb definition is the authoritative source for your
|
7
|
+
# database schema. If you need to create the application database on another
|
8
|
+
# system, you should be using db:schema:load, not running all the migrations
|
9
|
+
# from scratch. The latter is a flawed and unsustainable approach (the more migrations
|
10
|
+
# you'll amass, the slower it'll run and the greater likelihood for issues).
|
11
|
+
#
|
12
|
+
# It's strongly recommended that you check this file into your version control system.
|
13
|
+
|
14
|
+
ActiveRecord::Schema.define(version: 20120209231801) do
|
15
|
+
|
16
|
+
create_table "assets", force: :cascade do |t|
|
17
|
+
t.string "caption", limit: 255
|
18
|
+
t.string "title", limit: 255
|
19
|
+
t.string "asset_file_name", limit: 255
|
20
|
+
t.string "asset_content_type", limit: 255
|
21
|
+
t.integer "asset_file_size", limit: 4
|
22
|
+
t.integer "created_by_id", limit: 4
|
23
|
+
t.integer "updated_by_id", limit: 4
|
24
|
+
t.datetime "created_at"
|
25
|
+
t.datetime "updated_at"
|
26
|
+
t.string "uuid", limit: 255
|
27
|
+
t.integer "original_width", limit: 4
|
28
|
+
t.integer "original_height", limit: 4
|
29
|
+
t.string "original_extension", limit: 255
|
30
|
+
end
|
31
|
+
|
32
|
+
create_table "config", force: :cascade do |t|
|
33
|
+
t.string "key", limit: 40, default: "", null: false
|
34
|
+
t.string "value", limit: 255, default: ""
|
35
|
+
end
|
36
|
+
|
37
|
+
add_index "config", ["key"], name: "key", unique: true, using: :btree
|
38
|
+
|
39
|
+
create_table "extension_meta", force: :cascade do |t|
|
40
|
+
t.string "name", limit: 255
|
41
|
+
t.integer "schema_version", limit: 4, default: 0
|
42
|
+
t.boolean "enabled", default: true
|
43
|
+
end
|
44
|
+
|
45
|
+
create_table "layouts", force: :cascade do |t|
|
46
|
+
t.string "name", limit: 100
|
47
|
+
t.text "content", limit: 65535
|
48
|
+
t.datetime "created_at"
|
49
|
+
t.datetime "updated_at"
|
50
|
+
t.integer "created_by_id", limit: 4
|
51
|
+
t.integer "updated_by_id", limit: 4
|
52
|
+
t.string "content_type", limit: 40
|
53
|
+
t.integer "lock_version", limit: 4, default: 0
|
54
|
+
end
|
55
|
+
|
56
|
+
create_table "page_attachments", force: :cascade do |t|
|
57
|
+
t.integer "asset_id", limit: 4
|
58
|
+
t.integer "page_id", limit: 4
|
59
|
+
t.integer "position", limit: 4
|
60
|
+
end
|
61
|
+
|
62
|
+
create_table "page_fields", force: :cascade do |t|
|
63
|
+
t.integer "page_id", limit: 4
|
64
|
+
t.string "name", limit: 255
|
65
|
+
t.string "content", limit: 255
|
66
|
+
end
|
67
|
+
|
68
|
+
add_index "page_fields", ["page_id", "name", "content"], name: "index_page_fields_on_page_id_and_name_and_content", using: :btree
|
69
|
+
|
70
|
+
create_table "page_parts", force: :cascade do |t|
|
71
|
+
t.string "name", limit: 100
|
72
|
+
t.string "filter_id", limit: 25
|
73
|
+
t.text "content", limit: 16777215
|
74
|
+
t.integer "page_id", limit: 4
|
75
|
+
end
|
76
|
+
|
77
|
+
add_index "page_parts", ["page_id", "name"], name: "parts_by_page", using: :btree
|
78
|
+
|
79
|
+
create_table "pages", force: :cascade do |t|
|
80
|
+
t.string "title", limit: 255
|
81
|
+
t.string "slug", limit: 100
|
82
|
+
t.string "breadcrumb", limit: 160
|
83
|
+
t.string "class_name", limit: 25
|
84
|
+
t.integer "status_id", limit: 4, default: 1, null: false
|
85
|
+
t.integer "parent_id", limit: 4
|
86
|
+
t.integer "layout_id", limit: 4
|
87
|
+
t.datetime "created_at"
|
88
|
+
t.datetime "updated_at"
|
89
|
+
t.datetime "published_at"
|
90
|
+
t.integer "created_by_id", limit: 4
|
91
|
+
t.integer "updated_by_id", limit: 4
|
92
|
+
t.boolean "virtual", default: false, null: false
|
93
|
+
t.integer "lock_version", limit: 4, default: 0
|
94
|
+
t.text "allowed_children_cache", limit: 65535
|
95
|
+
end
|
96
|
+
|
97
|
+
add_index "pages", ["class_name"], name: "pages_class_name", using: :btree
|
98
|
+
add_index "pages", ["parent_id"], name: "pages_parent_id", using: :btree
|
99
|
+
add_index "pages", ["slug", "parent_id"], name: "pages_child_slug", using: :btree
|
100
|
+
add_index "pages", ["virtual", "status_id"], name: "pages_published", using: :btree
|
101
|
+
|
102
|
+
create_table "sessions", force: :cascade do |t|
|
103
|
+
t.string "session_id", limit: 255
|
104
|
+
t.text "data", limit: 65535
|
105
|
+
t.datetime "updated_at"
|
106
|
+
end
|
107
|
+
|
108
|
+
add_index "sessions", ["session_id"], name: "index_sessions_on_session_id", using: :btree
|
109
|
+
add_index "sessions", ["updated_at"], name: "index_sessions_on_updated_at", using: :btree
|
110
|
+
|
111
|
+
create_table "snippets", force: :cascade do |t|
|
112
|
+
t.string "name", limit: 100, default: "", null: false
|
113
|
+
t.string "filter_id", limit: 25
|
114
|
+
t.text "content", limit: 65535
|
115
|
+
t.datetime "created_at"
|
116
|
+
t.datetime "updated_at"
|
117
|
+
t.integer "created_by_id", limit: 4
|
118
|
+
t.integer "updated_by_id", limit: 4
|
119
|
+
t.integer "lock_version", limit: 4, default: 0
|
120
|
+
end
|
121
|
+
|
122
|
+
add_index "snippets", ["name"], name: "name", unique: true, using: :btree
|
123
|
+
|
124
|
+
create_table "users", force: :cascade do |t|
|
125
|
+
t.string "name", limit: 100
|
126
|
+
t.string "email", limit: 255
|
127
|
+
t.string "login", limit: 40, default: "", null: false
|
128
|
+
t.string "password", limit: 40
|
129
|
+
t.boolean "admin", default: false, null: false
|
130
|
+
t.boolean "designer", default: false, null: false
|
131
|
+
t.datetime "created_at"
|
132
|
+
t.datetime "updated_at"
|
133
|
+
t.integer "created_by_id", limit: 4
|
134
|
+
t.integer "updated_by_id", limit: 4
|
135
|
+
t.string "salt", limit: 255
|
136
|
+
t.text "notes", limit: 65535
|
137
|
+
t.integer "lock_version", limit: 4, default: 0
|
138
|
+
t.string "session_token", limit: 255
|
139
|
+
t.string "locale", limit: 255
|
140
|
+
end
|
141
|
+
|
142
|
+
add_index "users", ["login"], name: "login", unique: true, using: :btree
|
143
|
+
|
144
|
+
end
|
@@ -0,0 +1,67 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<title>The page you were looking for doesn't exist (404)</title>
|
5
|
+
<meta name="viewport" content="width=device-width,initial-scale=1">
|
6
|
+
<style>
|
7
|
+
body {
|
8
|
+
background-color: #EFEFEF;
|
9
|
+
color: #2E2F30;
|
10
|
+
text-align: center;
|
11
|
+
font-family: arial, sans-serif;
|
12
|
+
margin: 0;
|
13
|
+
}
|
14
|
+
|
15
|
+
div.dialog {
|
16
|
+
width: 95%;
|
17
|
+
max-width: 33em;
|
18
|
+
margin: 4em auto 0;
|
19
|
+
}
|
20
|
+
|
21
|
+
div.dialog > div {
|
22
|
+
border: 1px solid #CCC;
|
23
|
+
border-right-color: #999;
|
24
|
+
border-left-color: #999;
|
25
|
+
border-bottom-color: #BBB;
|
26
|
+
border-top: #B00100 solid 4px;
|
27
|
+
border-top-left-radius: 9px;
|
28
|
+
border-top-right-radius: 9px;
|
29
|
+
background-color: white;
|
30
|
+
padding: 7px 12% 0;
|
31
|
+
box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
|
32
|
+
}
|
33
|
+
|
34
|
+
h1 {
|
35
|
+
font-size: 100%;
|
36
|
+
color: #730E15;
|
37
|
+
line-height: 1.5em;
|
38
|
+
}
|
39
|
+
|
40
|
+
div.dialog > p {
|
41
|
+
margin: 0 0 1em;
|
42
|
+
padding: 1em;
|
43
|
+
background-color: #F7F7F7;
|
44
|
+
border: 1px solid #CCC;
|
45
|
+
border-right-color: #999;
|
46
|
+
border-left-color: #999;
|
47
|
+
border-bottom-color: #999;
|
48
|
+
border-bottom-left-radius: 4px;
|
49
|
+
border-bottom-right-radius: 4px;
|
50
|
+
border-top-color: #DADADA;
|
51
|
+
color: #666;
|
52
|
+
box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
|
53
|
+
}
|
54
|
+
</style>
|
55
|
+
</head>
|
56
|
+
|
57
|
+
<body>
|
58
|
+
<!-- This file lives in public/404.html -->
|
59
|
+
<div class="dialog">
|
60
|
+
<div>
|
61
|
+
<h1>The page you were looking for doesn't exist.</h1>
|
62
|
+
<p>You may have mistyped the address or the page may have moved.</p>
|
63
|
+
</div>
|
64
|
+
<p>If you are the application owner check the logs for more information.</p>
|
65
|
+
</div>
|
66
|
+
</body>
|
67
|
+
</html>
|
@@ -0,0 +1,67 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<title>The change you wanted was rejected (422)</title>
|
5
|
+
<meta name="viewport" content="width=device-width,initial-scale=1">
|
6
|
+
<style>
|
7
|
+
body {
|
8
|
+
background-color: #EFEFEF;
|
9
|
+
color: #2E2F30;
|
10
|
+
text-align: center;
|
11
|
+
font-family: arial, sans-serif;
|
12
|
+
margin: 0;
|
13
|
+
}
|
14
|
+
|
15
|
+
div.dialog {
|
16
|
+
width: 95%;
|
17
|
+
max-width: 33em;
|
18
|
+
margin: 4em auto 0;
|
19
|
+
}
|
20
|
+
|
21
|
+
div.dialog > div {
|
22
|
+
border: 1px solid #CCC;
|
23
|
+
border-right-color: #999;
|
24
|
+
border-left-color: #999;
|
25
|
+
border-bottom-color: #BBB;
|
26
|
+
border-top: #B00100 solid 4px;
|
27
|
+
border-top-left-radius: 9px;
|
28
|
+
border-top-right-radius: 9px;
|
29
|
+
background-color: white;
|
30
|
+
padding: 7px 12% 0;
|
31
|
+
box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
|
32
|
+
}
|
33
|
+
|
34
|
+
h1 {
|
35
|
+
font-size: 100%;
|
36
|
+
color: #730E15;
|
37
|
+
line-height: 1.5em;
|
38
|
+
}
|
39
|
+
|
40
|
+
div.dialog > p {
|
41
|
+
margin: 0 0 1em;
|
42
|
+
padding: 1em;
|
43
|
+
background-color: #F7F7F7;
|
44
|
+
border: 1px solid #CCC;
|
45
|
+
border-right-color: #999;
|
46
|
+
border-left-color: #999;
|
47
|
+
border-bottom-color: #999;
|
48
|
+
border-bottom-left-radius: 4px;
|
49
|
+
border-bottom-right-radius: 4px;
|
50
|
+
border-top-color: #DADADA;
|
51
|
+
color: #666;
|
52
|
+
box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
|
53
|
+
}
|
54
|
+
</style>
|
55
|
+
</head>
|
56
|
+
|
57
|
+
<body>
|
58
|
+
<!-- This file lives in public/422.html -->
|
59
|
+
<div class="dialog">
|
60
|
+
<div>
|
61
|
+
<h1>The change you wanted was rejected.</h1>
|
62
|
+
<p>Maybe you tried to change something you didn't have access to.</p>
|
63
|
+
</div>
|
64
|
+
<p>If you are the application owner check the logs for more information.</p>
|
65
|
+
</div>
|
66
|
+
</body>
|
67
|
+
</html>
|
@@ -0,0 +1,66 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<title>We're sorry, but something went wrong (500)</title>
|
5
|
+
<meta name="viewport" content="width=device-width,initial-scale=1">
|
6
|
+
<style>
|
7
|
+
body {
|
8
|
+
background-color: #EFEFEF;
|
9
|
+
color: #2E2F30;
|
10
|
+
text-align: center;
|
11
|
+
font-family: arial, sans-serif;
|
12
|
+
margin: 0;
|
13
|
+
}
|
14
|
+
|
15
|
+
div.dialog {
|
16
|
+
width: 95%;
|
17
|
+
max-width: 33em;
|
18
|
+
margin: 4em auto 0;
|
19
|
+
}
|
20
|
+
|
21
|
+
div.dialog > div {
|
22
|
+
border: 1px solid #CCC;
|
23
|
+
border-right-color: #999;
|
24
|
+
border-left-color: #999;
|
25
|
+
border-bottom-color: #BBB;
|
26
|
+
border-top: #B00100 solid 4px;
|
27
|
+
border-top-left-radius: 9px;
|
28
|
+
border-top-right-radius: 9px;
|
29
|
+
background-color: white;
|
30
|
+
padding: 7px 12% 0;
|
31
|
+
box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
|
32
|
+
}
|
33
|
+
|
34
|
+
h1 {
|
35
|
+
font-size: 100%;
|
36
|
+
color: #730E15;
|
37
|
+
line-height: 1.5em;
|
38
|
+
}
|
39
|
+
|
40
|
+
div.dialog > p {
|
41
|
+
margin: 0 0 1em;
|
42
|
+
padding: 1em;
|
43
|
+
background-color: #F7F7F7;
|
44
|
+
border: 1px solid #CCC;
|
45
|
+
border-right-color: #999;
|
46
|
+
border-left-color: #999;
|
47
|
+
border-bottom-color: #999;
|
48
|
+
border-bottom-left-radius: 4px;
|
49
|
+
border-bottom-right-radius: 4px;
|
50
|
+
border-top-color: #DADADA;
|
51
|
+
color: #666;
|
52
|
+
box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
|
53
|
+
}
|
54
|
+
</style>
|
55
|
+
</head>
|
56
|
+
|
57
|
+
<body>
|
58
|
+
<!-- This file lives in public/500.html -->
|
59
|
+
<div class="dialog">
|
60
|
+
<div>
|
61
|
+
<h1>We're sorry, but something went wrong.</h1>
|
62
|
+
</div>
|
63
|
+
<p>If you are the application owner check the logs for more information.</p>
|
64
|
+
</div>
|
65
|
+
</body>
|
66
|
+
</html>
|
File without changes
|
Binary file
|
Binary file
|
data/spec/dummy/tmp/cache/assets/test/sass/4efd780dc9118042804451835b878259e2afc5d1/_base.scssc
ADDED
Binary file
|
data/spec/dummy/tmp/cache/assets/test/sass/4efd780dc9118042804451835b878259e2afc5d1/main.scssc
ADDED
Binary file
|
data/spec/dummy/tmp/cache/assets/test/sass/66b1a0010012929c45ead4236f8cf67ab5e3ad10/_boxes.scssc
ADDED
Binary file
|
data/spec/dummy/tmp/cache/assets/test/sass/66b1a0010012929c45ead4236f8cf67ab5e3ad10/_gradients.scssc
ADDED
Binary file
|
data/spec/dummy/tmp/cache/assets/test/sass/66b1a0010012929c45ead4236f8cf67ab5e3ad10/_links.scssc
ADDED
Binary file
|
data/spec/dummy/tmp/cache/assets/test/sass/8d307e13c2e74a3d7d4d0eecd3e5daf9e7b1293d/_actions.scssc
ADDED
Binary file
|
data/spec/dummy/tmp/cache/assets/test/sass/8d307e13c2e74a3d7d4d0eecd3e5daf9e7b1293d/_avatars.scssc
ADDED
Binary file
|
data/spec/dummy/tmp/cache/assets/test/sass/8d307e13c2e74a3d7d4d0eecd3e5daf9e7b1293d/_content.scssc
ADDED
Binary file
|
data/spec/dummy/tmp/cache/assets/test/sass/8d307e13c2e74a3d7d4d0eecd3e5daf9e7b1293d/_dateinput.scssc
ADDED
Binary file
|
Binary file
|
data/spec/dummy/tmp/cache/assets/test/sass/8d307e13c2e74a3d7d4d0eecd3e5daf9e7b1293d/_dropdown.scssc
ADDED
Binary file
|
data/spec/dummy/tmp/cache/assets/test/sass/8d307e13c2e74a3d7d4d0eecd3e5daf9e7b1293d/_footer.scssc
ADDED
Binary file
|
data/spec/dummy/tmp/cache/assets/test/sass/8d307e13c2e74a3d7d4d0eecd3e5daf9e7b1293d/_forms.scssc
ADDED
Binary file
|
data/spec/dummy/tmp/cache/assets/test/sass/8d307e13c2e74a3d7d4d0eecd3e5daf9e7b1293d/_header.scssc
ADDED
Binary file
|
data/spec/dummy/tmp/cache/assets/test/sass/8d307e13c2e74a3d7d4d0eecd3e5daf9e7b1293d/_index.scssc
ADDED
Binary file
|
Binary file
|
Binary file
|
data/spec/dummy/tmp/cache/assets/test/sass/8d307e13c2e74a3d7d4d0eecd3e5daf9e7b1293d/_jquery-ui.scssc
ADDED
Binary file
|
data/spec/dummy/tmp/cache/assets/test/sass/8d307e13c2e74a3d7d4d0eecd3e5daf9e7b1293d/_layout.scssc
ADDED
Binary file
|
data/spec/dummy/tmp/cache/assets/test/sass/8d307e13c2e74a3d7d4d0eecd3e5daf9e7b1293d/_messages.scssc
ADDED
Binary file
|
data/spec/dummy/tmp/cache/assets/test/sass/8d307e13c2e74a3d7d4d0eecd3e5daf9e7b1293d/_popup.scssc
ADDED
Binary file
|
Binary file
|
data/spec/dummy/tmp/cache/assets/test/sass/8d307e13c2e74a3d7d4d0eecd3e5daf9e7b1293d/_toolbar.scssc
ADDED
Binary file
|
data/spec/dummy/tmp/cache/assets/test/sass/8d307e13c2e74a3d7d4d0eecd3e5daf9e7b1293d/_treetable.scssc
ADDED
Binary file
|
Binary file
|
Binary file
|