instedd-rails 0.0.17 → 0.0.18

Sign up to get free protection for your applications and to get access to all the features.
Files changed (48) hide show
  1. data/.rvmrc +0 -0
  2. data/Gemfile +0 -0
  3. data/README.markdown +7 -0
  4. data/Rakefile +0 -0
  5. data/app/controllers/errors_controller.rb +0 -0
  6. data/app/controllers/instedd_rails/tour_controller.rb +0 -0
  7. data/app/helpers/devise_helper.rb +0 -0
  8. data/app/helpers/instedd_rails/application_helper.rb +0 -0
  9. data/app/helpers/instedd_rails/instedd_app_helper.rb +0 -0
  10. data/app/helpers/instedd_rails/mailer_helper.rb +0 -0
  11. data/app/views/devise/confirmations/new.html.erb +0 -0
  12. data/app/views/devise/passwords/edit.html.erb +16 -19
  13. data/app/views/devise/passwords/new.html.erb +0 -0
  14. data/app/views/devise/registrations/edit.html.haml +27 -0
  15. data/app/views/devise/sessions/new.html.erb +0 -0
  16. data/app/views/devise/shared/_links.erb +0 -0
  17. data/app/views/devise/unlocks/new.html.erb +0 -0
  18. data/app/views/errors/internal_server_error.html.erb +0 -0
  19. data/app/views/errors/not_found.html.erb +0 -0
  20. data/app/views/errors/unprocessable_entity.html.erb +0 -0
  21. data/app/views/kaminari/_first_page.html.erb +0 -0
  22. data/app/views/kaminari/_gap.html.erb +0 -0
  23. data/app/views/kaminari/_last_page.html.erb +0 -0
  24. data/app/views/kaminari/_next_page.html.erb +0 -0
  25. data/app/views/kaminari/_page.html.erb +0 -0
  26. data/app/views/kaminari/_paginator.html.erb +0 -0
  27. data/app/views/kaminari/_prev_page.html.erb +0 -0
  28. data/app/views/layouts/_navigation.html.erb +0 -0
  29. data/app/views/layouts/mail.text.erb +0 -0
  30. data/app/views/layouts/tour.html.erb +0 -0
  31. data/app/views/shared/_analytics.html.erb +0 -0
  32. data/app/views/tour/_tour_navigation.html.erb +0 -0
  33. data/app/views/user_mailer/confirmation_instructions.html.erb +0 -0
  34. data/app/views/user_mailer/confirmation_instructions.text.erb +0 -0
  35. data/app/views/user_mailer/reset_password_instructions.html.erb +0 -0
  36. data/app/views/user_mailer/reset_password_instructions.text.erb +0 -0
  37. data/config/routes.rb +0 -0
  38. data/instedd-rails.gemspec +1 -0
  39. data/lib/generators/instedd_rails/config_generator.rb +0 -0
  40. data/lib/generators/instedd_rails/layout_generator.rb +0 -0
  41. data/lib/generators/instedd_rails/templates/application.html.erb +0 -0
  42. data/lib/generators/instedd_rails/templates/instedd_rails_config.rb +0 -0
  43. data/lib/instedd_rails/config.rb +0 -0
  44. data/lib/instedd_rails/engine.rb +0 -0
  45. data/lib/instedd_rails/routes.rb +0 -0
  46. data/lib/instedd_rails/show_exceptions.rb +0 -0
  47. data/lib/instedd_rails/version.rb +1 -1
  48. metadata +34 -7
data/.rvmrc CHANGED
File without changes
data/Gemfile CHANGED
File without changes
@@ -92,3 +92,10 @@ You can use the INSTEDD\_THEME environment variable to use a different
92
92
  url for the theme. For example:
93
93
 
94
94
  INSTEDD_THEME=http://localhost rails s
95
+
96
+ If you have the [platform-common](https://bitbucket.org/instedd/platform-common) project checkout out locally you
97
+ can serve it with this command line:
98
+
99
+ sudo python -m SimpleHTTPServer 80
100
+
101
+ (be sure to run <code>rake</code> in that project before serving it)
data/Rakefile CHANGED
File without changes
File without changes
File without changes
@@ -1,28 +1,25 @@
1
1
  <%= devise_error_messages! :class => 'centered w30' %>
2
2
 
3
3
  <div class="box centered w30">
4
+ <%= form_for(resource, :as => resource_name, :url => password_path(resource_name), :html => { :method => :put }) do |f| %>
5
+ <h2>Change your password</h2>
4
6
 
5
- <%= form_for(resource, :as => resource_name, :url => password_path(resource_name), :html => { :method => :put }) do |f| %>
6
- <h2>Change your password</h2>
7
-
8
- <hr class="shadow"/>
9
-
10
- <%= f.hidden_field :reset_password_token %>
7
+ <hr class="shadow"/>
11
8
 
12
- <div class="field w30">
13
- <%= f.label :password, "New password" %>
14
- <%= f.password_field :password %>
15
- </div>
9
+ <%= f.hidden_field :reset_password_token %>
16
10
 
17
- <div class="field w30">
18
- <%= f.label :password_confirmation, "Confirm new password" %>
19
- <%= f.password_field :password_confirmation %>
20
- </div>
11
+ <div class="field w30">
12
+ <%= f.label :password, "New password" %>
13
+ <%= f.password_field :password %>
14
+ </div>
21
15
 
22
- <div class="actions">
23
- <button type="submit" class="white">Change my password</button>
24
- </div>
25
-
26
- <% end %>
16
+ <div class="field w30">
17
+ <%= f.label :password_confirmation, "Confirm new password" %>
18
+ <%= f.password_field :password_confirmation %>
19
+ </div>
27
20
 
21
+ <div class="actions">
22
+ <button type="submit" class="white">Change my password</button>
23
+ </div>
24
+ <% end %>
28
25
  </div>
File without changes
@@ -0,0 +1,27 @@
1
+ = devise_error_messages!
2
+ = form_for(resource, :as => resource_name, :url => registration_path(resource_name), :html => { :method => :put }) do |f|
3
+ %h2 Edit settings
4
+ .field.w30
5
+ = f.label :email, "Email"
6
+ = f.email_field :email, :readonly => true
7
+ .field.w30
8
+ = f.label :current_password, "Current password"
9
+ %p (we need your current password to confirm your changes)
10
+ = f.password_field :current_password
11
+ .ux-collapsible.collapsed.w30{"data-on-expanded" => "box grey"}
12
+ %span
13
+ %a.fsettings{:href => "#"} Change my password
14
+ .ux-content
15
+ .field.w30
16
+ = f.label :password, "New password"
17
+ %p (leave blank if you don't want to change it)
18
+ = f.password_field :password
19
+ .field.w30
20
+ = f.label :password_confirmation, "Confirm new password"
21
+ = f.password_field :password_confirmation
22
+ .actions
23
+ %button.white{:type => "submit"} Update
24
+ = link_to "Back", :back
25
+ %hr.w30/
26
+ %p
27
+ = link_to "Delete my account", registration_path(resource_name), :confirm => "Are you sure?", :method => :delete, :class => 'fdelete'
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
@@ -20,4 +20,5 @@ Gem::Specification.new do |s|
20
20
 
21
21
  s.add_dependency("rails", ">= 3.0")
22
22
  s.add_dependency("breadcrumbs_on_rails", ">= 2.2.0")
23
+ s.add_dependency('haml-rails')
23
24
  end
File without changes
File without changes
File without changes
File without changes
@@ -1,3 +1,3 @@
1
1
  module InsteddRails
2
- VERSION = "0.0.17"
2
+ VERSION = "0.0.18"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: instedd-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.17
4
+ version: 0.0.18
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-05-02 00:00:00.000000000 Z
12
+ date: 2012-05-29 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails
16
- requirement: &70159582980480 !ruby/object:Gem::Requirement
16
+ requirement: !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,10 +21,15 @@ dependencies:
21
21
  version: '3.0'
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *70159582980480
24
+ version_requirements: !ruby/object:Gem::Requirement
25
+ none: false
26
+ requirements:
27
+ - - ! '>='
28
+ - !ruby/object:Gem::Version
29
+ version: '3.0'
25
30
  - !ruby/object:Gem::Dependency
26
31
  name: breadcrumbs_on_rails
27
- requirement: &70159582979980 !ruby/object:Gem::Requirement
32
+ requirement: !ruby/object:Gem::Requirement
28
33
  none: false
29
34
  requirements:
30
35
  - - ! '>='
@@ -32,7 +37,28 @@ dependencies:
32
37
  version: 2.2.0
33
38
  type: :runtime
34
39
  prerelease: false
35
- version_requirements: *70159582979980
40
+ version_requirements: !ruby/object:Gem::Requirement
41
+ none: false
42
+ requirements:
43
+ - - ! '>='
44
+ - !ruby/object:Gem::Version
45
+ version: 2.2.0
46
+ - !ruby/object:Gem::Dependency
47
+ name: haml-rails
48
+ requirement: !ruby/object:Gem::Requirement
49
+ none: false
50
+ requirements:
51
+ - - ! '>='
52
+ - !ruby/object:Gem::Version
53
+ version: '0'
54
+ type: :runtime
55
+ prerelease: false
56
+ version_requirements: !ruby/object:Gem::Requirement
57
+ none: false
58
+ requirements:
59
+ - - ! '>='
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
36
62
  description: This gem unifies all the helpers and common views used by all Instedd
37
63
  applications
38
64
  email:
@@ -56,6 +82,7 @@ files:
56
82
  - app/views/devise/confirmations/new.html.erb
57
83
  - app/views/devise/passwords/edit.html.erb
58
84
  - app/views/devise/passwords/new.html.erb
85
+ - app/views/devise/registrations/edit.html.haml
59
86
  - app/views/devise/sessions/new.html.erb
60
87
  - app/views/devise/shared/_links.erb
61
88
  - app/views/devise/unlocks/new.html.erb
@@ -112,7 +139,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
112
139
  version: '0'
113
140
  requirements: []
114
141
  rubyforge_project: instedd-rails
115
- rubygems_version: 1.8.10
142
+ rubygems_version: 1.8.21
116
143
  signing_key:
117
144
  specification_version: 3
118
145
  summary: Instedd Platform Common helpers for Rails