Skip to content

Commit

Permalink
Add directory helpers
Browse files Browse the repository at this point in the history
  • Loading branch information
owaiswiz committed Nov 29, 2019
1 parent c8ec39a commit bdd29c7
Show file tree
Hide file tree
Showing 4 changed files with 44 additions and 3 deletions.
22 changes: 22 additions & 0 deletions Gemfile.lock
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
PATH
remote: .
specs:
kawaii_text (0.1.0)

GEM
remote: https://rubygems.org/
specs:
minitest (5.13.0)
rake (10.5.0)

PLATFORMS
ruby

DEPENDENCIES
bundler (~> 1.17)
kawaii_text!
minitest (~> 5.0)
rake (~> 10.0)

BUNDLED WITH
1.17.3
4 changes: 2 additions & 2 deletions kawaii_text.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ Gem::Specification.new do |spec|
spec.metadata["allowed_push_host"] = "TODO: Set to 'http://mygemserver.com'"

spec.metadata["homepage_uri"] = spec.homepage
spec.metadata["source_code_uri"] = "TODO: Put your gem's public repo URL here."
spec.metadata["changelog_uri"] = "TODO: Put your gem's CHANGELOG.md URL here."
spec.metadata["source_code_uri"] = "https://github.com/owaiswiz/kawaiitext"
spec.metadata["changelog_uri"] = "https://github.com/owaiswiz/kawaiitext/releases"
else
raise "RubyGems 2.0 or newer is required to protect against " \
"public gem pushes."
Expand Down
4 changes: 3 additions & 1 deletion lib/kawaii_text.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
require "kawaiitext/version"
require "kawaii_text/version"
require "kawaii_text/directory_helpers"
require "kawaii_text/generator"

module KawaiiText
class Error < StandardError; end
Expand Down
17 changes: 17 additions & 0 deletions lib/kawaii_text/directory_helpers.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
module KawaiiText
def self.root
File.dirname __dir__
end

def self.assets
File.join root, 'assets'
end

def self.backgrounds_dir
File.join assets, 'backgrounds'
end

def self.fonts_dir
File.join assets, 'fonts'
end
end

0 comments on commit bdd29c7

Please sign in to comment.