diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..4040c6c --- /dev/null +++ b/.gitignore @@ -0,0 +1,4 @@ +*.gem +.bundle +Gemfile.lock +pkg/* diff --git a/Gemfile b/Gemfile new file mode 100644 index 0000000..a41bbaf --- /dev/null +++ b/Gemfile @@ -0,0 +1,4 @@ +source "http://rubygems.org" + +# Specify your gem's dependencies in pacer-graph.gemspec +gemspec diff --git a/Rakefile b/Rakefile new file mode 100644 index 0000000..182ce9b --- /dev/null +++ b/Rakefile @@ -0,0 +1,33 @@ +require 'bundler' +Bundler::GemHelper.install_tasks + +require File.expand_path('../lib/pacer-graph/version', __FILE__) + +def jar_name + "pacer-graph-#{ Pacer::Graph::VERSION }-standalone.jar" +end + +file 'pom.xml' => 'lib/pacer-graph/version.rb' do + pom = File.read 'pom.xml' + when_writing('Update pom.xml version number') do + updated = false + open 'pom.xml', 'w' do |f| + pom.each_line do |line| + if not updated and line =~ %r{.*} + f << line.sub(%r{.*}, "#{ Pacer::Graph::VERSION }") + updated = true + else + f << line + end + end + end + end +end + +file jar_name => 'pom.xml' do + when_writing("Execute 'mvn package' task") do + puts system('mvn clean package') + end +end + +task :build => jar_name diff --git a/VERSION b/VERSION new file mode 100644 index 0000000..3eefcb9 --- /dev/null +++ b/VERSION @@ -0,0 +1 @@ +1.0.0 diff --git a/lib/pacer-graph.rb b/lib/pacer-graph.rb new file mode 100644 index 0000000..3de05b7 --- /dev/null +++ b/lib/pacer-graph.rb @@ -0,0 +1,5 @@ +module Pacer + module Graph + # Your code goes here... + end +end diff --git a/lib/pacer-graph/version.rb b/lib/pacer-graph/version.rb new file mode 100644 index 0000000..0c03c8d --- /dev/null +++ b/lib/pacer-graph/version.rb @@ -0,0 +1,5 @@ +module Pacer + module Graph + VERSION = "1.0.1" + end +end diff --git a/pacer-graph.gemspec b/pacer-graph.gemspec new file mode 100644 index 0000000..f966c01 --- /dev/null +++ b/pacer-graph.gemspec @@ -0,0 +1,21 @@ +# -*- encoding: utf-8 -*- +$:.push File.expand_path("../lib", __FILE__) +require "pacer-graph/version" + +Gem::Specification.new do |s| + s.name = "pacer-graph" + s.version = Pacer::Graph::VERSION + s.platform = Gem::Platform::RUBY + s.authors = ["TODO: Write your name"] + s.email = ["TODO: Write your email address"] + s.homepage = "" + s.summary = %q{TODO: Write a gem summary} + s.description = %q{TODO: Write a gem description} + + s.rubyforge_project = "pacer-graph" + + s.files = `git ls-files`.split("\n") + s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n") + s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) } + s.require_paths = ["lib"] +end diff --git a/pom.xml b/pom.xml new file mode 100644 index 0000000..29a8704 --- /dev/null +++ b/pom.xml @@ -0,0 +1,117 @@ + + + 4.0.0 + com.tinkerpop.pacer + pacer-graph + 1.0.1 + pom + https://github.com/pangloss/pacer + Pacer Tinkerpop core dependencies including Blueprints Core + and Pipes. + + + 2011 + + + Darrick Wiebe + darrick@innatesoftware.com + http://github.com/pangloss + + + + + + com.tinkerpop.blueprints + blueprints-core + 0.7-SNAPSHOT + + + + com.tinkerpop + pipes + 0.5-SNAPSHOT + + + + + + tinkerpop-repository + TinkerPop Maven2 Repository + http://tinkerpop.com/maven2 + + true + always + + + + + + + tinkerpop-repository + TinkerPop Maven2 Repository + ftp://ftp.tinkerpop.com:21/public/maven2/ + + + + + ${basedir}/target + ${artifactId}-${version} + + + ${basedir}/src/main/resources + + + + + + ${basedir}/src/test/resources + + + + + + maven-compiler-plugin + + 1.6 + 1.6 + + + + maven-assembly-plugin + 2.2-beta-4 + + + package + + attached + + + + + + pom/standalone.xml + + ${project.artifactId}-${project.version} + target + target/assembly/work + warn + + + + org.apache.maven.plugins + maven-javadoc-plugin + 2.6.1 + + + + + org.apache.maven.wagon + wagon-ftp + 1.0-alpha-6 + + + + + diff --git a/pom/standalone.xml b/pom/standalone.xml new file mode 100644 index 0000000..4bc195b --- /dev/null +++ b/pom/standalone.xml @@ -0,0 +1,22 @@ + + standalone + + jar + + false + + + + target/classes + / + + + + + + / + true + runtime + + +