Skip to content

Commit

Permalink
updated gem name
Browse files Browse the repository at this point in the history
  • Loading branch information
Shweta-tech committed Apr 13, 2023
1 parent b90bfd9 commit a28da5a
Show file tree
Hide file tree
Showing 7 changed files with 17 additions and 17 deletions.
2 changes: 1 addition & 1 deletion Gemfile
Expand Up @@ -2,7 +2,7 @@

source "https://rubygems.org"

# Specify your gem's dependencies in to_pdf.gemspec
# Specify your gem's dependencies in ruby_pdf.gemspec
gemspec

gem "rake", "~> 13.0"
Expand Down
6 changes: 3 additions & 3 deletions Gemfile.lock
@@ -1,8 +1,8 @@
PATH
remote: .
specs:
to_pdf (0.1.0)
pdfkit
ruby_pdf (0.1.0)
pdfkit (~> 0.8)

GEM
remote: https://rubygems.org/
Expand Down Expand Up @@ -45,8 +45,8 @@ PLATFORMS

DEPENDENCIES
rake (~> 13.0)
ruby_pdf!
standard (~> 1.3)
to_pdf!

BUNDLED WITH
2.2.33
2 changes: 1 addition & 1 deletion bin/console
Expand Up @@ -2,7 +2,7 @@
# frozen_string_literal: true

require "bundler/setup"
require "to_pdf"
require "ruby_pdf"

# You can add fixtures and/or initialization code here to make experimenting
# with your gem easier. You can also use a different console, if you like.
Expand Down
6 changes: 3 additions & 3 deletions lib/to_pdf.rb → lib/ruby_pdf.rb
@@ -1,13 +1,13 @@
# frozen_string_literal: true

require_relative "to_pdf/version"
require_relative "ruby_pdf/version"
require 'pdfkit'

module ToPdf
module RubyPdf
class PdfGenerator
def self.generate(html)
kit = PDFKit.new(html)
kit.to_pdf
kit.ruby_pdf
end
end
end
2 changes: 1 addition & 1 deletion lib/to_pdf/version.rb → lib/ruby_pdf/version.rb
@@ -1,5 +1,5 @@
# frozen_string_literal: true

module ToPdf
module RubyPdf
VERSION = "0.1.0"
end
14 changes: 7 additions & 7 deletions to_pdf.gemspec → ruby_pdf.gemspec
@@ -1,24 +1,24 @@
# frozen_string_literal: true

require_relative "lib/to_pdf/version"
require_relative "lib/ruby_pdf/version"

Gem::Specification.new do |spec|
spec.name = "to_pdf"
spec.version = ToPdf::VERSION
spec.name = "ruby_pdf"
spec.version = RubyPdf::VERSION
spec.authors = ["Shweta-tech"]
spec.email = ["shwetapanwar97@gmail.com"]

spec.summary = "Convert your HTMLs to PDF files"
# spec.description = "Write a longer description or delete this line."
spec.homepage = "https://github.com/Shweta-tech/toPDF"
spec.homepage = "https://github.com/Shweta-tech/ruby_pdf"
spec.license = "MIT"
spec.required_ruby_version = ">= 2.6.0"

spec.metadata["allowed_push_host"] = "https://rubygems.org/gems/to_pdf"
spec.metadata["allowed_push_host"] = "https://rubygems.org/gems/ruby_pdf"

spec.metadata["homepage_uri"] = spec.homepage
spec.metadata["source_code_uri"] = spec.homepage
spec.metadata["changelog_uri"] = "https://github.com/Shweta-tech/toPDF/blob/main/CHANGELOG.md"
spec.metadata["changelog_uri"] = "https://github.com/Shweta-tech/ruby-pdf/blob/main/CHANGELOG.md"

# Specify which files should be added to the gem when it is released.
# The `git ls-files -z` loads the files in the RubyGem that have been added into git.
Expand All @@ -30,7 +30,7 @@ Gem::Specification.new do |spec|
spec.bindir = "exe"
spec.executables = spec.files.grep(%r{\Aexe/}) { |f| File.basename(f) }
spec.require_paths = ["lib"]
spec.add_dependency "pdfkit"
spec.add_dependency "pdfkit", '~> 0.8'


# Uncomment to register a new dependency of your gem
Expand Down
2 changes: 1 addition & 1 deletion sig/to_pdf.rbs → sig/ruby_pdf.rbs
@@ -1,4 +1,4 @@
module ToPdf
module RubyPdf
VERSION: String
# See the writing guide of rbs: https://github.com/ruby/rbs#guides
end

0 comments on commit a28da5a

Please sign in to comment.