hobo 1.3.0.pre24 → 1.3.0.pre25

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.3.0.pre24
1
+ 1.3.0.pre25
@@ -43,7 +43,7 @@ module Hobo
43
43
 
44
44
  def add_routes
45
45
  return unless options[:add_routes]
46
- route "match 'search' => '#{file_path}#search', :as => 'search'"
46
+ route "match 'search' => '#{file_path}#search', :as => 'site_search'"
47
47
  if class_path.empty?
48
48
  route "root :to => '#{file_path}#index'"
49
49
  else
@@ -1,8 +1,8 @@
1
- <%%= @user %>,
1
+ <%%= @<%= name.underscore -%> %>,
2
2
 
3
3
  To activate your account for <%%= @app_name %>, click on this link:
4
4
 
5
- <%%= user_activate_url :id => @user, :key => @key %>
5
+ <%%= <%= name.underscore -%>_activate_url :id => @<%= name.underscore -%>, :key => @key %>
6
6
 
7
7
  Thank you,
8
8
 
@@ -1,9 +1,9 @@
1
- <%%= @user %>,
1
+ <%%= @<%= name.underscore -%> %>,
2
2
 
3
3
  If you have forgotten your password for <%%= @app_name %>, you can choose
4
4
  a new one by clicking on this link:
5
5
 
6
- <%%= <%= name.underscore -%>_reset_password_url :id => @user, :key => @key %>
6
+ <%%= <%= name.underscore -%>_reset_password_url :id => @<%= name.underscore -%>, :key => @key %>
7
7
 
8
8
  Thank you,
9
9
 
@@ -1,8 +1,8 @@
1
- <%%= @user %>,
1
+ <%%= @<%= name.underscore %> %>,
2
2
 
3
3
  You have been invited to join <%%= @app_name %>. If you wish to accept, please click on the following link
4
4
 
5
- <%%= user_accept_invitation_url :id => @user, :key => @key %>
5
+ <%%= <%= name.underscore %>_accept_invitation_url :id => @<%= name.underscore %>, :key => @key %>
6
6
 
7
7
  Thank you,
8
8
 
@@ -1,24 +1,24 @@
1
1
  class <%= class_name -%>Mailer < ActionMailer::Base
2
2
  default :from => "no-reply@#{host}"
3
3
 
4
- def forgot_password(user, key)
5
- @user, @key = user, key
4
+ def forgot_password(<%= name.underscore %>, key)
5
+ @<%= name.underscore %>, @key = <%= name.underscore %>, key
6
6
  mail( :subject => "#{app_name} -- forgotten password",
7
- :to => user.email_address )
7
+ :to => <%= name.underscore %>.email_address )
8
8
  end
9
9
 
10
10
  <% if invite_only? -%>
11
- def invite(user, key)
12
- @user, @key = user, key
11
+ def invite(<%= name.underscore %>, key)
12
+ @<%= name.underscore %>, @key = <%= name.underscore %>, key
13
13
  mail( :subject => "Invitation to #{app_name}",
14
- :to => user.email_address )
14
+ :to => <%= name.underscore %>.email_address )
15
15
  end
16
16
 
17
17
  <% elsif options[:activation_email] %>
18
- def activation(user, key)
19
- @user, @key = user, key
20
- mail :subject => "#{app_name} -- activate",
21
- :to => user.email_address
18
+ def activation(<%= name.underscore %>, key)
19
+ @<%= name.underscore %>, @key = <%= name.underscore %>, key
20
+ mail( :subject => "#{app_name} -- activate",
21
+ :to => <%= name.underscore %>.email_address )
22
22
  end
23
23
 
24
24
  <% end -%>
@@ -23,7 +23,7 @@ module Hobo
23
23
  def models_with(wanted_action)
24
24
  @linkable_keys.map do |k|
25
25
  subsite, class_name, action, method = k.split('/')
26
- (action == wanted_action) ? class_name.constantize : nil
26
+ (action == wanted_action.to_s) ? class_name.constantize : nil
27
27
  end.compact
28
28
  end
29
29
 
@@ -25,6 +25,6 @@ test_value_eql? true
25
25
 
26
26
  desc "Routes added"
27
27
  file_include? 'config/routes.rb',
28
- %(match 'search' => 'front#search', :as => 'search'),
28
+ %(match 'search' => 'front#search', :as => 'site_search'),
29
29
  %(root :to => 'front#index')
30
30
  test_value_eql? true
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hobo
3
3
  version: !ruby/object:Gem::Version
4
- hash: -1637108446
4
+ hash: -1637108445
5
5
  prerelease: true
6
6
  segments:
7
7
  - 1
8
8
  - 3
9
9
  - 0
10
- - pre24
11
- version: 1.3.0.pre24
10
+ - pre25
11
+ version: 1.3.0.pre25
12
12
  platform: ruby
13
13
  authors:
14
14
  - Tom Locke
@@ -16,7 +16,7 @@ autorequire:
16
16
  bindir: bin
17
17
  cert_chain: []
18
18
 
19
- date: 2010-12-15 00:00:00 -04:00
19
+ date: 2010-12-19 00:00:00 -04:00
20
20
  default_executable:
21
21
  dependencies:
22
22
  - !ruby/object:Gem::Dependency
@@ -59,13 +59,13 @@ dependencies:
59
59
  requirements:
60
60
  - - "="
61
61
  - !ruby/object:Gem::Version
62
- hash: -1637108446
62
+ hash: -1637108445
63
63
  segments:
64
64
  - 1
65
65
  - 3
66
66
  - 0
67
- - pre24
68
- version: 1.3.0.pre24
67
+ - pre25
68
+ version: 1.3.0.pre25
69
69
  type: :runtime
70
70
  version_requirements: *id003
71
71
  - !ruby/object:Gem::Dependency
@@ -76,13 +76,13 @@ dependencies:
76
76
  requirements:
77
77
  - - "="
78
78
  - !ruby/object:Gem::Version
79
- hash: -1637108446
79
+ hash: -1637108445
80
80
  segments:
81
81
  - 1
82
82
  - 3
83
83
  - 0
84
- - pre24
85
- version: 1.3.0.pre24
84
+ - pre25
85
+ version: 1.3.0.pre25
86
86
  type: :runtime
87
87
  version_requirements: *id004
88
88
  - !ruby/object:Gem::Dependency
@@ -93,13 +93,13 @@ dependencies:
93
93
  requirements:
94
94
  - - "="
95
95
  - !ruby/object:Gem::Version
96
- hash: -1637108446
96
+ hash: -1637108445
97
97
  segments:
98
98
  - 1
99
99
  - 3
100
100
  - 0
101
- - pre24
102
- version: 1.3.0.pre24
101
+ - pre25
102
+ version: 1.3.0.pre25
103
103
  type: :runtime
104
104
  version_requirements: *id005
105
105
  - !ruby/object:Gem::Dependency