knock 1.0.0.rc1 → 1.0.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: c2b69b2a637f56044a87345cbdafa5eae5fba6c3
4
- data.tar.gz: b789b624c9b03bdc48530582581714bafbc30e2e
3
+ metadata.gz: 46f1a22cb830cb7a64bedd8d620ce451eb3f6b47
4
+ data.tar.gz: a231975e3825cd248afd14f88f00c95f46fbc924
5
5
  SHA512:
6
- metadata.gz: f5e3d930a7e30df2d0e1d46c016d077ee0e6c49aaf95db647026e7af5c7cd6715ed434a90255e146f3330816b3633bf4f6db574d592d03fe429a9886cb8ba002
7
- data.tar.gz: 943ec6efac0753cab4520e548d692e8cfe07ed0729bc7eab36faa1e21b4cf078585f90f5211ae37e7c655793cd370eebf2875c9d4d4a837183f1f40860f4af1e
6
+ metadata.gz: c387fc4242247a9c8b5e93d1a4aa9d511c9465e5a7cb509e8ed1bc672a942db6068a32bc84f6fe3e1ce1b2233657dacd11974c402d1d5b15984b950c896beb7a
7
+ data.tar.gz: cf6e78431e45bf23db81b702466708ec36534c0714a798c26a546bb6670045d20f4f0de078b1fa91c8e02554f6f3ec0320153aea748bc78930472e07ed3d7f07
@@ -1,3 +1,3 @@
1
1
  module Knock
2
- VERSION = "1.0.0.rc1"
2
+ VERSION = "1.0.0"
3
3
  end
@@ -1,4 +1,4 @@
1
1
  # desc "Explaining what the task does"
2
- # task :simsim do
2
+ # task :knock do
3
3
  # # Task goes here
4
4
  # end
Binary file
@@ -2851,3 +2851,189 @@ Processing by ProtectedResourcesController#index as HTML
2851
2851
  User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]
2852
2852
  Completed 200 OK in 0ms (ActiveRecord: 0.0ms)
2853
2853
   (0.0ms) rollback transaction
2854
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
2855
+  (0.1ms) begin transaction
2856
+ Fixture Delete (0.4ms) DELETE FROM "users"
2857
+ Fixture Insert (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at", "id") VALUES ('one@example.net', '$2a$04$xeqYVacU6DZGpUGS4W8eSe56/myGRKdpEcUAM4oE6DoiulRd/hnNy', '2015-07-14 14:23:38', '2015-07-14 14:23:38', 980190962)
2858
+ Fixture Insert (0.1ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at", "id") VALUES ('two@example.net', '$2a$04$i5FHY3VrtL3.jGf8is90UO5RfJ5GE3hwEny8nwfJN4avPYOk1s31q', '2015-07-14 14:23:38', '2015-07-14 14:23:38', 298486374)
2859
+  (0.7ms) commit transaction
2860
+  (0.0ms) begin transaction
2861
+ ------------------------------------------------------
2862
+ Knock::AuthTokenControllerTest: test_responds_with_201
2863
+ ------------------------------------------------------
2864
+ User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]
2865
+ Processing by Knock::AuthTokenController#create as HTML
2866
+ Parameters: {"auth"=>{"email"=>"one@example.net", "password"=>"[FILTERED]"}}
2867
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "one@example.net"]]
2868
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "one@example.net"]]
2869
+ Completed 201 Created in 14ms (Views: 0.2ms | ActiveRecord: 0.2ms)
2870
+  (0.1ms) rollback transaction
2871
+  (0.1ms) begin transaction
2872
+ -----------------------------------------------------------------------------
2873
+ Knock::AuthTokenControllerTest: test_responds_with_404_if_password_is_invalid
2874
+ -----------------------------------------------------------------------------
2875
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]
2876
+ Processing by Knock::AuthTokenController#create as HTML
2877
+ Parameters: {"auth"=>{"email"=>"one@example.net", "password"=>"[FILTERED]"}}
2878
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "one@example.net"]]
2879
+ Completed 404 Not Found in 2ms (ActiveRecord: 0.1ms)
2880
+  (0.1ms) rollback transaction
2881
+  (0.1ms) begin transaction
2882
+ -----------------------------------------------------------------------------
2883
+ Knock::AuthTokenControllerTest: test_responds_with_404_if_user_does_not_exist
2884
+ -----------------------------------------------------------------------------
2885
+ Processing by Knock::AuthTokenController#create as HTML
2886
+ Parameters: {"auth"=>{"email"=>"wrong@example.net", "password"=>"[FILTERED]"}}
2887
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "wrong@example.net"]]
2888
+ Completed 404 Not Found in 0ms (ActiveRecord: 0.1ms)
2889
+  (0.1ms) rollback transaction
2890
+  (0.0ms) begin transaction
2891
+ ------------------------------------------------------------------------------
2892
+ ProtectedResourcesControllerTest: test_has_a_current_user_after_authentication
2893
+ ------------------------------------------------------------------------------
2894
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]
2895
+ Processing by ProtectedResourcesController#index as HTML
2896
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]
2897
+ Completed 200 OK in 1ms (ActiveRecord: 0.1ms)
2898
+  (0.1ms) rollback transaction
2899
+  (0.1ms) begin transaction
2900
+ -----------------------------------------------------------------
2901
+ ProtectedResourcesControllerTest: test_responds_with_unauthorized
2902
+ -----------------------------------------------------------------
2903
+ Processing by ProtectedResourcesController#index as HTML
2904
+ Filter chain halted as :authenticate rendered or redirected
2905
+ Completed 401 Unauthorized in 0ms (ActiveRecord: 0.0ms)
2906
+  (0.1ms) rollback transaction
2907
+  (0.0ms) begin transaction
2908
+ -----------------------------------------------------------------------------
2909
+ ProtectedResourcesControllerTest: test_responds_with_success_if_authenticated
2910
+ -----------------------------------------------------------------------------
2911
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]
2912
+ Processing by ProtectedResourcesController#index as HTML
2913
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]
2914
+ Completed 200 OK in 0ms (ActiveRecord: 0.0ms)
2915
+  (0.1ms) rollback transaction
2916
+ ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"
2917
+  (0.1ms) begin transaction
2918
+ Fixture Delete (0.6ms) DELETE FROM "users"
2919
+ Fixture Insert (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at", "id") VALUES ('one@example.net', '$2a$04$vZRgLS3hdyTV3Xbi/1Uknui9NWfu3dPa1rA3n566H1MeVwP1MNqii', '2015-07-14 18:00:54', '2015-07-14 18:00:54', 980190962)
2920
+ Fixture Insert (0.1ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at", "id") VALUES ('two@example.net', '$2a$04$X/v1FIv3dhUxDFIk9lxmoe4S8SGxPoTfT6TAXsFkarEfyKd5beGm2', '2015-07-14 18:00:54', '2015-07-14 18:00:54', 298486374)
2921
+  (0.7ms) commit transaction
2922
+  (0.0ms) begin transaction
2923
+ ------------------------------------------------------------------------------
2924
+ ProtectedResourcesControllerTest: test_has_a_current_user_after_authentication
2925
+ ------------------------------------------------------------------------------
2926
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]
2927
+ Processing by ProtectedResourcesController#index as HTML
2928
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]
2929
+ Completed 200 OK in 2ms (ActiveRecord: 0.1ms)
2930
+  (0.1ms) rollback transaction
2931
+  (0.1ms) begin transaction
2932
+ -----------------------------------------------------------------------------
2933
+ ProtectedResourcesControllerTest: test_responds_with_success_if_authenticated
2934
+ -----------------------------------------------------------------------------
2935
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]
2936
+ Processing by ProtectedResourcesController#index as HTML
2937
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]
2938
+ Completed 200 OK in 0ms (ActiveRecord: 0.0ms)
2939
+  (0.0ms) rollback transaction
2940
+  (0.1ms) begin transaction
2941
+ -----------------------------------------------------------------
2942
+ ProtectedResourcesControllerTest: test_responds_with_unauthorized
2943
+ -----------------------------------------------------------------
2944
+ Processing by ProtectedResourcesController#index as HTML
2945
+ Filter chain halted as :authenticate rendered or redirected
2946
+ Completed 401 Unauthorized in 0ms (ActiveRecord: 0.0ms)
2947
+  (0.0ms) rollback transaction
2948
+  (0.0ms) begin transaction
2949
+ ------------------------------------------------------
2950
+ Knock::AuthTokenControllerTest: test_responds_with_201
2951
+ ------------------------------------------------------
2952
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]
2953
+ Processing by Knock::AuthTokenController#create as HTML
2954
+ Parameters: {"auth"=>{"email"=>"one@example.net", "password"=>"[FILTERED]"}}
2955
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "one@example.net"]]
2956
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "one@example.net"]]
2957
+ Completed 201 Created in 9ms (Views: 0.2ms | ActiveRecord: 0.1ms)
2958
+  (0.1ms) rollback transaction
2959
+  (0.1ms) begin transaction
2960
+ -----------------------------------------------------------------------------
2961
+ Knock::AuthTokenControllerTest: test_responds_with_404_if_password_is_invalid
2962
+ -----------------------------------------------------------------------------
2963
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]
2964
+ Processing by Knock::AuthTokenController#create as HTML
2965
+ Parameters: {"auth"=>{"email"=>"one@example.net", "password"=>"[FILTERED]"}}
2966
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "one@example.net"]]
2967
+ Completed 404 Not Found in 2ms (ActiveRecord: 0.0ms)
2968
+  (0.0ms) rollback transaction
2969
+  (0.0ms) begin transaction
2970
+ -----------------------------------------------------------------------------
2971
+ Knock::AuthTokenControllerTest: test_responds_with_404_if_user_does_not_exist
2972
+ -----------------------------------------------------------------------------
2973
+ Processing by Knock::AuthTokenController#create as HTML
2974
+ Parameters: {"auth"=>{"email"=>"wrong@example.net", "password"=>"[FILTERED]"}}
2975
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "wrong@example.net"]]
2976
+ Completed 404 Not Found in 0ms (ActiveRecord: 0.1ms)
2977
+  (0.0ms) rollback transaction
2978
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
2979
+  (0.1ms) begin transaction
2980
+ Fixture Delete (0.3ms) DELETE FROM "users"
2981
+ Fixture Insert (0.1ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at", "id") VALUES ('one@example.net', '$2a$04$SS8AMHiW7tBmfehI/pVa4.9w118Pg.DKsd0lUN5YupmUiKNDxTTgS', '2015-07-14 18:01:03', '2015-07-14 18:01:03', 980190962)
2982
+ Fixture Insert (0.1ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at", "id") VALUES ('two@example.net', '$2a$04$vZfauYBhtJW7l327FavUmu7FfJhteS/migbrwFOAsdZdv2UBfwnmy', '2015-07-14 18:01:03', '2015-07-14 18:01:03', 298486374)
2983
+  (1.3ms) commit transaction
2984
+  (0.1ms) begin transaction
2985
+ -----------------------------------------------------------------------------
2986
+ ProtectedResourcesControllerTest: test_responds_with_success_if_authenticated
2987
+ -----------------------------------------------------------------------------
2988
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]
2989
+ Processing by ProtectedResourcesController#index as HTML
2990
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]
2991
+ Completed 200 OK in 2ms (ActiveRecord: 0.1ms)
2992
+  (0.1ms) rollback transaction
2993
+  (0.1ms) begin transaction
2994
+ ------------------------------------------------------------------------------
2995
+ ProtectedResourcesControllerTest: test_has_a_current_user_after_authentication
2996
+ ------------------------------------------------------------------------------
2997
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]
2998
+ Processing by ProtectedResourcesController#index as HTML
2999
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]
3000
+ Completed 200 OK in 0ms (ActiveRecord: 0.0ms)
3001
+  (0.1ms) rollback transaction
3002
+  (0.0ms) begin transaction
3003
+ -----------------------------------------------------------------
3004
+ ProtectedResourcesControllerTest: test_responds_with_unauthorized
3005
+ -----------------------------------------------------------------
3006
+ Processing by ProtectedResourcesController#index as HTML
3007
+ Filter chain halted as :authenticate rendered or redirected
3008
+ Completed 401 Unauthorized in 0ms (ActiveRecord: 0.0ms)
3009
+  (0.0ms) rollback transaction
3010
+  (0.0ms) begin transaction
3011
+ ------------------------------------------------------
3012
+ Knock::AuthTokenControllerTest: test_responds_with_201
3013
+ ------------------------------------------------------
3014
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]
3015
+ Processing by Knock::AuthTokenController#create as HTML
3016
+ Parameters: {"auth"=>{"email"=>"one@example.net", "password"=>"[FILTERED]"}}
3017
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "one@example.net"]]
3018
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "one@example.net"]]
3019
+ Completed 201 Created in 3ms (Views: 0.1ms | ActiveRecord: 0.2ms)
3020
+  (0.1ms) rollback transaction
3021
+  (0.0ms) begin transaction
3022
+ -----------------------------------------------------------------------------
3023
+ Knock::AuthTokenControllerTest: test_responds_with_404_if_user_does_not_exist
3024
+ -----------------------------------------------------------------------------
3025
+ Processing by Knock::AuthTokenController#create as HTML
3026
+ Parameters: {"auth"=>{"email"=>"wrong@example.net", "password"=>"[FILTERED]"}}
3027
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "wrong@example.net"]]
3028
+ Completed 404 Not Found in 0ms (ActiveRecord: 0.1ms)
3029
+  (0.0ms) rollback transaction
3030
+  (0.1ms) begin transaction
3031
+ -----------------------------------------------------------------------------
3032
+ Knock::AuthTokenControllerTest: test_responds_with_404_if_password_is_invalid
3033
+ -----------------------------------------------------------------------------
3034
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]
3035
+ Processing by Knock::AuthTokenController#create as HTML
3036
+ Parameters: {"auth"=>{"email"=>"one@example.net", "password"=>"[FILTERED]"}}
3037
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "one@example.net"]]
3038
+ Completed 404 Not Found in 2ms (ActiveRecord: 0.0ms)
3039
+  (0.1ms) rollback transaction
@@ -1,4 +1,4 @@
1
1
  require 'test_helper'
2
2
 
3
- class SimsimTest < ActiveSupport::TestCase
3
+ class KnockTest < ActiveSupport::TestCase
4
4
  end
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.0.0.rc1
4
+ version: 1.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Arnaud MESUREUR
@@ -67,7 +67,7 @@ dependencies:
67
67
  - - "~>"
68
68
  - !ruby/object:Gem::Version
69
69
  version: '1.3'
70
- description: Authentication solution for Rails based on JWT (http://jwt.io/)
70
+ description: Authentication solution for Rails based on JWT
71
71
  email:
72
72
  - arnaud.mesureur@gmail.com
73
73
  executables: []
@@ -147,9 +147,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
147
147
  version: '0'
148
148
  required_rubygems_version: !ruby/object:Gem::Requirement
149
149
  requirements:
150
- - - ">"
150
+ - - ">="
151
151
  - !ruby/object:Gem::Version
152
- version: 1.3.1
152
+ version: '0'
153
153
  requirements: []
154
154
  rubyforge_project:
155
155
  rubygems_version: 2.4.4