Skip to content

Commit

Permalink
Merge pull request #132 from PhlexUI/ch/remove-phlexui-module
Browse files Browse the repository at this point in the history
Remove PhlexUI Module and Rename to RBUI
  • Loading branch information
SethHorsley authored Sep 14, 2024
2 parents d0fccf7 + f7c98de commit 1940e2b
Show file tree
Hide file tree
Showing 19 changed files with 26 additions and 61 deletions.
2 changes: 1 addition & 1 deletion .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// For format details, see https://aka.ms/devcontainer.json. For config options, see the
// README at: https://github.com/devcontainers/templates/tree/main/src/ruby
{
"name": "PhlexUI",
"name": "RbUI",
// Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile
"image": "ghcr.io/rails/devcontainer/images/ruby:3.3.3",
// Features to add to the dev container. More info: https://containers.dev/features.
Expand Down
4 changes: 2 additions & 2 deletions Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
PATH
remote: .
specs:
phlex_ui (0.1.10)
rbui (0.2.0)
phlex (~> 1.10)
rouge (~> 4.2.0)
tailwind_merge (>= 0.12)
Expand Down Expand Up @@ -67,8 +67,8 @@ PLATFORMS

DEPENDENCIES
minitest
phlex_ui!
rake
rbui!
standard

BUNDLED WITH
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# PhlexUI
# RbUI

A UI component library, crafted precisely for Ruby devs who want to stay organized and build modern apps, fast.

Visit [phlexui.com](https://phlexui.com) for more information.
Visit [rbui.dev](https://rbui.dev) for more information.
2 changes: 1 addition & 1 deletion bin/console
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/env ruby

require "bundler/setup"
require "phlex_ui"
require "rbui"

Bundler.require(:development)

Expand Down
29 changes: 0 additions & 29 deletions lib/phlex_ui/base.rb

This file was deleted.

7 changes: 0 additions & 7 deletions lib/phlex_ui/version.rb

This file was deleted.

8 changes: 2 additions & 6 deletions lib/phlex_ui.rb → lib/rbui.rb
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
# frozen_string_literal: true

require "json"
require "phlex"

module RBUI
extend Phlex::Kit
end

module PhlexUI
extend Phlex::Kit

attr_accessor :namespace

Expand Down Expand Up @@ -40,9 +38,7 @@ def self.create_namespace_module
end

# Require the Base class first
require_relative "phlex_ui/base"
require_relative "rbui/base"

# Manually require all the files
Dir.glob(File.join(__dir__, "phlex_ui", "**", "*.rb")).sort.each { |file| require file }
Dir.glob(File.join(__dir__, "rbui", "**", "*.rb")).sort.each { |file| require file }
2 changes: 1 addition & 1 deletion lib/rbui/chart/chart.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# frozen_string_literal: true

module RBUI
class Chart < PhlexUI::Base
class Chart < Base
def initialize(options: {}, **attrs)
@options = options.to_json
super(**attrs)
Expand Down
5 changes: 5 additions & 0 deletions lib/rbui/version.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# frozen_string_literal: true

module RBUI
VERSION = "0.2.0"
end
10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
{
"name": "rbui-js",
"version": "0.0.1-alpha.0",
"description": "Stimulus controllers for PhlexUI Component Library",
"description": "Stimulus controllers for RbUI Component Library",
"main": "index.js",
"homepage": "https://phlexui.com",
"homepage": "https://rbui.dev",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"keywords": [
"PhlexUI",
"RbUI",
"Stimulus",
"StimulusJS",
"StimulusControllers",
Expand All @@ -18,7 +18,7 @@
],
"repository": {
"type": "git",
"url": "https://github.com/PhlexUI/phlex_ui.git"
"url": "https://github.com/rbui-hq/rbui.git"
},
"author": "George Kettle",
"license": "ISC",
Expand All @@ -35,4 +35,4 @@
"devDependencies": {
"globals": "^15.8.0"
}
}
}
Binary file removed phlex_ui-0.1.0.gem
Binary file not shown.
Binary file removed phlex_ui-0.1.1.gem
Binary file not shown.
Binary file removed phlex_ui-0.1.2.gem
Binary file not shown.
Binary file removed phlex_ui-0.1.3.gem
Binary file not shown.
Binary file removed phlex_ui-0.1.4.gem
Binary file not shown.
Binary file removed phlex_ui-0.1.5.gem
Binary file not shown.
Binary file removed phlex_ui-0.1.6.gem
Binary file not shown.
12 changes: 6 additions & 6 deletions phlex_ui.gemspec → rbui.gemspec
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
require_relative "lib/phlex_ui/version"
require_relative "lib/rbui/version"

Gem::Specification.new do |s|
s.name = "phlex_ui"
s.version = PhlexUI::VERSION
s.summary = "PhlexUI is a UI Component Library for Ruby developers."
s.description = "PhlexUI is a UI Component Library for Ruby developers. Built on top of the Phlex Framework."
s.name = "rbui"
s.version = RBUI::VERSION
s.summary = "RbUI is a UI Component Library for Ruby developers."
s.description = "RbUI is a UI Component Library for Ruby developers. Built on top of the Phlex Framework."
s.authors = ["George Kettle"]
s.email = "george.kettle@icloud.com"
s.files = Dir["lib/**/*.rb", "tasks/**/*.rake"]
s.homepage =
"https://rubygems.org/gems/phlex_ui"
"https://rubygems.org/gems/rbui"
s.license = "MIT"

s.required_ruby_version = ">= 3.2"
Expand Down
2 changes: 1 addition & 1 deletion test/rbui/collapsible_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ def test_render_with_all_items
"phlex-ruby/phlex-rails"
end
content.div(class: "rounded-md border px-4 py-2 font-mono text-sm shadow-sm") do
"PhlexUI/phlex_ui"
"RbUI/rbui"
end
end
end
Expand Down

0 comments on commit 1940e2b

Please sign in to comment.