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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 34a5224d9f1ba673a4e1c7f7fb086273c411807b
4
- data.tar.gz: 01793137d8e2c8c8eadc4a9798eda8cdf7af2b28
3
+ metadata.gz: 95b56eed3136555f3aa41844e00f9dd8faedb638
4
+ data.tar.gz: bf957608fc856b195c6e668b1b2d373a04b498f4
5
5
  SHA512:
6
- metadata.gz: 8a91b399a74e0d7f5954483fd7c07b46e47bf6406b1985f5b39142c930a66a858373d437dcc746eb7f069abd62ec82238333ff1c20f6b4e3bcd4927b46007409
7
- data.tar.gz: db32aa96f986f5294b8d2ad8a8e6606b3d1469bc26c73e58a6ec82bb966e30bb672ea58ee7a581de12c07c80556ccdbeb0457895ee0b8982acd63c1a01eadc7a
6
+ metadata.gz: 5608467c83aee855c5474388aa6cb9725a397d59ba45afeb27137455958c5c0f0c541d8a7420a8132965e0a3c2e001abea0b43a83aa9b89d186651fa008bf6b2
7
+ data.tar.gz: ebfd80d26c2655cb77032921ef60221c3e0312ffaf70983692d5b691456ae5d3c2cd0254a4d6d95d70413dcd1148559c135705ab4733744a134a0213a5b0bd81
@@ -1,3 +1,3 @@
1
1
  module Knock
2
- VERSION = "1.1.0.rc1"
2
+ VERSION = "1.1.0"
3
3
  end
Binary file
@@ -3702,3 +3702,147 @@ KnockTest: test_setup_block_yields_self
3702
3702
  InstallGeneratorTest: test_Assert_all_files_are_properly_created
3703
3703
  ----------------------------------------------------------------
3704
3704
   (0.1ms) rollback transaction
3705
+ ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"
3706
+  (0.1ms) begin transaction
3707
+ Fixture Delete (0.6ms) DELETE FROM "users"
3708
+ Fixture Insert (0.5ms) 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
+ Fixture Insert (0.1ms) INSERT 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)
3710
+  (0.7ms) commit transaction
3711
+  (0.0ms) begin transaction
3712
+ ----------------------------------------------------------------
3713
+ InstallGeneratorTest: test_Assert_all_files_are_properly_created
3714
+ ----------------------------------------------------------------
3715
+  (0.1ms) rollback transaction
3716
+  (0.0ms) begin transaction
3717
+ -----------------------------------------------------------------------------
3718
+ Knock::AuthTokenControllerTest: test_responds_with_404_if_password_is_invalid
3719
+ -----------------------------------------------------------------------------
3720
+ User Load (0.2ms) 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
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "one@example.net"]]
3724
+ Completed 404 Not Found in 4ms (ActiveRecord: 0.1ms)
3725
+  (0.0ms) rollback transaction
3726
+  (0.0ms) begin transaction
3727
+ ------------------------------------------------------
3728
+ Knock::AuthTokenControllerTest: test_responds_with_201
3729
+ ------------------------------------------------------
3730
+ User Load (0.1ms) 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
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "one@example.net"]]
3734
+ User Load (0.1ms) 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
+  (0.1ms) rollback transaction
3737
+  (0.0ms) 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
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "wrong@example.net"]]
3744
+ Completed 404 Not Found in 0ms (ActiveRecord: 0.1ms)
3745
+  (0.0ms) rollback transaction
3746
+  (0.0ms) begin transaction
3747
+ ---------------------------------------
3748
+ KnockTest: test_setup_block_yields_self
3749
+ ---------------------------------------
3750
+  (0.0ms) rollback transaction
3751
+  (0.0ms) begin transaction
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
+  (0.0ms) rollback transaction
3759
+  (0.0ms) begin transaction
3760
+ -----------------------------------------------------------------------------
3761
+ ProtectedResourcesControllerTest: test_responds_with_success_if_authenticated
3762
+ -----------------------------------------------------------------------------
3763
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]
3764
+ Processing by ProtectedResourcesController#index as HTML
3765
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]
3766
+ Completed 200 OK in 1ms (ActiveRecord: 0.0ms)
3767
+  (0.0ms) rollback transaction
3768
+  (0.0ms) begin transaction
3769
+ ------------------------------------------------------------------------------
3770
+ ProtectedResourcesControllerTest: test_has_a_current_user_after_authentication
3771
+ ------------------------------------------------------------------------------
3772
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]
3773
+ Processing by ProtectedResourcesController#index as HTML
3774
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]
3775
+ Completed 200 OK in 0ms (ActiveRecord: 0.0ms)
3776
+  (0.0ms) rollback transaction
3777
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
3778
+  (0.1ms) begin transaction
3779
+ Fixture Delete (0.3ms) DELETE FROM "users"
3780
+ Fixture Insert (0.1ms) 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
+ Fixture Insert (0.0ms) INSERT 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)
3782
+  (1.6ms) commit transaction
3783
+  (0.1ms) begin transaction
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
+  (0.1ms) rollback transaction
3791
+  (0.1ms) begin transaction
3792
+ -----------------------------------------------------------------------------
3793
+ ProtectedResourcesControllerTest: test_responds_with_success_if_authenticated
3794
+ -----------------------------------------------------------------------------
3795
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]
3796
+ Processing by ProtectedResourcesController#index as HTML
3797
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]
3798
+ Completed 200 OK in 2ms (ActiveRecord: 0.1ms)
3799
+  (0.1ms) rollback transaction
3800
+  (0.1ms) begin transaction
3801
+ ------------------------------------------------------------------------------
3802
+ ProtectedResourcesControllerTest: test_has_a_current_user_after_authentication
3803
+ ------------------------------------------------------------------------------
3804
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]
3805
+ Processing by ProtectedResourcesController#index as HTML
3806
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]
3807
+ Completed 200 OK in 1ms (ActiveRecord: 0.1ms)
3808
+  (0.1ms) rollback transaction
3809
+  (0.0ms) begin transaction
3810
+ ----------------------------------------------------------------
3811
+ InstallGeneratorTest: test_Assert_all_files_are_properly_created
3812
+ ----------------------------------------------------------------
3813
+  (0.1ms) rollback transaction
3814
+  (0.0ms) begin transaction
3815
+ ---------------------------------------
3816
+ KnockTest: test_setup_block_yields_self
3817
+ ---------------------------------------
3818
+  (0.0ms) rollback transaction
3819
+  (0.0ms) begin transaction
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
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "wrong@example.net"]]
3826
+ Completed 404 Not Found in 1ms (ActiveRecord: 0.2ms)
3827
+  (0.1ms) rollback transaction
3828
+  (0.1ms) begin transaction
3829
+ -----------------------------------------------------------------------------
3830
+ Knock::AuthTokenControllerTest: test_responds_with_404_if_password_is_invalid
3831
+ -----------------------------------------------------------------------------
3832
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]
3833
+ Processing by Knock::AuthTokenController#create as HTML
3834
+ Parameters: {"auth"=>{"email"=>"one@example.net", "password"=>"[FILTERED]"}}
3835
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "one@example.net"]]
3836
+ Completed 404 Not Found in 2ms (ActiveRecord: 0.1ms)
3837
+  (0.1ms) rollback transaction
3838
+  (0.1ms) begin transaction
3839
+ ------------------------------------------------------
3840
+ Knock::AuthTokenControllerTest: test_responds_with_201
3841
+ ------------------------------------------------------
3842
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]
3843
+ Processing by Knock::AuthTokenController#create as HTML
3844
+ Parameters: {"auth"=>{"email"=>"one@example.net", "password"=>"[FILTERED]"}}
3845
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "one@example.net"]]
3846
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "one@example.net"]]
3847
+ Completed 201 Created in 3ms (Views: 0.2ms | ActiveRecord: 0.1ms)
3848
+  (0.1ms) 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.rc1
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: 1.3.1
157
+ version: '0'
158
158
  requirements: []
159
159
  rubyforge_project:
160
160
  rubygems_version: 2.4.4