sinatra-fx-auth 0.1.0 → 0.1.1
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 +4 -4
- data/features/api_sign_on.feature +2 -3
- data/lib/sinatra/fx-auth.rb +1 -1
- data/lib/sinatra/version.rb +1 -1
- data/sinatra-fx-auth.gemspec +4 -3
- data/test/seeds.rb +5 -2
- metadata +5 -4
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 2632bf253603dbe75f374103e602c8fb35b490f7
|
|
4
|
+
data.tar.gz: 0b2118491942d4cd963b6881a6a43a399b4e4aae
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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
|
|
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
|
|
75
|
-
And the App receives an Auth Token
|
|
74
|
+
Then the App receives a 401 response code
|
|
76
75
|
# And I am online
|
data/lib/sinatra/fx-auth.rb
CHANGED
data/lib/sinatra/version.rb
CHANGED
data/sinatra-fx-auth.gemspec
CHANGED
|
@@ -7,14 +7,15 @@ require 'sinatra/version'
|
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
Gem::Specification.new do |gem|
|
|
10
|
-
gem.name =
|
|
10
|
+
gem.name = 'sinatra-fx-auth'
|
|
11
11
|
gem.version = Sinatra::Fx::Auth::VERSION
|
|
12
|
+
gem.license = 'MIT'
|
|
12
13
|
|
|
13
|
-
gem.authors = [
|
|
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, '
|
|
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.
|
|
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
|
+
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: []
|