Skip to content

Commit 2d9d127

Browse files
authored
Merge pull request #1 from oauth-xx/upstream-rails-5-1-fixes
Upstream rails 5.1 fixes
2 parents d00751b + 2fa1dca commit 2d9d127

File tree

80 files changed

+794
-530
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

80 files changed

+794
-530
lines changed

.tool-versions

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
ruby 2.7.8

.travis.yml

Lines changed: 0 additions & 3 deletions
This file was deleted.

Gemfile

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,18 @@
1-
source "http://rubygems.org"
1+
source "https://rubygems.org"
22

33
group :development, :test do
44
platforms :ruby, :mswin, :mingw do
55
gem 'sqlite3'
6-
#gem 'mysql2'
7-
#gem 'pg'
6+
gem 'mysql2'
7+
gem 'pg'
8+
gem 'byebug'
89
#gem 'activerecord-oracle_enhanced-adapter'
910
#gem 'ruby-plsql'
1011
#gem 'ruby-oci8'
1112
end
1213
gem 'minitest'
14+
gem 'rails-controller-testing'
1315
gem 'test-unit', '~> 3.0'
14-
gem 'turn'
1516
gem 'mocha'
1617
gem 'ruby_gntp'
1718
gem 'guard-minitest'

Gemfile.lock

Lines changed: 145 additions & 98 deletions
Original file line numberDiff line numberDiff line change
@@ -2,129 +2,176 @@ PATH
22
remote: .
33
specs:
44
masq (0.3.4)
5+
erb
56
i18n_data
6-
rails (~> 3.2.0)
7+
rails (~> 5.1.0)
8+
rails-controller-testing
79
ruby-openid
810
ruby-yadis
911
yubikey
1012

1113
GEM
12-
remote: http://rubygems.org/
14+
remote: https://rubygems.org/
1315
specs:
14-
actionmailer (3.2.22.2)
15-
actionpack (= 3.2.22.2)
16-
mail (~> 2.5.4)
17-
actionpack (3.2.22.2)
18-
activemodel (= 3.2.22.2)
19-
activesupport (= 3.2.22.2)
20-
builder (~> 3.0.0)
21-
erubis (~> 2.7.0)
22-
journey (~> 1.0.4)
23-
rack (~> 1.4.5)
24-
rack-cache (~> 1.2)
25-
rack-test (~> 0.6.1)
26-
sprockets (~> 2.2.1)
27-
activemodel (3.2.22.2)
28-
activesupport (= 3.2.22.2)
29-
builder (~> 3.0.0)
30-
activerecord (3.2.22.2)
31-
activemodel (= 3.2.22.2)
32-
activesupport (= 3.2.22.2)
33-
arel (~> 3.0.2)
34-
tzinfo (~> 0.3.29)
35-
activeresource (3.2.22.2)
36-
activemodel (= 3.2.22.2)
37-
activesupport (= 3.2.22.2)
38-
activesupport (3.2.22.2)
39-
i18n (~> 0.6, >= 0.6.4)
40-
multi_json (~> 1.0)
41-
ansi (1.5.0)
42-
arel (3.0.3)
43-
builder (3.0.4)
44-
concurrent-ruby (1.0.5)
45-
erubis (2.7.0)
16+
actioncable (5.1.7)
17+
actionpack (= 5.1.7)
18+
nio4r (~> 2.0)
19+
websocket-driver (~> 0.6.1)
20+
actionmailer (5.1.7)
21+
actionpack (= 5.1.7)
22+
actionview (= 5.1.7)
23+
activejob (= 5.1.7)
24+
mail (~> 2.5, >= 2.5.4)
25+
rails-dom-testing (~> 2.0)
26+
actionpack (5.1.7)
27+
actionview (= 5.1.7)
28+
activesupport (= 5.1.7)
29+
rack (~> 2.0)
30+
rack-test (>= 0.6.3)
31+
rails-dom-testing (~> 2.0)
32+
rails-html-sanitizer (~> 1.0, >= 1.0.2)
33+
actionview (5.1.7)
34+
activesupport (= 5.1.7)
35+
builder (~> 3.1)
36+
erubi (~> 1.4)
37+
rails-dom-testing (~> 2.0)
38+
rails-html-sanitizer (~> 1.0, >= 1.0.3)
39+
activejob (5.1.7)
40+
activesupport (= 5.1.7)
41+
globalid (>= 0.3.6)
42+
activemodel (5.1.7)
43+
activesupport (= 5.1.7)
44+
activerecord (5.1.7)
45+
activemodel (= 5.1.7)
46+
activesupport (= 5.1.7)
47+
arel (~> 8.0)
48+
activesupport (5.1.7)
49+
concurrent-ruby (~> 1.0, >= 1.0.2)
50+
i18n (>= 0.7, < 2)
51+
minitest (~> 5.1)
52+
tzinfo (~> 1.1)
53+
arel (8.0.0)
54+
builder (3.3.0)
55+
byebug (11.1.3)
56+
cgi (0.4.1)
57+
concurrent-ruby (1.3.4)
58+
crass (1.0.6)
59+
date (3.4.0)
60+
erb (4.0.4)
61+
cgi (>= 0.3.3)
62+
erubi (1.13.0)
63+
globalid (1.1.0)
64+
activesupport (>= 5.0)
4665
guard-compat (1.2.1)
47-
guard-minitest (2.4.5)
66+
guard-minitest (2.4.6)
4867
guard-compat (~> 1.2)
4968
minitest (>= 3.0)
50-
hike (1.2.3)
51-
i18n (0.9.1)
69+
i18n (1.14.6)
5270
concurrent-ruby (~> 1.0)
53-
i18n_data (0.8.0)
54-
journey (1.0.4)
55-
json (1.8.3)
56-
mail (2.5.4)
57-
mime-types (~> 1.16)
58-
treetop (~> 1.4.8)
59-
metaclass (0.0.4)
60-
mime-types (1.25.1)
61-
minitest (4.7.5)
62-
mocha (1.1.0)
63-
metaclass (~> 0.0.1)
64-
multi_json (1.12.2)
65-
polyglot (0.3.5)
66-
power_assert (0.2.2)
67-
rack (1.4.7)
68-
rack-cache (1.6.1)
69-
rack (>= 0.4)
70-
rack-ssl (1.3.4)
71-
rack
72-
rack-test (0.6.3)
73-
rack (>= 1.0)
74-
rails (3.2.22.2)
75-
actionmailer (= 3.2.22.2)
76-
actionpack (= 3.2.22.2)
77-
activerecord (= 3.2.22.2)
78-
activeresource (= 3.2.22.2)
79-
activesupport (= 3.2.22.2)
80-
bundler (~> 1.0)
81-
railties (= 3.2.22.2)
82-
railties (3.2.22.2)
83-
actionpack (= 3.2.22.2)
84-
activesupport (= 3.2.22.2)
85-
rack-ssl (~> 1.3.2)
71+
i18n_data (0.17.1)
72+
simple_po_parser (~> 1.1)
73+
loofah (2.23.1)
74+
crass (~> 1.0.2)
75+
nokogiri (>= 1.12.0)
76+
mail (2.8.1)
77+
mini_mime (>= 0.1.1)
78+
net-imap
79+
net-pop
80+
net-smtp
81+
method_source (1.1.0)
82+
mini_mime (1.1.5)
83+
mini_portile2 (2.8.7)
84+
minitest (5.25.1)
85+
mocha (2.5.0)
86+
ruby2_keywords (>= 0.0.5)
87+
mysql2 (0.5.6)
88+
net-imap (0.4.17)
89+
date
90+
net-protocol
91+
net-pop (0.1.2)
92+
net-protocol
93+
net-protocol (0.2.2)
94+
timeout
95+
net-smtp (0.5.0)
96+
net-protocol
97+
nio4r (2.7.4)
98+
nokogiri (1.15.6-arm64-darwin)
99+
racc (~> 1.4)
100+
pg (1.5.9)
101+
racc (1.8.1)
102+
rack (2.2.10)
103+
rack-test (2.1.0)
104+
rack (>= 1.3)
105+
rails (5.1.7)
106+
actioncable (= 5.1.7)
107+
actionmailer (= 5.1.7)
108+
actionpack (= 5.1.7)
109+
actionview (= 5.1.7)
110+
activejob (= 5.1.7)
111+
activemodel (= 5.1.7)
112+
activerecord (= 5.1.7)
113+
activesupport (= 5.1.7)
114+
bundler (>= 1.3.0)
115+
railties (= 5.1.7)
116+
sprockets-rails (>= 2.0.0)
117+
rails-controller-testing (1.0.5)
118+
actionpack (>= 5.0.1.rc1)
119+
actionview (>= 5.0.1.rc1)
120+
activesupport (>= 5.0.1.rc1)
121+
rails-dom-testing (2.2.0)
122+
activesupport (>= 5.0.0)
123+
minitest
124+
nokogiri (>= 1.6)
125+
rails-html-sanitizer (1.6.0)
126+
loofah (~> 2.21)
127+
nokogiri (~> 1.14)
128+
railties (5.1.7)
129+
actionpack (= 5.1.7)
130+
activesupport (= 5.1.7)
131+
method_source
86132
rake (>= 0.8.7)
87-
rdoc (~> 3.4)
88-
thor (>= 0.14.6, < 2.0)
89-
rake (12.3.0)
90-
rb-fsevent (0.9.7)
91-
rdoc (3.12.2)
92-
json (~> 1.4)
93-
ruby-openid (2.7.0)
133+
thor (>= 0.18.1, < 2.0)
134+
rake (13.2.1)
135+
rb-fsevent (0.11.2)
136+
ruby-openid (2.9.2)
94137
ruby-yadis (0.3.4)
138+
ruby2_keywords (0.0.5)
95139
ruby_gntp (0.3.4)
96-
sprockets (2.2.3)
97-
hike (~> 1.2)
98-
multi_json (~> 1.0)
99-
rack (~> 1.0)
100-
tilt (~> 1.1, != 1.3.0)
101-
sqlite3 (1.3.11)
102-
test-unit (3.0.8)
103-
power_assert
104-
thor (0.20.0)
105-
tilt (1.4.1)
106-
treetop (1.4.15)
107-
polyglot
108-
polyglot (>= 0.3.1)
109-
turn (0.9.7)
110-
ansi
111-
minitest (~> 4)
112-
tzinfo (0.3.53)
140+
simple_po_parser (1.1.6)
141+
sprockets (4.2.1)
142+
concurrent-ruby (~> 1.0)
143+
rack (>= 2.2.4, < 4)
144+
sprockets-rails (3.2.2)
145+
actionpack (>= 4.0)
146+
activesupport (>= 4.0)
147+
sprockets (>= 3.0.0)
148+
sqlite3 (1.7.3)
149+
mini_portile2 (~> 2.8.0)
150+
thor (1.3.2)
151+
thread_safe (0.3.6)
152+
timeout (0.4.2)
153+
tzinfo (1.2.11)
154+
thread_safe (~> 0.1)
155+
websocket-driver (0.6.5)
156+
websocket-extensions (>= 0.1.0)
157+
websocket-extensions (0.1.5)
113158
yubikey (1.4.1)
114159

115160
PLATFORMS
116-
ruby
161+
arm64-darwin-22
117162

118163
DEPENDENCIES
164+
byebug
119165
guard-minitest
120166
masq!
121167
minitest
122168
mocha
169+
mysql2
170+
pg
171+
rails-controller-testing
123172
rb-fsevent
124173
ruby_gntp
125174
sqlite3
126-
test-unit (~> 3.0)
127-
turn
128175

129176
BUNDLED WITH
130-
1.12.5
177+
2.4.22

README.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
# Masq2 OpenID Server
22

3-
[![Build Status](https://travis-ci.org/bardbess/masq.svg?branch=master)](http://travis-ci.org/bardbess/masq)
4-
53
Masq2 is a mountable Rails engine that provides OpenID server/identity provider functionality.
64
It is the successor to the [masq gem](https://github.com/dennisreimann/masq), which in turn
75
was the successor of the stand-alone Rails application of the same purpose, [masquerade](http://github.com/dennisreimann/masquerade/).
@@ -14,22 +12,22 @@ Feel free to fork and submit patches :)
1412

1513
## Installation
1614

17-
0. In case you want to run Masq2 as a standalone application (not integrated into an existing app), you will have to generate a bare-bone Rails app first:
15+
1. In case you want to run Masq2 as a standalone application (not integrated into an existing app), you will have to generate a bare-bone Rails app first:
1816
* `rails new my_openid_provider`
1917

20-
1. Add `masq2` to your Gemfile and install it:
18+
2. Add `masq2` to your Gemfile and install it:
2119
* `gem 'masq2'`
2220
* `bundle install`
2321

24-
2. Copy the configuration and edit it:
22+
3. Copy the configuration and edit it:
2523
* `bundle exec rake masq:install:config`
2624
* `$EDITOR config/masq.yml`
2725

28-
3. Copy the migrations and migrate:
26+
4. Copy the migrations and migrate:
2927
* `bundle exec rake masq:install:migrations`
3028
* `bundle exec rake db:migrate`
3129

32-
4. Configure the routes by mounting the masq engine:
30+
5. Configure the routes by mounting the masq engine:
3331
* For integration into an existing app, mount it in a subdirectory, like:
3432
* `mount Masq::Engine => "/masq"` or
3533
* `mount Masq::Engine => "/openid"`
@@ -72,11 +70,13 @@ handy methods to access and answer OpenID requests.
7270
### Testing
7371

7472
You can run the tests with Rake:
75-
* `DB_ADAPTER=sqlite3 bundle exec rake app:masq:test:ci`
76-
* `DB_ADAPTER=mysql2 bundle exec rake app:masq:test:ci`
77-
* `DB_ADAPTER=postgresql bundle exec rake app:masq:test:ci`
73+
74+
* `DB_ADAPTER=sqlite3 bundle exec rake app:masq:test:ci`
75+
* `DB_ADAPTER=mysql2 bundle exec rake app:masq:test:ci`
76+
* `DB_ADAPTER=postgresql bundle exec rake app:masq:test:ci`
7877

7978
The Rake task configures the database.yml for the chosen adapter.
8079

8180
In case you prefer running the tests continuously, use Guard:
82-
* `bundle exec guard`
81+
82+
* `bundle exec guard`

0 commit comments

Comments
 (0)