devise_ichain_authenticatable 0.1 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -5,7 +5,7 @@ class Devise::IchainRegistrationsController < DeviseController
5
5
  def new
6
6
  redirect_url = base_url + after_sign_up_path_for(resource_name)
7
7
  if ::Devise.ichain_test_mode
8
- set_flash_message :notice, :in_test_mode
8
+ set_flash_message :alert, :in_test_mode
9
9
  redirect_to redirect_url
10
10
  else
11
11
  sign_up_url = ::Devise.ichain_base_url + "/ICSLogin"
@@ -20,11 +20,12 @@ class Devise::IchainRegistrationsController < DeviseController
20
20
  end
21
21
 
22
22
  # PUT /resource
23
- # We need to use a copy of the resource because we don't want to change
24
- # the current user in place.
25
23
  def update
26
- #self.resource = resource_class.to_adapter.get!(send(:"current_#{resource_name}").to_key)
27
- resource.update_attributes(resource_params)
24
+ if resource.update_attributes(resource_params)
25
+ set_flash_message :notice, :updated
26
+ else
27
+ set_flash_message :alert, :update_failed
28
+ end
28
29
  respond_with resource, :location => after_update_path_for(resource)
29
30
  end
30
31
 
@@ -0,0 +1,8 @@
1
+ en:
2
+ devise:
3
+ ichain_registrations:
4
+ in_test_mode: "No registration available since ichain_test_mode is enabled."
5
+ updated: "You updated your account successfully."
6
+ update_failed: "Some error prevented your account to be updated."
7
+ ichain_sessions:
8
+ signed_out: "Signed out successfully."
@@ -1,3 +1,3 @@
1
1
  module DeviseIchainAuthenticatable
2
- VERSION = "0.1".freeze
2
+ VERSION = "0.1.1".freeze
3
3
  end
metadata CHANGED
@@ -1,18 +1,20 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: devise_ichain_authenticatable
3
3
  version: !ruby/object:Gem::Version
4
- version: '0.1'
4
+ version: 0.1.1
5
+ prerelease:
5
6
  platform: ruby
6
7
  authors:
7
8
  - Ancor González Sosa
8
9
  autorequire:
9
10
  bindir: bin
10
11
  cert_chain: []
11
- date: 2013-07-22 00:00:00.000000000 Z
12
+ date: 2013-07-23 00:00:00.000000000 Z
12
13
  dependencies:
13
14
  - !ruby/object:Gem::Dependency
14
15
  name: devise
15
16
  requirement: !ruby/object:Gem::Requirement
17
+ none: false
16
18
  requirements:
17
19
  - - ! '>='
18
20
  - !ruby/object:Gem::Version
@@ -20,6 +22,7 @@ dependencies:
20
22
  type: :runtime
21
23
  prerelease: false
22
24
  version_requirements: !ruby/object:Gem::Requirement
25
+ none: false
23
26
  requirements:
24
27
  - - ! '>='
25
28
  - !ruby/object:Gem::Version
@@ -38,6 +41,7 @@ files:
38
41
  - app/views/devise/ichain_registrations/edit.html.erb
39
42
  - app/views/devise/ichain_sessions/new.html.erb
40
43
  - app/views/devise/ichain_sessions/new_test.html.erb
44
+ - config/locales/en.yml
41
45
  - devise_ichain_authenticatable.gemspec
42
46
  - lib/devise/ichain_failure_app.rb
43
47
  - lib/devise_ichain_authenticatable.rb
@@ -50,26 +54,27 @@ files:
50
54
  homepage: https://github.com/openSUSE/devise_ichain_authenticatable
51
55
  licenses:
52
56
  - MIT
53
- metadata: {}
54
57
  post_install_message:
55
58
  rdoc_options: []
56
59
  require_paths:
57
60
  - lib
58
61
  required_ruby_version: !ruby/object:Gem::Requirement
62
+ none: false
59
63
  requirements:
60
64
  - - ! '>='
61
65
  - !ruby/object:Gem::Version
62
66
  version: '0'
63
67
  required_rubygems_version: !ruby/object:Gem::Requirement
68
+ none: false
64
69
  requirements:
65
70
  - - ! '>='
66
71
  - !ruby/object:Gem::Version
67
72
  version: '0'
68
73
  requirements: []
69
74
  rubyforge_project:
70
- rubygems_version: 2.0.3
75
+ rubygems_version: 1.8.25
71
76
  signing_key:
72
- specification_version: 4
77
+ specification_version: 3
73
78
  summary: Devise extension to allow authentication via iChain
74
79
  test_files: []
75
80
  has_rdoc:
checksums.yaml DELETED
@@ -1,15 +0,0 @@
1
- ---
2
- !binary "U0hBMQ==":
3
- metadata.gz: !binary |-
4
- MWNiYWNhMjM4N2ZmMmZlMzViMGYxOTExMjdjN2VhYTlhNjNlYWZmOQ==
5
- data.tar.gz: !binary |-
6
- YjkzOTBjMjg0NGRhNzA0NjgzMmRkNzQwNGYyODJkOWFiZTNkNDJiZg==
7
- !binary "U0hBNTEy":
8
- metadata.gz: !binary |-
9
- MDc5ZTJlMjViODRmOWFmZTMyODVlMGE0NzAzN2UxMjAyYzgxOGZmZjQ2NmMw
10
- MGI1MDdlMmNiZTkwZWQ4NDY3OTI2Mzg3MDAxNjViODQ0NWI2MGY5YmZmYTFh
11
- Y2E1YmZhYzQ3YzIwOTg5YzY2OTYwNTc5Mzc5YmJiZDMxOWYzOGI=
12
- data.tar.gz: !binary |-
13
- M2Y2YzE2NTJhMzg4MmJlMzMzYmQwODgxZDk5ZjFhZmY1NzBlNmQ3ZGE4MzA4
14
- OTQ3NGFiNDM3OWZkNTJmNDEzMDA4YzI3NWFmNTQ4MWZjMWI3ZWFlNjhhYjAw
15
- ODE0ODZmZjU4MWQ2ZGJmZDgzNGEyZWVhNDg1MzUzODcyMDI2YWY=