rpx_now 0.6.20 → 0.6.21

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.
data/README.markdown CHANGED
@@ -28,10 +28,9 @@ Examples
28
28
 
29
29
  View
30
30
  ----
31
- #'mywebsite' is your subdomain/realm on RPX
32
- <%=RPXNow.embed_code('mywebsite', url_for(:controller=>:session, :action=>:rpx_token, :only_path => false))%>
31
+ <%=RPXNow.embed_code('My-Rpx-Domain', url_for(:controller=>:session, :action=>:rpx_token, :only_path => false))%>
33
32
  OR
34
- <%=RPXNow.popup_code('Login here...', 'mywebsite', url_for(:controller=>:session, :action=>:rpx_token, :only_path => false), options)%>
33
+ <%=RPXNow.popup_code('Login here...', 'My-Rpx-Domain', url_for(:controller=>:session, :action=>:rpx_token, :only_path => false), options)%>
35
34
 
36
35
  ###Options
37
36
  `:language=>'en'` rpx tries to detect the users language, but you may overwrite it [possible languages](https://rpxnow.com/docs#sign-in_localization)
@@ -41,7 +40,7 @@ View
41
40
 
42
41
  ###Unobtrusive / JS-last
43
42
  `popup_code` can also be called with `:unobtrusive=>true` ( --> just link without javascript include).
44
- To still get the normal popup add `RPXNow.popup_source('mywebsite', url_for(:controller=>:session, :action=>:rpx_token, :only_path => false), [options])`.
43
+ To still get the normal popup add `RPXNow.popup_source('My-Rpx-Domain', url_for(:controller=>:session, :action=>:rpx_token, :only_path => false), [options])`.
45
44
  Options like :language / :flags should be given for both.
46
45
 
47
46
  environment.rb
@@ -144,7 +143,8 @@ __[rpx_now_gem mailing list](http://groups.google.com/group/rpx_now_gem)__
144
143
  - [Kasper Weibel](http://github.com/weibel)
145
144
  - [Nicolas Alpi](http://www.notgeeklycorrect.com)
146
145
  - [Ladislav Martincik](http://martincik.com)
146
+ - [Ben Aldred](http://github.com/benaldred)
147
147
 
148
148
  [Michael Grosser](http://pragmatig.wordpress.com)
149
149
  grosser.michael@gmail.com
150
- Hereby placed under public domain, do what you want, just do not hold me accountable...
150
+ Hereby placed under public domain, do what you want, just do not hold me accountable...
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.6.20
1
+ 0.6.21
data/lib/rpx_now.rb CHANGED
@@ -77,7 +77,7 @@ module RPXNow
77
77
  options = {:width => '400', :height => '240'}.merge(options)
78
78
  <<-EOF
79
79
  <iframe src="#{Api.host(subdomain)}/openid/embed?#{embed_params(url, options)}"
80
- scrolling="no" frameBorder="no" style="width:#{options[:width]}px;height:#{options[:height]}px;">
80
+ scrolling="no" frameBorder="no" style="width:#{options[:width]}px;height:#{options[:height]}px;" id="rpx_now_embed">
81
81
  </iframe>
82
82
  EOF
83
83
  end
data/rpx_now.gemspec CHANGED
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{rpx_now}
8
- s.version = "0.6.20"
8
+ s.version = "0.6.21"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Michael Grosser"]
12
- s.date = %q{2010-04-27}
12
+ s.date = %q{2010-05-29}
13
13
  s.email = %q{grosser.michael@gmail.com}
14
14
  s.extra_rdoc_files = [
15
15
  "README.markdown"
@@ -44,11 +44,11 @@ Gem::Specification.new do |s|
44
44
  s.rubygems_version = %q{1.3.6}
45
45
  s.summary = %q{Helper to simplify RPX Now user login/creation}
46
46
  s.test_files = [
47
- "spec/spec_helper.rb",
48
- "spec/rpx_now/contacts_collection_spec.rb",
47
+ "spec/rpx_now/contacts_collection_spec.rb",
49
48
  "spec/rpx_now/api_spec.rb",
50
49
  "spec/rpx_now/user_proxy_spec.rb",
51
50
  "spec/integration/mapping_spec.rb",
51
+ "spec/spec_helper.rb",
52
52
  "spec/rpx_now_spec.rb"
53
53
  ]
54
54
 
data/spec/rpx_now_spec.rb CHANGED
@@ -99,6 +99,10 @@ describe RPXNow do
99
99
  it "has a changeable height" do
100
100
  RPXNow.embed_code('xxx', 'my_url', :height => '500').should =~ /height:500px;/
101
101
  end
102
+
103
+ it "has id on iframe" do
104
+ RPXNow.embed_code('xxx','my_url').should =~ /id=\"rpx_now_embed\"/
105
+ end
102
106
  end
103
107
 
104
108
  describe :popup_code do
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 6
8
- - 20
9
- version: 0.6.20
8
+ - 21
9
+ version: 0.6.21
10
10
  platform: ruby
11
11
  authors:
12
12
  - Michael Grosser
@@ -14,7 +14,7 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2010-04-27 00:00:00 +02:00
17
+ date: 2010-05-29 00:00:00 +02:00
18
18
  default_executable:
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
@@ -91,9 +91,9 @@ signing_key:
91
91
  specification_version: 3
92
92
  summary: Helper to simplify RPX Now user login/creation
93
93
  test_files:
94
- - spec/spec_helper.rb
95
94
  - spec/rpx_now/contacts_collection_spec.rb
96
95
  - spec/rpx_now/api_spec.rb
97
96
  - spec/rpx_now/user_proxy_spec.rb
98
97
  - spec/integration/mapping_spec.rb
98
+ - spec/spec_helper.rb
99
99
  - spec/rpx_now_spec.rb