Skip to content

Commit

Permalink
Skeleton of gem
Browse files Browse the repository at this point in the history
  • Loading branch information
Bess Sadler committed Aug 10, 2011
1 parent d1ae1bf commit d49ecdd
Show file tree
Hide file tree
Showing 8 changed files with 122 additions and 0 deletions.
1 change: 1 addition & 0 deletions .rvmrc
@@ -0,0 +1 @@
rvm use ree-1.8.7@ruby_ftk --create
3 changes: 3 additions & 0 deletions Gemfile
@@ -0,0 +1,3 @@
source "http://rubygems.org"

gemspec
44 changes: 44 additions & 0 deletions Gemfile.lock
@@ -0,0 +1,44 @@
PATH
remote: .
specs:
ruby_ftk (0.0.1)
logger
mediashelf-loggable

GEM
remote: http://rubygems.org/
specs:
RedCloth (4.2.7)
columnize (0.3.4)
linecache (0.46)
rbx-require-relative (> 0.0.4)
logger (1.2.8)
mediashelf-loggable (0.4.7)
mocha (0.9.12)
rack (1.3.2)
rbx-require-relative (0.0.5)
rcov (0.9.10)
rspec (1.3.2)
rspec-rails (1.3.4)
rack (>= 1.0.0)
rspec (~> 1.3.1)
ruby-debug (0.10.4)
columnize (>= 0.1)
ruby-debug-base (~> 0.10.4.0)
ruby-debug-base (0.10.4)
linecache (>= 0.3)
yard (0.6.5)

PLATFORMS
ruby

DEPENDENCIES
RedCloth
mocha
rcov
rspec (< 2.0)
rspec-rails (< 2.0.0)
ruby-debug
ruby-debug-base
ruby_ftk!
yard (= 0.6.5)
9 changes: 9 additions & 0 deletions lib/ruby_ftk.rb
@@ -0,0 +1,9 @@

class RubyFtk

def initialize(args = {})

end


end
1 change: 1 addition & 0 deletions lib/ruby_ftk/version.rb
@@ -0,0 +1 @@
GEMVERSION = "0.0.1"
41 changes: 41 additions & 0 deletions ruby_ftk.gemspec
@@ -0,0 +1,41 @@
# -*- encoding: utf-8 -*-
$:.push File.expand_path("../lib", __FILE__)
require "ruby_ftk/version"
require 'bundler'

Gem::Specification.new do |s|
s.name = "ruby_ftk"
s.version = GEMVERSION
s.platform = Gem::Platform::RUBY
s.authors = ["Bess Sadler"]
s.email = ["bess@stanford.edu"]
s.homepage = "http://github.com/sul_dlss/ruby_ftk_toolkit"
s.summary = %q{Convenience tasks for working with FTK from ruby.}
s.description = %q{}
s.files = `git ls-files`.split("\n")
s.test_files = `git ls-files -- {spec}/*`.split("\n")
# s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
s.require_paths = ["lib"]

s.required_rubygems_version = ">= 1.3.6"

s.add_dependency "logger"
s.add_dependency "mediashelf-loggable"

# Bundler will install these gems too if you've checked this out from source from git and run 'bundle install'
# It will not add these as dependencies if you require lyber-core for other projects
s.add_development_dependency "ruby-debug"
s.add_development_dependency "ruby-debug-base"
s.add_development_dependency "rspec", "< 2.0" # We're not ready to upgrade to rspec 2
s.add_development_dependency 'rspec-rails', '<2.0.0' # rspec-rails 2.0.0 requires Rails 3.
s.add_development_dependency 'mocha'
s.add_development_dependency 'rcov'

s.add_development_dependency 'yard', '0.6.5' # Yard > 0.6.5 won't generate docs.
# I don't know why & don't have time to
# debug it right now

s.add_development_dependency 'RedCloth'

end

16 changes: 16 additions & 0 deletions spec/lib/ruby_ftk_spec.rb
@@ -0,0 +1,16 @@
require File.expand_path(File.dirname(__FILE__) + '/../spec_helper')
require File.join(File.dirname(__FILE__), "/../../lib/ruby_ftk")
require 'rubygems'
require 'ruby-debug'


describe RubyFtk do

context "basic behavior" do
it "can instantiate" do
r = RubyFtk.new
r.class.should eql(RubyFtk)
end
end

end
7 changes: 7 additions & 0 deletions spec/spec_helper.rb
@@ -0,0 +1,7 @@
$: << File.join(File.dirname(__FILE__), "/../../lib")
require 'spec/autorun'
# require 'spec/rails'

Spec::Runner.configure do |config|
config.mock_with :mocha
end

0 comments on commit d49ecdd

Please sign in to comment.