Permalink
Browse files

Add frozen string literal comment

  • Loading branch information...
MittchoBaroco authored and florentferry committed Mar 4, 2018
1 parent a12f57f commit 13a0f464bd9c1f64c9e93c9242320d43cdb6d7bd
@@ -1,3 +1,5 @@
# frozen_string_literal: true
source "https://rubygems.org"
git_source(:github) {|repo_name| "https://github.com/#{repo_name}" }
@@ -1,3 +1,5 @@
# frozen_string_literal: true
require "bundler/gem_tasks"
require "rake/testtask"
require 'cucumber'
@@ -1,4 +1,5 @@
#!/usr/bin/env ruby
# frozen_string_literal: true
require "bundler/setup"
require "komponent"
@@ -1,3 +1,5 @@
# frozen_string_literal: true
require 'aruba/cucumber'
Aruba.configure do |config|
@@ -1,3 +1,5 @@
# frozen_string_literal: true
lib = File.expand_path("../lib", __FILE__)
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
require "komponent/version"
@@ -1,3 +1,5 @@
# frozen_string_literal: true
class ComponentGenerator < Rails::Generators::NamedBase
source_root File.expand_path('../templates', __FILE__)
@@ -1,3 +1,5 @@
# frozen_string_literal: true
module Komponent
module Generators
class InstallGenerator < Rails::Generators::Base
@@ -1,3 +1,5 @@
# frozen_string_literal: true
require "komponent/version"
module Komponent
@@ -1,3 +1,5 @@
# frozen_string_literal: true
module ComponentHelper
def property(name, options = {})
@properties[name] = options
@@ -1,3 +1,5 @@
# frozen_string_literal: true
module Komponent
class ComponentPathResolver
def resolve(component_name)
@@ -1,3 +1,5 @@
# frozen_string_literal: true
module Komponent
module Translation
def translate(key, options = {})
@@ -1,3 +1,5 @@
# frozen_string_literal: true
module KomponentHelper
def component(component, locals = {}, &block)
component_path = Komponent::ComponentPathResolver.new.resolve(component)
@@ -1,3 +1,5 @@
# frozen_string_literal: true
require 'webpacker'
require 'komponent/core/component_helper'
require 'komponent/core/translation'
@@ -1,3 +1,5 @@
# frozen_string_literal: true
module Komponent
VERSION = "1.1.3"
end
@@ -1,3 +1,5 @@
# frozen_string_literal: true
require 'test_helper'
class KomponentHelperTest < ActionView::TestCase
@@ -1,3 +1,5 @@
# frozen_string_literal: true
ENV['RAILS_ENV'] ||= 'test'
require File.expand_path('../../fixtures/my_app/config/environment', __FILE__)
require 'rails/test_help'

0 comments on commit 13a0f46

Please sign in to comment.