Skip to content

Commit

Permalink
Create gem structure
Browse files Browse the repository at this point in the history
  • Loading branch information
Vlad committed May 15, 2014
1 parent dfedad5 commit 635a06d
Show file tree
Hide file tree
Showing 7 changed files with 64 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .rspec
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
--colour
--format documentation
Empty file added CHANGELOG.md
Empty file.
2 changes: 2 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
source 'https://rubygems.org'
gemspec
17 changes: 17 additions & 0 deletions Rakefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
RAKE_ROOT = File.dirname(__FILE__)
$LOAD_PATH << File.join(RAKE_ROOT, 'tasks')

# Load all tasks
Dir['tasks/**/*.rake'].each { |task| load task }

# Bundler
require "bundler/gem_tasks"

# RSpec
require 'rspec/core/rake_task'
RSpec::Core::RakeTask.new

# Default task
task :default do
puts `rake -T`
end
2 changes: 2 additions & 0 deletions lib/vscripts.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
module VScripts
end
6 changes: 6 additions & 0 deletions lib/vscripts/version.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# Version number
module VScripts
VERSION = File.read(File.expand_path('../../../VERSION', __FILE__)).strip
VERSION_MAJOR, VERSION_MINOR, VERSION_PATCH = VERSION.split('.')
VERSION_C = "VScripts #{VERSION} (c) 2014 Vlad Ghinea"
end
35 changes: 35 additions & 0 deletions vscripts.gemspec
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
# coding: utf-8
lib = File.expand_path('../lib', __FILE__)
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
require 'vscripts/version'

Gem::Specification.new do |spec|
spec.name = 'vscripts'
spec.version = VScripts::VERSION
spec.authors = ['Vlad Ghinea']
spec.email = ['[email protected]']
spec.description = %q{VladGh.com's automation scripts}
spec.summary = %q{VladGh.com's automation scripts}
spec.homepage = 'https://github.com/vghn/vscripts'
spec.license = 'Apache 2.0'

spec.files = `git ls-files -z`.split("\x0")
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
spec.require_paths = ['lib']

spec.add_runtime_dependency 'aws-sdk'
spec.add_runtime_dependency 'unicorn'
spec.add_runtime_dependency 'sinatra'
spec.add_runtime_dependency 'trollop'

spec.add_development_dependency 'bundler'
spec.add_development_dependency 'rake'
spec.add_development_dependency 'rack'
spec.add_development_dependency 'rack-test'
spec.add_development_dependency 'rspec'
spec.add_development_dependency 'yard'
spec.add_development_dependency 'reek'
spec.add_development_dependency 'rubocop'
spec.add_development_dependency 'fpm'
end

0 comments on commit 635a06d

Please sign in to comment.