k_template 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.builders/_.rb +1 -0
- data/.builders/boot.rb +39 -0
- data/.builders/generators/01-bootstrap.rb +134 -0
- data/.releaserc.json +40 -0
- data/.rspec +3 -0
- data/.rubocop.yml +106 -0
- data/CHANGELOG.md +5 -0
- data/CODE_OF_CONDUCT.md +74 -0
- data/Gemfile +22 -0
- data/Guardfile +30 -0
- data/LICENSE.txt +21 -0
- data/README.md +109 -0
- data/Rakefile +34 -0
- data/bin/console +16 -0
- data/bin/setup +11 -0
- data/lib/k_template/version.rb +5 -0
- data/lib/k_template.rb +8 -0
- data/lib/ktemplate.rb +17 -0
- data/package-lock.json +8182 -0
- data/package.json +14 -0
- data/sig/k_template.rbs +4 -0
- metadata +82 -0
data/lib/ktemplate.rb
ADDED
@@ -0,0 +1,17 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require 'k_template/version'
|
4
|
+
|
5
|
+
module KTemplate
|
6
|
+
# raise KTemplate::Error, 'Sample message'
|
7
|
+
Error = Class.new(StandardError)
|
8
|
+
|
9
|
+
# Your code goes here...
|
10
|
+
end
|
11
|
+
|
12
|
+
if ENV.fetch('KLUE_DEBUG', 'false').downcase == 'true'
|
13
|
+
namespace = 'KTemplate::Version'
|
14
|
+
file_path = $LOADED_FEATURES.find { |f| f.include?('k_template/version') }
|
15
|
+
version = KTemplate::VERSION.ljust(9)
|
16
|
+
puts "#{namespace.ljust(35)} : #{version.ljust(9)} : #{file_path}"
|
17
|
+
end
|