bpluser 0.0.5 → 0.0.6

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: cc109c3bc01a5a5c355e944ed3fdd63261e1af74
4
- data.tar.gz: a7f7d3daed8f455354f251130a34a17ec6fda22e
3
+ metadata.gz: 228f4a8a2dbc29ead7c5292ac2abf4621e1fd611
4
+ data.tar.gz: eabf33588bc56c4fb42c9600a08c551665c1d705
5
5
  SHA512:
6
- metadata.gz: 75b7517206259d3129b7cee23156d0d7dfc345e8cbff3ed2def3a983ac31108c97e95bafce8d07fa9513fda6f7770a4055be4ca806ecb210b1750ddbd2ea00b4
7
- data.tar.gz: 1c66e33c09af6b1d7731752abe2fbad0f4c5f3fbc9d866fb8c498d34f896e1192e7027cdf41e2697e48a0704a3ee28bb9e0bcb265b4d54c7b40d81ca33b6e681
6
+ metadata.gz: 438bd1de38f655a1698332b9592a0b3da8919c4c40cdeaab50da77c10365a04c48352604d5df71d7d8eb2b885681dcc7f28868d96623d1955d7b2b4b56dde34f
7
+ data.tar.gz: 8bfe09343cf439136c3ade65363c8cddf468d6d4981642a45127f9d79492789aebed102e4f4e2fbd74d952142670a895332d34bbd7721f6c6e9a8adb45523fe2
@@ -0,0 +1,9 @@
1
+ module Bpluser
2
+ class APIController < ActionController::Base
3
+
4
+ def sdf
5
+ JSON.parse(request.body.read)
6
+
7
+ end
8
+ end
9
+ end
@@ -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
@@ -1,2 +1,3 @@
1
1
  Bpluser::Engine.routes.draw do
2
+ post 'sdf', :to => 'api#sdf', :as => 'sdf_request'
2
3
  end
@@ -1,3 +1,3 @@
1
1
  module Bpluser
2
- VERSION = "0.0.5"
2
+ VERSION = "0.0.6"
3
3
  end
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.5
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: 2015-07-03 00:00:00.000000000 Z
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.2.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/app/helpers/application_helper.rb
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/config/locales/en.yml
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/mime_types.rb
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/environment.rb
236
- - test/dummy/script/rails
237
- - test/dummy/public/500.html
238
- - test/dummy/public/favicon.ico
239
- - test/dummy/public/422.html
240
- - test/dummy/public/404.html
241
- - test/dummy/Rakefile
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