Skip to content

Commit

Permalink
Release 2.0.0.alpha.6 - complete rewrite and change of API
Browse files Browse the repository at this point in the history
  • Loading branch information
andreasronge committed Apr 15, 2012
1 parent 6949fe0 commit 307c96a
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 47 deletions.
15 changes: 9 additions & 6 deletions CHANGELOG
@@ -1,11 +1,14 @@
* Lots of refactoring and better/more RSpecs
* Cypher DSL support
* Modularization - e.g. make it possible to create your own wrapper
== 2.0.0.alpha.6 / 2012-04-15
* Complete rewrite and smaller change of API + lots of refactoring and better RSpecs
* Moved code to the neo4j-core and neo4j-wrapper gems
* Changed API - index properties using the Neo4j::Rails::Model (property :name, :index => :exact)
* Changed API - rel_type always returns a Symbol
* Changed API - #rels and #rel first parameter is always :outgoing, :incoming or :both
* Cypher DSL support, see neo4j-core
* Made the Lucene indexing more flexible
* Renamed size methods to count since it does simply count all the relationships (e.g. Person.all.count)
# Changed API - rel_type always returns a Symbol
* Changed API - #rels and #rel first parameter is always :outgoing, :incoming or :both
* Moved code to the neo4j-core and neo4j-wrapper gems
* Modularization - e.g. make it possible to create your own wrapper
* Added builder method for has_one relationships (just like ActiveRecord build_best_friend)

== 2.0.0.alpha.5 / 2012-03-27
* Fix for HA/cluster bug [#173]
Expand Down
4 changes: 3 additions & 1 deletion README.rdoc
Expand Up @@ -89,6 +89,8 @@ Example of using Neo4j with Rails 3 (ActiveModel)
u = User.new(:name => 'kalle', :age => 42, :email => "bla@foo.com")
u.save

Make sure you are using JRuby !

==== Generate a Rails Application

Example of creating an Neo4j Application from scratch:
Expand Down Expand Up @@ -204,4 +206,4 @@ Do you need help - send me an email (andreas.ronge at gmail dot com).
* \Neo4j - Dual free software/commercial license, see http://neo4j.org/

Notice there are different license for the neo4j-community, neo4j-advanced and neo4j-enterprise jar gems.
Only the neo4j-community gem is by default required.
Only the neo4j-community gem is by default required.
40 changes: 1 addition & 39 deletions Rakefile
Expand Up @@ -3,6 +3,7 @@ $LOAD_PATH.unshift File.expand_path("../lib", __FILE__)

require 'rake'
require 'rspec/core/rake_task'
require "bundler/gem_tasks"
require 'rdoc/task'

require "neo4j/version"
Expand All @@ -14,51 +15,12 @@ RSpec::Core::RakeTask.new("spec") do |t|
t.pattern = 'spec/**/*_spec.rb'
end

task :check_commited do
status = %x{git status}
fail("Can't release gem unless everything is committed") unless status =~ /nothing to commit \(working directory clean\)|nothing added to commit but untracked files present/
end

desc "Clean all, delete all files that are not in git"
task :clean_all do
system "git clean -df"
end

desc "Create the Neo4j gem"
task :build do
system "gem build neo4j.gemspec"
end

desc "Release gem to gemcutter"
task :release => [:check_commited, :build] do
system "gem push neo4j-#{Neo4j::VERSION}-java.gem"
end

desc "Generate documentation for Neo4j.rb"
RDoc::Task.new do |rdoc|
rdoc.rdoc_dir = 'doc/rdoc'
rdoc.title = "Neo4j.rb #{Neo4j::VERSION}"
rdoc.options << '--webcvs=http://github.com/andreasronge/neo4j/tree/master/'
# rdoc.options << '-f' << 'horo'
rdoc.options << '-c' << 'utf-8'
rdoc.options << '-m' << 'README.rdoc'
rdoc.rdoc_files.include('README.rdoc')
rdoc.rdoc_files.include('lib/**/*.rb')
end

require 'rake/testtask'
Rake::TestTask.new(:test_generators) do |test|
test.libs << 'lib' << 'test'
test.pattern = 'test/**/*_test.rb'
test.verbose = true
end

desc 'Upload documentation to RubyForge.'
task 'upload-docs' do
sh "scp -r doc/rdoc/* " +
"ronge@rubyforge.org:/var/www/gforge-projects/neo4j/"
end


task :default => 'spec'

2 changes: 1 addition & 1 deletion lib/neo4j/version.rb
@@ -1,3 +1,3 @@
module Neo4j
VERSION = "2.0.0.alpha.5"
VERSION = "2.0.0.alpha.6"
end

0 comments on commit 307c96a

Please sign in to comment.