bpluser 0.0.5 → 0.0.6
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
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 228f4a8a2dbc29ead7c5292ac2abf4621e1fd611
|
4
|
+
data.tar.gz: eabf33588bc56c4fb42c9600a08c551665c1d705
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 438bd1de38f655a1698332b9592a0b3da8919c4c40cdeaab50da77c10365a04c48352604d5df71d7d8eb2b885681dcc7f28868d96623d1955d7b2b4b56dde34f
|
7
|
+
data.tar.gz: 8bfe09343cf439136c3ade65363c8cddf468d6d4981642a45127f9d79492789aebed102e4f4e2fbd74d952142670a895332d34bbd7721f6c6e9a8adb45523fe2
|
@@ -10,13 +10,9 @@ module Bpluser::Users::OmniauthCallbacksController
|
|
10
10
|
|
11
11
|
def ldap
|
12
12
|
|
13
|
-
puts request.env["omniauth.auth"]
|
14
|
-
|
15
|
-
|
16
13
|
@user = User.find_for_ldap_oauth(request.env["omniauth.auth"], current_user)
|
17
14
|
|
18
15
|
if @user.persisted?
|
19
|
-
puts 'persisted'
|
20
16
|
flash[:notice] = I18n.t "devise.omniauth_callbacks.success", :kind => "Ldap"
|
21
17
|
sign_in_and_redirect @user, :event => :authentication
|
22
18
|
else
|
@@ -5,7 +5,8 @@ module Bpluser
|
|
5
5
|
has_many :folder_items, :dependent => :destroy, :class_name => "Bpluser::FolderItem"
|
6
6
|
|
7
7
|
validates :user_id, :presence => true
|
8
|
-
validates :title, :presence => true, :length => {:maximum => 40}
|
8
|
+
#validates :title, :presence => true, :length => {:maximum => 40}
|
9
|
+
validates :title, :presence => true, :length => {:maximum => 65}
|
9
10
|
validates :description, :length => {:maximum => 250}
|
10
11
|
validates :visibility, :inclusion => {:in => %w(public private)}
|
11
12
|
|
data/config/routes.rb
CHANGED
data/lib/bpluser/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bpluser
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Boston Public Library Web Services
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2016-04-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -120,6 +120,7 @@ files:
|
|
120
120
|
- Rakefile
|
121
121
|
- app/assets/javascripts/bpluser/application.js
|
122
122
|
- app/assets/stylesheets/bpluser/application.css
|
123
|
+
- app/controllers/bpluser/api_controller.rb
|
123
124
|
- app/controllers/bpluser/application_controller.rb
|
124
125
|
- app/controllers/bpluser/registrations_controller.rb
|
125
126
|
- app/controllers/bpluser/users/omniauth_callbacks_controller.rb
|
@@ -204,38 +205,38 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
204
205
|
version: '0'
|
205
206
|
requirements: []
|
206
207
|
rubyforge_project:
|
207
|
-
rubygems_version: 2.
|
208
|
+
rubygems_version: 2.4.6
|
208
209
|
signing_key:
|
209
210
|
specification_version: 4
|
210
211
|
summary: Shared user access gem of BPL
|
211
212
|
test_files:
|
212
|
-
- test/integration/navigation_test.rb
|
213
|
-
- test/bpluser_test.rb
|
214
|
-
- test/test_helper.rb
|
215
213
|
- test/dummy/config.ru
|
214
|
+
- test/dummy/app/helpers/application_helper.rb
|
216
215
|
- test/dummy/app/assets/stylesheets/application.css
|
217
216
|
- test/dummy/app/assets/javascripts/application.js
|
218
217
|
- test/dummy/app/controllers/application_controller.rb
|
219
218
|
- test/dummy/app/views/layouts/application.html.erb
|
220
|
-
- test/dummy/
|
219
|
+
- test/dummy/script/rails
|
220
|
+
- test/dummy/public/422.html
|
221
|
+
- test/dummy/public/favicon.ico
|
222
|
+
- test/dummy/public/500.html
|
223
|
+
- test/dummy/public/404.html
|
221
224
|
- test/dummy/README.rdoc
|
222
|
-
- test/dummy/
|
223
|
-
- test/dummy/config/environments/production.rb
|
224
|
-
- test/dummy/config/environments/test.rb
|
225
|
-
- test/dummy/config/environments/development.rb
|
225
|
+
- test/dummy/Rakefile
|
226
226
|
- test/dummy/config/routes.rb
|
227
227
|
- test/dummy/config/application.rb
|
228
|
+
- test/dummy/config/environment.rb
|
229
|
+
- test/dummy/config/initializers/wrap_parameters.rb
|
230
|
+
- test/dummy/config/initializers/backtrace_silencers.rb
|
231
|
+
- test/dummy/config/initializers/mime_types.rb
|
228
232
|
- test/dummy/config/initializers/session_store.rb
|
229
|
-
- test/dummy/config/initializers/secret_token.rb
|
230
233
|
- test/dummy/config/initializers/inflections.rb
|
231
|
-
- test/dummy/config/initializers/
|
232
|
-
- test/dummy/config/initializers/backtrace_silencers.rb
|
233
|
-
- test/dummy/config/initializers/wrap_parameters.rb
|
234
|
+
- test/dummy/config/initializers/secret_token.rb
|
234
235
|
- test/dummy/config/boot.rb
|
235
|
-
- test/dummy/config/
|
236
|
-
- test/dummy/
|
237
|
-
- test/dummy/
|
238
|
-
- test/dummy/
|
239
|
-
- test/
|
240
|
-
- test/
|
241
|
-
- test/
|
236
|
+
- test/dummy/config/locales/en.yml
|
237
|
+
- test/dummy/config/environments/test.rb
|
238
|
+
- test/dummy/config/environments/development.rb
|
239
|
+
- test/dummy/config/environments/production.rb
|
240
|
+
- test/bpluser_test.rb
|
241
|
+
- test/integration/navigation_test.rb
|
242
|
+
- test/test_helper.rb
|