Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding sample user functionality to the Gem #1

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
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.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
35 changes: 35 additions & 0 deletions Gemfile.lock
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
PATH
remote: .
specs:
maker (0.1.0)

GEM
remote: https://rubygems.org/
specs:
diff-lcs (1.3)
rake (10.5.0)
rspec (3.7.0)
rspec-core (~> 3.7.0)
rspec-expectations (~> 3.7.0)
rspec-mocks (~> 3.7.0)
rspec-core (3.7.1)
rspec-support (~> 3.7.0)
rspec-expectations (3.7.0)
diff-lcs (>= 1.2.0, < 2.0)
rspec-support (~> 3.7.0)
rspec-mocks (3.7.0)
diff-lcs (>= 1.2.0, < 2.0)
rspec-support (~> 3.7.0)
rspec-support (3.7.1)

PLATFORMS
ruby

DEPENDENCIES
bundler (~> 1.16)
maker!
rake (~> 10.0)
rspec (~> 3.0)

BUNDLED WITH
1.16.1
1 change: 1 addition & 0 deletions lib/maker.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
require "maker/version"
require "maker/user"

module Maker
# Your code goes here...
Expand Down
7 changes: 7 additions & 0 deletions lib/maker/user.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
module Maker
class User
def hello
p "hello"
end
end
end
7 changes: 3 additions & 4 deletions maker.gemspec
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

lib = File.expand_path("../lib", __FILE__)
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
require "maker/version"
Expand All @@ -9,9 +8,9 @@ Gem::Specification.new do |spec|
spec.authors = ["Mohnish G J"]
spec.email = ["mail4mohnish@gmail.com"]

spec.summary = %q{TODO: Write a short summary, because RubyGems requires one.}
spec.description = %q{TODO: Write a longer description or delete this line.}
spec.homepage = "TODO: Put your gem's website or public repo URL here."
spec.summary = "A sample app"
spec.description = "A sample app"
spec.homepage = "https://www.google.com.sg"

# Prevent pushing this gem to RubyGems.org. To allow pushes either set the 'allowed_push_host'
# to allow pushing to a single host or delete this section to allow pushing to any host.
Expand Down