Skip to content

Commit

Permalink
Add frozen string literal comment
Browse files Browse the repository at this point in the history
  • Loading branch information
MittchoBaroco authored and florentferry committed Mar 4, 2018
1 parent a12f57f commit 13a0f46
Show file tree
Hide file tree
Showing 16 changed files with 31 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Gemfile
@@ -1,3 +1,5 @@
# frozen_string_literal: true

source "https://rubygems.org" source "https://rubygems.org"


git_source(:github) {|repo_name| "https://github.com/#{repo_name}" } git_source(:github) {|repo_name| "https://github.com/#{repo_name}" }
Expand Down
2 changes: 2 additions & 0 deletions Rakefile
@@ -1,3 +1,5 @@
# frozen_string_literal: true

require "bundler/gem_tasks" require "bundler/gem_tasks"
require "rake/testtask" require "rake/testtask"
require 'cucumber' require 'cucumber'
Expand Down
1 change: 1 addition & 0 deletions bin/console
@@ -1,4 +1,5 @@
#!/usr/bin/env ruby #!/usr/bin/env ruby
# frozen_string_literal: true


require "bundler/setup" require "bundler/setup"
require "komponent" require "komponent"
Expand Down
2 changes: 2 additions & 0 deletions features/support/setup.rb
@@ -1,3 +1,5 @@
# frozen_string_literal: true

require 'aruba/cucumber' require 'aruba/cucumber'


Aruba.configure do |config| Aruba.configure do |config|
Expand Down
2 changes: 2 additions & 0 deletions komponent.gemspec
@@ -1,3 +1,5 @@
# frozen_string_literal: true

lib = File.expand_path("../lib", __FILE__) lib = File.expand_path("../lib", __FILE__)
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib) $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
require "komponent/version" require "komponent/version"
Expand Down
2 changes: 2 additions & 0 deletions lib/generators/component/component_generator.rb
@@ -1,3 +1,5 @@
# frozen_string_literal: true

class ComponentGenerator < Rails::Generators::NamedBase class ComponentGenerator < Rails::Generators::NamedBase
source_root File.expand_path('../templates', __FILE__) source_root File.expand_path('../templates', __FILE__)


Expand Down
2 changes: 2 additions & 0 deletions lib/generators/komponent/install_generator.rb
@@ -1,3 +1,5 @@
# frozen_string_literal: true

module Komponent module Komponent
module Generators module Generators
class InstallGenerator < Rails::Generators::Base class InstallGenerator < Rails::Generators::Base
Expand Down
2 changes: 2 additions & 0 deletions lib/komponent.rb
@@ -1,3 +1,5 @@
# frozen_string_literal: true

require "komponent/version" require "komponent/version"


module Komponent module Komponent
Expand Down
2 changes: 2 additions & 0 deletions lib/komponent/core/component_helper.rb
@@ -1,3 +1,5 @@
# frozen_string_literal: true

module ComponentHelper module ComponentHelper
def property(name, options = {}) def property(name, options = {})
@properties[name] = options @properties[name] = options
Expand Down
2 changes: 2 additions & 0 deletions lib/komponent/core/component_path_resolver.rb
@@ -1,3 +1,5 @@
# frozen_string_literal: true

module Komponent module Komponent
class ComponentPathResolver class ComponentPathResolver
def resolve(component_name) def resolve(component_name)
Expand Down
2 changes: 2 additions & 0 deletions lib/komponent/core/translation.rb
@@ -1,3 +1,5 @@
# frozen_string_literal: true

module Komponent module Komponent
module Translation module Translation
def translate(key, options = {}) def translate(key, options = {})
Expand Down
2 changes: 2 additions & 0 deletions lib/komponent/komponent_helper.rb
@@ -1,3 +1,5 @@
# frozen_string_literal: true

module KomponentHelper module KomponentHelper
def component(component, locals = {}, &block) def component(component, locals = {}, &block)
component_path = Komponent::ComponentPathResolver.new.resolve(component) component_path = Komponent::ComponentPathResolver.new.resolve(component)
Expand Down
2 changes: 2 additions & 0 deletions lib/komponent/railtie.rb
@@ -1,3 +1,5 @@
# frozen_string_literal: true

require 'webpacker' require 'webpacker'
require 'komponent/core/component_helper' require 'komponent/core/component_helper'
require 'komponent/core/translation' require 'komponent/core/translation'
Expand Down
2 changes: 2 additions & 0 deletions lib/komponent/version.rb
@@ -1,3 +1,5 @@
# frozen_string_literal: true

module Komponent module Komponent
VERSION = "1.1.3" VERSION = "1.1.3"
end end
2 changes: 2 additions & 0 deletions test/komponent/komponent_helper_test.rb
@@ -1,3 +1,5 @@
# frozen_string_literal: true

require 'test_helper' require 'test_helper'


class KomponentHelperTest < ActionView::TestCase class KomponentHelperTest < ActionView::TestCase
Expand Down
2 changes: 2 additions & 0 deletions test/test_helper.rb
@@ -1,3 +1,5 @@
# frozen_string_literal: true

ENV['RAILS_ENV'] ||= 'test' ENV['RAILS_ENV'] ||= 'test'
require File.expand_path('../../fixtures/my_app/config/environment', __FILE__) require File.expand_path('../../fixtures/my_app/config/environment', __FILE__)
require 'rails/test_help' require 'rails/test_help'

0 comments on commit 13a0f46

Please sign in to comment.