faml 0.7.3 → 0.8.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (102) hide show
  1. checksums.yaml +4 -4
  2. data/.travis.yml +1 -3
  3. data/CHANGELOG.md +3 -0
  4. data/benchmark/compiling.rb +1 -1
  5. data/benchmark/context.rb +1 -1
  6. data/benchmark/rendering.rb +1 -1
  7. data/benchmark/slim.rb +1 -1
  8. data/ext/attribute_builder/attribute_builder.cc +1 -5
  9. data/ext/attribute_builder/extconf.rb +1 -1
  10. data/faml.gemspec +1 -1
  11. data/haml_spec_test.rb +1 -1
  12. data/lib/faml.rb +1 -1
  13. data/lib/faml/attribute_compiler.rb +1 -1
  14. data/lib/faml/attribute_optimizer.rb +1 -1
  15. data/lib/faml/cli.rb +1 -1
  16. data/lib/faml/compiler.rb +1 -1
  17. data/lib/faml/engine.rb +1 -1
  18. data/lib/faml/error.rb +1 -1
  19. data/lib/faml/filter_compilers.rb +1 -1
  20. data/lib/faml/filter_compilers/base.rb +1 -1
  21. data/lib/faml/filter_compilers/cdata.rb +1 -1
  22. data/lib/faml/filter_compilers/coffee.rb +1 -1
  23. data/lib/faml/filter_compilers/css.rb +1 -1
  24. data/lib/faml/filter_compilers/escaped.rb +1 -1
  25. data/lib/faml/filter_compilers/javascript.rb +1 -1
  26. data/lib/faml/filter_compilers/markdown.rb +1 -1
  27. data/lib/faml/filter_compilers/plain.rb +1 -1
  28. data/lib/faml/filter_compilers/preserve.rb +1 -1
  29. data/lib/faml/filter_compilers/ruby.rb +1 -1
  30. data/lib/faml/filter_compilers/sass.rb +1 -1
  31. data/lib/faml/filter_compilers/scss.rb +1 -1
  32. data/lib/faml/filter_compilers/tilt_base.rb +1 -1
  33. data/lib/faml/helpers.rb +1 -1
  34. data/lib/faml/html.rb +1 -1
  35. data/lib/faml/newline.rb +1 -1
  36. data/lib/faml/object_ref.rb +1 -1
  37. data/lib/faml/rails_handler.rb +1 -1
  38. data/lib/faml/rails_helpers.rb +1 -1
  39. data/lib/faml/railtie.rb +1 -1
  40. data/lib/faml/ruby_syntax_checker.rb +1 -1
  41. data/lib/faml/script_end.rb +1 -1
  42. data/lib/faml/static_hash_parser.rb +1 -1
  43. data/lib/faml/stats.rb +1 -1
  44. data/lib/faml/text_compiler.rb +1 -1
  45. data/lib/faml/tilt.rb +1 -1
  46. data/lib/faml/version.rb +2 -2
  47. data/spec/compiler_newline_spec.rb +1 -1
  48. data/spec/rails/app/controllers/application_controller.rb +1 -1
  49. data/spec/rails/app/controllers/books_controller.rb +1 -1
  50. data/spec/rails/app/helpers/application_helper.rb +1 -1
  51. data/spec/rails/app/models/book.rb +1 -1
  52. data/spec/rails/config/application.rb +1 -1
  53. data/spec/rails/config/boot.rb +1 -1
  54. data/spec/rails/config/environment.rb +1 -1
  55. data/spec/rails/config/environments/development.rb +1 -1
  56. data/spec/rails/config/environments/production.rb +1 -1
  57. data/spec/rails/config/environments/test.rb +1 -1
  58. data/spec/rails/config/initializers/assets.rb +1 -1
  59. data/spec/rails/config/initializers/backtrace_silencers.rb +1 -1
  60. data/spec/rails/config/initializers/cookies_serializer.rb +1 -1
  61. data/spec/rails/config/initializers/filter_parameter_logging.rb +1 -1
  62. data/spec/rails/config/initializers/inflections.rb +1 -1
  63. data/spec/rails/config/initializers/mime_types.rb +1 -1
  64. data/spec/rails/config/initializers/secret_key_base.rb +1 -1
  65. data/spec/rails/config/initializers/session_store.rb +1 -1
  66. data/spec/rails/config/initializers/wrap_parameters.rb +1 -1
  67. data/spec/rails/config/routes.rb +1 -1
  68. data/spec/rails/db/seeds.rb +1 -1
  69. data/spec/rails/spec/requests/faml_spec.rb +1 -1
  70. data/spec/rails_helper.rb +1 -1
  71. data/spec/render/array_attribute_spec.rb +1 -1
  72. data/spec/render/attribute_spec.rb +1 -1
  73. data/spec/render/comment_spec.rb +1 -1
  74. data/spec/render/doctype_spec.rb +1 -1
  75. data/spec/render/element_spec.rb +1 -1
  76. data/spec/render/filters/cdata_spec.rb +1 -1
  77. data/spec/render/filters/coffee_spec.rb +1 -1
  78. data/spec/render/filters/css_spec.rb +1 -1
  79. data/spec/render/filters/escaped_spec.rb +1 -1
  80. data/spec/render/filters/javascript_spec.rb +1 -1
  81. data/spec/render/filters/markdown_spec.rb +1 -1
  82. data/spec/render/filters/plain_spec.rb +1 -1
  83. data/spec/render/filters/preserve_spec.rb +1 -1
  84. data/spec/render/filters/ruby_spec.rb +1 -1
  85. data/spec/render/filters/sass_spec.rb +1 -1
  86. data/spec/render/filters/scss_spec.rb +1 -1
  87. data/spec/render/filters_spec.rb +1 -1
  88. data/spec/render/haml_comment_spec.rb +1 -1
  89. data/spec/render/hash_attribute_spec.rb +1 -1
  90. data/spec/render/helpers_spec.rb +1 -1
  91. data/spec/render/multiline_spec.rb +1 -1
  92. data/spec/render/newline_spec.rb +1 -1
  93. data/spec/render/plain_spec.rb +1 -1
  94. data/spec/render/preserve_spec.rb +1 -1
  95. data/spec/render/sanitize_spec.rb +1 -1
  96. data/spec/render/script_spec.rb +1 -1
  97. data/spec/render/silent_script_spec.rb +1 -1
  98. data/spec/render/unescape_spec.rb +1 -1
  99. data/spec/spec_helper.rb +1 -1
  100. data/spec/support/incompatibilities_generator.rb +1 -1
  101. data/spec/tilt_spec.rb +1 -1
  102. metadata +3 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5c1985c1c33828570eb9a4e6ce654e873d2c14d2
4
- data.tar.gz: ff0d4c7edf3e8d35afaafc6724d4ae1d93e1a252
3
+ metadata.gz: edfe97f1920b0da9005f0e09220d9f3d393745ca
4
+ data.tar.gz: 5dce79fe5a3e5c7b5e68a42d6e672fc05421c6ff
5
5
  SHA512:
6
- metadata.gz: a1d921fc14f34d6f885d4d0d6d13d82a8a6713274dc93d534b0ba5853d95019f486e569c3c23dd0cd56db991c4ce1cd3375ca30538ac7562caa89d50a4396a0a
7
- data.tar.gz: ce97e6f0f4f989fa04d754b0635dc2852cfa538b73df19fb737bfa076c21ec42297c6b6f1bcbbbc71ddcdd95b593fb143c4d8b04cd22494c115a64d1f5ee6900
6
+ metadata.gz: 1ceaa306c2e15b603aecb0d47d191705d14602025d1f5601f08c10361a59f0ba67b404dce3ff00346d2263aa845cfbabfcccaf45f74d65a7eca52229ac829031
7
+ data.tar.gz: d119b8acd2a51a1a7f68deeb9afbf2ff1428d890fd8fde036cb5f0b52e52117b11eb27df8245ff9c1913bfc5bf7c7601835a92d04cf1a7450682ff4e107860e1
data/.travis.yml CHANGED
@@ -1,9 +1,9 @@
1
1
  language: ruby
2
2
  sudo: false
3
3
  rvm:
4
- - 2.0.0
5
4
  - 2.1
6
5
  - 2.2
6
+ - 2.3.0
7
7
  - ruby-head
8
8
  gemfile:
9
9
  - gemfiles/rails_4.0.gemfile
@@ -23,7 +23,5 @@ matrix:
23
23
  - gemfile: gemfiles/rails_edge.gemfile
24
24
  exclude:
25
25
  # Rails 5 requires to run on Ruby 2.2.0 or newer.
26
- - rvm: 2.0.0
27
- gemfile: gemfiles/rails_edge.gemfile
28
26
  - rvm: 2.1
29
27
  gemfile: gemfiles/rails_edge.gemfile
data/CHANGELOG.md CHANGED
@@ -1,3 +1,6 @@
1
+ ## 0.8.0 (2016-01-22)
2
+ - Drop Ruby 2.0.0 support
3
+
1
4
  ## 0.7.3 (2016-01-22)
2
5
  - Fix build error when `$CXXFLAGS` is unavailable
3
6
  - Fix StaticHashParser for parser 2.3.0.0
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env ruby
2
- # frozen-string-literal: true
2
+ # frozen_string_literal: true
3
3
  require 'benchmark/ips'
4
4
  require 'haml'
5
5
  require 'faml'
data/benchmark/context.rb CHANGED
@@ -1,4 +1,4 @@
1
- # frozen-string-literal: true
1
+ # frozen_string_literal: true
2
2
  class Context
3
3
  def header
4
4
  'Colors'
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env ruby
2
- # frozen-string-literal: true
2
+ # frozen_string_literal: true
3
3
  require 'benchmark/ips'
4
4
  require 'haml'
5
5
  require 'faml'
data/benchmark/slim.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env ruby
2
- # frozen-string-literal: true
2
+ # frozen_string_literal: true
3
3
  require 'benchmark/ips'
4
4
  require 'haml'
5
5
  require 'faml'
@@ -6,11 +6,7 @@
6
6
  #include <string>
7
7
  #include <vector>
8
8
 
9
- /* faml requires Ruby >= 2.0.0 */
10
- /* RARRAY_AREF() is available since Ruby 2.1 */
11
- #if RUBY_API_VERSION_MAJOR == 2 && RUBY_API_VERSION_MINOR < 1
12
- #define RARRAY_AREF(a, i) RARRAY_PTR(a)[i]
13
- #endif
9
+ /* faml requires Ruby >= 2.1 */
14
10
  /* rb_utf8_str_new() is available since Ruby 2.2 */
15
11
  #if RUBY_API_VERSION_MAJOR == 2 && RUBY_API_VERSION_MINOR < 2
16
12
  #include <ruby/encoding.h>
@@ -1,4 +1,4 @@
1
- # frozen-string-literal: true
1
+ # frozen_string_literal: true
2
2
  require 'mkmf'
3
3
 
4
4
  $CFLAGS << ' -Wall -W'
data/faml.gemspec CHANGED
@@ -18,7 +18,7 @@ Gem::Specification.new do |spec|
18
18
  spec.extensions = ['ext/attribute_builder/extconf.rb']
19
19
  spec.test_files = spec.files.grep(%r{^(test|spec|features|incompatibilities)/})
20
20
  spec.require_paths = ['lib']
21
- spec.required_ruby_version = '>= 2.0.0'
21
+ spec.required_ruby_version = '>= 2.1.0'
22
22
 
23
23
  spec.add_dependency 'escape_utils'
24
24
  spec.add_dependency 'haml_parser', '>= 0.4.0'
data/haml_spec_test.rb CHANGED
@@ -1,4 +1,4 @@
1
- # frozen-string-literal: true
1
+ # frozen_string_literal: true
2
2
  require 'minitest/autorun'
3
3
  require 'json'
4
4
  require 'faml'
data/lib/faml.rb CHANGED
@@ -1,4 +1,4 @@
1
- # frozen-string-literal: true
1
+ # frozen_string_literal: true
2
2
  require_relative 'faml/engine'
3
3
  require_relative 'faml/tilt'
4
4
  require_relative 'faml/version'
@@ -1,4 +1,4 @@
1
- # frozen-string-literal: true
1
+ # frozen_string_literal: true
2
2
  require_relative 'attribute_optimizer'
3
3
  require_relative 'object_ref'
4
4
 
@@ -1,4 +1,4 @@
1
- # frozen-string-literal: true
1
+ # frozen_string_literal: true
2
2
  require 'faml/attribute_builder'
3
3
  require_relative 'error'
4
4
  require_relative 'ruby_syntax_checker'
data/lib/faml/cli.rb CHANGED
@@ -1,4 +1,4 @@
1
- # frozen-string-literal: true
1
+ # frozen_string_literal: true
2
2
  require_relative '../faml'
3
3
  require 'thor'
4
4
 
data/lib/faml/compiler.rb CHANGED
@@ -1,4 +1,4 @@
1
- # frozen-string-literal: true
1
+ # frozen_string_literal: true
2
2
  require 'ripper'
3
3
  require 'temple'
4
4
  require 'haml_parser/ast'
data/lib/faml/engine.rb CHANGED
@@ -1,4 +1,4 @@
1
- # frozen-string-literal: true
1
+ # frozen_string_literal: true
2
2
  require 'haml_parser/parser'
3
3
  require 'temple'
4
4
  require_relative 'compiler'
data/lib/faml/error.rb CHANGED
@@ -1,4 +1,4 @@
1
- # frozen-string-literal: true
1
+ # frozen_string_literal: true
2
2
  module Faml
3
3
  class Error < StandardError
4
4
  attr_accessor :lineno
@@ -1,4 +1,4 @@
1
- # frozen-string-literal: true
1
+ # frozen_string_literal: true
2
2
  require_relative 'error'
3
3
 
4
4
  module Faml
@@ -1,4 +1,4 @@
1
- # frozen-string-literal: true
1
+ # frozen_string_literal: true
2
2
  require_relative '../text_compiler'
3
3
 
4
4
  module Faml
@@ -1,4 +1,4 @@
1
- # frozen-string-literal: true
1
+ # frozen_string_literal: true
2
2
  require_relative 'base'
3
3
 
4
4
  module Faml
@@ -1,4 +1,4 @@
1
- # frozen-string-literal: true
1
+ # frozen_string_literal: true
2
2
  require_relative 'tilt_base'
3
3
 
4
4
  module Faml
@@ -1,4 +1,4 @@
1
- # frozen-string-literal: true
1
+ # frozen_string_literal: true
2
2
  require_relative 'base'
3
3
 
4
4
  module Faml
@@ -1,4 +1,4 @@
1
- # frozen-string-literal: true
1
+ # frozen_string_literal: true
2
2
  require_relative 'base'
3
3
 
4
4
  module Faml
@@ -1,4 +1,4 @@
1
- # frozen-string-literal: true
1
+ # frozen_string_literal: true
2
2
  require_relative 'base'
3
3
 
4
4
  module Faml
@@ -1,4 +1,4 @@
1
- # frozen-string-literal: true
1
+ # frozen_string_literal: true
2
2
  require_relative 'tilt_base'
3
3
 
4
4
  module Faml
@@ -1,4 +1,4 @@
1
- # frozen-string-literal: true
1
+ # frozen_string_literal: true
2
2
  require_relative 'base'
3
3
 
4
4
  module Faml
@@ -1,4 +1,4 @@
1
- # frozen-string-literal: true
1
+ # frozen_string_literal: true
2
2
  require_relative 'base'
3
3
 
4
4
  module Faml
@@ -1,4 +1,4 @@
1
- # frozen-string-literal: true
1
+ # frozen_string_literal: true
2
2
  require_relative 'base'
3
3
 
4
4
  module Faml
@@ -1,4 +1,4 @@
1
- # frozen-string-literal: true
1
+ # frozen_string_literal: true
2
2
  require_relative 'tilt_base'
3
3
 
4
4
  module Faml
@@ -1,4 +1,4 @@
1
- # frozen-string-literal: true
1
+ # frozen_string_literal: true
2
2
  require_relative 'tilt_base'
3
3
 
4
4
  module Faml
@@ -1,4 +1,4 @@
1
- # frozen-string-literal: true
1
+ # frozen_string_literal: true
2
2
  require 'temple'
3
3
  require 'tilt'
4
4
  require_relative 'base'
data/lib/faml/helpers.rb CHANGED
@@ -1,4 +1,4 @@
1
- # frozen-string-literal: true
1
+ # frozen_string_literal: true
2
2
  module Faml
3
3
  # Don't use these methods!
4
4
 
data/lib/faml/html.rb CHANGED
@@ -1,4 +1,4 @@
1
- # frozen-string-literal: true
1
+ # frozen_string_literal: true
2
2
  require 'faml/attribute_builder'
3
3
 
4
4
  module Faml
data/lib/faml/newline.rb CHANGED
@@ -1,4 +1,4 @@
1
- # frozen-string-literal: true
1
+ # frozen_string_literal: true
2
2
  require 'temple'
3
3
 
4
4
  module Faml
@@ -1,4 +1,4 @@
1
- # frozen-string-literal: true
1
+ # frozen_string_literal: true
2
2
  module Faml
3
3
  module ObjectRef
4
4
  class << self
@@ -1,4 +1,4 @@
1
- # frozen-string-literal: true
1
+ # frozen_string_literal: true
2
2
  module Faml
3
3
  class RailsHandler
4
4
  def call(template)
@@ -1,4 +1,4 @@
1
- # frozen-string-literal: true
1
+ # frozen_string_literal: true
2
2
  require_relative 'helpers'
3
3
 
4
4
  module Faml
data/lib/faml/railtie.rb CHANGED
@@ -1,4 +1,4 @@
1
- # frozen-string-literal: true
1
+ # frozen_string_literal: true
2
2
  module Faml
3
3
  class Railtie < ::Rails::Railtie
4
4
  initializer :faml do
@@ -1,4 +1,4 @@
1
- # frozen-string-literal: true
1
+ # frozen_string_literal: true
2
2
  require 'ripper'
3
3
 
4
4
  module Faml
@@ -1,4 +1,4 @@
1
- # frozen-string-literal: true
1
+ # frozen_string_literal: true
2
2
  require 'temple'
3
3
 
4
4
  module Faml
@@ -1,4 +1,4 @@
1
- # frozen-string-literal: true
1
+ # frozen_string_literal: true
2
2
  require 'parser/current'
3
3
 
4
4
  module Faml
data/lib/faml/stats.rb CHANGED
@@ -1,4 +1,4 @@
1
- # frozen-string-literal: true
1
+ # frozen_string_literal: true
2
2
  require 'find'
3
3
  require 'pathname'
4
4
  require 'haml_parser/parser'
@@ -1,4 +1,4 @@
1
- # frozen-string-literal: true
1
+ # frozen_string_literal: true
2
2
  require 'haml_parser/utils'
3
3
  require 'strscan'
4
4
  require_relative 'error'
data/lib/faml/tilt.rb CHANGED
@@ -1,4 +1,4 @@
1
- # frozen-string-literal: true
1
+ # frozen_string_literal: true
2
2
  require 'tilt'
3
3
  # Load tilt/haml only when haml is available
4
4
  begin
data/lib/faml/version.rb CHANGED
@@ -1,4 +1,4 @@
1
- # frozen-string-literal: true
1
+ # frozen_string_literal: true
2
2
  module Faml
3
- VERSION = '0.7.3'.freeze
3
+ VERSION = '0.8.0'.freeze
4
4
  end
@@ -1,4 +1,4 @@
1
- # frozen-string-literal: true
1
+ # frozen_string_literal: true
2
2
  require 'spec_helper'
3
3
 
4
4
  class LineVerifier < StandardError
@@ -1,4 +1,4 @@
1
- # frozen-string-literal: true
1
+ # frozen_string_literal: true
2
2
  class ApplicationController < ActionController::Base
3
3
  # Prevent CSRF attacks by raising an exception.
4
4
  # For APIs, you may want to use :null_session instead.
@@ -1,4 +1,4 @@
1
- # frozen-string-literal: true
1
+ # frozen_string_literal: true
2
2
  class BooksController < ApplicationController
3
3
  def hello
4
4
  end
@@ -1,3 +1,3 @@
1
- # frozen-string-literal: true
1
+ # frozen_string_literal: true
2
2
  module ApplicationHelper
3
3
  end
@@ -1,4 +1,4 @@
1
- # frozen-string-literal: true
1
+ # frozen_string_literal: true
2
2
  class Book
3
3
  include ActiveModel::Model
4
4
 
@@ -1,4 +1,4 @@
1
- # frozen-string-literal: true
1
+ # frozen_string_literal: true
2
2
  require File.expand_path('../boot', __FILE__)
3
3
 
4
4
  require 'rails/all'
@@ -1,4 +1,4 @@
1
- # frozen-string-literal: true
1
+ # frozen_string_literal: true
2
2
  ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../Gemfile', __FILE__)
3
3
 
4
4
  require 'bundler/setup' # Set up gems listed in the Gemfile.
@@ -1,4 +1,4 @@
1
- # frozen-string-literal: true
1
+ # frozen_string_literal: true
2
2
  # Load the Rails application.
3
3
  require File.expand_path('../application', __FILE__)
4
4
 
@@ -1,4 +1,4 @@
1
- # frozen-string-literal: true
1
+ # frozen_string_literal: true
2
2
  Rails.application.configure do
3
3
  # Settings specified here will take precedence over those in config/application.rb.
4
4
 
@@ -1,4 +1,4 @@
1
- # frozen-string-literal: true
1
+ # frozen_string_literal: true
2
2
  Rails.application.configure do
3
3
  # Settings specified here will take precedence over those in config/application.rb.
4
4
 
@@ -1,4 +1,4 @@
1
- # frozen-string-literal: true
1
+ # frozen_string_literal: true
2
2
  TestApp::Application.configure do
3
3
  # Settings specified here will take precedence over those in config/application.rb.
4
4
 
@@ -1,4 +1,4 @@
1
- # frozen-string-literal: true
1
+ # frozen_string_literal: true
2
2
  # Be sure to restart your server when you modify this file.
3
3
 
4
4
  # Version of your assets, change this if you want to expire all your assets.
@@ -1,4 +1,4 @@
1
- # frozen-string-literal: true
1
+ # frozen_string_literal: true
2
2
  # Be sure to restart your server when you modify this file.
3
3
 
4
4
  # You can add backtrace silencers for libraries that you're using but don't wish to see in your backtraces.
@@ -1,4 +1,4 @@
1
- # frozen-string-literal: true
1
+ # frozen_string_literal: true
2
2
  # Be sure to restart your server when you modify this file.
3
3
 
4
4
  Rails.application.config.action_dispatch.cookies_serializer = :json
@@ -1,4 +1,4 @@
1
- # frozen-string-literal: true
1
+ # frozen_string_literal: true
2
2
  # Be sure to restart your server when you modify this file.
3
3
 
4
4
  # Configure sensitive parameters which will be filtered from the log file.
@@ -1,4 +1,4 @@
1
- # frozen-string-literal: true
1
+ # frozen_string_literal: true
2
2
  # Be sure to restart your server when you modify this file.
3
3
 
4
4
  # Add new inflection rules using the following format. Inflections
@@ -1,4 +1,4 @@
1
- # frozen-string-literal: true
1
+ # frozen_string_literal: true
2
2
  # Be sure to restart your server when you modify this file.
3
3
 
4
4
  # Add new mime types for use in respond_to blocks:
@@ -1,4 +1,4 @@
1
- # frozen-string-literal: true
1
+ # frozen_string_literal: true
2
2
  version = [Rails::VERSION::MAJOR, Rails::VERSION::MINOR]
3
3
  if version == [4, 0]
4
4
  TestApp::Application.configure do
@@ -1,4 +1,4 @@
1
- # frozen-string-literal: true
1
+ # frozen_string_literal: true
2
2
  # Be sure to restart your server when you modify this file.
3
3
 
4
4
  Rails.application.config.session_store :cookie_store, key: '_test_app_session'
@@ -1,4 +1,4 @@
1
- # frozen-string-literal: true
1
+ # frozen_string_literal: true
2
2
  # Be sure to restart your server when you modify this file.
3
3
 
4
4
  # This file contains settings for ActionController::ParamsWrapper which
@@ -1,4 +1,4 @@
1
- # frozen-string-literal: true
1
+ # frozen_string_literal: true
2
2
  Rails.application.routes.draw do
3
3
  namespace :books do
4
4
  get :hello
@@ -1,4 +1,4 @@
1
- # frozen-string-literal: true
1
+ # frozen_string_literal: true
2
2
  # This file should contain all the record creation needed to seed the database with its default values.
3
3
  # The data can then be loaded with the rake db:seed (or created alongside the db with db:setup).
4
4
  #
@@ -1,4 +1,4 @@
1
- # frozen-string-literal: true
1
+ # frozen_string_literal: true
2
2
  require 'rails_helper'
3
3
 
4
4
  RSpec.describe 'Faml with Rails', type: :request do
data/spec/rails_helper.rb CHANGED
@@ -1,4 +1,4 @@
1
- # frozen-string-literal: true
1
+ # frozen_string_literal: true
2
2
  ENV['RAILS_ENV'] ||= 'test'
3
3
  require 'spec_helper'
4
4
  require File.expand_path('../rails/config/environment', __FILE__)
@@ -1,4 +1,4 @@
1
- # frozen-string-literal: true
1
+ # frozen_string_literal: true
2
2
  require 'spec_helper'
3
3
 
4
4
  RSpec.describe 'Array attributes rendering', type: :render do
@@ -1,4 +1,4 @@
1
- # frozen-string-literal: true
1
+ # frozen_string_literal: true
2
2
  require 'spec_helper'
3
3
 
4
4
  RSpec.describe 'Attributes rendering', type: :render do
@@ -1,4 +1,4 @@
1
- # frozen-string-literal: true
1
+ # frozen_string_literal: true
2
2
  require 'spec_helper'
3
3
 
4
4
  RSpec.describe 'Comment rendering', type: :render do
@@ -1,4 +1,4 @@
1
- # frozen-string-literal: true
1
+ # frozen_string_literal: true
2
2
  require 'spec_helper'
3
3
 
4
4
  RSpec.describe 'Doctype rendering', type: :render do
@@ -1,4 +1,4 @@
1
- # frozen-string-literal: true
1
+ # frozen_string_literal: true
2
2
  require 'spec_helper'
3
3
 
4
4
  RSpec.describe 'Element rendering', type: :render do
@@ -1,4 +1,4 @@
1
- # frozen-string-literal: true
1
+ # frozen_string_literal: true
2
2
  require 'spec_helper'
3
3
 
4
4
  RSpec.describe 'CDATA filter rendering', type: :render do
@@ -1,4 +1,4 @@
1
- # frozen-string-literal: true
1
+ # frozen_string_literal: true
2
2
  require 'spec_helper'
3
3
 
4
4
  RSpec.describe 'CoffeeScript filter rendering', type: :render do
@@ -1,4 +1,4 @@
1
- # frozen-string-literal: true
1
+ # frozen_string_literal: true
2
2
  require 'spec_helper'
3
3
 
4
4
  RSpec.describe 'CSS filter rendering', type: :render do
@@ -1,4 +1,4 @@
1
- # frozen-string-literal: true
1
+ # frozen_string_literal: true
2
2
  require 'spec_helper'
3
3
 
4
4
  RSpec.describe 'Escaped filter rendering', type: :render do
@@ -1,4 +1,4 @@
1
- # frozen-string-literal: true
1
+ # frozen_string_literal: true
2
2
  require 'spec_helper'
3
3
 
4
4
  RSpec.describe 'JavaScript filter rendering', type: :render do
@@ -1,4 +1,4 @@
1
- # frozen-string-literal: true
1
+ # frozen_string_literal: true
2
2
  require 'spec_helper'
3
3
 
4
4
  RSpec.describe 'Markdown filter rendering', type: :render do
@@ -1,4 +1,4 @@
1
- # frozen-string-literal: true
1
+ # frozen_string_literal: true
2
2
  require 'spec_helper'
3
3
 
4
4
  RSpec.describe 'Plain filter rendering', type: :render do
@@ -1,4 +1,4 @@
1
- # frozen-string-literal: true
1
+ # frozen_string_literal: true
2
2
  require 'spec_helper'
3
3
 
4
4
  RSpec.describe 'Preserve filter rendering', type: :render do
@@ -1,4 +1,4 @@
1
- # frozen-string-literal: true
1
+ # frozen_string_literal: true
2
2
  require 'spec_helper'
3
3
 
4
4
  RSpec.describe 'Ruby filter rendering', type: :render do
@@ -1,4 +1,4 @@
1
- # frozen-string-literal: true
1
+ # frozen_string_literal: true
2
2
  require 'spec_helper'
3
3
 
4
4
  RSpec.describe 'SASS filter rendering', type: :render do
@@ -1,4 +1,4 @@
1
- # frozen-string-literal: true
1
+ # frozen_string_literal: true
2
2
  require 'spec_helper'
3
3
 
4
4
  RSpec.describe 'SCSS filter rendering', type: :render do
@@ -1,4 +1,4 @@
1
- # frozen-string-literal: true
1
+ # frozen_string_literal: true
2
2
  require 'spec_helper'
3
3
 
4
4
  RSpec.describe 'filter rendering', type: :render do
@@ -1,4 +1,4 @@
1
- # frozen-string-literal: true
1
+ # frozen_string_literal: true
2
2
  require 'spec_helper'
3
3
 
4
4
  RSpec.describe 'Haml comment rendering', type: :render do
@@ -1,4 +1,4 @@
1
- # frozen-string-literal: true
1
+ # frozen_string_literal: true
2
2
  require 'spec_helper'
3
3
 
4
4
  RSpec.describe 'Hash attributes rendering', type: :render do
@@ -1,4 +1,4 @@
1
- # frozen-string-literal: true
1
+ # frozen_string_literal: true
2
2
  require 'spec_helper'
3
3
 
4
4
  RSpec.describe Faml::Helpers, type: :render do
@@ -1,4 +1,4 @@
1
- # frozen-string-literal: true
1
+ # frozen_string_literal: true
2
2
  require 'spec_helper'
3
3
 
4
4
  RSpec.describe 'Multiline rendering', type: :render do
@@ -1,4 +1,4 @@
1
- # frozen-string-literal: true
1
+ # frozen_string_literal: true
2
2
  require 'spec_helper'
3
3
 
4
4
  RSpec.describe 'Newline with > and <', type: :render do
@@ -1,4 +1,4 @@
1
- # frozen-string-literal: true
1
+ # frozen_string_literal: true
2
2
  require 'spec_helper'
3
3
 
4
4
  RSpec.describe 'Plain rendering', type: :render do
@@ -1,4 +1,4 @@
1
- # frozen-string-literal: true
1
+ # frozen_string_literal: true
2
2
  require 'spec_helper'
3
3
 
4
4
  RSpec.describe 'Preserve rendering', type: :render do
@@ -1,4 +1,4 @@
1
- # frozen-string-literal: true
1
+ # frozen_string_literal: true
2
2
  require 'spec_helper'
3
3
 
4
4
  RSpec.describe 'Sanitize rendering', type: :render do
@@ -1,4 +1,4 @@
1
- # frozen-string-literal: true
1
+ # frozen_string_literal: true
2
2
  require 'spec_helper'
3
3
 
4
4
  RSpec.describe 'Script rendering', type: :render do
@@ -1,4 +1,4 @@
1
- # frozen-string-literal: true
1
+ # frozen_string_literal: true
2
2
  require 'spec_helper'
3
3
 
4
4
  RSpec.describe 'SilentScript rendering', type: :render do
@@ -1,4 +1,4 @@
1
- # frozen-string-literal: true
1
+ # frozen_string_literal: true
2
2
  require 'spec_helper'
3
3
 
4
4
  RSpec.describe 'Unescape rendering', type: :render do
data/spec/spec_helper.rb CHANGED
@@ -1,4 +1,4 @@
1
- # frozen-string-literal: true
1
+ # frozen_string_literal: true
2
2
  require 'simplecov'
3
3
  require 'coveralls'
4
4
 
@@ -1,4 +1,4 @@
1
- # frozen-string-literal: true
1
+ # frozen_string_literal: true
2
2
  require 'pathname'
3
3
  require 'singleton'
4
4
  require 'hamlit/engine'
data/spec/tilt_spec.rb CHANGED
@@ -1,4 +1,4 @@
1
- # frozen-string-literal: true
1
+ # frozen_string_literal: true
2
2
  require 'spec_helper'
3
3
 
4
4
  RSpec.describe 'Tilt integration' do
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: faml
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.3
4
+ version: 0.8.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kohei Suzuki
@@ -513,7 +513,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
513
513
  requirements:
514
514
  - - ">="
515
515
  - !ruby/object:Gem::Version
516
- version: 2.0.0
516
+ version: 2.1.0
517
517
  required_rubygems_version: !ruby/object:Gem::Requirement
518
518
  requirements:
519
519
  - - ">="
@@ -521,7 +521,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
521
521
  version: '0'
522
522
  requirements: []
523
523
  rubyforge_project:
524
- rubygems_version: 2.4.5.1
524
+ rubygems_version: 2.5.1
525
525
  signing_key:
526
526
  specification_version: 4
527
527
  summary: Faster implementation of Haml template language.