Skip to content

Commit 6f1ce90

Browse files
committed
Rename module from Urlpattern to URLPattern
1 parent 02c38df commit 6f1ce90

File tree

6 files changed

+8
-8
lines changed

6 files changed

+8
-8
lines changed

ext/urlpattern/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ pub fn hello(subject: String) -> String {
66

77
#[magnus::init]
88
fn init(ruby: &Ruby) -> Result<(), Error> {
9-
let module = ruby.define_module("Urlpattern")?;
9+
let module = ruby.define_module("URLPattern")?;
1010
module.define_singleton_method("hello", function!(hello, 1))?;
1111
Ok(())
1212
}

lib/urlpattern.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
require_relative "urlpattern/version"
44
require "urlpattern/urlpattern"
55

6-
module Urlpattern
6+
module URLPattern
77
class Error < StandardError; end
88
# Your code goes here...
99
end

lib/urlpattern/version.rb

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

3-
module Urlpattern
3+
module URLPattern
44
VERSION = "0.1.0"
55
end

sig/urlpattern.rbs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
module Urlpattern
1+
module URLPattern
22
VERSION: String
33
# See the writing guide of rbs: https://github.com/ruby/rbs#guides
44
end

test/test_urlpattern.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@
22

33
require "test_helper"
44

5-
class TestUrlpattern < Minitest::Test
5+
class TestURLPattern < Minitest::Test
66
def test_that_it_has_a_version_number
7-
refute_nil ::Urlpattern::VERSION
7+
refute_nil ::URLPattern::VERSION
88
end
99

1010
def test_hello_world
11-
assert_equal "Hello earth, from Rust!", Urlpattern.hello("world")
11+
assert_equal "Hello earth, from Rust!", URLPattern.hello("world")
1212
end
1313
end

urlpattern.gemspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ require_relative "lib/urlpattern/version"
44

55
Gem::Specification.new do |spec|
66
spec.name = "urlpattern"
7-
spec.version = Urlpattern::VERSION
7+
spec.version = URLPattern::VERSION
88
spec.authors = ["방성범 (Bang Seongbeom)"]
99
spec.email = ["bangseongbeom@gmail.com"]
1010

0 commit comments

Comments
 (0)