josevalim-auth_helpers 0.3.0 → 0.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/README CHANGED
@@ -20,7 +20,7 @@ management for free, if you inherit from the Recoverable controller:
20
20
  class AccountPasswordsController < AuthHelpers::Controller:Recoverable
21
21
  end
22
22
 
23
- This functionality is powered by InheritedResources, available at:
23
+ This functionality is powered by InheritedResources, which is available at:
24
24
 
25
25
  http://github.com/josevalim/inherited_resources
26
26
 
@@ -37,6 +37,11 @@ If you want it as plugin, just do:
37
37
 
38
38
  script/plugin install git://github.com/josevalim/auth_helpers.git
39
39
 
40
+ Example app
41
+ -----------
42
+
43
+ http://github.com/josevalim/starter
44
+
40
45
  Modules
41
46
  -------
42
47
 
@@ -113,7 +118,7 @@ So if you want to test the Account model declared above, just do:
113
118
  end
114
119
  end
115
120
 
116
- The only requirment you have for the tests is to have a @valid_attributes
121
+ The only requirement you have for the tests is to have a @valid_attributes
117
122
  instance variable set with a hash of valid attributes.
118
123
 
119
124
  Notifications
@@ -156,10 +161,14 @@ configure the following messages:
156
161
  invalid_confirmation: is invalid. Are you sure you copied the right link from your e-mail?
157
162
  invalid_reset_password: is invalid. Are you sure you copied the right link from your e-mail?
158
163
 
159
- Example app
160
- -----------
164
+ Need more?
165
+ ----------
161
166
 
162
- http://github.com/josevalim/starter
167
+ Right now, this plugin contains the modules that I needed so far. If you are
168
+ building an invitation system on top of your authlogic models, you could fork
169
+ the project and add the Invitable module. Uou will never have to write it again
170
+ in your next projects and it shouldn't be harder than inheriting a few modules
171
+ and few controllers.
163
172
 
164
173
  Bugs and Feedback
165
174
  -----------------
data/Rakefile ADDED
@@ -0,0 +1,20 @@
1
+ require 'rubygems'
2
+ require 'rake/gempackagetask'
3
+ require 'rake/rdoctask'
4
+
5
+ gem 'rspec'
6
+ require 'spec/rake/spectask'
7
+
8
+ desc "Run the specs under spec"
9
+ Spec::Rake::SpecTask.new do |t|
10
+ t.spec_opts = ['--options', "spec/spec.opts"]
11
+ t.spec_files = FileList['spec/**/*_spec.rb']
12
+ end
13
+
14
+ Rake::RDocTask.new do |rdoc|
15
+ rdoc.main = "README"
16
+ rdoc.rdoc_dir = "rdoc"
17
+ rdoc.title = "AuthHelpers"
18
+ rdoc.rdoc_files.include('lib/**/*.rb')
19
+ rdoc.options << '--line-numbers' << '--inline-source'
20
+ end
@@ -3,8 +3,8 @@ module AuthHelpers
3
3
  class Confirmable < ::ApplicationController
4
4
  unloadable
5
5
 
6
- include InheritedResources::BaseHelpers
7
- include AuthHelpers::Controller::Helpers
6
+ include ::InheritedResources::BaseHelpers
7
+ include ::AuthHelpers::Controller::Helpers
8
8
 
9
9
  class << self
10
10
  alias :has_confirmable :set_class_accessors_with_class
@@ -3,8 +3,8 @@ module AuthHelpers
3
3
  class Recoverable < ::ApplicationController
4
4
  unloadable
5
5
 
6
- include InheritedResources::BaseHelpers
7
- include AuthHelpers::Controller::Helpers
6
+ include ::InheritedResources::BaseHelpers
7
+ include ::AuthHelpers::Controller::Helpers
8
8
 
9
9
  class << self
10
10
  alias :has_recoverable :set_class_accessors_with_class
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: josevalim-auth_helpers
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - "Jos\xC3\xA9 Valim"
@@ -34,6 +34,7 @@ files:
34
34
  - CHANGELOG
35
35
  - MIT-LICENSE
36
36
  - README
37
+ - Rakefile
37
38
  - init.rb
38
39
  - lib/auth_helpers.rb
39
40
  - lib/auth_helpers/notifier.rb