Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 62 lines (51 sloc) 1.737 kB
68c9fc6 @NoamB more meat TDDing the ORM part
authored
1 # require 'bundler'
2 # begin
3 # Bundler.setup(:default, :development)
4 # rescue Bundler::BundlerError => e
5 # $stderr.puts e.message
6 # $stderr.puts "Run `bundle install` to install missing gems"
7 # exit e.status_code
8 # end
dfc6fc8 @NoamB Initial commit to simple_auth.
authored
9 require 'rake'
10
11 require 'jeweler'
12 Jeweler::Tasks.new do |gem|
13 # gem is a Gem::Specification... see http://docs.rubygems.org/read/chapter/20 for more options
5fd1c29 @NoamB renamed plugin to a little more original name
authored
14 gem.name = "sorcery"
15 gem.homepage = "http://github.com/NoamB/sorcery"
dfc6fc8 @NoamB Initial commit to simple_auth.
authored
16 gem.license = "MIT"
5fd1c29 @NoamB renamed plugin to a little more original name
authored
17 gem.summary = "Magical authentication for Rails 3 applications"
5c4455f @NoamB changing default to bcrypt, adding gem dependency
authored
18 gem.description = "Provides common authentication needs such as signing in/out, activating by email and resetting password."
dfc6fc8 @NoamB Initial commit to simple_auth.
authored
19 gem.email = "nbenari@gmail.com"
b631e1d @NoamB updated README
authored
20 gem.authors = ["Noam Ben Ari"]
dfc6fc8 @NoamB Initial commit to simple_auth.
authored
21 # Include your dependencies below. Runtime dependencies are required when using your gem,
22 # and development dependencies are only needed for development (ie running rake tasks, tests, etc)
23 # gem.add_runtime_dependency 'jabber4r', '> 0.1'
24 # gem.add_development_dependency 'rspec', '> 1.2.3'
25 end
26 Jeweler::RubygemsDotOrgTasks.new
27
28 require 'rspec/core'
29 require 'rspec/core/rake_task'
30 RSpec::Core::RakeTask.new(:spec) do |spec|
31 spec.pattern = FileList['spec/**/*_spec.rb']
32 end
33
34 RSpec::Core::RakeTask.new(:rcov) do |spec|
35 spec.pattern = 'spec/**/*_spec.rb'
36 spec.rcov = true
37 end
38
39 require 'cucumber/rake/task'
40 Cucumber::Rake::Task.new(:features)
41
28590bf @NoamB adding rails 3 app to gem to test it
authored
42
dfc6fc8 @NoamB Initial commit to simple_auth.
authored
43
44 require 'yard'
45 YARD::Rake::YardocTask.new
28590bf @NoamB adding rails 3 app to gem to test it
authored
46
47
48 #task :default => :spec
49 desc 'Default: Run all specs.'
50 task :default => :all_specs
51
52 desc "Run all specs"
53 task :all_specs do
54 Dir['spec/**/Rakefile'].each do |rakefile|
55 directory_name = File.dirname(rakefile)
56 sh <<-CMD
57 cd #{directory_name}
58 bundle exec rake
59 CMD
60 end
61 end
Something went wrong with that request. Please try again.