Skip to content

Commit 7e11cf4

Browse files
committed
Fix gem git repo path and set the name to bitmap-plus-plus
1 parent 670c2eb commit 7e11cf4

File tree

15 files changed

+25
-25
lines changed

15 files changed

+25
-25
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ Ruby bindings for [BitmapPlusPlus](https://github.com/baderouaich/BitmapPlusPlus
66

77
This gem serves as both a useful library and a **practical example of using [Rice](https://github.com/ruby-rice/rice) to create Ruby bindings for C++ libraries**.
88

9-
The binding code in `ext/bitmap_plus_plus/bitmap_plus_plus.cpp` is well-commented and can serve as a reference for your own Rice projects.
9+
The binding code in `ext/BitmapPlusPlus-rb.cpp` is well-commented and can serve as a reference for your own Rice projects.
1010

1111
## Features
1212

@@ -22,7 +22,7 @@ The binding code in `ext/bitmap_plus_plus/bitmap_plus_plus.cpp` is well-commente
2222
## Quick Start
2323

2424
```ruby
25-
require 'bitmap_plus_plus'
25+
require 'bitmap-plus-plus'
2626

2727
# Create a new 640x480 bitmap
2828
image = Bmp::Bitmap.new(640, 480)
@@ -43,7 +43,7 @@ image.save("output.bmp")
4343
## Installation
4444

4545
```bash
46-
gem install bitmap_plus_plus
46+
gem install bitmap-plus-plus
4747
```
4848

4949
For detailed installation options including building from source and CMake builds, see the [Installation Guide](https://ruby-rice.github.io/BitmapPlusPlus-ruby/installation/).

Rakefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ require "rake/testtask"
55
require "rubygems/package_task"
66

77
GEM_NAME = 'bitmap-plus-plus'
8-
SO_NAME = 'bitmap_plus_plus'
8+
SO_NAME = 'bitmap-plus-plus'
99

1010
gemspec = Gem::Specification.load("#{GEM_NAME}.gemspec")
1111

bitmap-plus-plus.gemspec

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

3-
require_relative "lib/bitmap_plus_plus/version"
3+
require_relative "lib/bitmap-plus-plus/version"
44

55
Gem::Specification.new do |spec|
66
spec.name = "bitmap-plus-plus"
@@ -14,15 +14,15 @@ Gem::Specification.new do |spec|
1414
(lines, rectangles, triangles, circles), pixel manipulation, image transformations
1515
(flip, rotate), and file I/O. Uses Rice for C++ to Ruby bindings.
1616
DESC
17-
spec.homepage = "https://github.com/cfis/bitmap_plus_plus-ruby"
17+
spec.homepage = "https://github.com/ruby-rice/BitmapPlusPlus-ruby"
1818
spec.license = "BSD-2-Clause"
1919
spec.required_ruby_version = ">= 3.0.0"
2020

2121
spec.metadata = {
22-
"bug_tracker_uri" => "https://github.com/cfis/bitmap_plus_plus-ruby/issues",
23-
"changelog_uri" => "https://github.com/cfis/bitmap_plus_plus-ruby/blob/main/CHANGELOG.md",
24-
"documentation_uri" => "https://github.com/cfis/bitmap_plus_plus-ruby#readme",
25-
"source_code_uri" => "https://github.com/cfis/bitmap_plus_plus-ruby"
22+
"bug_tracker_uri" => "https://github.com/ruby-rice/BitmapPlusPlus-ruby/issues",
23+
"changelog_uri" => "https://github.com/ruby-rice/BitmapPlusPlus-ruby/blob/main/CHANGELOG.md",
24+
"documentation_uri" => "https://github.com/ruby-rice/BitmapPlusPlus-ruby#readme",
25+
"source_code_uri" => "https://github.com/ruby-rice/BitmapPlusPlus-ruby"
2626
}
2727
spec.require_paths = ["lib"]
2828
spec.extensions = ["ext/CMakeLists.txt"]

docs/about-rice.md

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

33
This gem serves as a practical example of using [Rice](https://github.com/ruby-rice/rice) to create Ruby bindings for C++ libraries.
44

5-
Rice is a C++ header-only library that makes it easy to create Ruby extensions. The binding code in `ext/bitmap_plus_plus/bitmap_plus_plus.cpp` is well-commented and can serve as a reference for your own Rice projects.
5+
Rice is a C++ header-only library that makes it easy to create Ruby extensions. The binding code in `ext/BitmapPlusPlus-rb.cpp` is well-commented and can serve as a reference for your own Rice projects.
66

77
## Rice Features Demonstrated
88

docs/examples.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ Output files are saved to the `examples/output/` directory.
1818
Demonstrates basic shape drawing including lines, rectangles, triangles, and circles.
1919

2020
```ruby
21-
require_relative '../lib/bitmap_plus_plus'
21+
require_relative '../lib/bitmap-plus-plus'
2222

2323
image = Bmp::Bitmap.new(512, 512)
2424
image.clear(Bmp::White)
@@ -40,7 +40,7 @@ image.save("output/primitives.bmp")
4040
Generates a Mandelbrot set fractal image.
4141

4242
```ruby
43-
require_relative '../lib/bitmap_plus_plus'
43+
require_relative '../lib/bitmap-plus-plus'
4444

4545
WIDTH = 800
4646
HEIGHT = 600
@@ -80,7 +80,7 @@ Generates a Julia set fractal image with configurable parameters.
8080
Demonstrates iterator usage by filling an image with random pixel colors.
8181

8282
```ruby
83-
require_relative '../lib/bitmap_plus_plus'
83+
require_relative '../lib/bitmap-plus-plus'
8484

8585
image = Bmp::Bitmap.new(256, 256)
8686

@@ -98,7 +98,7 @@ image.save("output/random.bmp")
9898
Shows image transformation operations: flip and rotate.
9999

100100
```ruby
101-
require_relative '../lib/bitmap_plus_plus'
101+
require_relative '../lib/bitmap-plus-plus'
102102

103103
# Create a test image with an asymmetric pattern
104104
image = Bmp::Bitmap.new(200, 100)

docs/installation.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,14 @@
99
## Install from RubyGems
1010

1111
```bash
12-
gem install bitmap_plus_plus
12+
gem install bitmap-plus-plus
1313
```
1414

1515
## Install from Source
1616

1717
```bash
1818
git clone https://github.com/cfis/bitmap_plus_plus-ruby.git
19-
cd bitmap_plus_plus-ruby
19+
cd bitmap-plus-plus-ruby
2020
bundle install
2121
rake compile
2222
rake install

docs/usage.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
## Quick Start
44

55
```ruby
6-
require 'bitmap_plus_plus'
6+
require 'bitmap-plus-plus'
77

88
# Create a new 640x480 bitmap
99
image = Bmp::Bitmap.new(640, 480)

examples/draw_primitives.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
# - Triangles (filled and outline)
1010
# - Circles (filled and outline)
1111

12-
require "bitmap_plus_plus"
12+
require "bitmap-plus-plus"
1313

1414
def draw_primitives
1515
# Create a custom background color from hex value

examples/julia.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
# The Julia set is similar to the Mandelbrot set but uses a fixed complex
88
# constant instead of varying it per pixel.
99

10-
require "bitmap_plus_plus"
10+
require "bitmap-plus-plus"
1111
require_relative "colormaps"
1212

1313
MAX_ITERATIONS = 300

examples/mandelbrot.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
# - Setting individual pixels with calculated colors
1010
# - Using color maps for smooth coloring
1111

12-
require "bitmap_plus_plus"
12+
require "bitmap-plus-plus"
1313
require_relative "colormaps"
1414

1515
MAX_ITERATIONS = 500

0 commit comments

Comments
 (0)