sinatra-fx-auth 0.1.0 → 0.1.1

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: 6a6f47b09ab7c03c218d5f31d127b7ded750369b
4
- data.tar.gz: 374c52ff11220a5726cd5238b3da53b0368de8f7
3
+ metadata.gz: 2632bf253603dbe75f374103e602c8fb35b490f7
4
+ data.tar.gz: 0b2118491942d4cd963b6881a6a43a399b4e4aae
5
5
  SHA512:
6
- metadata.gz: a1428420f5b125f9b93190dfe1f2e1ac04ee21b813f57e2674d072e2f99672c50c0567e6c3ab120fdfd11d7da219ef6c4d69ff9248c76758873ea609f090db1b
7
- data.tar.gz: 3cc1af4f9055ff0269e58aa985b56d71b5450a3d82ba96683c90005f3c22aaf78a81a67a252fe312250f9cc9f9a0161c5bb73fcd1fc15238c72e6db136328a14
6
+ metadata.gz: 3d7b433719d6de756b8001466e7dc6c2031887b3cff2653701957cd8b596f4aa636c8dbe9096d667fae566563ee740f13b74616b32deb39537353b677d12f1bd
7
+ data.tar.gz: 55a8d74c4eb1d960922a4ed2f581d91b68c3795075d374f44bd144c317cac0d25dbd10d73f918679f4dd02659a9ada37c393f5ce4c3e1b3f06befd0deffeae5f
@@ -60,7 +60,7 @@ Feature: API Sign On
60
60
  Given I have a User Profile
61
61
  When the App signs me on with valid credentials
62
62
  And the App signs me on with valid credentials
63
- Then the App receives a 201 response code
63
+ Then the App receives a 200 response code
64
64
  And the App receives an Auth Token
65
65
  # And I am online
66
66
 
@@ -71,6 +71,5 @@ Feature: API Sign On
71
71
  Given I have a User Profile
72
72
  When the App signs me on with valid credentials
73
73
  And the App tries to sign me on with invalid credentials
74
- Then the App receives a 201 response code
75
- And the App receives an Auth Token
74
+ Then the App receives a 401 response code
76
75
  # And I am online
@@ -192,7 +192,7 @@ module Sinatra
192
192
 
193
193
 
194
194
  # Sign Off
195
- app.delete '/profiles/:id/key', :auth => [:admin, :user] do
195
+ app.delete '/profiles/:id/key/?', :auth => [:admin, :user] do
196
196
  profile = find_user
197
197
  profile.sign_off
198
198
  end
@@ -2,7 +2,7 @@ module Sinatra
2
2
  module Fx
3
3
 
4
4
  module Auth
5
- VERSION = "0.1.0"
5
+ VERSION = '0.1.1'
6
6
  end
7
7
 
8
8
  end
@@ -7,14 +7,15 @@ require 'sinatra/version'
7
7
 
8
8
 
9
9
  Gem::Specification.new do |gem|
10
- gem.name = "sinatra-fx-auth"
10
+ gem.name = 'sinatra-fx-auth'
11
11
  gem.version = Sinatra::Fx::Auth::VERSION
12
+ gem.license = 'MIT'
12
13
 
13
- gem.authors = ["Dave Jackson"]
14
+ gem.authors = ['Dave Jackson']
14
15
  gem.email = %w(dave.jackson@anywarefx.com)
15
16
  gem.description = %q{Sinatra::Fx::Auth - RESTful Authentication with Role-based Authorization for Sinatra}
16
17
  gem.summary = %q{Sinatra::Fx::Auth - RESTful Authentication with Role-based Authorization for Sinatra}
17
- gem.homepage = ""
18
+ gem.homepage = 'https://github.com/AnyWareFx/sinatra-fx-auth'
18
19
 
19
20
  gem.files = `git ls-files`.split($/)
20
21
  gem.executables = gem.files.grep(%r{^bin/}).map { |f| File.basename(f) }
data/test/seeds.rb CHANGED
@@ -1,11 +1,14 @@
1
1
  require 'fx-auth/models'
2
2
 
3
3
 
4
+ # DataMapper::Logger.new $stdout, :debug
5
+ # DataMapper.setup :default, 'sqlite::memory:'
6
+ # DataMapper.auto_migrate!
7
+
4
8
  DataMapper::Logger.new $stdout, :debug
5
- DataMapper.setup :default, 'sqlite::memory:'
9
+ DataMapper.setup :default, 'postgres://postgres:postgres@localhost:5432/development'
6
10
  DataMapper.auto_migrate!
7
11
 
8
-
9
12
  AuthFx::UserProfile.create(
10
13
  {
11
14
  :email => 'admin@authfx.com',
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sinatra-fx-auth
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dave Jackson
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-11-28 00:00:00.000000000 Z
11
+ date: 2014-12-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  requirement: !ruby/object:Gem::Requirement
@@ -154,8 +154,9 @@ files:
154
154
  - sinatra-fx-auth.gemspec
155
155
  - test/factories.rb
156
156
  - test/seeds.rb
157
- homepage: ''
158
- licenses: []
157
+ homepage: https://github.com/AnyWareFx/sinatra-fx-auth
158
+ licenses:
159
+ - MIT
159
160
  metadata: {}
160
161
  post_install_message:
161
162
  rdoc_options: []