Skip to content

Commit 9c19ece

Browse files
authored
Merge pull request #20 from substancelab/rename
Rename the gem to flowbite-components
2 parents bf0eeaf + 28d7ba4 commit 9c19ece

File tree

11 files changed

+23
-23
lines changed

11 files changed

+23
-23
lines changed

Gemfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

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

5-
# Specify your gem's dependencies in flowbite-view_components.gemspec
5+
# Specify your gem's dependencies in flowbite-components.gemspec
66
gemspec
77

88
gem "irb"

README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
# Flowbite ViewComponents
1+
# Flowbite Components
22

3-
[![Gem Version](https://badge.fury.io/rb/flowbite-view_components.svg)](https://rubygems.org/gems/flowbite-view_components)
4-
[![Ruby Tests](https://github.com/substancelab/flowbite-view_components/workflows/Ruby/badge.svg)](https://github.com/substancelab/flowbite-view_components/actions)
3+
[![Gem Version](https://badge.fury.io/rb/flowbite-components.svg)](https://rubygems.org/gems/flowbite-components)
4+
[![Ruby Tests](https://github.com/substancelab/flowbite-components/workflows/Ruby/badge.svg)](https://github.com/substancelab/flowbite-components/actions)
55

66
Unofficial, open source implementation of [Flowbite](https://flowbite.com/) components for Rails applications, built using [ViewComponent](https://viewcomponent.org/).
77

8-
Flowbite ViewComponents provides a comprehensive library of UI components following the Flowbite design system, implemented as Rails ViewComponents with full Tailwind CSS integration and dark mode support.
8+
Flowbite Components provides a comprehensive library of UI components following the Flowbite design system, implemented as Rails ViewComponents with full Tailwind CSS integration and dark mode support.
99

1010
## Features
1111

@@ -22,7 +22,7 @@ Flowbite ViewComponents provides a comprehensive library of UI components follow
2222
Add the gem to your application's Gemfile:
2323

2424
```ruby
25-
gem 'flowbite-view_components'
25+
gem 'flowbite-components'
2626
```
2727

2828
Then execute:
@@ -52,7 +52,7 @@ Add Flowbite to your Tailwind CSS configuration. In your `app/assets/tailwind/ap
5252
```css
5353
@import "flowbite/src/themes/default";
5454
@plugin "flowbite/plugin";
55-
@import "../builds/tailwind/flowbite_view_components";
55+
@import "../builds/tailwind/flowbite-components";
5656
```
5757

5858
## Usage examples
@@ -223,7 +223,7 @@ This library includes Lookbook previews for all components. To view them:
223223

224224
## Contributing
225225

226-
Bug reports and pull requests are welcome on GitHub at [https://github.com/substancelab/flowbite-view_components](https://github.com/substancelab/flowbite-view_components).
226+
Bug reports and pull requests are welcome on GitHub at [https://github.com/substancelab/flowbite-components](https://github.com/substancelab/flowbite-components).
227227

228228
### Development Guidelines
229229

File renamed without changes.

bin/console

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# frozen_string_literal: true
33

44
require "bundler/setup"
5-
require "flowbite/view_components"
5+
require "flowbite/components"
66

77
# You can add fixtures and/or initialization code here to make experimenting
88
# with your gem easier. You can also use a different console, if you like.

demo/Gemfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ gem "puma", ">= 5.0"
1212
# Windows does not include zoneinfo files, so bundle the tzinfo-data gem
1313
gem "tzinfo-data", platforms: %i[windows jruby]
1414

15-
gem "flowbite-view_components", path: "../.." # Load the gem files from the parent directory
15+
gem "flowbite-components", path: "../.." # Load the gem files from the parent directory
1616
gem "tailwindcss-rails", "~> 4.0.0"
1717

1818
group :development, :test do

demo/Gemfile.lock

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
PATH
22
remote: ../..
33
specs:
4-
flowbite-view_components (0.1.0)
4+
flowbite-components (0.1.0)
55
view_component (>= 4.0.0)
66

77
GEM
@@ -279,7 +279,7 @@ PLATFORMS
279279

280280
DEPENDENCIES
281281
debug
282-
flowbite-view_components!
282+
flowbite-components!
283283
listen
284284
lookbook (>= 2.3.11)
285285
propshaft

flowbite-view_components.gemspec renamed to flowbite-components.gemspec

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,23 @@
11
# frozen_string_literal: true
22

3-
require_relative "lib/flowbite/view_components/version"
3+
require_relative "lib/flowbite/components/version"
44

55
Gem::Specification.new do |spec|
66
spec.name = "flowbite-components"
7-
spec.version = Flowbite::ViewComponents::VERSION
7+
spec.version = Flowbite::Components::VERSION
88
spec.authors = ["Jakob Skjerning"]
99
spec.email = ["[email protected]"]
1010

1111
spec.summary = "Flowbite components for Rails applications"
1212
spec.description = "A library of Flowbite View Components to be used in Rails applications."
13-
spec.homepage = "https://github.com/substancelab/flowbite-view_components"
13+
spec.homepage = "https://github.com/substancelab/flowbite-components"
1414
spec.required_ruby_version = ">= 3.1.0"
1515

1616
spec.metadata["allowed_push_host"] = "https://rubygems.org/"
1717

1818
spec.metadata["homepage_uri"] = spec.homepage
1919
spec.metadata["source_code_uri"] = spec.homepage
20-
spec.metadata["changelog_uri"] = "https://github.com/substancelab/flowbite-view_components/blob/main/CHANGELOG.md"
20+
spec.metadata["changelog_uri"] = "https://github.com/substancelab/flowbite-components/blob/main/CHANGELOG.md"
2121

2222
spec.files = Dir["CHANGELOG.md", "LICENSE", "README.md", "lib/**/*"]
2323
spec.bindir = "exe"

lib/flowbite/view_components.rb renamed to lib/flowbite/components.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
# frozen_string_literal: true
22

3-
require_relative "view_components/engine"
4-
require_relative "view_components/version"
3+
require_relative "components/engine"
4+
require_relative "components/version"
55

66
require "view_component"
77

88
module Flowbite
9-
module ViewComponents
9+
module Components
1010
class Error < StandardError; end
1111
# Your code goes here...
1212
end

lib/flowbite/view_components/engine.rb renamed to lib/flowbite/components/engine.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
require "rails/engine"
22

33
module Flowbite
4-
module ViewComponents
4+
module Components
55
class Engine < ::Rails::Engine
6-
isolate_namespace Flowbite::ViewComponents
6+
isolate_namespace Flowbite::Components
77

88
config.autoload_paths = [
99
"#{root}/app/components"
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# frozen_string_literal: true
22

33
module Flowbite
4-
module ViewComponents
4+
module Components
55
VERSION = "0.1.0"
66
end
77
end

0 commit comments

Comments
 (0)