diff --git a/Gemfile b/Gemfile new file mode 100644 index 0000000..cb54ba0 --- /dev/null +++ b/Gemfile @@ -0,0 +1,4 @@ +source 'https://rubygems.org' + +# Specify your gem's dependencies in katip.gemspec +gemspec diff --git a/Gemfile.lock b/Gemfile.lock new file mode 100644 index 0000000..d31ee1a --- /dev/null +++ b/Gemfile.lock @@ -0,0 +1,17 @@ +PATH + remote: . + specs: + katip (0.1.0) + +GEM + remote: https://rubygems.org/ + specs: + rake (10.1.0) + +PLATFORMS + ruby + +DEPENDENCIES + bundler (~> 1.3) + katip! + rake diff --git a/Rakefile b/Rakefile new file mode 100644 index 0000000..2995527 --- /dev/null +++ b/Rakefile @@ -0,0 +1 @@ +require "bundler/gem_tasks" diff --git a/katip.gemspec b/katip.gemspec new file mode 100644 index 0000000..9a008a7 --- /dev/null +++ b/katip.gemspec @@ -0,0 +1,24 @@ +# coding: utf-8 +lib = File.expand_path('../lib', __FILE__) +$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib) +require 'katip/version' + +Gem::Specification.new do |spec| + spec.name = 'katip' + spec.version = Katip::VERSION + spec.authors = %w[lab2023] + spec.email = %w[info@lab2023.com] + spec.description = %q{TODO: Write a gem description} + spec.summary = %q{TODO: Write a gem summary} + spec.homepage = 'https://github.com/kebab-project/katip' + spec.license = 'MIT' + + spec.files = `git ls-files`.split($/) + spec.executables = %w[daktilo] + spec.require_paths = %w[lib] + + spec.add_development_dependency 'bundler', '~> 1.3' + spec.add_development_dependency 'rake' + + spec.extra_rdoc_files = %w[README.md CHANGELOG.md] +end diff --git a/daktilo b/lib/bin/daktilo similarity index 100% rename from daktilo rename to lib/bin/daktilo diff --git a/lib/katip.rb b/lib/katip.rb new file mode 100644 index 0000000..eb267da --- /dev/null +++ b/lib/katip.rb @@ -0,0 +1,5 @@ +require 'katip/version' + +module Katip + require 'katip/railtie' if defined?(Rails) +end diff --git a/lib/katip/railtie.rb b/lib/katip/railtie.rb new file mode 100644 index 0000000..1bddd09 --- /dev/null +++ b/lib/katip/railtie.rb @@ -0,0 +1,12 @@ +require 'katip' +require 'rails' + +module Katip + class Railtie < Rails::Railtie + railtie_name :katip + + rake_tasks do + load "tasks/katip.rake" + end + end +end \ No newline at end of file diff --git a/lib/katip/version.rb b/lib/katip/version.rb new file mode 100644 index 0000000..41ba0a6 --- /dev/null +++ b/lib/katip/version.rb @@ -0,0 +1,3 @@ +module Katip + VERSION = '0.1.0' +end diff --git a/lib/tasks/katip.rake b/lib/tasks/katip.rake new file mode 100644 index 0000000..c8bb56e --- /dev/null +++ b/lib/tasks/katip.rake @@ -0,0 +1,6 @@ +namespace :katip do + desc 'Create CHANGELOG.md' + task :create => [:environment] do + put 'Onur Ozgur OZKAN' + end +end \ No newline at end of file