Skip to content

Commit b51f06e

Browse files
committed
Rename Rake::Ui constant to RakeUi so that gem is isolated from the Rake namespace
1 parent 1d12377 commit b51f06e

File tree

27 files changed

+185
-69
lines changed

27 files changed

+185
-69
lines changed

Gemfile.lock

+148
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,148 @@
1+
PATH
2+
remote: .
3+
specs:
4+
rake-ui (0.1.0)
5+
rails (~> 6.1.1)
6+
7+
GEM
8+
remote: https://rubygems.org/
9+
specs:
10+
actioncable (6.1.1)
11+
actionpack (= 6.1.1)
12+
activesupport (= 6.1.1)
13+
nio4r (~> 2.0)
14+
websocket-driver (>= 0.6.1)
15+
actionmailbox (6.1.1)
16+
actionpack (= 6.1.1)
17+
activejob (= 6.1.1)
18+
activerecord (= 6.1.1)
19+
activestorage (= 6.1.1)
20+
activesupport (= 6.1.1)
21+
mail (>= 2.7.1)
22+
actionmailer (6.1.1)
23+
actionpack (= 6.1.1)
24+
actionview (= 6.1.1)
25+
activejob (= 6.1.1)
26+
activesupport (= 6.1.1)
27+
mail (~> 2.5, >= 2.5.4)
28+
rails-dom-testing (~> 2.0)
29+
actionpack (6.1.1)
30+
actionview (= 6.1.1)
31+
activesupport (= 6.1.1)
32+
rack (~> 2.0, >= 2.0.9)
33+
rack-test (>= 0.6.3)
34+
rails-dom-testing (~> 2.0)
35+
rails-html-sanitizer (~> 1.0, >= 1.2.0)
36+
actiontext (6.1.1)
37+
actionpack (= 6.1.1)
38+
activerecord (= 6.1.1)
39+
activestorage (= 6.1.1)
40+
activesupport (= 6.1.1)
41+
nokogiri (>= 1.8.5)
42+
actionview (6.1.1)
43+
activesupport (= 6.1.1)
44+
builder (~> 3.1)
45+
erubi (~> 1.4)
46+
rails-dom-testing (~> 2.0)
47+
rails-html-sanitizer (~> 1.1, >= 1.2.0)
48+
activejob (6.1.1)
49+
activesupport (= 6.1.1)
50+
globalid (>= 0.3.6)
51+
activemodel (6.1.1)
52+
activesupport (= 6.1.1)
53+
activerecord (6.1.1)
54+
activemodel (= 6.1.1)
55+
activesupport (= 6.1.1)
56+
activestorage (6.1.1)
57+
actionpack (= 6.1.1)
58+
activejob (= 6.1.1)
59+
activerecord (= 6.1.1)
60+
activesupport (= 6.1.1)
61+
marcel (~> 0.3.1)
62+
mimemagic (~> 0.3.2)
63+
activesupport (6.1.1)
64+
concurrent-ruby (~> 1.0, >= 1.0.2)
65+
i18n (>= 1.6, < 2)
66+
minitest (>= 5.1)
67+
tzinfo (~> 2.0)
68+
zeitwerk (~> 2.3)
69+
builder (3.2.4)
70+
byebug (11.1.3)
71+
concurrent-ruby (1.1.8)
72+
crass (1.0.6)
73+
erubi (1.10.0)
74+
globalid (0.4.2)
75+
activesupport (>= 4.2.0)
76+
i18n (1.8.8)
77+
concurrent-ruby (~> 1.0)
78+
loofah (2.9.0)
79+
crass (~> 1.0.2)
80+
nokogiri (>= 1.5.9)
81+
mail (2.7.1)
82+
mini_mime (>= 0.1.1)
83+
marcel (0.3.3)
84+
mimemagic (~> 0.3.2)
85+
method_source (1.0.0)
86+
mimemagic (0.3.5)
87+
mini_mime (1.0.2)
88+
minitest (5.14.3)
89+
nio4r (2.5.4)
90+
nokogiri (1.11.1-x86_64-linux)
91+
racc (~> 1.4)
92+
racc (1.5.2)
93+
rack (2.2.3)
94+
rack-test (1.1.0)
95+
rack (>= 1.0, < 3)
96+
rails (6.1.1)
97+
actioncable (= 6.1.1)
98+
actionmailbox (= 6.1.1)
99+
actionmailer (= 6.1.1)
100+
actionpack (= 6.1.1)
101+
actiontext (= 6.1.1)
102+
actionview (= 6.1.1)
103+
activejob (= 6.1.1)
104+
activemodel (= 6.1.1)
105+
activerecord (= 6.1.1)
106+
activestorage (= 6.1.1)
107+
activesupport (= 6.1.1)
108+
bundler (>= 1.15.0)
109+
railties (= 6.1.1)
110+
sprockets-rails (>= 2.0.0)
111+
rails-dom-testing (2.0.3)
112+
activesupport (>= 4.2.0)
113+
nokogiri (>= 1.6)
114+
rails-html-sanitizer (1.3.0)
115+
loofah (~> 2.3)
116+
railties (6.1.1)
117+
actionpack (= 6.1.1)
118+
activesupport (= 6.1.1)
119+
method_source
120+
rake (>= 0.8.7)
121+
thor (~> 1.0)
122+
rake (13.0.3)
123+
sprockets (4.0.2)
124+
concurrent-ruby (~> 1.0)
125+
rack (> 1, < 3)
126+
sprockets-rails (3.2.2)
127+
actionpack (>= 4.0)
128+
activesupport (>= 4.0)
129+
sprockets (>= 3.0.0)
130+
sqlite3 (1.4.2)
131+
thor (1.1.0)
132+
tzinfo (2.0.4)
133+
concurrent-ruby (~> 1.0)
134+
websocket-driver (0.7.3)
135+
websocket-extensions (>= 0.1.0)
136+
websocket-extensions (0.1.5)
137+
zeitwerk (2.4.2)
138+
139+
PLATFORMS
140+
x86_64-linux
141+
142+
DEPENDENCIES
143+
byebug
144+
rake-ui!
145+
sqlite3
146+
147+
BUNDLED WITH
148+
2.2.7

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Rake::Ui
1+
# RakeUi
22
Short description and motivation.
33

44
## Usage

app/assets/config/rake_ui_manifest.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
//= link_directory ../stylesheets/rake/ui .css
1+
//= link_directory ../stylesheets/rake_ui/application.css

app/controllers/rake/ui/application_controller.rb

-6
This file was deleted.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
module RakeUi
2+
class ApplicationController < ActionController::Base
3+
end
4+
end

app/helpers/rake/ui/application_helper.rb

-6
This file was deleted.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
module RakeUi
2+
module ApplicationHelper
3+
end
4+
end

app/jobs/rake/ui/application_job.rb

-6
This file was deleted.

app/mailers/rake/ui/application_mailer.rb

-8
This file was deleted.

app/models/rake/ui/application_record.rb

-7
This file was deleted.
File renamed without changes.

app/views/layouts/rake/ui/application.html.erb app/views/layouts/rake_ui/application.html.erb

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<%= csrf_meta_tags %>
66
<%= csp_meta_tag %>
77

8-
<%= stylesheet_link_tag "rake/ui/application", media: "all" %>
8+
<%= stylesheet_link_tag "rake_ui/application", media: "all" %>
99
</head>
1010
<body>
1111

bin/rails

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# installed from the root of your application.
44

55
ENGINE_ROOT = File.expand_path('..', __dir__)
6-
ENGINE_PATH = File.expand_path('../lib/rake/ui/engine', __dir__)
6+
ENGINE_PATH = File.expand_path('../lib/rake_ui/engine', __dir__)
77
APP_PATH = File.expand_path('../test/dummy/config/application', __dir__)
88

99
# Set up gems listed in the Gemfile.

config/routes.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
Rake::Ui::Engine.routes.draw do
1+
RakeUi::Engine.routes.draw do
22
end

lib/rake/ui.rb

-8
This file was deleted.

lib/rake/ui/engine.rb

-7
This file was deleted.

lib/rake/ui/version.rb

-5
This file was deleted.

lib/rake_ui.rb

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
require "rake_ui/version"
2+
require "rake_ui/engine"
3+
4+
module RakeUi
5+
end

lib/rake_ui/engine.rb

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
module RakeUi
2+
class Engine < ::Rails::Engine
3+
isolate_namespace RakeUi
4+
end
5+
end

lib/rake_ui/version.rb

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
module RakeUi
2+
VERSION = '0.1.0'
3+
end
File renamed without changes.

rake-ui.gemspec

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
require_relative "lib/rake/ui/version"
1+
require_relative "lib/rake_ui/version"
22

33
Gem::Specification.new do |spec|
44
spec.name = "rake-ui"
5-
spec.version = Rake::Ui::VERSION
5+
spec.version = RakeUi::VERSION
66
spec.authors = ["Austin Story"]
77
spec.email = ["lonnieastory@gmail.com"]
88
spec.homepage = "https://github.com/doximity/rake-ui"

test/dummy/config/application.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
# Require the gems listed in Gemfile, including any gems
66
# you've limited to :test, :development, or :production.
77
Bundler.require(*Rails.groups)
8-
require "rake/ui"
8+
require "rake_ui"
99

1010
module Dummy
1111
class Application < Rails::Application

test/dummy/config/routes.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
Rails.application.routes.draw do
2-
mount Rake::Ui::Engine => "/rake-ui"
2+
mount RakeUi::Engine => "/rake-ui"
33
end

test/rake/ui_test.rb

-7
This file was deleted.

test/rake_ui/rake_ui_test.rb

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
require "test_helper"
2+
3+
class RakeUiTest < ActiveSupport::TestCase
4+
test "it has a version number" do
5+
assert RakeUi::VERSION
6+
end
7+
end

0 commit comments

Comments
 (0)