refinerycms-authentication 0.9.9.19 → 0.9.9.20

Sign up to get free protection for your applications and to get access to all the features.
@@ -59,3 +59,30 @@ Feature: Manage Users
59
59
  Then I should be on the list of users
60
60
  And I should see "cucumber was successfully updated."
61
61
  And I should see "cucumber (green@cucumber.com)"
62
+
63
+ @users-dashboard @add
64
+ Scenario: Add User
65
+ Given I have a user named "steven"
66
+ And I am a logged in refinery user
67
+ When I go to the list of users
68
+ And I follow "Add new user"
69
+ And I fill in "Username" with "marian"
70
+ And I fill in "Email" with "green@cucumber.com"
71
+ And I fill in "Password" with "greenandjuicy"
72
+ And I fill in "Password confirmation" with "greenandjuicy"
73
+ And I press "Save"
74
+ Then I should be on the list of users
75
+ When I go to the Dashboard
76
+ Then I should see "Marian user was added"
77
+
78
+ @users-dashboard @edit
79
+ Scenario: Edit User
80
+ Given I have a user named "steven"
81
+ And I am a logged in refinery user
82
+ When I go to the list of users
83
+ And I follow "Edit this user"
84
+ And I fill in "Username" with "marian"
85
+ And I press "Save"
86
+ Then I should be on the list of users
87
+ When I go to the Dashboard
88
+ Then I should see "Marian user was updated"
data/lib/gemspec.rb CHANGED
@@ -19,8 +19,9 @@ Gem::Specification.new do |s|
19
19
  s.require_paths = %w(lib)
20
20
  s.executables = %w(#{Pathname.glob(gempath.join('bin/*')).map{|d| d.relative_path_from(gempath)}.sort.join(" ")})
21
21
 
22
- s.add_dependency 'refinerycms-core', '= #{::Refinery::Version}'
23
- s.add_dependency 'devise', '~> 1.2.0'
22
+ s.add_dependency 'refinerycms-core', '= #{::Refinery::Version}'
23
+ s.add_dependency 'devise', '~> 1.2.0'
24
+ s.add_dependency 'friendly_id_globalize3', '~> 3.2.1'
24
25
 
25
26
  s.files = [
26
27
  '#{%w( **/{*,.rspec,.gitignore,.yardopts} ).map { |file| Pathname.glob(gempath.join(file)) }.flatten.reject{|f|
@@ -1,5 +1,6 @@
1
1
  require 'devise'
2
2
  require 'refinerycms-core'
3
+ require 'friendly_id'
3
4
  # Attach authenticated system methods to the ::Refinery::ApplicationController
4
5
  require File.expand_path('../authenticated_system', __FILE__)
5
6
  [::Refinery::ApplicationController, ::Refinery::ApplicationHelper].each do |c|
@@ -26,7 +27,7 @@ module Refinery
26
27
  plugin.menu_match = /(refinery|admin)\/users$/
27
28
  plugin.activity = {
28
29
  :class => User,
29
- :title => 'login'
30
+ :title => 'username'
30
31
  }
31
32
  plugin.url = {:controller => "/admin/users"}
32
33
  end
@@ -2,10 +2,10 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{refinerycms-authentication}
5
- s.version = %q{0.9.9.19}
5
+ s.version = %q{0.9.9.20}
6
6
  s.summary = %q{Authentication engine for Refinery CMS}
7
7
  s.description = %q{The default authentication engine for Refinery CMS}
8
- s.date = %q{2011-04-22}
8
+ s.date = %q{2011-04-28}
9
9
  s.email = %q{info@refinerycms.com}
10
10
  s.homepage = %q{http://refinerycms.com}
11
11
  s.rubyforge_project = %q{refinerycms}
@@ -14,8 +14,9 @@ Gem::Specification.new do |s|
14
14
  s.require_paths = %w(lib)
15
15
  s.executables = %w()
16
16
 
17
- s.add_dependency 'refinerycms-core', '= 0.9.9.19'
18
- s.add_dependency 'devise', '~> 1.2.0'
17
+ s.add_dependency 'refinerycms-core', '= 0.9.9.20'
18
+ s.add_dependency 'devise', '~> 1.2.0'
19
+ s.add_dependency 'friendly_id_globalize3', '~> 3.2.1'
19
20
 
20
21
  s.files = [
21
22
  'app',
@@ -149,5 +149,5 @@ describe User do
149
149
  UserPlugin.find_by_user_id(user.id).should be_nil
150
150
  end
151
151
  end
152
-
152
+
153
153
  end
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: refinerycms-authentication
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.9.9.19
5
+ version: 0.9.9.20
6
6
  platform: ruby
7
7
  authors:
8
8
  - Resolve Digital
@@ -13,7 +13,7 @@ autorequire:
13
13
  bindir: bin
14
14
  cert_chain: []
15
15
 
16
- date: 2011-04-22 00:00:00 Z
16
+ date: 2011-04-28 00:00:00 Z
17
17
  dependencies:
18
18
  - !ruby/object:Gem::Dependency
19
19
  name: refinerycms-core
@@ -23,7 +23,7 @@ dependencies:
23
23
  requirements:
24
24
  - - "="
25
25
  - !ruby/object:Gem::Version
26
- version: 0.9.9.19
26
+ version: 0.9.9.20
27
27
  type: :runtime
28
28
  version_requirements: *id001
29
29
  - !ruby/object:Gem::Dependency
@@ -37,6 +37,17 @@ dependencies:
37
37
  version: 1.2.0
38
38
  type: :runtime
39
39
  version_requirements: *id002
40
+ - !ruby/object:Gem::Dependency
41
+ name: friendly_id_globalize3
42
+ prerelease: false
43
+ requirement: &id003 !ruby/object:Gem::Requirement
44
+ none: false
45
+ requirements:
46
+ - - ~>
47
+ - !ruby/object:Gem::Version
48
+ version: 3.2.1
49
+ type: :runtime
50
+ version_requirements: *id003
40
51
  description: The default authentication engine for Refinery CMS
41
52
  email: info@refinerycms.com
42
53
  executables: []
@@ -144,3 +155,4 @@ specification_version: 3
144
155
  summary: Authentication engine for Refinery CMS
145
156
  test_files: []
146
157
 
158
+ has_rdoc: