This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Document < Neo4j::Model | |
property :file_uid, :type => String | |
property :file_name, :type => String | |
file_accessor :file | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
source 'http://rubygems.org' | |
gem "neo4j", "~> 1.3.0" | |
gem "devise-neo4j" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
RAILS_ENV=production thin start | |
The signal QUIT is in use by the JVM and will not work correctly on this platform | |
>> Using rack adapter | |
JopensslService.java:66 warning: already initialized constant PKCS1_PADDING | |
JopensslService.java:66 warning: already initialized constant SSLV23_PADDING | |
JopensslService.java:66 warning: already initialized constant NO_PADDING | |
JopensslService.java:66 warning: already initialized constant PKCS1_OAEP_PADDING | |
JopensslService.java:66 warning: already initialized constant UNIVERSAL_TAG_NAME | |
JopensslService.java:66 warning: already initialized constant EOC | |
JopensslService.java:66 warning: already initialized constant BOOLEAN |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FIRST REQUEST | |
Concurrency Level: 1 | |
Time taken for tests: 0.670 seconds | |
Complete requests: 1 | |
Failed requests: 0 | |
Write errors: 0 | |
Total transferred: 2956 bytes | |
HTML transferred: 2348 bytes | |
Requests per second: 1.49 [#/sec] (mean) | |
Time per request: 670.401 [ms] (mean) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
> rvm info | |
jruby-1.6.5: | |
system: | |
uname: "Darwin dima-mac.local 11.2.0 Darwin Kernel Version 11.2.0: Tue Aug 9 20:54:00 PDT 2011; root:xnu-1699.24.8~1/RELEASE_X86_64 x86_64" | |
bash: "/bin/bash => GNU bash, version 3.2.48(1)-release (x86_64-apple-darwin11)" | |
zsh: "/bin/zsh => zsh 4.3.11 (i386-apple-darwin11.0)" | |
rvm: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
> rvm use jruby | |
Using /Users/dnagir/.rvm/gems/jruby-1.6.5 | |
> bundle exec rspec spec/models/user_spec.rb --backtrace | |
NameError: uninitialized constant ActiveRecord | |
> rvm use 1.9.3 | |
Using /Users/dnagir/.rvm/gems/ruby-1.9.3-p0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | wall time | specs | | |
# JRuby | 69s | 34s | | |
# Ruby 1.9.3 | 28s | 16s | | |
# x faster | x2.5 | 2.1 | | |
> ruby -v | |
jruby 1.6.5 (ruby-1.9.2-p136) (2011-10-25 9dcd388) (Java HotSpot(TM) 64-Bit Server VM 1.6.0_29) [darwin-x86_64-java] | |
> time bundle exec rspec spec | |
Finished in 33.8 seconds |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
......................***......FFFFFFFF.FFF.....F...*..............FFFFFFFFFF*.F...............**........F..FFFF.FF.....FFF.FFFFF...F.......F** | |
Pending: | |
Architect4r::Server execute_cypher should return an array of nodes | |
# No reason given | |
# ./spec/core/cypher_methods_spec.rb:9 | |
Architect4r::Server execute_cypher should return an array of relationships | |
# No reason given | |
# ./spec/core/cypher_methods_spec.rb:15 | |
Architect4r::Server execute_cypher should the data unprocessed |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
shared_examples_for "weird" do |options={}| | |
# Uncomment to make it work in jruby | |
#options = {} unless options.respond_to? :to_hash | |
it "should be a hash" do | |
options.should be_a Hash | |
end | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'closure-compiler' | |
packages = { | |
bare: %w{spine.js}, | |
core: %w{spine.js ajax.js route.js tmpl.js}, | |
full: %w{ajax.js list.js local.js manager.js relation.js route.js spine.js tabs.js tmpl.js} | |
} | |
packages.each_pair do |package, files| | |
all = files.inject('') {|m, c| m + File.read("lib/#{c}") } |