Skip to content

Commit

Permalink
#6 Set gem
Browse files Browse the repository at this point in the history
  • Loading branch information
Onur Ozgur OZKAN committed Jul 18, 2013
1 parent c820767 commit 416e6c8
Show file tree
Hide file tree
Showing 9 changed files with 72 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
source 'https://rubygems.org'

# Specify your gem's dependencies in katip.gemspec
gemspec
17 changes: 17 additions & 0 deletions Gemfile.lock
Original file line number Diff line number Diff line change
@@ -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
1 change: 1 addition & 0 deletions Rakefile
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
require "bundler/gem_tasks"
24 changes: 24 additions & 0 deletions katip.gemspec
Original file line number Diff line number Diff line change
@@ -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
File renamed without changes.
5 changes: 5 additions & 0 deletions lib/katip.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
require 'katip/version'

module Katip
require 'katip/railtie' if defined?(Rails)
end
12 changes: 12 additions & 0 deletions lib/katip/railtie.rb
Original file line number Diff line number Diff line change
@@ -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
3 changes: 3 additions & 0 deletions lib/katip/version.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
module Katip
VERSION = '0.1.0'
end
6 changes: 6 additions & 0 deletions lib/tasks/katip.rake
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
namespace :katip do
desc 'Create CHANGELOG.md'
task :create => [:environment] do
put 'Onur Ozgur OZKAN'
end
end

0 comments on commit 416e6c8

Please sign in to comment.