devise-neo4j 1.0.2 → 1.0.3

Sign up to get free protection for your applications and to get access to all the features.
data/.document CHANGED
File without changes
data/.gitignore ADDED
@@ -0,0 +1,31 @@
1
+ ## MAC OS
2
+ .DS_Store
3
+
4
+ ## TEXTMATE
5
+ *.tmproj
6
+ tmtags
7
+
8
+ ## EMACS
9
+ *~
10
+ \#*
11
+ .\#*
12
+
13
+ ## VIM
14
+ *.swp
15
+
16
+ # RVM
17
+ .rvmrc
18
+
19
+ ## PROJECT::GENERAL
20
+ coverage
21
+ rdoc
22
+ pkg
23
+ vendor
24
+
25
+ ## PROJECT::SPECIFIC
26
+ tmp
27
+ db
28
+ test/rails_app/log
29
+
30
+ ## NETBEANS
31
+ nbproject
data/.rdebugrc CHANGED
File without changes
data/Gemfile CHANGED
@@ -1,21 +1,3 @@
1
1
  source "http://rubygems.org"
2
2
 
3
- group :neo4j do
4
- # I'll hide all the other gems in here too, so I can control the jeweler-generated gemspec a bit more easily
5
- gem "rails", "3.0.4"
6
- gem "oa-oauth", "~> 0.2.0", :require => "omniauth/oauth"
7
- gem "oa-openid", "~> 0.2.0", :require => "omniauth/openid"
8
-
9
- gem "devise", "1.3.4"
10
- gem "neo4j", "~> 1.1.1"
11
- end
12
-
13
- group :test do
14
- gem "webrat", "0.7.2", :require => false
15
- gem "mocha", :require => false
16
- end
17
-
18
- group :development, :test do
19
- gem "jeweler", :require => false
20
- gem "ruby-debug", ">= 0.10.3" if RUBY_VERSION < '1.9'
21
- end
3
+ gemspec
data/Gemfile.lock CHANGED
@@ -1,71 +1,77 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ devise-neo4j (1.0.3)
5
+ devise (~> 1.3)
6
+ neo4j (~> 1.1)
7
+ oa-oauth (~> 0.2.0)
8
+ oa-openid (~> 0.2.0)
9
+
1
10
  GEM
2
11
  remote: http://rubygems.org/
3
12
  specs:
4
- abstract (1.0.0)
5
- actionmailer (3.0.4)
6
- actionpack (= 3.0.4)
7
- mail (~> 2.2.15)
8
- actionpack (3.0.4)
9
- activemodel (= 3.0.4)
10
- activesupport (= 3.0.4)
11
- builder (~> 2.1.2)
12
- erubis (~> 2.6.6)
13
- i18n (~> 0.4)
14
- rack (~> 1.2.1)
15
- rack-mount (~> 0.6.13)
16
- rack-test (~> 0.5.7)
17
- tzinfo (~> 0.3.23)
18
- activemodel (3.0.4)
19
- activesupport (= 3.0.4)
20
- builder (~> 2.1.2)
21
- i18n (~> 0.4)
22
- activerecord (3.0.4)
23
- activemodel (= 3.0.4)
24
- activesupport (= 3.0.4)
25
- arel (~> 2.0.2)
26
- tzinfo (~> 0.3.23)
27
- activeresource (3.0.4)
28
- activemodel (= 3.0.4)
29
- activesupport (= 3.0.4)
30
- activesupport (3.0.4)
13
+ actionmailer (3.1.0)
14
+ actionpack (= 3.1.0)
15
+ mail (~> 2.3.0)
16
+ actionpack (3.1.0)
17
+ activemodel (= 3.1.0)
18
+ activesupport (= 3.1.0)
19
+ builder (~> 3.0.0)
20
+ erubis (~> 2.7.0)
21
+ i18n (~> 0.6)
22
+ rack (~> 1.3.2)
23
+ rack-cache (~> 1.0.3)
24
+ rack-mount (~> 0.8.2)
25
+ rack-test (~> 0.6.1)
26
+ sprockets (~> 2.0.0)
27
+ activemodel (3.1.0)
28
+ activesupport (= 3.1.0)
29
+ bcrypt-ruby (~> 3.0.0)
30
+ builder (~> 3.0.0)
31
+ i18n (~> 0.6)
32
+ activerecord (3.1.0)
33
+ activemodel (= 3.1.0)
34
+ activesupport (= 3.1.0)
35
+ arel (~> 2.2.1)
36
+ tzinfo (~> 0.3.29)
37
+ activeresource (3.1.0)
38
+ activemodel (= 3.1.0)
39
+ activesupport (= 3.1.0)
40
+ activesupport (3.1.0)
41
+ multi_json (~> 1.0)
31
42
  addressable (2.2.6)
32
- arel (2.0.10)
33
- bcrypt-ruby (2.1.4-java)
34
- builder (2.1.2)
35
- columnize (0.3.2)
36
- devise (1.3.4)
37
- bcrypt-ruby (~> 2.1.2)
43
+ arel (2.2.1)
44
+ bcrypt-ruby (3.0.1-java)
45
+ builder (3.0.0)
46
+ columnize (0.3.4)
47
+ devise (1.4.7)
48
+ bcrypt-ruby (~> 3.0)
38
49
  orm_adapter (~> 0.0.3)
39
50
  warden (~> 1.0.3)
40
- erubis (2.6.6)
41
- abstract (>= 1.0.0)
51
+ erubis (2.7.0)
42
52
  faraday (0.6.1)
43
53
  addressable (~> 2.2.4)
44
54
  multipart-post (~> 1.1.0)
45
55
  rack (>= 1.1.0, < 2)
46
- git (1.2.5)
56
+ hike (1.2.1)
47
57
  i18n (0.6.0)
48
- jeweler (1.6.0)
49
- bundler (~> 1.0.0)
50
- git (>= 1.2.5)
51
- rake
52
- mail (2.2.19)
53
- activesupport (>= 2.3.6)
58
+ mail (2.3.0)
54
59
  i18n (>= 0.4.0)
55
60
  mime-types (~> 1.16)
56
61
  treetop (~> 1.4.8)
62
+ metaclass (0.0.1)
57
63
  mime-types (1.16)
58
- mocha (0.9.12)
59
- multi_json (1.0.2)
64
+ mocha (0.10.0)
65
+ metaclass (~> 0.0.1)
66
+ multi_json (1.0.3)
60
67
  multi_xml (0.2.2)
61
- multipart-post (1.1.1)
62
- neo4j (1.1.1-java)
68
+ multipart-post (1.1.3)
69
+ neo4j (1.2.2-java)
63
70
  activemodel (>= 3.0.0)
64
71
  orm_adapter (>= 0.0.3)
65
72
  railties (>= 3.0.0)
66
- will_paginate (~> 3.0.pre)
67
- nokogiri (1.4.4.2-java)
68
- weakling (>= 0.0.3)
73
+ will_paginate (= 3.0.pre4)
74
+ nokogiri (1.5.0-java)
69
75
  oa-core (0.2.6)
70
76
  oa-oauth (0.2.6)
71
77
  faraday (~> 0.6.1)
@@ -78,34 +84,41 @@ GEM
78
84
  oa-core (= 0.2.6)
79
85
  rack-openid (~> 1.3.1)
80
86
  ruby-openid-apps-discovery (~> 1.2.0)
81
- oauth (0.4.4)
87
+ oauth (0.4.5)
82
88
  oauth2 (0.4.1)
83
89
  faraday (~> 0.6.1)
84
90
  multi_json (>= 0.0.5)
85
91
  orm_adapter (0.0.5)
86
- polyglot (0.3.1)
87
- rack (1.2.3)
88
- rack-mount (0.6.14)
92
+ polyglot (0.3.2)
93
+ rack (1.3.3)
94
+ rack-cache (1.0.3)
95
+ rack (>= 0.4)
96
+ rack-mount (0.8.3)
89
97
  rack (>= 1.0.0)
90
98
  rack-openid (1.3.1)
91
99
  rack (>= 1.1.0)
92
100
  ruby-openid (>= 2.1.8)
93
- rack-test (0.5.7)
101
+ rack-ssl (1.3.2)
102
+ rack
103
+ rack-test (0.6.1)
94
104
  rack (>= 1.0)
95
- rails (3.0.4)
96
- actionmailer (= 3.0.4)
97
- actionpack (= 3.0.4)
98
- activerecord (= 3.0.4)
99
- activeresource (= 3.0.4)
100
- activesupport (= 3.0.4)
105
+ rails (3.1.0)
106
+ actionmailer (= 3.1.0)
107
+ actionpack (= 3.1.0)
108
+ activerecord (= 3.1.0)
109
+ activeresource (= 3.1.0)
110
+ activesupport (= 3.1.0)
101
111
  bundler (~> 1.0)
102
- railties (= 3.0.4)
103
- railties (3.0.4)
104
- actionpack (= 3.0.4)
105
- activesupport (= 3.0.4)
112
+ railties (= 3.1.0)
113
+ railties (3.1.0)
114
+ actionpack (= 3.1.0)
115
+ activesupport (= 3.1.0)
116
+ rack-ssl (~> 1.3.2)
106
117
  rake (>= 0.8.7)
107
- thor (~> 0.14.4)
108
- rake (0.9.0)
118
+ rdoc (~> 3.4)
119
+ thor (~> 0.14.6)
120
+ rake (0.9.2)
121
+ rdoc (3.9.4)
109
122
  ruby-debug (0.10.4)
110
123
  columnize (>= 0.1)
111
124
  ruby-debug-base (~> 0.10.4.0)
@@ -113,29 +126,31 @@ GEM
113
126
  ruby-openid (2.1.8)
114
127
  ruby-openid-apps-discovery (1.2.0)
115
128
  ruby-openid (>= 2.1.7)
129
+ sprockets (2.0.0)
130
+ hike (~> 1.2)
131
+ rack (~> 1.0)
132
+ tilt (~> 1.1, != 1.3.0)
116
133
  thor (0.14.6)
117
- treetop (1.4.9)
134
+ tilt (1.3.3)
135
+ treetop (1.4.10)
136
+ polyglot
118
137
  polyglot (>= 0.3.1)
119
- tzinfo (0.3.27)
120
- warden (1.0.4)
138
+ tzinfo (0.3.29)
139
+ warden (1.0.5)
121
140
  rack (>= 1.0)
122
- weakling (0.0.4-java)
123
141
  webrat (0.7.2)
124
142
  nokogiri (>= 1.2.0)
125
143
  rack (>= 1.0)
126
144
  rack-test (>= 0.5.3)
127
- will_paginate (3.0.pre2)
145
+ will_paginate (3.0.pre4)
128
146
 
129
147
  PLATFORMS
130
148
  java
131
149
 
132
150
  DEPENDENCIES
133
- devise (= 1.3.4)
134
- jeweler
151
+ devise-neo4j!
135
152
  mocha
136
- neo4j (~> 1.1.1)
137
- oa-oauth (~> 0.2.0)
138
- oa-openid (~> 0.2.0)
139
- rails (= 3.0.4)
153
+ rails (~> 3.0)
154
+ rake
140
155
  ruby-debug (>= 0.10.3)
141
156
  webrat (= 0.7.2)
data/LICENSE CHANGED
File without changes
data/README.rdoc CHANGED
@@ -11,7 +11,7 @@ Devise: https://github.com/plataformatec/devise
11
11
 
12
12
  Add the neo4j and devise-neo4j gems to your Gemfile:
13
13
 
14
- gem "neo4j", "~> 1.1.1"
14
+ gem "neo4j", "~> 1.2"
15
15
  gem "devise-neo4j"
16
16
 
17
17
  Run the bundle install command:
data/Rakefile CHANGED
@@ -1,64 +1,28 @@
1
- require 'rubygems'
2
- require 'rake'
3
- require 'rake/testtask'
4
- require 'rake/rdoctask'
1
+ require "rake/testtask"
2
+ require "bundler/gem_tasks"
5
3
 
6
- begin
7
- require 'jeweler'
8
- Jeweler::Tasks.new do |gem|
9
- gem.name = "devise-neo4j"
10
- gem.summary = %Q{Devise ORM for Neo4j}
11
- gem.description = %Q{Neo4j integration with the Devise authentication framework}
12
- gem.email = "ben.jackson1@gmail.com"
13
- gem.homepage = "http://github.com/benjackson/devise-neo4j"
14
- gem.authors = ["Ben Jackson", "Bobby Calderwood"]
15
- # gem is a Gem::Specification... see http://www.rubygems.org/read/chapter/20 for additional settings
16
- gem.add_dependency "neo4j", "~> 1.1.1"
17
- gem.add_dependency "devise", "1.3.4"
18
- end
19
- Jeweler::GemcutterTasks.new
20
- rescue LoadError
21
- puts "Jeweler (or a dependency) not available. Install it with: gem install jeweler"
22
- end
23
-
24
- desc 'Default: run tests for all ORM setups.'
25
- task :default => [ :set_devise_path, :pre_commit ]
26
-
27
- task :set_devise_path do
28
- ENV['DEVISE_PATH'] = `bundle show devise`.chomp
29
- end
30
-
31
- desc 'Run Devise tests for all ORM setups.'
32
- task :pre_commit do
33
- Dir[File.join(File.dirname(__FILE__), 'test', 'orm', '*.rb')].each do |file|
34
- orm = File.basename(file).split(".").first
35
- ENV['DEVISE_ORM'] ||= orm
36
- # system "rake test DEVISE_ORM=#{orm} DEVISE_PATH=#{ENV['DEVISE_PATH']}"
37
- Rake::Task["test"].reenable
38
- Rake::Task["test"].invoke
39
- end
40
- end
41
-
42
- desc 'Run Devise tests. Specify path to devise with DEVISE_PATH'
4
+ desc 'Run tests for devise-neo4j.'
43
5
  Rake::TestTask.new(:test) do |test|
44
- ENV['DEVISE_ORM'] ||= 'neo4j'
45
- ENV['DEVISE_PATH'] ||= `bundle show devise`.chomp
6
+ ENV['DEVISE_ORM'] = 'neo4j'
7
+ ENV['DEVISE_PATH'] = `bundle show devise`.chomp
46
8
  unless File.exist?(ENV['DEVISE_PATH'])
47
- puts "Specify the path to devise (e.g. rake DEVISE_PATH=/path/to/devise). Not found at #{ENV['DEVISE_PATH']}"
9
+ puts "Devise not found in gem bundle"
48
10
  exit
49
11
  end
50
- test.libs << 'lib' << 'test'
12
+ test.libs << ENV['GEM_HOME'] << "test"
51
13
  test.libs << "#{ENV['DEVISE_PATH']}/lib"
52
14
  test.libs << "#{ENV['DEVISE_PATH']}/test"
53
15
  test.test_files = FileList["#{ENV['DEVISE_PATH']}/test/**/*_test.rb"] + FileList['test/**/*_test.rb']
54
16
  test.verbose = true
55
17
  end
56
18
 
57
- Rake::RDocTask.new do |rdoc|
58
- version = File.exist?('VERSION') ? File.read('VERSION') : ""
19
+ task :default => [:test, :"neo4j:db:remove"]
59
20
 
60
- rdoc.rdoc_dir = 'rdoc'
61
- rdoc.title = "devise-neo4j #{version}"
62
- rdoc.rdoc_files.include('README*')
63
- rdoc.rdoc_files.include('lib/**/*.rb')
64
- end
21
+ namespace :neo4j do
22
+ namespace :db do
23
+ desc 'Remove the neo4j db files'
24
+ task :remove do
25
+ system "rm -fr #{File.join(File.dirname(__FILE__), "db", "*")}"
26
+ end
27
+ end
28
+ end
data/devise-neo4j.gemspec CHANGED
@@ -1,71 +1,31 @@
1
- # Generated by jeweler
2
- # DO NOT EDIT THIS FILE DIRECTLY
3
- # Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
4
1
  # -*- encoding: utf-8 -*-
2
+ $:.push File.expand_path("../lib", __FILE__)
3
+ require "devise-neo4j/version"
5
4
 
6
5
  Gem::Specification.new do |s|
7
- s.name = %q{devise-neo4j}
8
- s.version = "1.0.2"
9
-
10
- s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
- s.authors = ["Ben Jackson", "Bobby Calderwood"]
12
- s.date = %q{2011-05-26}
6
+ s.name = "devise-neo4j"
7
+ s.version = Devise::Neo4j::VERSION
8
+ s.authors = ["Ben Jackson", "Bobby Calderwood"]
9
+ s.email = ["ben@lissomsolutions.com"]
10
+ s.homepage = "http://github.com/benjackson/devise-neo4j"
11
+ s.summary = %q{Devise ORM for Neo4j}
13
12
  s.description = %q{Neo4j integration with the Devise authentication framework}
14
- s.email = %q{ben.jackson1@gmail.com}
15
- s.extra_rdoc_files = [
16
- "LICENSE",
17
- "README.rdoc"
18
- ]
19
- s.files = [
20
- ".document",
21
- ".rdebugrc",
22
- "Gemfile",
23
- "Gemfile.lock",
24
- "LICENSE",
25
- "README.rdoc",
26
- "Rakefile",
27
- "VERSION",
28
- "devise-neo4j.gemspec",
29
- "lib/devise-neo4j.rb",
30
- "lib/devise/orm/neo4j.rb",
31
- "lib/devise/orm/neo4j/hook.rb",
32
- "lib/devise/orm/neo4j/schema.rb",
33
- "lib/generators/neo4j/devise_generator.rb",
34
- "test/generators/neo4j/devise_generator_test.rb",
35
- "test/orm/neo4j.rb",
36
- "test/overrides/models/recoverable_test.rb",
37
- "test/rails_app/app/neo4j/admin.rb",
38
- "test/rails_app/app/neo4j/shim.rb",
39
- "test/rails_app/app/neo4j/user.rb",
40
- "test/rails_app/config/application.rb",
41
- "test/rails_app/config/environment.rb",
42
- "test/support/fix_last.rb",
43
- "test/test_helper.rb"
44
- ]
45
- s.homepage = %q{http://github.com/benjackson/devise-neo4j}
46
- s.require_paths = ["lib"]
47
- s.rubygems_version = %q{1.5.1}
48
- s.summary = %q{Devise ORM for Neo4j}
49
13
 
50
- if s.respond_to? :specification_version then
51
- s.specification_version = 3
14
+ s.rubyforge_project = "devise-neo4j"
52
15
 
53
- if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
54
- s.add_development_dependency(%q<jeweler>, [">= 0"])
55
- s.add_development_dependency(%q<ruby-debug>, [">= 0.10.3"])
56
- s.add_runtime_dependency(%q<neo4j>, ["~> 1.1.1"])
57
- s.add_runtime_dependency(%q<devise>, ["= 1.3.4"])
58
- else
59
- s.add_dependency(%q<jeweler>, [">= 0"])
60
- s.add_dependency(%q<ruby-debug>, [">= 0.10.3"])
61
- s.add_dependency(%q<neo4j>, ["~> 1.1.1"])
62
- s.add_dependency(%q<devise>, ["= 1.3.4"])
63
- end
64
- else
65
- s.add_dependency(%q<jeweler>, [">= 0"])
66
- s.add_dependency(%q<ruby-debug>, [">= 0.10.3"])
67
- s.add_dependency(%q<neo4j>, ["~> 1.1.1"])
68
- s.add_dependency(%q<devise>, ["= 1.3.4"])
69
- end
16
+ s.files = `git ls-files`.split("\n")
17
+ s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
18
+ s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
19
+ s.require_paths = ["lib"]
20
+
21
+ s.add_runtime_dependency "oa-oauth", "~> 0.2.0"
22
+ s.add_runtime_dependency "oa-openid", "~> 0.2.0"
23
+ s.add_runtime_dependency "neo4j", "~> 1.1"
24
+ s.add_runtime_dependency "devise", "~> 1.3"
25
+
26
+ s.add_development_dependency "rails", "~> 3.0"
27
+ s.add_development_dependency "rake"
28
+ s.add_development_dependency "webrat", "0.7.2"
29
+ s.add_development_dependency "mocha"
30
+ s.add_development_dependency "ruby-debug", ">= 0.10.3" if RUBY_VERSION < '1.9'
70
31
  end
71
-
data/lib/devise-neo4j.rb CHANGED
File without changes
@@ -0,0 +1,5 @@
1
+ module Devise
2
+ module Neo4j
3
+ VERSION = "1.0.3"
4
+ end
5
+ end
File without changes
File without changes
@@ -20,7 +20,6 @@ module Devise
20
20
  # If the property is required, its presence should be checked anyway
21
21
  options.delete(:null)
22
22
 
23
- Rails.logger.debug "Adding Devise property for #{self}: #{name.inspect}, #{{ :type => map_type(type) }.merge!(options).inspect}"
24
23
  property name, { :type => map_type(type) }.merge!(options)
25
24
  end
26
25
 
File without changes
File without changes
@@ -6,13 +6,7 @@ require "action_mailer/railtie"
6
6
  require "active_resource/railtie"
7
7
  require "rails/test_unit/railtie"
8
8
 
9
- Bundler.require :default, DEVISE_ORM
10
-
11
- begin
12
- require "#{DEVISE_ORM}/railtie"
13
- rescue LoadError
14
- end
15
-
9
+ require "neo4j/rails/railtie"
16
10
  require "tmpdir"
17
11
 
18
12
  module RailsApp
@@ -22,20 +16,13 @@ module RailsApp
22
16
  config.autoload_paths.reject!{ |p| p =~ /\/app\/(\w+)$/ && !%w(controllers helpers views).include?($1) }
23
17
  config.autoload_paths += [ File.expand_path("#{File.dirname(__FILE__)}/../app/#{DEVISE_ORM}") ]
24
18
 
25
- # Configure generators values. Many other options are available, be sure to check the documentation.
26
- # config.generators do |g|
27
- # g.orm :active_record
28
- # g.template_engine :erb
29
- # g.test_framework :test_unit, :fixture => true
30
- # end
31
-
32
19
  # Configure sensitive parameters which will be filtered from the log file.
33
20
  config.filter_parameters << :password
34
21
 
35
22
  config.action_mailer.default_url_options = { :host => "localhost:3000" }
36
23
 
37
24
  config.active_support.deprecation = :stderr
38
- config.paths.log = File.join(Dir.tmpdir, 'devise-neo4j-tests', 'rails_app', 'log', 'test.log')
25
+ config.paths["log"] = File.join(Dir.tmpdir, 'devise-neo4j-tests', 'rails_app', 'log', 'test.log')
39
26
  config.neo4j.storage_path = File.join(Dir.tmpdir, 'devise-neo4j-tests', 'rails_app', 'tmp', 'neo4j', 'test')
40
27
 
41
28
  # This was used to break devise in some situations
@@ -0,0 +1,10 @@
1
+ class DeviseHelperTest < ActionController::IntegrationTest
2
+ setup :neo4j_i18n
3
+
4
+ private
5
+ def neo4j_i18n
6
+ I18n.backend.store_translations :fr, {
7
+ :neo4j => { :models => { :user => "utilisateur" } }
8
+ }
9
+ end
10
+ end
data/test/test_helper.rb CHANGED
@@ -1,22 +1,21 @@
1
+ require "rubygems"
2
+ require "bundler/setup"
3
+
1
4
  ENV["RAILS_ENV"] = "test"
2
- DEVISE_ORM = (ENV["DEVISE_ORM"] || :neo4j).to_sym
3
- DEVISE_PATH = ENV['DEVISE_PATH']
5
+ DEVISE_ORM = :neo4j
6
+ DEVISE_PATH = ENV['DEVISE_PATH'] || `bundle show devise`.chomp
4
7
 
5
- $:.unshift File.dirname(__FILE__)
6
- puts "\n==> Devise.orm = #{DEVISE_ORM.inspect}"
8
+ require "neo4j"
9
+ require "orm/neo4j"
10
+ require "omniauth/oauth"
11
+ require "omniauth/openid"
12
+ require "devise"
7
13
 
8
14
  require "rails_app/config/environment"
9
15
  require "rails/test_help"
10
- require "orm/#{DEVISE_ORM}"
11
-
12
- I18n.load_path << "#{DEVISE_PATH}/config/locales/en.yml"
13
16
 
14
17
  require 'mocha'
15
18
  require 'webrat'
16
- Webrat.configure do |config|
17
- config.mode = :rails
18
- config.open_error_files = false
19
- end
20
19
 
21
20
  # Devise test support
22
21
  $:.unshift "#{DEVISE_PATH}/test/support"
@@ -30,3 +29,14 @@ Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each { |f| require f }
30
29
  require "rails/generators/test_case"
31
30
  require "generators/devise/install_generator"
32
31
  require "generators/devise/views_generator"
32
+
33
+ Webrat.configure do |config|
34
+ config.mode = :rails
35
+ config.open_error_files = false
36
+ end
37
+
38
+ # Add translations for devise tests
39
+ I18n.load_path << "#{DEVISE_PATH}/config/locales/en.yml"
40
+
41
+ $:.unshift File.dirname(__FILE__)
42
+ puts "\n==> Devise.orm = #{DEVISE_ORM.inspect}"
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: devise-neo4j
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 1.0.2
5
+ version: 1.0.3
6
6
  platform: ruby
7
7
  authors:
8
8
  - Ben Jackson
@@ -11,73 +11,129 @@ autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
13
 
14
- date: 2011-05-26 00:00:00 +01:00
14
+ date: 2011-09-25 00:00:00 +01:00
15
15
  default_executable:
16
16
  dependencies:
17
17
  - !ruby/object:Gem::Dependency
18
- name: jeweler
19
- version_requirements: &id001 !ruby/object:Gem::Requirement
18
+ name: oa-oauth
19
+ prerelease: false
20
+ requirement: &id001 !ruby/object:Gem::Requirement
20
21
  none: false
21
22
  requirements:
22
- - - ">="
23
+ - - ~>
23
24
  - !ruby/object:Gem::Version
24
- version: "0"
25
- requirement: *id001
26
- prerelease: false
27
- type: :development
25
+ version: 0.2.0
26
+ type: :runtime
27
+ version_requirements: *id001
28
28
  - !ruby/object:Gem::Dependency
29
- name: ruby-debug
30
- version_requirements: &id002 !ruby/object:Gem::Requirement
29
+ name: oa-openid
30
+ prerelease: false
31
+ requirement: &id002 !ruby/object:Gem::Requirement
31
32
  none: false
32
33
  requirements:
33
- - - ">="
34
+ - - ~>
34
35
  - !ruby/object:Gem::Version
35
- version: 0.10.3
36
- requirement: *id002
37
- prerelease: false
38
- type: :development
36
+ version: 0.2.0
37
+ type: :runtime
38
+ version_requirements: *id002
39
39
  - !ruby/object:Gem::Dependency
40
40
  name: neo4j
41
- version_requirements: &id003 !ruby/object:Gem::Requirement
41
+ prerelease: false
42
+ requirement: &id003 !ruby/object:Gem::Requirement
42
43
  none: false
43
44
  requirements:
44
45
  - - ~>
45
46
  - !ruby/object:Gem::Version
46
- version: 1.1.1
47
- requirement: *id003
48
- prerelease: false
47
+ version: "1.1"
49
48
  type: :runtime
49
+ version_requirements: *id003
50
50
  - !ruby/object:Gem::Dependency
51
51
  name: devise
52
- version_requirements: &id004 !ruby/object:Gem::Requirement
52
+ prerelease: false
53
+ requirement: &id004 !ruby/object:Gem::Requirement
54
+ none: false
55
+ requirements:
56
+ - - ~>
57
+ - !ruby/object:Gem::Version
58
+ version: "1.3"
59
+ type: :runtime
60
+ version_requirements: *id004
61
+ - !ruby/object:Gem::Dependency
62
+ name: rails
63
+ prerelease: false
64
+ requirement: &id005 !ruby/object:Gem::Requirement
65
+ none: false
66
+ requirements:
67
+ - - ~>
68
+ - !ruby/object:Gem::Version
69
+ version: "3.0"
70
+ type: :development
71
+ version_requirements: *id005
72
+ - !ruby/object:Gem::Dependency
73
+ name: rake
74
+ prerelease: false
75
+ requirement: &id006 !ruby/object:Gem::Requirement
76
+ none: false
77
+ requirements:
78
+ - - ">="
79
+ - !ruby/object:Gem::Version
80
+ version: "0"
81
+ type: :development
82
+ version_requirements: *id006
83
+ - !ruby/object:Gem::Dependency
84
+ name: webrat
85
+ prerelease: false
86
+ requirement: &id007 !ruby/object:Gem::Requirement
53
87
  none: false
54
88
  requirements:
55
89
  - - "="
56
90
  - !ruby/object:Gem::Version
57
- version: 1.3.4
58
- requirement: *id004
91
+ version: 0.7.2
92
+ type: :development
93
+ version_requirements: *id007
94
+ - !ruby/object:Gem::Dependency
95
+ name: mocha
59
96
  prerelease: false
60
- type: :runtime
97
+ requirement: &id008 !ruby/object:Gem::Requirement
98
+ none: false
99
+ requirements:
100
+ - - ">="
101
+ - !ruby/object:Gem::Version
102
+ version: "0"
103
+ type: :development
104
+ version_requirements: *id008
105
+ - !ruby/object:Gem::Dependency
106
+ name: ruby-debug
107
+ prerelease: false
108
+ requirement: &id009 !ruby/object:Gem::Requirement
109
+ none: false
110
+ requirements:
111
+ - - ">="
112
+ - !ruby/object:Gem::Version
113
+ version: 0.10.3
114
+ type: :development
115
+ version_requirements: *id009
61
116
  description: Neo4j integration with the Devise authentication framework
62
- email: ben.jackson1@gmail.com
117
+ email:
118
+ - ben@lissomsolutions.com
63
119
  executables: []
64
120
 
65
121
  extensions: []
66
122
 
67
- extra_rdoc_files:
68
- - LICENSE
69
- - README.rdoc
123
+ extra_rdoc_files: []
124
+
70
125
  files:
71
126
  - .document
127
+ - .gitignore
72
128
  - .rdebugrc
73
129
  - Gemfile
74
130
  - Gemfile.lock
75
131
  - LICENSE
76
132
  - README.rdoc
77
133
  - Rakefile
78
- - VERSION
79
134
  - devise-neo4j.gemspec
80
135
  - lib/devise-neo4j.rb
136
+ - lib/devise-neo4j/version.rb
81
137
  - lib/devise/orm/neo4j.rb
82
138
  - lib/devise/orm/neo4j/hook.rb
83
139
  - lib/devise/orm/neo4j/schema.rb
@@ -91,6 +147,7 @@ files:
91
147
  - test/rails_app/config/application.rb
92
148
  - test/rails_app/config/environment.rb
93
149
  - test/support/fix_last.rb
150
+ - test/support/i18n.rb
94
151
  - test/test_helper.rb
95
152
  has_rdoc: true
96
153
  homepage: http://github.com/benjackson/devise-neo4j
@@ -106,9 +163,6 @@ required_ruby_version: !ruby/object:Gem::Requirement
106
163
  requirements:
107
164
  - - ">="
108
165
  - !ruby/object:Gem::Version
109
- hash: 2
110
- segments:
111
- - 0
112
166
  version: "0"
113
167
  required_rubygems_version: !ruby/object:Gem::Requirement
114
168
  none: false
@@ -118,7 +172,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
118
172
  version: "0"
119
173
  requirements: []
120
174
 
121
- rubyforge_project:
175
+ rubyforge_project: devise-neo4j
122
176
  rubygems_version: 1.5.1
123
177
  signing_key:
124
178
  specification_version: 3
data/VERSION DELETED
@@ -1 +0,0 @@
1
- 1.0.2