Navigation Menu

Skip to content

Commit

Permalink
❄️ frozen_string_literal: true
Browse files Browse the repository at this point in the history
  • Loading branch information
amatsuda committed Nov 12, 2018
1 parent 83554e5 commit 2bc00d1
Show file tree
Hide file tree
Showing 18 changed files with 36 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Gemfile
@@ -1,3 +1,5 @@
# frozen_string_literal: true

source 'https://rubygems.org'

# Specify your gem's dependencies in erd.gemspec
Expand Down
2 changes: 2 additions & 0 deletions Rakefile
@@ -1,4 +1,6 @@
#!/usr/bin/env rake
# frozen_string_literal: true

require 'bundler'
Bundler::GemHelper.install_tasks

Expand Down
2 changes: 2 additions & 0 deletions app/controllers/erd/application_controller.rb
@@ -1,3 +1,5 @@
# frozen_string_literal: true

module Erd
class ApplicationController < ActionController::Base
protect_from_forgery
Expand Down
2 changes: 2 additions & 0 deletions app/controllers/erd/erd_controller.rb
@@ -1,3 +1,5 @@
# frozen_string_literal: true

require 'nokogiri'
require 'rails_erd/diagram/graphviz'
require 'erd/application_controller'
Expand Down
2 changes: 2 additions & 0 deletions config.ru
@@ -1,3 +1,5 @@
# frozen_string_literal: true

require 'rubygems'
require 'bundler'

Expand Down
2 changes: 2 additions & 0 deletions config/routes.rb
@@ -1,3 +1,5 @@
# frozen_string_literal: true

Erd::Engine.routes.draw do
get '/' => 'erd#index'
put '/' => 'erd#update'
Expand Down
2 changes: 2 additions & 0 deletions erd.gemspec
@@ -1,4 +1,6 @@
# -*- encoding: utf-8 -*-
# frozen_string_literal: true

require File.expand_path('../lib/erd/version', __FILE__)

Gem::Specification.new do |gem|
Expand Down
2 changes: 2 additions & 0 deletions lib/erd.rb
@@ -1,2 +1,4 @@
# frozen_string_literal: true

require 'erd/version'
require 'erd/railtie'
2 changes: 2 additions & 0 deletions lib/erd/engine.rb
@@ -1,3 +1,5 @@
# frozen_string_literal: true

module Erd
class Engine < ::Rails::Engine
isolate_namespace Erd
Expand Down
2 changes: 2 additions & 0 deletions lib/erd/generator_runner.rb
@@ -1,3 +1,5 @@
# frozen_string_literal: true

require 'rails/generators'

module Erd
Expand Down
2 changes: 2 additions & 0 deletions lib/erd/migrator.rb
@@ -1,3 +1,5 @@
# frozen_string_literal: true

require 'rails/generators'

module Erd
Expand Down
2 changes: 2 additions & 0 deletions lib/erd/railtie.rb
@@ -1,3 +1,5 @@
# frozen_string_literal: true

require 'rails/all'
require 'erd/engine'

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

module Erd
VERSION = '0.4.0'
end
2 changes: 2 additions & 0 deletions test/fake_app/db/migrate/20120428022519_create_authors.rb
@@ -1,3 +1,5 @@
# frozen_string_literal: true

class CreateAuthors < ActiveRecord::VERSION::MAJOR >= 5 ? ActiveRecord::Migration[5.0] : ActiveRecord::Migration
def change
create_table :authors do |t|
Expand Down
2 changes: 2 additions & 0 deletions test/fake_app/db/migrate/20120428022535_create_books.rb
@@ -1,3 +1,5 @@
# frozen_string_literal: true

class CreateBooks < ActiveRecord::VERSION::MAJOR >= 5 ? ActiveRecord::Migration[5.0] : ActiveRecord::Migration
def change
create_table :books do |t|
Expand Down
2 changes: 2 additions & 0 deletions test/fake_app/fake_app.rb
@@ -1,3 +1,5 @@
# frozen_string_literal: true

require 'active_record'
require 'action_controller/railtie'

Expand Down
2 changes: 2 additions & 0 deletions test/features/erd_test.rb
@@ -1,3 +1,5 @@
# frozen_string_literal: true

require 'test_helper'

class ErdIndexTest < ActionDispatch::IntegrationTest
Expand Down
2 changes: 2 additions & 0 deletions test/lib/migrator_test.rb
@@ -1,3 +1,5 @@
# frozen_string_literal: true

require 'test_helper'

class MigratorTest < ActiveSupport::TestCase
Expand Down

0 comments on commit 2bc00d1

Please sign in to comment.