inky-rb 1.3.7.0 → 1.3.7.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +2 -0
- data/Gemfile.lock +119 -8
- data/README.md +27 -2
- data/inky.gemspec +6 -2
- data/lib/generators/inky/install_generator.rb +3 -2
- data/lib/generators/inky/templates/mailer_layout.html.erb +2 -2
- data/lib/generators/inky/templates/mailer_layout.html.haml +13 -0
- data/lib/generators/inky/templates/mailer_layout.html.slim +15 -0
- data/lib/inky.rb +9 -8
- data/lib/inky/component_factory.rb +139 -0
- data/lib/inky/configuration.rb +31 -0
- data/lib/inky/rails/engine.rb +1 -1
- data/lib/inky/rails/template_handler.rb +24 -8
- data/lib/inky/rails/version.rb +1 -1
- data/spec/configuration_spec.rb +38 -0
- data/spec/inky_spec.rb +19 -0
- data/spec/spec_helper.rb +5 -5
- data/spec/test_app/Rakefile +6 -0
- data/spec/test_app/app/controllers/application_controller.rb +3 -0
- data/spec/test_app/app/controllers/inky_controller.rb +9 -0
- data/spec/test_app/app/helpers/application_helper.rb +2 -0
- data/spec/test_app/app/mailers/application_mailer.rb +4 -0
- data/spec/test_app/app/views/inky/_inky_partial.html.inky +1 -0
- data/spec/test_app/app/views/inky/explicit_builder.html.inky-builder +1 -0
- data/spec/test_app/app/views/inky/explicit_slim.html.inky-slim +2 -0
- data/spec/test_app/app/views/inky/layout.html.erb +1 -0
- data/spec/test_app/app/views/inky/non_inky.html.erb +3 -0
- data/spec/test_app/app/views/inky/simple.html.inky +1 -0
- data/spec/test_app/app/views/inky/slim.html.inky +2 -0
- data/spec/test_app/app/views/layouts/application.html.erb +4 -0
- data/spec/test_app/app/views/layouts/inky_layout.html.inky +11 -0
- data/spec/test_app/config.ru +5 -0
- data/spec/test_app/config/application.rb +22 -0
- data/spec/test_app/config/boot.rb +5 -0
- data/spec/test_app/config/cable.yml +9 -0
- data/spec/test_app/config/database.yml +25 -0
- data/spec/test_app/config/environment.rb +5 -0
- data/spec/test_app/config/environments/development.rb +54 -0
- data/spec/test_app/config/environments/production.rb +86 -0
- data/spec/test_app/config/environments/test.rb +44 -0
- data/spec/test_app/config/initializers/application_controller_renderer.rb +6 -0
- data/spec/test_app/config/initializers/assets.rb +11 -0
- data/spec/test_app/config/initializers/backtrace_silencers.rb +7 -0
- data/spec/test_app/config/initializers/cookies_serializer.rb +5 -0
- data/spec/test_app/config/initializers/filter_parameter_logging.rb +4 -0
- data/spec/test_app/config/initializers/inflections.rb +16 -0
- data/spec/test_app/config/initializers/mime_types.rb +4 -0
- data/spec/test_app/config/initializers/new_framework_defaults.rb +24 -0
- data/spec/test_app/config/initializers/secret_token.rb +1 -0
- data/spec/test_app/config/initializers/session_store.rb +3 -0
- data/spec/test_app/config/initializers/wrap_parameters.rb +14 -0
- data/spec/test_app/config/locales/en.yml +23 -0
- data/spec/test_app/config/puma.rb +47 -0
- data/spec/test_app/config/routes.rb +3 -0
- data/spec/test_app/config/secrets.yml +22 -0
- data/spec/test_app/config/spring.rb +6 -0
- data/spec/test_app/log/.keep +0 -0
- data/spec/test_app/spec/features/inky_spec.rb +100 -0
- data/spec/test_app/spec/helper.rb +14 -0
- metadata +197 -5
- data/lib/component_factory.rb +0 -138
@@ -0,0 +1,44 @@
|
|
1
|
+
TestApp::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 public file server for tests with Cache-Control for performance.
|
16
|
+
if config.respond_to? :public_file_server
|
17
|
+
config.public_file_server.enabled = true
|
18
|
+
config.public_file_server.headers = {
|
19
|
+
'Cache-Control' => 'public, max-age=3600'
|
20
|
+
}
|
21
|
+
end
|
22
|
+
|
23
|
+
# Show full error reports and disable caching.
|
24
|
+
config.consider_all_requests_local = true
|
25
|
+
# config.action_controller.perform_caching = false
|
26
|
+
|
27
|
+
# Raise exceptions instead of rendering exception templates.
|
28
|
+
config.action_dispatch.show_exceptions = false
|
29
|
+
|
30
|
+
# Disable request forgery protection in test environment.
|
31
|
+
config.action_controller.allow_forgery_protection = false
|
32
|
+
# config.action_mailer.perform_caching = false
|
33
|
+
|
34
|
+
# Tell Action Mailer not to deliver emails to the real world.
|
35
|
+
# The :test delivery method accumulates sent emails in the
|
36
|
+
# ActionMailer::Base.deliveries array.
|
37
|
+
config.action_mailer.delivery_method = :test
|
38
|
+
|
39
|
+
# Print deprecation notices to the stderr.
|
40
|
+
config.active_support.deprecation = :stderr
|
41
|
+
|
42
|
+
# Raises error for missing translations
|
43
|
+
# config.action_view.raise_on_missing_translations = true
|
44
|
+
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,24 @@
|
|
1
|
+
# Be sure to restart your server when you modify this file.
|
2
|
+
#
|
3
|
+
# This file contains migration options to ease your Rails 5.0 upgrade.
|
4
|
+
#
|
5
|
+
# Read the Rails 5.0 release notes for more info on each option.
|
6
|
+
|
7
|
+
# Enable per-form CSRF tokens. Previous versions had false.
|
8
|
+
# Rails.application.config.action_controller.per_form_csrf_tokens = true
|
9
|
+
|
10
|
+
# # Enable origin-checking CSRF mitigation. Previous versions had false.
|
11
|
+
# Rails.application.config.action_controller.forgery_protection_origin_check = true
|
12
|
+
|
13
|
+
# # Make Ruby 2.4 preserve the timezone of the receiver when calling `to_time`.
|
14
|
+
# # Previous versions had false.
|
15
|
+
# ActiveSupport.to_time_preserves_timezone = true
|
16
|
+
|
17
|
+
# # Require `belongs_to` associations by default. Previous versions had false.
|
18
|
+
# Rails.application.config.active_record.belongs_to_required_by_default = true
|
19
|
+
|
20
|
+
# # Do not halt callback chains when a callback returns false. Previous versions had true.
|
21
|
+
# ActiveSupport.halt_callback_chains_on_return_false = false
|
22
|
+
|
23
|
+
# # Configure SSL options to enable HSTS with subdomains. Previous versions had false.
|
24
|
+
# Rails.application.config.ssl_options = { hsts: { subdomains: true } }
|
@@ -0,0 +1 @@
|
|
1
|
+
TestApp::Application.config.secret_token = 'whatevericouldntcarelessaboutthisthingwerejusttestingafterallarentwe'
|
@@ -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]
|
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"
|
@@ -0,0 +1,47 @@
|
|
1
|
+
# Puma can serve each request in a thread from an internal thread pool.
|
2
|
+
# The `threads` method setting takes two numbers a minimum and maximum.
|
3
|
+
# Any libraries that use thread pools should be configured to match
|
4
|
+
# the maximum value specified for Puma. Default is set to 5 threads for minimum
|
5
|
+
# and maximum, this matches the default thread size of Active Record.
|
6
|
+
#
|
7
|
+
threads_count = ENV.fetch("RAILS_MAX_THREADS") { 5 }.to_i
|
8
|
+
threads threads_count, threads_count
|
9
|
+
|
10
|
+
# Specifies the `port` that Puma will listen on to receive requests, default is 3000.
|
11
|
+
#
|
12
|
+
port ENV.fetch("PORT") { 3000 }
|
13
|
+
|
14
|
+
# Specifies the `environment` that Puma will run in.
|
15
|
+
#
|
16
|
+
environment ENV.fetch("RAILS_ENV") { "development" }
|
17
|
+
|
18
|
+
# Specifies the number of `workers` to boot in clustered mode.
|
19
|
+
# Workers are forked webserver processes. If using threads and workers together
|
20
|
+
# the concurrency of the application would be max `threads` * `workers`.
|
21
|
+
# Workers do not work on JRuby or Windows (both of which do not support
|
22
|
+
# processes).
|
23
|
+
#
|
24
|
+
# workers ENV.fetch("WEB_CONCURRENCY") { 2 }
|
25
|
+
|
26
|
+
# Use the `preload_app!` method when specifying a `workers` number.
|
27
|
+
# This directive tells Puma to first boot the application and load code
|
28
|
+
# before forking the application. This takes advantage of Copy On Write
|
29
|
+
# process behavior so workers use less memory. If you use this option
|
30
|
+
# you need to make sure to reconnect any threads in the `on_worker_boot`
|
31
|
+
# block.
|
32
|
+
#
|
33
|
+
# preload_app!
|
34
|
+
|
35
|
+
# The code in the `on_worker_boot` will be called if you are using
|
36
|
+
# clustered mode by specifying a number of `workers`. After each worker
|
37
|
+
# process is booted this block will be run, if you are using `preload_app!`
|
38
|
+
# option you will want to use this block to reconnect to any threads
|
39
|
+
# or connections that may have been created at application boot, Ruby
|
40
|
+
# cannot share connections between processes.
|
41
|
+
#
|
42
|
+
# on_worker_boot do
|
43
|
+
# ActiveRecord::Base.establish_connection if defined?(ActiveRecord)
|
44
|
+
# end
|
45
|
+
|
46
|
+
# Allow puma to be restarted by `rails restart` command.
|
47
|
+
plugin :tmp_restart
|
@@ -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 `rails 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: aa0149c3e0f7d05116280fbd1c6bb6bac422024b1c46e859041316bf3cc0ae6db5e8807f3f30ed952ac0078fd824e085279f2cadd80ccfbc51feb54f902eab2e
|
15
|
+
|
16
|
+
test:
|
17
|
+
secret_key_base: ced0b68b3cfc4a63eae88c5be56f17e30b1ebd3b08ba61938764ad92f5a209c26c1abbb1fad59421b8c4de74f332c684ded1b3d968dea9e89696a7f483e3f3fe
|
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"] %>
|
File without changes
|
@@ -0,0 +1,100 @@
|
|
1
|
+
require_relative '../helper'
|
2
|
+
|
3
|
+
def simple_container(text)
|
4
|
+
<<-HTML
|
5
|
+
<!DOCTYPE html>
|
6
|
+
<html><body>
|
7
|
+
<table class="container" align="center">
|
8
|
+
<tbody><tr><td>
|
9
|
+
#{text}
|
10
|
+
</td></tr></tbody>
|
11
|
+
</table>
|
12
|
+
</body></html>
|
13
|
+
HTML
|
14
|
+
end
|
15
|
+
|
16
|
+
describe 'Rails', type: :feature do
|
17
|
+
it 'will convert .inky views' do
|
18
|
+
visit "/inky/simple"
|
19
|
+
|
20
|
+
expect_same_html page.html, simple_container('Simplistic example')
|
21
|
+
end
|
22
|
+
|
23
|
+
it "won't convert non .inky view" do
|
24
|
+
visit "/inky/non_inky"
|
25
|
+
|
26
|
+
expect_same_html page.html, <<-HTML
|
27
|
+
<!DOCTYPE html>
|
28
|
+
<html><body>
|
29
|
+
<container/>
|
30
|
+
</body></html>
|
31
|
+
HTML
|
32
|
+
end
|
33
|
+
|
34
|
+
it "works for a partial convert non .inky view" do
|
35
|
+
visit "/inky/non_inky?partial=inky_partial"
|
36
|
+
|
37
|
+
expect_same_html page.html, <<-HTML
|
38
|
+
<!DOCTYPE html>
|
39
|
+
<html><body>
|
40
|
+
<container>
|
41
|
+
<table class="button"><tr><td>
|
42
|
+
<table><tr><td><a href="bar">Click me</a></td></tr></table>
|
43
|
+
</td></tr></table>
|
44
|
+
</container>
|
45
|
+
</body></html>
|
46
|
+
HTML
|
47
|
+
end
|
48
|
+
|
49
|
+
it "works for an .inky layout" do
|
50
|
+
visit "/inky/layout"
|
51
|
+
|
52
|
+
expect_same_html page.html, <<-HTML
|
53
|
+
<!DOCTYPE html>
|
54
|
+
<html>
|
55
|
+
<head>
|
56
|
+
<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII">
|
57
|
+
<title>inky : layout</title>
|
58
|
+
</head>
|
59
|
+
<body>
|
60
|
+
<table class="container" align="center">
|
61
|
+
<tbody><tr><td>
|
62
|
+
Using inky layout
|
63
|
+
</td></tr></tbody>
|
64
|
+
</table>
|
65
|
+
</body>
|
66
|
+
</html>
|
67
|
+
HTML
|
68
|
+
end
|
69
|
+
|
70
|
+
context "when configured to use a different template engine" do
|
71
|
+
around do |spec|
|
72
|
+
Inky.configure do |config|
|
73
|
+
old = config.template_engine
|
74
|
+
config.template_engine = :slim
|
75
|
+
spec.run
|
76
|
+
config.template_engine = old
|
77
|
+
end
|
78
|
+
end
|
79
|
+
|
80
|
+
it "works for an slim .inky layout" do
|
81
|
+
visit "/inky/slim"
|
82
|
+
|
83
|
+
expect_same_html page.html, simple_container('Slim example')
|
84
|
+
end
|
85
|
+
end
|
86
|
+
|
87
|
+
context "for an extension 'inky-<handler>'" do
|
88
|
+
it "works when `handler` is registered after inky (like slim)" do
|
89
|
+
visit "/inky/explicit_slim"
|
90
|
+
|
91
|
+
expect_same_html page.html, simple_container('Explicit slim example')
|
92
|
+
end
|
93
|
+
|
94
|
+
it "works when `handler` is registered after inky (like builder)" do
|
95
|
+
visit "/inky/explicit_builder"
|
96
|
+
|
97
|
+
expect_same_html page.html, simple_container('Built with builder')
|
98
|
+
end
|
99
|
+
end
|
100
|
+
end
|
@@ -0,0 +1,14 @@
|
|
1
|
+
# Configure Rails Envinronment
|
2
|
+
ENV["RAILS_ENV"] = "test"
|
3
|
+
|
4
|
+
require_relative "../config/environment.rb"
|
5
|
+
require 'capybara/rspec'
|
6
|
+
require 'capybara/rails'
|
7
|
+
require_relative '../../spec_helper.rb'
|
8
|
+
require 'slim'
|
9
|
+
|
10
|
+
Rails.backtrace_cleaner.remove_silencers!
|
11
|
+
RSpec.configure do |config|
|
12
|
+
config.expect_with(:rspec) { |c| c.syntax = [:should, :expect] }
|
13
|
+
# config.infer_spec_type_from_file_location!
|
14
|
+
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: inky-rb
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.3.7.
|
4
|
+
version: 1.3.7.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- ZURB
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-10-
|
11
|
+
date: 2016-10-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: foundation_emails
|
@@ -67,7 +67,7 @@ dependencies:
|
|
67
67
|
- !ruby/object:Gem::Version
|
68
68
|
version: '0'
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
|
-
name:
|
70
|
+
name: rubocop
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
72
72
|
requirements:
|
73
73
|
- - ">="
|
@@ -81,7 +81,49 @@ dependencies:
|
|
81
81
|
- !ruby/object:Gem::Version
|
82
82
|
version: '0'
|
83
83
|
- !ruby/object:Gem::Dependency
|
84
|
-
name:
|
84
|
+
name: rspec-rails
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - ">="
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: '0'
|
90
|
+
type: :development
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - ">="
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: '0'
|
97
|
+
- !ruby/object:Gem::Dependency
|
98
|
+
name: capybara
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
100
|
+
requirements:
|
101
|
+
- - ">="
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: '0'
|
104
|
+
type: :development
|
105
|
+
prerelease: false
|
106
|
+
version_requirements: !ruby/object:Gem::Requirement
|
107
|
+
requirements:
|
108
|
+
- - ">="
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: '0'
|
111
|
+
- !ruby/object:Gem::Dependency
|
112
|
+
name: rails
|
113
|
+
requirement: !ruby/object:Gem::Requirement
|
114
|
+
requirements:
|
115
|
+
- - ">="
|
116
|
+
- !ruby/object:Gem::Version
|
117
|
+
version: '0'
|
118
|
+
type: :development
|
119
|
+
prerelease: false
|
120
|
+
version_requirements: !ruby/object:Gem::Requirement
|
121
|
+
requirements:
|
122
|
+
- - ">="
|
123
|
+
- !ruby/object:Gem::Version
|
124
|
+
version: '0'
|
125
|
+
- !ruby/object:Gem::Dependency
|
126
|
+
name: slim
|
85
127
|
requirement: !ruby/object:Gem::Requirement
|
86
128
|
requirements:
|
87
129
|
- - ">="
|
@@ -114,14 +156,46 @@ files:
|
|
114
156
|
- gemfiles/rails_4.gemfile
|
115
157
|
- gemfiles/rails_5.gemfile
|
116
158
|
- inky.gemspec
|
117
|
-
- lib/component_factory.rb
|
118
159
|
- lib/generators/inky/install_generator.rb
|
119
160
|
- lib/generators/inky/templates/foundation_emails.scss
|
120
161
|
- lib/generators/inky/templates/mailer_layout.html.erb
|
162
|
+
- lib/generators/inky/templates/mailer_layout.html.haml
|
163
|
+
- lib/generators/inky/templates/mailer_layout.html.slim
|
121
164
|
- lib/inky.rb
|
165
|
+
- lib/inky/component_factory.rb
|
166
|
+
- lib/inky/configuration.rb
|
122
167
|
- lib/inky/rails/engine.rb
|
123
168
|
- lib/inky/rails/template_handler.rb
|
124
169
|
- lib/inky/rails/version.rb
|
170
|
+
- spec/_cases_output/button/no_link.inky
|
171
|
+
- spec/_cases_output/button/with_expand_class.inky
|
172
|
+
- spec/_cases_output/button/with_image.inky
|
173
|
+
- spec/_cases_output/button/with_link.inky
|
174
|
+
- spec/_cases_output/button/with_tricky_class.inky
|
175
|
+
- spec/_cases_output/callout/basic.inky
|
176
|
+
- spec/_cases_output/callout/with_attributes.inky
|
177
|
+
- spec/_cases_output/general/empty_attributes.inky
|
178
|
+
- spec/_cases_output/general/multiple_root.inky
|
179
|
+
- spec/_cases_output/general/no_tag.inky
|
180
|
+
- spec/_cases_output/general/root_within_text.inky
|
181
|
+
- spec/_cases_output/general/void_html_elements.inky
|
182
|
+
- spec/_cases_output/grid/columns.inky
|
183
|
+
- spec/_cases_output/grid/container.inky
|
184
|
+
- spec/_cases_output/grid/container_with_align.inky
|
185
|
+
- spec/_cases_output/grid/row.inky
|
186
|
+
- spec/_cases_output/grid/row_with_columns.inky
|
187
|
+
- spec/_cases_output/menu/item.inky
|
188
|
+
- spec/_cases_output/menu/menu.inky
|
189
|
+
- spec/_cases_output/menu/menu_with_align.inky
|
190
|
+
- spec/_cases_output/menu/menu_with_items.inky
|
191
|
+
- spec/_cases_output/spacer/basic.inky
|
192
|
+
- spec/_cases_output/spacer/with_size.inky
|
193
|
+
- spec/_cases_output/spacer/with_size_lg.inky
|
194
|
+
- spec/_cases_output/spacer/with_size_sm.inky
|
195
|
+
- spec/_cases_output/spacer/with_size_sm_and_lg.inky
|
196
|
+
- spec/_cases_output/wrapper/basic.inky
|
197
|
+
- spec/_cases_output/wrapper/with_align.inky
|
198
|
+
- spec/_cases_output/wrapper/with_attributes.inky
|
125
199
|
- spec/cases/button/no_link.inky
|
126
200
|
- spec/cases/button/with_expand_class.inky
|
127
201
|
- spec/cases/button/with_image.inky
|
@@ -152,8 +226,53 @@ files:
|
|
152
226
|
- spec/cases/wrapper/with_attributes.inky
|
153
227
|
- spec/cases_spec.rb
|
154
228
|
- spec/components_spec.rb
|
229
|
+
- spec/configuration_spec.rb
|
155
230
|
- spec/grid_spec.rb
|
231
|
+
- spec/inky_spec.rb
|
156
232
|
- spec/spec_helper.rb
|
233
|
+
- spec/test_app/Rakefile
|
234
|
+
- spec/test_app/app/controllers/application_controller.rb
|
235
|
+
- spec/test_app/app/controllers/inky_controller.rb
|
236
|
+
- spec/test_app/app/helpers/application_helper.rb
|
237
|
+
- spec/test_app/app/mailers/application_mailer.rb
|
238
|
+
- spec/test_app/app/views/inky/_inky_partial.html.inky
|
239
|
+
- spec/test_app/app/views/inky/explicit_builder.html.inky-builder
|
240
|
+
- spec/test_app/app/views/inky/explicit_slim.html.inky-slim
|
241
|
+
- spec/test_app/app/views/inky/layout.html.erb
|
242
|
+
- spec/test_app/app/views/inky/non_inky.html.erb
|
243
|
+
- spec/test_app/app/views/inky/simple.html.inky
|
244
|
+
- spec/test_app/app/views/inky/slim.html.inky
|
245
|
+
- spec/test_app/app/views/layouts/application.html.erb
|
246
|
+
- spec/test_app/app/views/layouts/inky_layout.html.inky
|
247
|
+
- spec/test_app/config.ru
|
248
|
+
- spec/test_app/config/application.rb
|
249
|
+
- spec/test_app/config/boot.rb
|
250
|
+
- spec/test_app/config/cable.yml
|
251
|
+
- spec/test_app/config/database.yml
|
252
|
+
- spec/test_app/config/environment.rb
|
253
|
+
- spec/test_app/config/environments/development.rb
|
254
|
+
- spec/test_app/config/environments/production.rb
|
255
|
+
- spec/test_app/config/environments/test.rb
|
256
|
+
- spec/test_app/config/initializers/application_controller_renderer.rb
|
257
|
+
- spec/test_app/config/initializers/assets.rb
|
258
|
+
- spec/test_app/config/initializers/backtrace_silencers.rb
|
259
|
+
- spec/test_app/config/initializers/cookies_serializer.rb
|
260
|
+
- spec/test_app/config/initializers/filter_parameter_logging.rb
|
261
|
+
- spec/test_app/config/initializers/inflections.rb
|
262
|
+
- spec/test_app/config/initializers/mime_types.rb
|
263
|
+
- spec/test_app/config/initializers/new_framework_defaults.rb
|
264
|
+
- spec/test_app/config/initializers/secret_token.rb
|
265
|
+
- spec/test_app/config/initializers/session_store.rb
|
266
|
+
- spec/test_app/config/initializers/wrap_parameters.rb
|
267
|
+
- spec/test_app/config/locales/en.yml
|
268
|
+
- spec/test_app/config/puma.rb
|
269
|
+
- spec/test_app/config/routes.rb
|
270
|
+
- spec/test_app/config/secrets.yml
|
271
|
+
- spec/test_app/config/spring.rb
|
272
|
+
- spec/test_app/log/.keep
|
273
|
+
- spec/test_app/log/test.log
|
274
|
+
- spec/test_app/spec/features/inky_spec.rb
|
275
|
+
- spec/test_app/spec/helper.rb
|
157
276
|
homepage: https://github.com/zurb/inky-rb
|
158
277
|
licenses: []
|
159
278
|
metadata: {}
|
@@ -180,6 +299,35 @@ summary: Inky is an HTML-based templating language that converts simple HTML int
|
|
180
299
|
complex, responsive email-ready HTML. Designed for Foundation for Emails, a responsive
|
181
300
|
email framework from ZURB.
|
182
301
|
test_files:
|
302
|
+
- spec/_cases_output/button/no_link.inky
|
303
|
+
- spec/_cases_output/button/with_expand_class.inky
|
304
|
+
- spec/_cases_output/button/with_image.inky
|
305
|
+
- spec/_cases_output/button/with_link.inky
|
306
|
+
- spec/_cases_output/button/with_tricky_class.inky
|
307
|
+
- spec/_cases_output/callout/basic.inky
|
308
|
+
- spec/_cases_output/callout/with_attributes.inky
|
309
|
+
- spec/_cases_output/general/empty_attributes.inky
|
310
|
+
- spec/_cases_output/general/multiple_root.inky
|
311
|
+
- spec/_cases_output/general/no_tag.inky
|
312
|
+
- spec/_cases_output/general/root_within_text.inky
|
313
|
+
- spec/_cases_output/general/void_html_elements.inky
|
314
|
+
- spec/_cases_output/grid/columns.inky
|
315
|
+
- spec/_cases_output/grid/container.inky
|
316
|
+
- spec/_cases_output/grid/container_with_align.inky
|
317
|
+
- spec/_cases_output/grid/row.inky
|
318
|
+
- spec/_cases_output/grid/row_with_columns.inky
|
319
|
+
- spec/_cases_output/menu/item.inky
|
320
|
+
- spec/_cases_output/menu/menu.inky
|
321
|
+
- spec/_cases_output/menu/menu_with_align.inky
|
322
|
+
- spec/_cases_output/menu/menu_with_items.inky
|
323
|
+
- spec/_cases_output/spacer/basic.inky
|
324
|
+
- spec/_cases_output/spacer/with_size.inky
|
325
|
+
- spec/_cases_output/spacer/with_size_lg.inky
|
326
|
+
- spec/_cases_output/spacer/with_size_sm.inky
|
327
|
+
- spec/_cases_output/spacer/with_size_sm_and_lg.inky
|
328
|
+
- spec/_cases_output/wrapper/basic.inky
|
329
|
+
- spec/_cases_output/wrapper/with_align.inky
|
330
|
+
- spec/_cases_output/wrapper/with_attributes.inky
|
183
331
|
- spec/cases/button/no_link.inky
|
184
332
|
- spec/cases/button/with_expand_class.inky
|
185
333
|
- spec/cases/button/with_image.inky
|
@@ -210,5 +358,49 @@ test_files:
|
|
210
358
|
- spec/cases/wrapper/with_attributes.inky
|
211
359
|
- spec/cases_spec.rb
|
212
360
|
- spec/components_spec.rb
|
361
|
+
- spec/configuration_spec.rb
|
213
362
|
- spec/grid_spec.rb
|
363
|
+
- spec/inky_spec.rb
|
214
364
|
- spec/spec_helper.rb
|
365
|
+
- spec/test_app/app/controllers/application_controller.rb
|
366
|
+
- spec/test_app/app/controllers/inky_controller.rb
|
367
|
+
- spec/test_app/app/helpers/application_helper.rb
|
368
|
+
- spec/test_app/app/mailers/application_mailer.rb
|
369
|
+
- spec/test_app/app/views/inky/_inky_partial.html.inky
|
370
|
+
- spec/test_app/app/views/inky/explicit_builder.html.inky-builder
|
371
|
+
- spec/test_app/app/views/inky/explicit_slim.html.inky-slim
|
372
|
+
- spec/test_app/app/views/inky/layout.html.erb
|
373
|
+
- spec/test_app/app/views/inky/non_inky.html.erb
|
374
|
+
- spec/test_app/app/views/inky/simple.html.inky
|
375
|
+
- spec/test_app/app/views/inky/slim.html.inky
|
376
|
+
- spec/test_app/app/views/layouts/application.html.erb
|
377
|
+
- spec/test_app/app/views/layouts/inky_layout.html.inky
|
378
|
+
- spec/test_app/config/application.rb
|
379
|
+
- spec/test_app/config/boot.rb
|
380
|
+
- spec/test_app/config/cable.yml
|
381
|
+
- spec/test_app/config/database.yml
|
382
|
+
- spec/test_app/config/environment.rb
|
383
|
+
- spec/test_app/config/environments/development.rb
|
384
|
+
- spec/test_app/config/environments/production.rb
|
385
|
+
- spec/test_app/config/environments/test.rb
|
386
|
+
- spec/test_app/config/initializers/application_controller_renderer.rb
|
387
|
+
- spec/test_app/config/initializers/assets.rb
|
388
|
+
- spec/test_app/config/initializers/backtrace_silencers.rb
|
389
|
+
- spec/test_app/config/initializers/cookies_serializer.rb
|
390
|
+
- spec/test_app/config/initializers/filter_parameter_logging.rb
|
391
|
+
- spec/test_app/config/initializers/inflections.rb
|
392
|
+
- spec/test_app/config/initializers/mime_types.rb
|
393
|
+
- spec/test_app/config/initializers/new_framework_defaults.rb
|
394
|
+
- spec/test_app/config/initializers/secret_token.rb
|
395
|
+
- spec/test_app/config/initializers/session_store.rb
|
396
|
+
- spec/test_app/config/initializers/wrap_parameters.rb
|
397
|
+
- spec/test_app/config/locales/en.yml
|
398
|
+
- spec/test_app/config/puma.rb
|
399
|
+
- spec/test_app/config/routes.rb
|
400
|
+
- spec/test_app/config/secrets.yml
|
401
|
+
- spec/test_app/config/spring.rb
|
402
|
+
- spec/test_app/config.ru
|
403
|
+
- spec/test_app/log/test.log
|
404
|
+
- spec/test_app/Rakefile
|
405
|
+
- spec/test_app/spec/features/inky_spec.rb
|
406
|
+
- spec/test_app/spec/helper.rb
|