Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions my_namespace-my_gem/Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,5 @@ gemspec
gem "rake", "~> 13.0"

gem "rspec", "~> 3.0"

gem "http", require: false
57 changes: 57 additions & 0 deletions my_namespace-my_gem/Gemfile.lock
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
PATH
remote: .
specs:
my_namespace-my_gem (0.0.1)

GEM
remote: https://rubygems.org/
specs:
addressable (2.8.6)
public_suffix (>= 2.0.2, < 6.0)
base64 (0.2.0)
diff-lcs (1.5.1)
domain_name (0.6.20240107)
ffi (1.16.3)
ffi-compiler (1.0.1)
ffi (>= 1.0.0)
rake
http (5.2.0)
addressable (~> 2.8)
base64 (~> 0.1)
http-cookie (~> 1.0)
http-form_data (~> 2.2)
llhttp-ffi (~> 0.5.0)
http-cookie (1.0.5)
domain_name (~> 0.5)
http-form_data (2.3.0)
llhttp-ffi (0.5.0)
ffi-compiler (~> 1.0)
rake (~> 13.0)
public_suffix (5.0.4)
rake (13.1.0)
rspec (3.13.0)
rspec-core (~> 3.13.0)
rspec-expectations (~> 3.13.0)
rspec-mocks (~> 3.13.0)
rspec-core (3.13.0)
rspec-support (~> 3.13.0)
rspec-expectations (3.13.0)
diff-lcs (>= 1.2.0, < 2.0)
rspec-support (~> 3.13.0)
rspec-mocks (3.13.0)
diff-lcs (>= 1.2.0, < 2.0)
rspec-support (~> 3.13.0)
rspec-support (3.13.0)

PLATFORMS
ruby
x86_64-darwin-21

DEPENDENCIES
http
my_namespace-my_gem!
rake (~> 13.0)
rspec (~> 3.0)

BUNDLED WITH
2.5.3
6 changes: 1 addition & 5 deletions my_namespace-my_gem/lib/my_namespace/my_gem.rb
Original file line number Diff line number Diff line change
@@ -1,13 +1,9 @@
# frozen_string_literal: true

require "http"

require_relative "my_gem/version"

module MyNamespace
module MyGem
def self.do_something
return "A"
# return "A"
return "B"
end
end
Expand Down
5 changes: 1 addition & 4 deletions my_namespace-my_gem/my_namespace-my_gem.gemspec
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
# frozen_string_literal: true

require_relative "lib/my_namespace/my_gem/version"

Gem::Specification.new do |spec|
spec.name = "my_namespace-my_gem"
spec.version = MyNamespace::MyGem::VERSION
spec.version = "0.0.1"
spec.authors = ["David"]
spec.email = ["asmoo252@gmail.com"]

Expand Down Expand Up @@ -32,7 +30,6 @@ Gem::Specification.new do |spec|
spec.require_paths = ["lib"]

# Uncomment to register a new dependency of your gem
spec.add_dependency "http"

# For more information and examples about making a new gem, check out our
# guide at: https://bundler.io/guides/creating_gem.html
Expand Down
23 changes: 1 addition & 22 deletions my_rails_app/Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
PATH
remote: ../my_namespace-my_gem
specs:
my_namespace-my_gem (0.1.0)
http
my_namespace-my_gem (0.0.1)

GEM
remote: https://rubygems.org/
Expand Down Expand Up @@ -81,8 +80,6 @@ GEM
minitest (>= 5.1)
mutex_m
tzinfo (~> 2.0)
addressable (2.8.6)
public_suffix (>= 2.0.2, < 6.0)
base64 (0.2.0)
bigdecimal (3.1.6)
bindex (0.8.1)
Expand All @@ -96,25 +93,11 @@ GEM
debug (1.9.1)
irb (~> 1.10)
reline (>= 0.3.8)
domain_name (0.6.20240107)
drb (2.2.0)
ruby2_keywords
erubi (1.12.0)
ffi (1.16.3)
ffi-compiler (1.0.1)
ffi (>= 1.0.0)
rake
globalid (1.2.1)
activesupport (>= 6.1)
http (5.2.0)
addressable (~> 2.8)
base64 (~> 0.1)
http-cookie (~> 1.0)
http-form_data (~> 2.2)
llhttp-ffi (~> 0.5.0)
http-cookie (1.0.5)
domain_name (~> 0.5)
http-form_data (2.3.0)
i18n (1.14.1)
concurrent-ruby (~> 1.0)
importmap-rails (2.0.1)
Expand All @@ -125,9 +108,6 @@ GEM
irb (1.11.2)
rdoc
reline (>= 0.4.2)
llhttp-ffi (0.5.0)
ffi-compiler (~> 1.0)
rake (~> 13.0)
loofah (2.22.0)
crass (~> 1.0.2)
nokogiri (>= 1.12.0)
Expand Down Expand Up @@ -170,7 +150,6 @@ GEM
railties (>= 7.0.0)
psych (5.1.2)
stringio
public_suffix (5.0.4)
puma (6.4.2)
nio4r (~> 2.0)
racc (1.7.3)
Expand Down
3 changes: 3 additions & 0 deletions my_rails_app/config/application.rb
Original file line number Diff line number Diff line change
Expand Up @@ -38,5 +38,8 @@ class Application < Rails::Application

# Don't generate system test files.
config.generators.system_tests = nil

config.autoload_paths << Rails.root.join('..', 'my_namespace-my_gem', "lib")
config.eager_load_paths << Rails.root.join('..', 'my_namespace-my_gem', "lib")
end
end