micro_cms 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/README.md +74 -0
- data/Rakefile +24 -0
- data/app/assets/config/micro_cms_manifest.js +1 -0
- data/app/assets/javascripts/micro_cms.js +51 -0
- data/app/assets/stylesheets/micro_cms/micro_cms.css +30 -0
- data/app/controllers/micro_cms/application_controller.rb +7 -0
- data/app/controllers/micro_cms/content_block_controller.rb +31 -0
- data/app/helpers/micro_cms/application_helper.rb +6 -0
- data/app/helpers/micro_cms/cms_block_helper.rb +28 -0
- data/app/models/micro_cms/application_record.rb +7 -0
- data/app/models/micro_cms/content_block.rb +26 -0
- data/app/views/micro_cms/_content_block.html.erb +19 -0
- data/config/routes.rb +5 -0
- data/db/migrate/20190923103919_create_micro_cms_content_blocks.rb +12 -0
- data/lib/micro_cms.rb +15 -0
- data/lib/micro_cms/engine.rb +25 -0
- data/lib/micro_cms/version.rb +5 -0
- data/spec/dummy/Rakefile +8 -0
- data/spec/dummy/app/assets/config/manifest.js +3 -0
- data/spec/dummy/app/assets/stylesheets/application.css +15 -0
- data/spec/dummy/app/channels/application_cable/channel.rb +6 -0
- data/spec/dummy/app/channels/application_cable/connection.rb +6 -0
- data/spec/dummy/app/controllers/application_controller.rb +4 -0
- data/spec/dummy/app/helpers/application_helper.rb +4 -0
- data/spec/dummy/app/javascript/packs/application.js +15 -0
- data/spec/dummy/app/jobs/application_job.rb +9 -0
- data/spec/dummy/app/mailers/application_mailer.rb +6 -0
- data/spec/dummy/app/models/application_record.rb +5 -0
- data/spec/dummy/app/views/layouts/application.html.erb +14 -0
- data/spec/dummy/app/views/layouts/mailer.html.erb +13 -0
- data/spec/dummy/app/views/layouts/mailer.text.erb +1 -0
- data/spec/dummy/bin/rails +11 -0
- data/spec/dummy/bin/rake +11 -0
- data/spec/dummy/bin/rspec +8 -0
- data/spec/dummy/bin/setup +35 -0
- data/spec/dummy/bin/spring +17 -0
- data/spec/dummy/config.ru +7 -0
- data/spec/dummy/config/application.rb +31 -0
- data/spec/dummy/config/boot.rb +7 -0
- data/spec/dummy/config/cable.yml +10 -0
- data/spec/dummy/config/database.yml +25 -0
- data/spec/dummy/config/environment.rb +7 -0
- data/spec/dummy/config/environments/development.rb +64 -0
- data/spec/dummy/config/environments/production.rb +114 -0
- data/spec/dummy/config/environments/test.rb +50 -0
- data/spec/dummy/config/initializers/application_controller_renderer.rb +10 -0
- data/spec/dummy/config/initializers/assets.rb +14 -0
- data/spec/dummy/config/initializers/backtrace_silencers.rb +9 -0
- data/spec/dummy/config/initializers/content_security_policy.rb +30 -0
- data/spec/dummy/config/initializers/cookies_serializer.rb +7 -0
- data/spec/dummy/config/initializers/filter_parameter_logging.rb +6 -0
- data/spec/dummy/config/initializers/inflections.rb +18 -0
- data/spec/dummy/config/initializers/mime_types.rb +6 -0
- data/spec/dummy/config/initializers/wrap_parameters.rb +16 -0
- data/spec/dummy/config/locales/en.yml +33 -0
- data/spec/dummy/config/puma.rb +40 -0
- data/spec/dummy/config/routes.rb +5 -0
- data/spec/dummy/config/spring.rb +8 -0
- data/spec/dummy/config/storage.yml +34 -0
- data/spec/dummy/db/development.sqlite3 +0 -0
- data/spec/dummy/db/migrate/20190923150252_create_micro_cms_content_blocks.micro_cms.rb +13 -0
- data/spec/dummy/db/schema.rb +22 -0
- data/spec/dummy/db/test.sqlite3 +0 -0
- data/spec/dummy/log/development.log +1 -0
- data/spec/dummy/log/test.log +478 -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/apple-touch-icon-precomposed.png +0 -0
- data/spec/dummy/public/apple-touch-icon.png +0 -0
- data/spec/dummy/public/favicon.ico +0 -0
- data/spec/dummy/tmp/development_secret.txt +1 -0
- data/spec/engine/micro_cms_spec.rb +9 -0
- data/spec/examples.txt +28 -0
- data/spec/factories/micro_cms/content_blocks.rb +8 -0
- data/spec/helpers/micro_cms/cms_block_helper_spec.rb +138 -0
- data/spec/models/micro_cms/content_block_spec.rb +62 -0
- data/spec/rails_helper.rb +75 -0
- data/spec/requests/micro_cms/content_block_controller_spec.rb +57 -0
- data/spec/routing/micro_cms/content_blocks_routing_spec.rb +17 -0
- data/spec/spec_helper.rb +43 -0
- data/spec/support/shared_examples/cms_block_helper_spec_helper.rb +9 -0
- data/spec/views/micro_cms/content_block_spec.rb +25 -0
- metadata +250 -0
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
# This file is copied to spec/ when you run 'rails generate rspec:install'
|
|
4
|
+
require 'spec_helper'
|
|
5
|
+
require 'factory_bot_rails'
|
|
6
|
+
require 'shoulda-matchers'
|
|
7
|
+
ENV['RAILS_ENV'] ||= 'test'
|
|
8
|
+
require File.expand_path('dummy/config/environment.rb', __dir__)
|
|
9
|
+
# Prevent database truncation if the environment is production
|
|
10
|
+
abort('The Rails environment is running in production mode!') if Rails.env.production?
|
|
11
|
+
require 'rspec/rails'
|
|
12
|
+
# Add additional requires below this line. Rails is not loaded until this point!
|
|
13
|
+
|
|
14
|
+
# Requires supporting ruby files with custom matchers and macros, etc, in
|
|
15
|
+
# spec/support/ and its subdirectories. Files matching `spec/**/*_spec.rb` are
|
|
16
|
+
# run as spec files by default. This means that files in spec/support that end
|
|
17
|
+
# in _spec.rb will both be required and run as specs, causing the specs to be
|
|
18
|
+
# run twice. It is recommended that you do not name files matching this glob to
|
|
19
|
+
# end with _spec.rb. You can configure this pattern with the --pattern
|
|
20
|
+
# option on the command line or in ~/.rspec, .rspec or `.rspec-local`.
|
|
21
|
+
#
|
|
22
|
+
# The following line is provided for convenience purposes. It has the downside
|
|
23
|
+
# of increasing the boot-up time by auto-requiring all files in the support
|
|
24
|
+
# directory. Alternatively, in the individual `*_spec.rb` files, manually
|
|
25
|
+
# require only the support files necessary.
|
|
26
|
+
#
|
|
27
|
+
Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each { |f| require f }
|
|
28
|
+
|
|
29
|
+
# Checks for pending migrations and applies them before tests are run.
|
|
30
|
+
# If you are not using ActiveRecord, you can remove these lines.
|
|
31
|
+
begin
|
|
32
|
+
ActiveRecord::Migration.maintain_test_schema!
|
|
33
|
+
rescue ActiveRecord::PendingMigrationError => e
|
|
34
|
+
puts e.to_s.strip
|
|
35
|
+
exit 1
|
|
36
|
+
end
|
|
37
|
+
|
|
38
|
+
RSpec.configure do |config|
|
|
39
|
+
# Remove this line if you're not using ActiveRecord or ActiveRecord fixtures
|
|
40
|
+
config.fixture_path = "#{::Rails.root}/spec/fixtures"
|
|
41
|
+
|
|
42
|
+
# If you're not using ActiveRecord, or you'd prefer not to run each of your
|
|
43
|
+
# examples within a transaction, remove the following line or assign false
|
|
44
|
+
# instead of true.
|
|
45
|
+
config.use_transactional_fixtures = true
|
|
46
|
+
|
|
47
|
+
# RSpec Rails can automatically mix in different behaviours to your tests
|
|
48
|
+
# based on their file location, for example enabling you to call `get` and
|
|
49
|
+
# `post` in specs under `spec/controllers`.
|
|
50
|
+
#
|
|
51
|
+
# You can disable this behaviour by removing the line below, and instead
|
|
52
|
+
# explicitly tag your specs with their type, e.g.:
|
|
53
|
+
#
|
|
54
|
+
# RSpec.describe UsersController, :type => :controller do
|
|
55
|
+
# # ...
|
|
56
|
+
# end
|
|
57
|
+
#
|
|
58
|
+
# The different available types are documented in the features, such as in
|
|
59
|
+
# https://relishapp.com/rspec/rspec-rails/docs
|
|
60
|
+
config.infer_spec_type_from_file_location!
|
|
61
|
+
|
|
62
|
+
# Filter lines from Rails gems in backtraces.
|
|
63
|
+
config.filter_rails_from_backtrace!
|
|
64
|
+
# arbitrary gems may also be filtered via:
|
|
65
|
+
# config.filter_gems_from_backtrace("gem name")
|
|
66
|
+
|
|
67
|
+
config.include FactoryBot::Syntax::Methods
|
|
68
|
+
end
|
|
69
|
+
|
|
70
|
+
Shoulda::Matchers.configure do |config|
|
|
71
|
+
config.integrate do |with|
|
|
72
|
+
with.test_framework :rspec
|
|
73
|
+
with.library :rails
|
|
74
|
+
end
|
|
75
|
+
end
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
require 'rails_helper'
|
|
4
|
+
|
|
5
|
+
RSpec.describe MicroCms::ContentBlockController, type: :request do
|
|
6
|
+
describe '#update' do
|
|
7
|
+
subject(:request) do
|
|
8
|
+
put content_block_path(content_block, params: { micro_cms_content_block: params }, format: :js)
|
|
9
|
+
end
|
|
10
|
+
|
|
11
|
+
let!(:content_block) { create :micro_cms_content_block }
|
|
12
|
+
let(:authorization_token) { 'my-securely-generated-auth-token' }
|
|
13
|
+
|
|
14
|
+
before do
|
|
15
|
+
allow(MicroCms).to receive(:authorization_token).and_return authorization_token
|
|
16
|
+
end
|
|
17
|
+
|
|
18
|
+
context 'when authorization token is correct' do
|
|
19
|
+
let(:new_content) { 'my new content' }
|
|
20
|
+
let(:params) do
|
|
21
|
+
{
|
|
22
|
+
content: new_content,
|
|
23
|
+
authorization_token: authorization_token
|
|
24
|
+
}
|
|
25
|
+
end
|
|
26
|
+
|
|
27
|
+
it 'updates the content block', :aggregate_failures do
|
|
28
|
+
expect { request }.to change { content_block.reload.content }.from(content_block.content).to(new_content)
|
|
29
|
+
expect(response).to have_http_status :no_content
|
|
30
|
+
end
|
|
31
|
+
|
|
32
|
+
context 'when the content block cannot be found' do
|
|
33
|
+
let(:content_block) { build(:micro_cms_content_block, path: 'not-existent') }
|
|
34
|
+
|
|
35
|
+
it 'throws not found error' do
|
|
36
|
+
expect { request }.to raise_error ActiveRecord::RecordNotFound
|
|
37
|
+
end
|
|
38
|
+
end
|
|
39
|
+
end
|
|
40
|
+
|
|
41
|
+
context 'when authorization token is incorrect' do
|
|
42
|
+
let(:evil_content) { 'blubb' }
|
|
43
|
+
|
|
44
|
+
let(:params) do
|
|
45
|
+
{
|
|
46
|
+
content: evil_content,
|
|
47
|
+
authorization_token: 'my-evil-spoofing-token'
|
|
48
|
+
}
|
|
49
|
+
end
|
|
50
|
+
|
|
51
|
+
it 'raises not found error', :aggregate_failures do
|
|
52
|
+
expect { request }.to raise_exception ActiveRecord::RecordNotFound
|
|
53
|
+
expect(content_block.reload.content).not_to eq evil_content
|
|
54
|
+
end
|
|
55
|
+
end
|
|
56
|
+
end
|
|
57
|
+
end
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
require 'rails_helper'
|
|
4
|
+
|
|
5
|
+
RSpec.describe MicroCms::ContentBlockController, type: :routing do
|
|
6
|
+
routes { MicroCms::Engine.routes }
|
|
7
|
+
|
|
8
|
+
describe 'routing' do
|
|
9
|
+
it 'routes to #update via PUT' do
|
|
10
|
+
expect(put: '/content_block/1').to route_to('micro_cms/content_block#update', path: '1')
|
|
11
|
+
end
|
|
12
|
+
|
|
13
|
+
it 'routes to #update via PATCH' do
|
|
14
|
+
expect(patch: '/content_block/1').to route_to('micro_cms/content_block#update', path: '1')
|
|
15
|
+
end
|
|
16
|
+
end
|
|
17
|
+
end
|
data/spec/spec_helper.rb
ADDED
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
require 'simplecov'
|
|
4
|
+
SimpleCov.start 'rails' do
|
|
5
|
+
add_filter 'lib/micro_cms/version.rb'
|
|
6
|
+
end
|
|
7
|
+
SimpleCov.minimum_coverage 100
|
|
8
|
+
|
|
9
|
+
ENV['RAILS_ENV'] ||= 'test'
|
|
10
|
+
require File.expand_path('dummy/config/environment.rb', __dir__)
|
|
11
|
+
|
|
12
|
+
require 'rspec/rails'
|
|
13
|
+
require 'factory_bot'
|
|
14
|
+
require 'micro_cms'
|
|
15
|
+
require 'capybara/rspec/matchers'
|
|
16
|
+
|
|
17
|
+
Rails.backtrace_cleaner.remove_silencers!
|
|
18
|
+
ActiveRecord::Migrator.migrations_paths = 'spec/dummy/db/migrate'
|
|
19
|
+
|
|
20
|
+
RSpec.configure do |config|
|
|
21
|
+
config.expect_with :rspec do |expectations|
|
|
22
|
+
expectations.include_chain_clauses_in_custom_matcher_descriptions = true
|
|
23
|
+
end
|
|
24
|
+
|
|
25
|
+
config.mock_with :rspec do |mocks|
|
|
26
|
+
mocks.verify_partial_doubles = true
|
|
27
|
+
end
|
|
28
|
+
|
|
29
|
+
config.shared_context_metadata_behavior = :apply_to_host_groups
|
|
30
|
+
config.filter_run_when_matching :focus
|
|
31
|
+
config.example_status_persistence_file_path = 'spec/examples.txt'
|
|
32
|
+
config.disable_monkey_patching!
|
|
33
|
+
|
|
34
|
+
config.default_formatter = 'doc' if config.files_to_run.one?
|
|
35
|
+
|
|
36
|
+
config.profile_examples = 10
|
|
37
|
+
config.order = :random
|
|
38
|
+
config.include FactoryBot::Syntax::Methods
|
|
39
|
+
config.include MicroCms::Engine.routes.url_helpers
|
|
40
|
+
config.include Capybara::RSpecMatchers, type: :view
|
|
41
|
+
|
|
42
|
+
Kernel.srand config.seed
|
|
43
|
+
end
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
RSpec.shared_examples_for 'creates a new content block at the given path' do
|
|
4
|
+
it 'creates a new content block at the given path', :aggregate_failures do
|
|
5
|
+
expect { subject_method }.to change(MicroCms::ContentBlock, :count).by 1
|
|
6
|
+
expect(content_block.content).to eq content
|
|
7
|
+
expect(content_block.path).to eq MicroCms::ContentBlock.format_path path
|
|
8
|
+
end
|
|
9
|
+
end
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
RSpec.describe 'micro_cms/_content_block.html.erb', type: :view do
|
|
4
|
+
let(:content_block) { create :micro_cms_content_block }
|
|
5
|
+
|
|
6
|
+
before do
|
|
7
|
+
render partial: 'micro_cms/content_block', locals: { content_block: content_block }
|
|
8
|
+
end
|
|
9
|
+
|
|
10
|
+
it 'contains the content' do
|
|
11
|
+
expect(rendered).to include content_block.content
|
|
12
|
+
end
|
|
13
|
+
|
|
14
|
+
it 'contains the contenteditable CMS block' do
|
|
15
|
+
expect(rendered).to have_selector('div[contenteditable=true]')
|
|
16
|
+
end
|
|
17
|
+
|
|
18
|
+
it 'contains the path as id' do
|
|
19
|
+
expect(rendered).to have_selector("div[id=\"#{content_block.path}\"]")
|
|
20
|
+
end
|
|
21
|
+
|
|
22
|
+
it 'has a valid update url' do
|
|
23
|
+
expect(rendered).to have_selector("div[data-update-url=\"#{content_block_path(content_block)}\"]")
|
|
24
|
+
end
|
|
25
|
+
end
|
metadata
ADDED
|
@@ -0,0 +1,250 @@
|
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
|
2
|
+
name: micro_cms
|
|
3
|
+
version: !ruby/object:Gem::Version
|
|
4
|
+
version: 0.1.0
|
|
5
|
+
platform: ruby
|
|
6
|
+
authors:
|
|
7
|
+
- Lukas Bischof
|
|
8
|
+
autorequire:
|
|
9
|
+
bindir: bin
|
|
10
|
+
cert_chain: []
|
|
11
|
+
date: 2019-10-01 00:00:00.000000000 Z
|
|
12
|
+
dependencies:
|
|
13
|
+
- !ruby/object:Gem::Dependency
|
|
14
|
+
name: rails
|
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
|
16
|
+
requirements:
|
|
17
|
+
- - ">"
|
|
18
|
+
- !ruby/object:Gem::Version
|
|
19
|
+
version: 5.2.0
|
|
20
|
+
type: :runtime
|
|
21
|
+
prerelease: false
|
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
23
|
+
requirements:
|
|
24
|
+
- - ">"
|
|
25
|
+
- !ruby/object:Gem::Version
|
|
26
|
+
version: 5.2.0
|
|
27
|
+
- !ruby/object:Gem::Dependency
|
|
28
|
+
name: factory_bot_rails
|
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
|
30
|
+
requirements:
|
|
31
|
+
- - ">="
|
|
32
|
+
- !ruby/object:Gem::Version
|
|
33
|
+
version: '0'
|
|
34
|
+
type: :development
|
|
35
|
+
prerelease: false
|
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
37
|
+
requirements:
|
|
38
|
+
- - ">="
|
|
39
|
+
- !ruby/object:Gem::Version
|
|
40
|
+
version: '0'
|
|
41
|
+
- !ruby/object:Gem::Dependency
|
|
42
|
+
name: rspec-rails
|
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
|
44
|
+
requirements:
|
|
45
|
+
- - ">="
|
|
46
|
+
- !ruby/object:Gem::Version
|
|
47
|
+
version: '0'
|
|
48
|
+
type: :development
|
|
49
|
+
prerelease: false
|
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
51
|
+
requirements:
|
|
52
|
+
- - ">="
|
|
53
|
+
- !ruby/object:Gem::Version
|
|
54
|
+
version: '0'
|
|
55
|
+
- !ruby/object:Gem::Dependency
|
|
56
|
+
name: sqlite3
|
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
|
58
|
+
requirements:
|
|
59
|
+
- - ">="
|
|
60
|
+
- !ruby/object:Gem::Version
|
|
61
|
+
version: '0'
|
|
62
|
+
type: :development
|
|
63
|
+
prerelease: false
|
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
65
|
+
requirements:
|
|
66
|
+
- - ">="
|
|
67
|
+
- !ruby/object:Gem::Version
|
|
68
|
+
version: '0'
|
|
69
|
+
description: Provides a cms block which can be edited inline
|
|
70
|
+
email:
|
|
71
|
+
- lukas.bischof@renuo.ch
|
|
72
|
+
executables: []
|
|
73
|
+
extensions: []
|
|
74
|
+
extra_rdoc_files: []
|
|
75
|
+
files:
|
|
76
|
+
- README.md
|
|
77
|
+
- Rakefile
|
|
78
|
+
- app/assets/config/micro_cms_manifest.js
|
|
79
|
+
- app/assets/javascripts/micro_cms.js
|
|
80
|
+
- app/assets/stylesheets/micro_cms/micro_cms.css
|
|
81
|
+
- app/controllers/micro_cms/application_controller.rb
|
|
82
|
+
- app/controllers/micro_cms/content_block_controller.rb
|
|
83
|
+
- app/helpers/micro_cms/application_helper.rb
|
|
84
|
+
- app/helpers/micro_cms/cms_block_helper.rb
|
|
85
|
+
- app/models/micro_cms/application_record.rb
|
|
86
|
+
- app/models/micro_cms/content_block.rb
|
|
87
|
+
- app/views/micro_cms/_content_block.html.erb
|
|
88
|
+
- config/routes.rb
|
|
89
|
+
- db/migrate/20190923103919_create_micro_cms_content_blocks.rb
|
|
90
|
+
- lib/micro_cms.rb
|
|
91
|
+
- lib/micro_cms/engine.rb
|
|
92
|
+
- lib/micro_cms/version.rb
|
|
93
|
+
- spec/dummy/Rakefile
|
|
94
|
+
- spec/dummy/app/assets/config/manifest.js
|
|
95
|
+
- spec/dummy/app/assets/stylesheets/application.css
|
|
96
|
+
- spec/dummy/app/channels/application_cable/channel.rb
|
|
97
|
+
- spec/dummy/app/channels/application_cable/connection.rb
|
|
98
|
+
- spec/dummy/app/controllers/application_controller.rb
|
|
99
|
+
- spec/dummy/app/helpers/application_helper.rb
|
|
100
|
+
- spec/dummy/app/javascript/packs/application.js
|
|
101
|
+
- spec/dummy/app/jobs/application_job.rb
|
|
102
|
+
- spec/dummy/app/mailers/application_mailer.rb
|
|
103
|
+
- spec/dummy/app/models/application_record.rb
|
|
104
|
+
- spec/dummy/app/views/layouts/application.html.erb
|
|
105
|
+
- spec/dummy/app/views/layouts/mailer.html.erb
|
|
106
|
+
- spec/dummy/app/views/layouts/mailer.text.erb
|
|
107
|
+
- spec/dummy/bin/rails
|
|
108
|
+
- spec/dummy/bin/rake
|
|
109
|
+
- spec/dummy/bin/rspec
|
|
110
|
+
- spec/dummy/bin/setup
|
|
111
|
+
- spec/dummy/bin/spring
|
|
112
|
+
- spec/dummy/config.ru
|
|
113
|
+
- spec/dummy/config/application.rb
|
|
114
|
+
- spec/dummy/config/boot.rb
|
|
115
|
+
- spec/dummy/config/cable.yml
|
|
116
|
+
- spec/dummy/config/database.yml
|
|
117
|
+
- spec/dummy/config/environment.rb
|
|
118
|
+
- spec/dummy/config/environments/development.rb
|
|
119
|
+
- spec/dummy/config/environments/production.rb
|
|
120
|
+
- spec/dummy/config/environments/test.rb
|
|
121
|
+
- spec/dummy/config/initializers/application_controller_renderer.rb
|
|
122
|
+
- spec/dummy/config/initializers/assets.rb
|
|
123
|
+
- spec/dummy/config/initializers/backtrace_silencers.rb
|
|
124
|
+
- spec/dummy/config/initializers/content_security_policy.rb
|
|
125
|
+
- spec/dummy/config/initializers/cookies_serializer.rb
|
|
126
|
+
- spec/dummy/config/initializers/filter_parameter_logging.rb
|
|
127
|
+
- spec/dummy/config/initializers/inflections.rb
|
|
128
|
+
- spec/dummy/config/initializers/mime_types.rb
|
|
129
|
+
- spec/dummy/config/initializers/wrap_parameters.rb
|
|
130
|
+
- spec/dummy/config/locales/en.yml
|
|
131
|
+
- spec/dummy/config/puma.rb
|
|
132
|
+
- spec/dummy/config/routes.rb
|
|
133
|
+
- spec/dummy/config/spring.rb
|
|
134
|
+
- spec/dummy/config/storage.yml
|
|
135
|
+
- spec/dummy/db/development.sqlite3
|
|
136
|
+
- spec/dummy/db/migrate/20190923150252_create_micro_cms_content_blocks.micro_cms.rb
|
|
137
|
+
- spec/dummy/db/schema.rb
|
|
138
|
+
- spec/dummy/db/test.sqlite3
|
|
139
|
+
- spec/dummy/log/development.log
|
|
140
|
+
- spec/dummy/log/test.log
|
|
141
|
+
- spec/dummy/public/404.html
|
|
142
|
+
- spec/dummy/public/422.html
|
|
143
|
+
- spec/dummy/public/500.html
|
|
144
|
+
- spec/dummy/public/apple-touch-icon-precomposed.png
|
|
145
|
+
- spec/dummy/public/apple-touch-icon.png
|
|
146
|
+
- spec/dummy/public/favicon.ico
|
|
147
|
+
- spec/dummy/tmp/development_secret.txt
|
|
148
|
+
- spec/engine/micro_cms_spec.rb
|
|
149
|
+
- spec/examples.txt
|
|
150
|
+
- spec/factories/micro_cms/content_blocks.rb
|
|
151
|
+
- spec/helpers/micro_cms/cms_block_helper_spec.rb
|
|
152
|
+
- spec/models/micro_cms/content_block_spec.rb
|
|
153
|
+
- spec/rails_helper.rb
|
|
154
|
+
- spec/requests/micro_cms/content_block_controller_spec.rb
|
|
155
|
+
- spec/routing/micro_cms/content_blocks_routing_spec.rb
|
|
156
|
+
- spec/spec_helper.rb
|
|
157
|
+
- spec/support/shared_examples/cms_block_helper_spec_helper.rb
|
|
158
|
+
- spec/views/micro_cms/content_block_spec.rb
|
|
159
|
+
homepage: https://github.com/renuo/micro_cms
|
|
160
|
+
licenses:
|
|
161
|
+
- MIT
|
|
162
|
+
metadata:
|
|
163
|
+
allowed_push_host: https://rubygems.org/
|
|
164
|
+
post_install_message:
|
|
165
|
+
rdoc_options: []
|
|
166
|
+
require_paths:
|
|
167
|
+
- lib
|
|
168
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
|
169
|
+
requirements:
|
|
170
|
+
- - ">="
|
|
171
|
+
- !ruby/object:Gem::Version
|
|
172
|
+
version: '0'
|
|
173
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
174
|
+
requirements:
|
|
175
|
+
- - ">="
|
|
176
|
+
- !ruby/object:Gem::Version
|
|
177
|
+
version: '0'
|
|
178
|
+
requirements: []
|
|
179
|
+
rubyforge_project:
|
|
180
|
+
rubygems_version: 2.7.6
|
|
181
|
+
signing_key:
|
|
182
|
+
specification_version: 4
|
|
183
|
+
summary: An inline micro cms
|
|
184
|
+
test_files:
|
|
185
|
+
- spec/spec_helper.rb
|
|
186
|
+
- spec/dummy/app/mailers/application_mailer.rb
|
|
187
|
+
- spec/dummy/app/models/application_record.rb
|
|
188
|
+
- spec/dummy/app/javascript/packs/application.js
|
|
189
|
+
- spec/dummy/app/jobs/application_job.rb
|
|
190
|
+
- spec/dummy/app/controllers/application_controller.rb
|
|
191
|
+
- spec/dummy/app/views/layouts/application.html.erb
|
|
192
|
+
- spec/dummy/app/views/layouts/mailer.html.erb
|
|
193
|
+
- spec/dummy/app/views/layouts/mailer.text.erb
|
|
194
|
+
- spec/dummy/app/assets/config/manifest.js
|
|
195
|
+
- spec/dummy/app/assets/stylesheets/application.css
|
|
196
|
+
- spec/dummy/app/helpers/application_helper.rb
|
|
197
|
+
- spec/dummy/app/channels/application_cable/connection.rb
|
|
198
|
+
- spec/dummy/app/channels/application_cable/channel.rb
|
|
199
|
+
- spec/dummy/bin/rake
|
|
200
|
+
- spec/dummy/bin/setup
|
|
201
|
+
- spec/dummy/bin/rspec
|
|
202
|
+
- spec/dummy/bin/spring
|
|
203
|
+
- spec/dummy/bin/rails
|
|
204
|
+
- spec/dummy/config/routes.rb
|
|
205
|
+
- spec/dummy/config/locales/en.yml
|
|
206
|
+
- spec/dummy/config/cable.yml
|
|
207
|
+
- spec/dummy/config/environments/production.rb
|
|
208
|
+
- spec/dummy/config/environments/development.rb
|
|
209
|
+
- spec/dummy/config/environments/test.rb
|
|
210
|
+
- spec/dummy/config/spring.rb
|
|
211
|
+
- spec/dummy/config/environment.rb
|
|
212
|
+
- spec/dummy/config/storage.yml
|
|
213
|
+
- spec/dummy/config/application.rb
|
|
214
|
+
- spec/dummy/config/puma.rb
|
|
215
|
+
- spec/dummy/config/database.yml
|
|
216
|
+
- spec/dummy/config/boot.rb
|
|
217
|
+
- spec/dummy/config/initializers/application_controller_renderer.rb
|
|
218
|
+
- spec/dummy/config/initializers/backtrace_silencers.rb
|
|
219
|
+
- spec/dummy/config/initializers/mime_types.rb
|
|
220
|
+
- spec/dummy/config/initializers/filter_parameter_logging.rb
|
|
221
|
+
- spec/dummy/config/initializers/wrap_parameters.rb
|
|
222
|
+
- spec/dummy/config/initializers/assets.rb
|
|
223
|
+
- spec/dummy/config/initializers/cookies_serializer.rb
|
|
224
|
+
- spec/dummy/config/initializers/content_security_policy.rb
|
|
225
|
+
- spec/dummy/config/initializers/inflections.rb
|
|
226
|
+
- spec/dummy/config.ru
|
|
227
|
+
- spec/dummy/Rakefile
|
|
228
|
+
- spec/dummy/public/favicon.ico
|
|
229
|
+
- spec/dummy/public/422.html
|
|
230
|
+
- spec/dummy/public/apple-touch-icon.png
|
|
231
|
+
- spec/dummy/public/500.html
|
|
232
|
+
- spec/dummy/public/404.html
|
|
233
|
+
- spec/dummy/public/apple-touch-icon-precomposed.png
|
|
234
|
+
- spec/dummy/db/schema.rb
|
|
235
|
+
- spec/dummy/db/test.sqlite3
|
|
236
|
+
- spec/dummy/db/migrate/20190923150252_create_micro_cms_content_blocks.micro_cms.rb
|
|
237
|
+
- spec/dummy/db/development.sqlite3
|
|
238
|
+
- spec/dummy/log/test.log
|
|
239
|
+
- spec/dummy/log/development.log
|
|
240
|
+
- spec/dummy/tmp/development_secret.txt
|
|
241
|
+
- spec/examples.txt
|
|
242
|
+
- spec/models/micro_cms/content_block_spec.rb
|
|
243
|
+
- spec/requests/micro_cms/content_block_controller_spec.rb
|
|
244
|
+
- spec/support/shared_examples/cms_block_helper_spec_helper.rb
|
|
245
|
+
- spec/factories/micro_cms/content_blocks.rb
|
|
246
|
+
- spec/routing/micro_cms/content_blocks_routing_spec.rb
|
|
247
|
+
- spec/views/micro_cms/content_block_spec.rb
|
|
248
|
+
- spec/engine/micro_cms_spec.rb
|
|
249
|
+
- spec/rails_helper.rb
|
|
250
|
+
- spec/helpers/micro_cms/cms_block_helper_spec.rb
|