currentuser-services 0.2.0 → 0.2.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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +6 -0
- data/VERSION +1 -1
- data/currentuser-services.gemspec +2 -2
- data/lib/currentuser/services.rb +1 -1
- data/test/currentuser/services/integration_test.rb +3 -1
- data/test/test_application/application.rb +1 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e798cf190e92c8d661a41917fd587c433ba23bb2
|
4
|
+
data.tar.gz: 5e5638b8bdaf0e7a09c6bf6811dd58c1d2ed1f19
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 60d04b64e659389cd66a13bb1c638dedf0551b4d36f435d2254e43d25b74e2e0c73f13a802d0dd2c8ac0d6c5d8b1e7377c8eb979fe7c09b3df893bfc16a7fa4e
|
7
|
+
data.tar.gz: 1720d8f0c52685fdb17e9a0cf80fed0856791bff155cd01d64b3981a16759c5d13efe7aebaf67161119668cdb20cdec21ed1f1105f85b21ebfbc28dac2a99db7
|
data/CHANGELOG.md
CHANGED
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.2.
|
1
|
+
0.2.1
|
@@ -2,11 +2,11 @@
|
|
2
2
|
# DO NOT EDIT THIS FILE DIRECTLY
|
3
3
|
# Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
|
4
4
|
# -*- encoding: utf-8 -*-
|
5
|
-
# stub: currentuser-services 0.2.
|
5
|
+
# stub: currentuser-services 0.2.1 ruby lib
|
6
6
|
|
7
7
|
Gem::Specification.new do |s|
|
8
8
|
s.name = "currentuser-services"
|
9
|
-
s.version = "0.2.
|
9
|
+
s.version = "0.2.1"
|
10
10
|
|
11
11
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
12
12
|
s.require_paths = ["lib"]
|
data/lib/currentuser/services.rb
CHANGED
@@ -30,7 +30,7 @@ end
|
|
30
30
|
module ActionController
|
31
31
|
class Base
|
32
32
|
include Currentuser::Services::Authenticates
|
33
|
-
helper_method :currentuser_id, :currentuser_sign_in_url, :currentuser_sign_up_url, :currentuser_sign_out_url
|
33
|
+
helper_method :currentuser_session, :currentuser_id, :currentuser_sign_in_url, :currentuser_sign_up_url, :currentuser_sign_out_url
|
34
34
|
end
|
35
35
|
end
|
36
36
|
|
@@ -43,6 +43,7 @@ module Currentuser
|
|
43
43
|
visit '/inside'
|
44
44
|
assert_equal '/inside', current_path
|
45
45
|
assert has_text? 'Private page'
|
46
|
+
assert has_no_text? 'Sign Up'
|
46
47
|
|
47
48
|
click_button 'Sign out'
|
48
49
|
assert_equal '/', current_path
|
@@ -60,9 +61,10 @@ module Currentuser
|
|
60
61
|
assert_equal '/', current_path
|
61
62
|
assert has_text? 'Public page'
|
62
63
|
|
63
|
-
# Check user is connected
|
64
|
+
# Check user is connected, and Sign Up is set
|
64
65
|
visit '/inside'
|
65
66
|
assert has_text? 'Private page'
|
67
|
+
assert has_text? 'Sign Up'
|
66
68
|
end
|
67
69
|
|
68
70
|
test 'available' do
|