Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Didn't need to create an external gem for the jar file so moved it ba…

…ck into the project.
  • Loading branch information...
commit 6985267dd626b7185f251a2709ce3454240c84cd 1 parent 6801e50
Darrick Wiebe authored
View
2  .gitignore
@@ -18,7 +18,7 @@ pkg
# Project specific
*.graph
*.db
-vendor/pipes*.jar
*.graphml
pkg
tmp
+lib/*.jar
View
27 Rakefile
@@ -24,3 +24,30 @@ YARD::Rake::YardocTask.new do |t|
t.files = ['lib/**/*.rb', '-', 'LICENSE.txt']
t.options = ['--no-private']
end
+
+file 'pom.xml' => 'lib/pacer/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{<version>.*</version>}
+ f << line.sub(%r{<version>.*</version>}, "<version>#{ Pacer::VERSION }</version>")
+ updated = true
+ else
+ f << line
+ end
+ end
+ end
+ end
+end
+
+file Pacer::JAR_PATH => 'pom.xml' do
+ when_writing("Execute 'mvn package' task") do
+ system('mvn clean package')
+ end
+end
+
+task :jar => Pacer::JAR_PATH
+task :build => Pacer::JAR_PATH
+task :install => Pacer::JAR_PATH
View
1  VERSION
@@ -1 +0,0 @@
-0.7.0
View
9 lib/pacer.rb
@@ -3,21 +3,20 @@
require 'rubygems'
module Pacer
- unless const_defined? :VERSION
+ unless const_defined? :PATH
PATH = File.expand_path(File.join(File.dirname(__FILE__), '..'))
- VERSION = File.read(PATH + '/VERSION').chomp
$:.unshift File.join(PATH, 'lib')
-
- START_TIME = Time.now
end
+ require 'pacer/version'
+
if RUBY_VERSION =~ /^1.9/
Enumerator = ::Enumerator
else
Enumerator = Enumerable::Enumerator
end
- require 'pacer-graph'
+ require JAR
require 'pacer/exceptions'
require 'pacer/graph'
View
10 lib/pacer/version.rb
@@ -0,0 +1,10 @@
+module Pacer
+ unless const_defined? :VERSION
+ VERSION = "0.7.0"
+
+ JAR = "pacer-#{ VERSION }-standalone.jar"
+ JAR_PATH = "lib/#{ JAR }"
+
+ START_TIME = Time.now
+ end
+end
View
8 pacer.gemspec
@@ -1,7 +1,10 @@
# -*- encoding: utf-8 -*-
+$:.push File.expand_path("../lib", __FILE__)
+require "pacer/version"
+
Gem::Specification.new do |s|
s.name = "pacer"
- s.version = File.read('VERSION').strip
+ s.version = Pacer::VERSION
s.platform = 'jruby'
s.authors = ["Darrick Wiebe"]
s.email = "darrick@innatesoftware.com"
@@ -10,7 +13,6 @@ Gem::Specification.new do |s|
s.summary = %Q{A very efficient and easy to use graph traversal engine.}
s.description = %Q{Pacer defines routes through a graph and then traverses them very quickly.}
- s.add_dependency 'pacer-graph', '1.0.0'
s.add_dependency 'parslet', '1.2'
s.add_dependency 'fastercsv', '>= 1.5.4'
s.add_development_dependency 'rspec', '~> 2.5.0'
@@ -19,7 +21,7 @@ Gem::Specification.new do |s|
s.add_development_dependency 'yard'
s.add_development_dependency 'rake'
- s.files = `git ls-files`.split("\n")
+ s.files = `git ls-files`.split("\n") + [Pacer::JAR_PATH]
s.test_files = `git ls-files -- spec/*`.split("\n")
s.require_paths = ['lib']
end
View
119 pom.xml
@@ -0,0 +1,119 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project xmlns="http://maven.apache.org/POM/4.0.0"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+ <modelVersion>4.0.0</modelVersion>
+ <groupId>com.tinkerpop.pacer</groupId>
+ <artifactId>pacer</artifactId>
+ <!-- NOTE: the version property is automatically updated with the value in lib/pacer/version.rb -->
+ <version>0.7.0</version>
+ <!-- NOTE: the version property is automatically updated with the value in lib/pacer/version.rb -->
+ <packaging>pom</packaging>
+ <url>https://github.com/pangloss/pacer</url>
+ <name>Pacer Tinkerpop core dependencies including Blueprints Core
+ and Pipes.</name>
+ <description>
+ </description>
+ <inceptionYear>2011</inceptionYear>
+ <developers>
+ <developer>
+ <name>Darrick Wiebe</name>
+ <email>darrick@innatesoftware.com</email>
+ <url>http://github.com/pangloss</url>
+ </developer>
+ </developers>
+ <dependencies>
+ <!-- PROPERTY GRAPH MODEL SUPPORT -->
+ <dependency>
+ <groupId>com.tinkerpop.blueprints</groupId>
+ <artifactId>blueprints-core</artifactId>
+ <version>0.7-SNAPSHOT</version>
+ </dependency>
+ <!-- GRAPH TRAVERSAL SUPPORT -->
+ <dependency>
+ <groupId>com.tinkerpop</groupId>
+ <artifactId>pipes</artifactId>
+ <version>0.5-SNAPSHOT</version>
+ </dependency>
+ </dependencies>
+
+ <repositories>
+ <repository>
+ <id>tinkerpop-repository</id>
+ <name>TinkerPop Maven2 Repository</name>
+ <url>http://tinkerpop.com/maven2</url>
+ <snapshots>
+ <enabled>true</enabled>
+ <updatePolicy>always</updatePolicy>
+ </snapshots>
+ </repository>
+ </repositories>
+
+ <distributionManagement>
+ <repository>
+ <id>tinkerpop-repository</id>
+ <name>TinkerPop Maven2 Repository</name>
+ <url>ftp://ftp.tinkerpop.com:21/public/maven2/</url>
+ </repository>
+ </distributionManagement>
+
+ <build>
+ <directory>${basedir}/target</directory>
+ <finalName>${artifactId}-${version}</finalName>
+ <resources>
+ <resource>
+ <directory>${basedir}/src/main/resources
+ </directory>
+ </resource>
+ </resources>
+ <testResources>
+ <testResource>
+ <directory>${basedir}/src/test/resources
+ </directory>
+ </testResource>
+ </testResources>
+ <plugins>
+ <plugin>
+ <artifactId>maven-compiler-plugin</artifactId>
+ <configuration>
+ <source>1.6</source>
+ <target>1.6</target>
+ </configuration>
+ </plugin>
+ <plugin>
+ <artifactId>maven-assembly-plugin</artifactId>
+ <version>2.2-beta-4</version>
+ <executions>
+ <execution>
+ <phase>package</phase>
+ <goals>
+ <goal>attached</goal>
+ </goals>
+ </execution>
+ </executions>
+ <configuration>
+ <descriptors>
+ <descriptor>pom/standalone.xml</descriptor>
+ </descriptors>
+ <finalName>${project.artifactId}-${project.version}</finalName>
+ <outputDirectory>lib</outputDirectory>
+ <workDirectory>target/assembly/work</workDirectory>
+ <tarLongFileMode>warn</tarLongFileMode>
+ </configuration>
+ </plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-javadoc-plugin</artifactId>
+ <version>2.6.1</version>
+ </plugin>
+ </plugins>
+ <extensions>
+ <extension>
+ <groupId>org.apache.maven.wagon</groupId>
+ <artifactId>wagon-ftp</artifactId>
+ <version>1.0-alpha-6</version>
+ </extension>
+ </extensions>
+ </build>
+
+</project>
View
22 pom/standalone.xml
@@ -0,0 +1,22 @@
+<assembly>
+ <id>standalone</id>
+ <formats>
+ <format>jar</format>
+ </formats>
+ <includeBaseDirectory>false</includeBaseDirectory>
+
+ <fileSets>
+ <fileSet>
+ <directory>target/classes</directory>
+ <outputDirectory>/</outputDirectory>
+ </fileSet>
+ </fileSets>
+
+ <dependencySets>
+ <dependencySet>
+ <outputDirectory>/</outputDirectory>
+ <unpack>true</unpack>
+ <scope>runtime</scope>
+ </dependencySet>
+ </dependencySets>
+</assembly>
View
BIN  vendor/blueprints-dex-adapter-0.2-SNAPSHOT-standalone.jar
Binary file not shown
View
BIN  vendor/blueprints-neo4j-adapter-0.2-SNAPSHOT-standalone.jar
Binary file not shown
View
BIN  vendor/pipes-0.4-SNAPSHOT-standalone.jar
Binary file not shown
Please sign in to comment.
Something went wrong with that request. Please try again.