Skip to content

Commit

Permalink
Rename Rake::Ui constant to RakeUi so that gem is isolated from the R…
Browse files Browse the repository at this point in the history
…ake namespace
  • Loading branch information
Austio committed Feb 2, 2021
1 parent 1d12377 commit b51f06e
Show file tree
Hide file tree
Showing 27 changed files with 185 additions and 69 deletions.
148 changes: 148 additions & 0 deletions Gemfile.lock
Original file line number Diff line number Diff line change
@@ -0,0 +1,148 @@
PATH
remote: .
specs:
rake-ui (0.1.0)
rails (~> 6.1.1)

GEM
remote: https://rubygems.org/
specs:
actioncable (6.1.1)
actionpack (= 6.1.1)
activesupport (= 6.1.1)
nio4r (~> 2.0)
websocket-driver (>= 0.6.1)
actionmailbox (6.1.1)
actionpack (= 6.1.1)
activejob (= 6.1.1)
activerecord (= 6.1.1)
activestorage (= 6.1.1)
activesupport (= 6.1.1)
mail (>= 2.7.1)
actionmailer (6.1.1)
actionpack (= 6.1.1)
actionview (= 6.1.1)
activejob (= 6.1.1)
activesupport (= 6.1.1)
mail (~> 2.5, >= 2.5.4)
rails-dom-testing (~> 2.0)
actionpack (6.1.1)
actionview (= 6.1.1)
activesupport (= 6.1.1)
rack (~> 2.0, >= 2.0.9)
rack-test (>= 0.6.3)
rails-dom-testing (~> 2.0)
rails-html-sanitizer (~> 1.0, >= 1.2.0)
actiontext (6.1.1)
actionpack (= 6.1.1)
activerecord (= 6.1.1)
activestorage (= 6.1.1)
activesupport (= 6.1.1)
nokogiri (>= 1.8.5)
actionview (6.1.1)
activesupport (= 6.1.1)
builder (~> 3.1)
erubi (~> 1.4)
rails-dom-testing (~> 2.0)
rails-html-sanitizer (~> 1.1, >= 1.2.0)
activejob (6.1.1)
activesupport (= 6.1.1)
globalid (>= 0.3.6)
activemodel (6.1.1)
activesupport (= 6.1.1)
activerecord (6.1.1)
activemodel (= 6.1.1)
activesupport (= 6.1.1)
activestorage (6.1.1)
actionpack (= 6.1.1)
activejob (= 6.1.1)
activerecord (= 6.1.1)
activesupport (= 6.1.1)
marcel (~> 0.3.1)
mimemagic (~> 0.3.2)
activesupport (6.1.1)
concurrent-ruby (~> 1.0, >= 1.0.2)
i18n (>= 1.6, < 2)
minitest (>= 5.1)
tzinfo (~> 2.0)
zeitwerk (~> 2.3)
builder (3.2.4)
byebug (11.1.3)
concurrent-ruby (1.1.8)
crass (1.0.6)
erubi (1.10.0)
globalid (0.4.2)
activesupport (>= 4.2.0)
i18n (1.8.8)
concurrent-ruby (~> 1.0)
loofah (2.9.0)
crass (~> 1.0.2)
nokogiri (>= 1.5.9)
mail (2.7.1)
mini_mime (>= 0.1.1)
marcel (0.3.3)
mimemagic (~> 0.3.2)
method_source (1.0.0)
mimemagic (0.3.5)
mini_mime (1.0.2)
minitest (5.14.3)
nio4r (2.5.4)
nokogiri (1.11.1-x86_64-linux)
racc (~> 1.4)
racc (1.5.2)
rack (2.2.3)
rack-test (1.1.0)
rack (>= 1.0, < 3)
rails (6.1.1)
actioncable (= 6.1.1)
actionmailbox (= 6.1.1)
actionmailer (= 6.1.1)
actionpack (= 6.1.1)
actiontext (= 6.1.1)
actionview (= 6.1.1)
activejob (= 6.1.1)
activemodel (= 6.1.1)
activerecord (= 6.1.1)
activestorage (= 6.1.1)
activesupport (= 6.1.1)
bundler (>= 1.15.0)
railties (= 6.1.1)
sprockets-rails (>= 2.0.0)
rails-dom-testing (2.0.3)
activesupport (>= 4.2.0)
nokogiri (>= 1.6)
rails-html-sanitizer (1.3.0)
loofah (~> 2.3)
railties (6.1.1)
actionpack (= 6.1.1)
activesupport (= 6.1.1)
method_source
rake (>= 0.8.7)
thor (~> 1.0)
rake (13.0.3)
sprockets (4.0.2)
concurrent-ruby (~> 1.0)
rack (> 1, < 3)
sprockets-rails (3.2.2)
actionpack (>= 4.0)
activesupport (>= 4.0)
sprockets (>= 3.0.0)
sqlite3 (1.4.2)
thor (1.1.0)
tzinfo (2.0.4)
concurrent-ruby (~> 1.0)
websocket-driver (0.7.3)
websocket-extensions (>= 0.1.0)
websocket-extensions (0.1.5)
zeitwerk (2.4.2)

PLATFORMS
x86_64-linux

DEPENDENCIES
byebug
rake-ui!
sqlite3

BUNDLED WITH
2.2.7
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Rake::Ui
# RakeUi
Short description and motivation.

## Usage
Expand Down
2 changes: 1 addition & 1 deletion app/assets/config/rake_ui_manifest.js
Original file line number Diff line number Diff line change
@@ -1 +1 @@
//= link_directory ../stylesheets/rake/ui .css
//= link_directory ../stylesheets/rake_ui/application.css
6 changes: 0 additions & 6 deletions app/controllers/rake/ui/application_controller.rb

This file was deleted.

4 changes: 4 additions & 0 deletions app/controllers/rake_ui/application_controller.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
module RakeUi
class ApplicationController < ActionController::Base
end
end
6 changes: 0 additions & 6 deletions app/helpers/rake/ui/application_helper.rb

This file was deleted.

4 changes: 4 additions & 0 deletions app/helpers/rake_ui/application_helper.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
module RakeUi
module ApplicationHelper
end
end
6 changes: 0 additions & 6 deletions app/jobs/rake/ui/application_job.rb

This file was deleted.

8 changes: 0 additions & 8 deletions app/mailers/rake/ui/application_mailer.rb

This file was deleted.

7 changes: 0 additions & 7 deletions app/models/rake/ui/application_record.rb

This file was deleted.

File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<%= csrf_meta_tags %>
<%= csp_meta_tag %>
<%= stylesheet_link_tag "rake/ui/application", media: "all" %>
<%= stylesheet_link_tag "rake_ui/application", media: "all" %>
</head>
<body>

Expand Down
2 changes: 1 addition & 1 deletion bin/rails
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# installed from the root of your application.

ENGINE_ROOT = File.expand_path('..', __dir__)
ENGINE_PATH = File.expand_path('../lib/rake/ui/engine', __dir__)
ENGINE_PATH = File.expand_path('../lib/rake_ui/engine', __dir__)
APP_PATH = File.expand_path('../test/dummy/config/application', __dir__)

# Set up gems listed in the Gemfile.
Expand Down
2 changes: 1 addition & 1 deletion config/routes.rb
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
Rake::Ui::Engine.routes.draw do
RakeUi::Engine.routes.draw do
end
8 changes: 0 additions & 8 deletions lib/rake/ui.rb

This file was deleted.

7 changes: 0 additions & 7 deletions lib/rake/ui/engine.rb

This file was deleted.

5 changes: 0 additions & 5 deletions lib/rake/ui/version.rb

This file was deleted.

5 changes: 5 additions & 0 deletions lib/rake_ui.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
require "rake_ui/version"
require "rake_ui/engine"

module RakeUi
end
5 changes: 5 additions & 0 deletions lib/rake_ui/engine.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
module RakeUi
class Engine < ::Rails::Engine
isolate_namespace RakeUi
end
end
3 changes: 3 additions & 0 deletions lib/rake_ui/version.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
module RakeUi
VERSION = '0.1.0'
end
File renamed without changes.
4 changes: 2 additions & 2 deletions rake-ui.gemspec
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
require_relative "lib/rake/ui/version"
require_relative "lib/rake_ui/version"

Gem::Specification.new do |spec|
spec.name = "rake-ui"
spec.version = Rake::Ui::VERSION
spec.version = RakeUi::VERSION
spec.authors = ["Austin Story"]
spec.email = ["lonnieastory@gmail.com"]
spec.homepage = "https://github.com/doximity/rake-ui"
Expand Down
2 changes: 1 addition & 1 deletion test/dummy/config/application.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
# Require the gems listed in Gemfile, including any gems
# you've limited to :test, :development, or :production.
Bundler.require(*Rails.groups)
require "rake/ui"
require "rake_ui"

module Dummy
class Application < Rails::Application
Expand Down
2 changes: 1 addition & 1 deletion test/dummy/config/routes.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
Rails.application.routes.draw do
mount Rake::Ui::Engine => "/rake-ui"
mount RakeUi::Engine => "/rake-ui"
end
7 changes: 0 additions & 7 deletions test/rake/ui_test.rb

This file was deleted.

7 changes: 7 additions & 0 deletions test/rake_ui/rake_ui_test.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
require "test_helper"

class RakeUiTest < ActiveSupport::TestCase
test "it has a version number" do
assert RakeUi::VERSION
end
end

0 comments on commit b51f06e

Please sign in to comment.