knock 1.1.0.rc1 → 1.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/knock/version.rb +1 -1
- data/test/dummy/db/test.sqlite3 +0 -0
- data/test/dummy/log/test.log +144 -0
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 95b56eed3136555f3aa41844e00f9dd8faedb638
|
4
|
+
data.tar.gz: bf957608fc856b195c6e668b1b2d373a04b498f4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5608467c83aee855c5474388aa6cb9725a397d59ba45afeb27137455958c5c0f0c541d8a7420a8132965e0a3c2e001abea0b43a83aa9b89d186651fa008bf6b2
|
7
|
+
data.tar.gz: ebfd80d26c2655cb77032921ef60221c3e0312ffaf70983692d5b691456ae5d3c2cd0254a4d6d95d70413dcd1148559c135705ab4733744a134a0213a5b0bd81
|
data/lib/knock/version.rb
CHANGED
data/test/dummy/db/test.sqlite3
CHANGED
Binary file
|
data/test/dummy/log/test.log
CHANGED
@@ -3702,3 +3702,147 @@ KnockTest: test_setup_block_yields_self
|
|
3702
3702
|
InstallGeneratorTest: test_Assert_all_files_are_properly_created
|
3703
3703
|
----------------------------------------------------------------
|
3704
3704
|
[1m[35m (0.1ms)[0m rollback transaction
|
3705
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.5ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
3706
|
+
[1m[35m (0.1ms)[0m begin transaction
|
3707
|
+
[1m[36mFixture Delete (0.6ms)[0m [1mDELETE FROM "users"[0m
|
3708
|
+
[1m[35mFixture Insert (0.5ms)[0m INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at", "id") VALUES ('one@example.net', '$2a$04$wziC/l7yxbKfl.60v.PPTOl5cbS1gK8epNmdkzBa2LBxW912zn0HK', '2015-07-15 20:58:56', '2015-07-15 20:58:56', 980190962)
|
3709
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "users" ("email", "password_digest", "created_at", "updated_at", "id") VALUES ('two@example.net', '$2a$04$QbmHiiaepDfrqjF3NV/z5OqCI43V5.4mLvBLlrbnEP2T2g9JgMTGO', '2015-07-15 20:58:56', '2015-07-15 20:58:56', 298486374)[0m
|
3710
|
+
[1m[35m (0.7ms)[0m commit transaction
|
3711
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
3712
|
+
----------------------------------------------------------------
|
3713
|
+
InstallGeneratorTest: test_Assert_all_files_are_properly_created
|
3714
|
+
----------------------------------------------------------------
|
3715
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
3716
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
3717
|
+
-----------------------------------------------------------------------------
|
3718
|
+
Knock::AuthTokenControllerTest: test_responds_with_404_if_password_is_invalid
|
3719
|
+
-----------------------------------------------------------------------------
|
3720
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]
|
3721
|
+
Processing by Knock::AuthTokenController#create as HTML
|
3722
|
+
Parameters: {"auth"=>{"email"=>"one@example.net", "password"=>"[FILTERED]"}}
|
3723
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1[0m [["email", "one@example.net"]]
|
3724
|
+
Completed 404 Not Found in 4ms (ActiveRecord: 0.1ms)
|
3725
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
3726
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
3727
|
+
------------------------------------------------------
|
3728
|
+
Knock::AuthTokenControllerTest: test_responds_with_201
|
3729
|
+
------------------------------------------------------
|
3730
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]
|
3731
|
+
Processing by Knock::AuthTokenController#create as HTML
|
3732
|
+
Parameters: {"auth"=>{"email"=>"one@example.net", "password"=>"[FILTERED]"}}
|
3733
|
+
[1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1[0m [["email", "one@example.net"]]
|
3734
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "one@example.net"]]
|
3735
|
+
Completed 201 Created in 11ms (Views: 0.2ms | ActiveRecord: 0.1ms)
|
3736
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
3737
|
+
[1m[35m (0.0ms)[0m begin transaction
|
3738
|
+
-----------------------------------------------------------------------------
|
3739
|
+
Knock::AuthTokenControllerTest: test_responds_with_404_if_user_does_not_exist
|
3740
|
+
-----------------------------------------------------------------------------
|
3741
|
+
Processing by Knock::AuthTokenController#create as HTML
|
3742
|
+
Parameters: {"auth"=>{"email"=>"wrong@example.net", "password"=>"[FILTERED]"}}
|
3743
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1[0m [["email", "wrong@example.net"]]
|
3744
|
+
Completed 404 Not Found in 0ms (ActiveRecord: 0.1ms)
|
3745
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
3746
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
3747
|
+
---------------------------------------
|
3748
|
+
KnockTest: test_setup_block_yields_self
|
3749
|
+
---------------------------------------
|
3750
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
3751
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
3752
|
+
-----------------------------------------------------------------
|
3753
|
+
ProtectedResourcesControllerTest: test_responds_with_unauthorized
|
3754
|
+
-----------------------------------------------------------------
|
3755
|
+
Processing by ProtectedResourcesController#index as HTML
|
3756
|
+
Filter chain halted as :authenticate rendered or redirected
|
3757
|
+
Completed 401 Unauthorized in 0ms (ActiveRecord: 0.0ms)
|
3758
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
3759
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
3760
|
+
-----------------------------------------------------------------------------
|
3761
|
+
ProtectedResourcesControllerTest: test_responds_with_success_if_authenticated
|
3762
|
+
-----------------------------------------------------------------------------
|
3763
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]
|
3764
|
+
Processing by ProtectedResourcesController#index as HTML
|
3765
|
+
[1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 980190962]]
|
3766
|
+
Completed 200 OK in 1ms (ActiveRecord: 0.0ms)
|
3767
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
3768
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
3769
|
+
------------------------------------------------------------------------------
|
3770
|
+
ProtectedResourcesControllerTest: test_has_a_current_user_after_authentication
|
3771
|
+
------------------------------------------------------------------------------
|
3772
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]
|
3773
|
+
Processing by ProtectedResourcesController#index as HTML
|
3774
|
+
[1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 980190962]]
|
3775
|
+
Completed 200 OK in 0ms (ActiveRecord: 0.0ms)
|
3776
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
3777
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
3778
|
+
[1m[35m (0.1ms)[0m begin transaction
|
3779
|
+
[1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "users"[0m
|
3780
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at", "id") VALUES ('one@example.net', '$2a$04$Q8G5bFsOuvZaeDG2WffocONjqTpE7im9ZMGJl9XX3HwA0Vh8ud95G', '2015-07-15 20:59:02', '2015-07-15 20:59:02', 980190962)
|
3781
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "users" ("email", "password_digest", "created_at", "updated_at", "id") VALUES ('two@example.net', '$2a$04$tNCkphY4grG6qSm93B3ZkOJ3HPJQDJ6rZMcZoRxDt/.6aViWRLGxu', '2015-07-15 20:59:02', '2015-07-15 20:59:02', 298486374)[0m
|
3782
|
+
[1m[35m (1.6ms)[0m commit transaction
|
3783
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
3784
|
+
-----------------------------------------------------------------
|
3785
|
+
ProtectedResourcesControllerTest: test_responds_with_unauthorized
|
3786
|
+
-----------------------------------------------------------------
|
3787
|
+
Processing by ProtectedResourcesController#index as HTML
|
3788
|
+
Filter chain halted as :authenticate rendered or redirected
|
3789
|
+
Completed 401 Unauthorized in 0ms (ActiveRecord: 0.0ms)
|
3790
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
3791
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
3792
|
+
-----------------------------------------------------------------------------
|
3793
|
+
ProtectedResourcesControllerTest: test_responds_with_success_if_authenticated
|
3794
|
+
-----------------------------------------------------------------------------
|
3795
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]
|
3796
|
+
Processing by ProtectedResourcesController#index as HTML
|
3797
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 980190962]]
|
3798
|
+
Completed 200 OK in 2ms (ActiveRecord: 0.1ms)
|
3799
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
3800
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
3801
|
+
------------------------------------------------------------------------------
|
3802
|
+
ProtectedResourcesControllerTest: test_has_a_current_user_after_authentication
|
3803
|
+
------------------------------------------------------------------------------
|
3804
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]
|
3805
|
+
Processing by ProtectedResourcesController#index as HTML
|
3806
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 980190962]]
|
3807
|
+
Completed 200 OK in 1ms (ActiveRecord: 0.1ms)
|
3808
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
3809
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
3810
|
+
----------------------------------------------------------------
|
3811
|
+
InstallGeneratorTest: test_Assert_all_files_are_properly_created
|
3812
|
+
----------------------------------------------------------------
|
3813
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
3814
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
3815
|
+
---------------------------------------
|
3816
|
+
KnockTest: test_setup_block_yields_self
|
3817
|
+
---------------------------------------
|
3818
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
3819
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
3820
|
+
-----------------------------------------------------------------------------
|
3821
|
+
Knock::AuthTokenControllerTest: test_responds_with_404_if_user_does_not_exist
|
3822
|
+
-----------------------------------------------------------------------------
|
3823
|
+
Processing by Knock::AuthTokenController#create as HTML
|
3824
|
+
Parameters: {"auth"=>{"email"=>"wrong@example.net", "password"=>"[FILTERED]"}}
|
3825
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "wrong@example.net"]]
|
3826
|
+
Completed 404 Not Found in 1ms (ActiveRecord: 0.2ms)
|
3827
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
3828
|
+
[1m[35m (0.1ms)[0m begin transaction
|
3829
|
+
-----------------------------------------------------------------------------
|
3830
|
+
Knock::AuthTokenControllerTest: test_responds_with_404_if_password_is_invalid
|
3831
|
+
-----------------------------------------------------------------------------
|
3832
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 980190962]]
|
3833
|
+
Processing by Knock::AuthTokenController#create as HTML
|
3834
|
+
Parameters: {"auth"=>{"email"=>"one@example.net", "password"=>"[FILTERED]"}}
|
3835
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "one@example.net"]]
|
3836
|
+
Completed 404 Not Found in 2ms (ActiveRecord: 0.1ms)
|
3837
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
3838
|
+
[1m[35m (0.1ms)[0m begin transaction
|
3839
|
+
------------------------------------------------------
|
3840
|
+
Knock::AuthTokenControllerTest: test_responds_with_201
|
3841
|
+
------------------------------------------------------
|
3842
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 980190962]]
|
3843
|
+
Processing by Knock::AuthTokenController#create as HTML
|
3844
|
+
Parameters: {"auth"=>{"email"=>"one@example.net", "password"=>"[FILTERED]"}}
|
3845
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "one@example.net"]]
|
3846
|
+
[1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1[0m [["email", "one@example.net"]]
|
3847
|
+
Completed 201 Created in 3ms (Views: 0.2ms | ActiveRecord: 0.1ms)
|
3848
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: knock
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.0
|
4
|
+
version: 1.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Arnaud MESUREUR
|
@@ -152,9 +152,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
152
152
|
version: '0'
|
153
153
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
154
154
|
requirements:
|
155
|
-
- - "
|
155
|
+
- - ">="
|
156
156
|
- !ruby/object:Gem::Version
|
157
|
-
version:
|
157
|
+
version: '0'
|
158
158
|
requirements: []
|
159
159
|
rubyforge_project:
|
160
160
|
rubygems_version: 2.4.4
|