0
+require 'stone/version'
0
+AUTHOR = 'Nick DeMonner' # can also be an array of Authors
0
+EMAIL = "nick@cladby.com"
0
+DESCRIPTION = "Super-simple data persistence layer created for small applications."
0
+GEM_NAME = 'stone' # what ppl will type to install your gem
0
+RUBYFORGE_PROJECT = 'stone' # The unix name for your project
0
+HOMEPATH = "http://#{RUBYFORGE_PROJECT}.rubyforge.org"
0
+DOWNLOAD_PATH = "http://rubyforge.org/projects/#{RUBYFORGE_PROJECT}"
0
+@config_file = "~/.rubyforge/user-config.yml"
0
+RUBYFORGE_USERNAME = "unknown"
0
+ @config = YAML.load(File.read(File.expand_path(@config_file)))
0
+ERROR: No rubyforge config file found: #{@config_file}
0
+Run 'rubyforge setup' to prepare your env for access to Rubyforge
0
+ - See http://newgem.rubyforge.org/rubyforge.html for more details
0
+ RUBYFORGE_USERNAME.replace @config["username"]
0
+# UNCOMMENT IF REQUIRED:
0
+# REV = `svn info`.each {|line| if line =~ /^Revision:/ then k,v = line.split(': '); break v.chomp; else next; end} rescue nil
0
+VERS = Stone::VERSION::STRING + (REV ? ".#{REV}" : "")
0
+RDOC_OPTS = ['--quiet', '--title', 'stone documentation',
0
+ "--opname", "index.html",
0
+ @extra_deps.reject! { |x| Array(x).first == 'hoe' }
0
+# Generate all the Rake tasks
0
+# Run 'rake -T' to see list of generated tasks (from gem root directory)
0
+$hoe = Hoe.new(GEM_NAME, VERS) do |p|
0
+ p.developer(AUTHOR, EMAIL)
0
+ p.description = DESCRIPTION
0
+ p.summary = DESCRIPTION
0
+ p.rubyforge_name = RUBYFORGE_PROJECT if RUBYFORGE_PROJECT
0
+ p.test_globs = ["test/**/test_*.rb"]
0
+ p.clean_globs |= ['**/.*.sw?', '*.gem', '.config', '**/.DS_Store'] #An array of file patterns to delete on clean.
0
+ p.changes = p.paragraphs_of("History.txt", 0..1).join("\n\n")
0
+ #p.extra_deps = [] # An array of rubygem dependencies [name, version], e.g. [ ['active_support', '>= 1.3.1'] ]
0
+ #p.spec_extras = {} # A hash of extra values to set in the gemspec.
0
+CHANGES = $hoe.paragraphs_of('History.txt', 0..1).join("\\n\\n")
0
+PATH = (RUBYFORGE_PROJECT == GEM_NAME) ? RUBYFORGE_PROJECT : "#{RUBYFORGE_PROJECT}/#{GEM_NAME}"
0
+$hoe.remote_rdoc_dir = File.join(PATH.gsub(/^#{RUBYFORGE_PROJECT}\/?/,''), 'rdoc')
0
+$hoe.rsync_args = '-av --delete --ignore-errors'