api_flashcards 0.0.1.3 → 0.0.1.4

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: 42cdddb7edae1aa97e9ff908ae73c73069683156
4
- data.tar.gz: 16dab72d9ceebc18fab10296ca401093cb8179fa
3
+ metadata.gz: cc69f945d9e60fb1789d05dd8bb49372f30c945a
4
+ data.tar.gz: c9d8a2ebd3da026072d6eaba089b5891a70282ec
5
5
  SHA512:
6
- metadata.gz: 3f53d8b9ca61ffed9e09c0b4efea3e0fef7654d965aef62131c52a6fa28fc08e9e694e7075e8ab859c4a88081526028dfb52a1e3080ec0d159948bfe4c84952e
7
- data.tar.gz: 2de3aadd5c897d48ea0a95e1506e86d116902b1a45376a7f2779ce0cd222ce40d93b0136fd173ed0cf46d328ba71036471ca7c15b1905436aaf2f284222f86f2
6
+ metadata.gz: fe7de087fef2e72770ae843ab598faeaf1442aa4915f066e19dd44734cecb09c8115ee1d137f401b67a42d2eb6b18c23e6b24c9b459846ef3e75f9eff3688a0d
7
+ data.tar.gz: 4179dfd78e1ff02bb541be2f3f44330992a23d1500a27d9566d7730b4f0dbdd7184460ab5fbcd2c53e6bcdca9c733a8d8651d6a73280b3e7a20cbe3cd6783e25
@@ -1,11 +1,12 @@
1
1
  module ApiFlashcards
2
2
  class ApplicationController < ActionController::Base
3
3
  before_action :authenticate_basic
4
+ layout false
4
5
 
5
6
  private
6
7
 
7
8
  def authenticate_basic
8
- auth = authenticate_with_http_basic { |e, p| User.authenticate(e, p) }
9
+ auth = authenticate_or_request_with_http_basic { |e, p| User.authenticate(e, p) }
9
10
  render json: { message: "Authentication failed" }, status: 401 unless auth
10
11
  end
11
12
  end
@@ -0,0 +1 @@
1
+ Hello
@@ -1,3 +1,3 @@
1
1
  module ApiFlashcards
2
- VERSION = "0.0.1.3"
2
+ VERSION = "0.0.1.4"
3
3
  end
@@ -0,0 +1,23 @@
1
+ default: &default
2
+ adapter: postgresql
3
+ pool: 5
4
+ timeout: 5000
5
+ encoding: utf8
6
+ username: postgres
7
+ password: qwerty
8
+ host: localhost
9
+
10
+ development:
11
+ <<: *default
12
+ database: dummy_development
13
+
14
+ # Warning: The database defined as "test" will be erased and
15
+ # re-generated from your development database when you run "rake".
16
+ # Do not set this db to the same as development or production.
17
+ test:
18
+ <<: *default
19
+ database: dummy_test
20
+
21
+ production:
22
+ <<: *default
23
+ database: dummy_production
@@ -865,3 +865,246 @@ NameError (undefined local variable or method `current_block' for #<Class:0xb9aa
865
865
  Rendered /home/agro/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.5/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (3.4ms)
866
866
  Rendered /home/agro/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.5/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (1.8ms)
867
867
  Rendered /home/agro/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.5/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb within rescues/layout (30.6ms)
868
+
869
+
870
+ Started GET "/" for 127.0.0.1 at 2015-12-29 21:09:11 +0300
871
+
872
+ RuntimeError (Cannot load `Rails.application.database_configuration`:
873
+ Could not load database configuration. No such file - ["config/database.yml"]):
874
+ railties (4.2.5) lib/rails/application/configuration.rb:110:in `database_configuration'
875
+ activerecord (4.2.5) lib/active_record/railtie.rb:117:in `block (2 levels) in <class:Railtie>'
876
+ activesupport (4.2.5) lib/active_support/lazy_load_hooks.rb:38:in `instance_eval'
877
+ activesupport (4.2.5) lib/active_support/lazy_load_hooks.rb:38:in `execute_hook'
878
+ activesupport (4.2.5) lib/active_support/lazy_load_hooks.rb:45:in `block in run_load_hooks'
879
+ activesupport (4.2.5) lib/active_support/lazy_load_hooks.rb:44:in `each'
880
+ activesupport (4.2.5) lib/active_support/lazy_load_hooks.rb:44:in `run_load_hooks'
881
+ activerecord (4.2.5) lib/active_record/base.rb:315:in `<module:ActiveRecord>'
882
+ activerecord (4.2.5) lib/active_record/base.rb:26:in `<top (required)>'
883
+ activerecord (4.2.5) lib/active_record/migration.rb:383:in `connection'
884
+ activerecord (4.2.5) lib/active_record/migration.rb:370:in `call'
885
+ actionpack (4.2.5) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call'
886
+ activesupport (4.2.5) lib/active_support/callbacks.rb:88:in `__run_callbacks__'
887
+ activesupport (4.2.5) lib/active_support/callbacks.rb:778:in `_run_call_callbacks'
888
+ activesupport (4.2.5) lib/active_support/callbacks.rb:81:in `run_callbacks'
889
+ actionpack (4.2.5) lib/action_dispatch/middleware/callbacks.rb:27:in `call'
890
+ actionpack (4.2.5) lib/action_dispatch/middleware/reloader.rb:73:in `call'
891
+ actionpack (4.2.5) lib/action_dispatch/middleware/remote_ip.rb:78:in `call'
892
+ actionpack (4.2.5) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call'
893
+ actionpack (4.2.5) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call'
894
+ railties (4.2.5) lib/rails/rack/logger.rb:38:in `call_app'
895
+ railties (4.2.5) lib/rails/rack/logger.rb:20:in `block in call'
896
+ activesupport (4.2.5) lib/active_support/tagged_logging.rb:68:in `block in tagged'
897
+ activesupport (4.2.5) lib/active_support/tagged_logging.rb:26:in `tagged'
898
+ activesupport (4.2.5) lib/active_support/tagged_logging.rb:68:in `tagged'
899
+ railties (4.2.5) lib/rails/rack/logger.rb:20:in `call'
900
+ actionpack (4.2.5) lib/action_dispatch/middleware/request_id.rb:21:in `call'
901
+ rack (1.6.4) lib/rack/methodoverride.rb:22:in `call'
902
+ rack (1.6.4) lib/rack/runtime.rb:18:in `call'
903
+ activesupport (4.2.5) lib/active_support/cache/strategy/local_cache_middleware.rb:28:in `call'
904
+ rack (1.6.4) lib/rack/lock.rb:17:in `call'
905
+ actionpack (4.2.5) lib/action_dispatch/middleware/static.rb:116:in `call'
906
+ rack (1.6.4) lib/rack/sendfile.rb:113:in `call'
907
+ railties (4.2.5) lib/rails/engine.rb:518:in `call'
908
+ railties (4.2.5) lib/rails/application.rb:165:in `call'
909
+ rack (1.6.4) lib/rack/lock.rb:17:in `call'
910
+ rack (1.6.4) lib/rack/content_length.rb:15:in `call'
911
+ rack (1.6.4) lib/rack/handler/webrick.rb:88:in `service'
912
+ /home/agro/.rbenv/versions/2.2.2/lib/ruby/2.2.0/webrick/httpserver.rb:138:in `service'
913
+ /home/agro/.rbenv/versions/2.2.2/lib/ruby/2.2.0/webrick/httpserver.rb:94:in `run'
914
+ /home/agro/.rbenv/versions/2.2.2/lib/ruby/2.2.0/webrick/server.rb:294:in `block in start_thread'
915
+
916
+
917
+ Rendered /home/agro/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.5/lib/action_dispatch/middleware/templates/rescues/_source.erb (5.8ms)
918
+ Rendered /home/agro/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.5/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (2.9ms)
919
+ Rendered /home/agro/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.5/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (1.3ms)
920
+ Rendered /home/agro/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.5/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb within rescues/layout (62.4ms)
921
+
922
+
923
+ Started GET "/" for 127.0.0.1 at 2015-12-29 21:10:42 +0300
924
+
925
+ RuntimeError (Cannot load `Rails.application.database_configuration`:
926
+ Could not load database configuration. No such file - ["config/database.yml"]):
927
+ railties (4.2.5) lib/rails/application/configuration.rb:110:in `database_configuration'
928
+ activerecord (4.2.5) lib/active_record/railtie.rb:117:in `block (2 levels) in <class:Railtie>'
929
+ activesupport (4.2.5) lib/active_support/lazy_load_hooks.rb:38:in `instance_eval'
930
+ activesupport (4.2.5) lib/active_support/lazy_load_hooks.rb:38:in `execute_hook'
931
+ activesupport (4.2.5) lib/active_support/lazy_load_hooks.rb:45:in `block in run_load_hooks'
932
+ activesupport (4.2.5) lib/active_support/lazy_load_hooks.rb:44:in `each'
933
+ activesupport (4.2.5) lib/active_support/lazy_load_hooks.rb:44:in `run_load_hooks'
934
+ activerecord (4.2.5) lib/active_record/base.rb:315:in `<module:ActiveRecord>'
935
+ activerecord (4.2.5) lib/active_record/base.rb:26:in `<top (required)>'
936
+ activerecord (4.2.5) lib/active_record/migration.rb:383:in `connection'
937
+ activerecord (4.2.5) lib/active_record/migration.rb:370:in `call'
938
+ actionpack (4.2.5) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call'
939
+ activesupport (4.2.5) lib/active_support/callbacks.rb:88:in `__run_callbacks__'
940
+ activesupport (4.2.5) lib/active_support/callbacks.rb:778:in `_run_call_callbacks'
941
+ activesupport (4.2.5) lib/active_support/callbacks.rb:81:in `run_callbacks'
942
+ actionpack (4.2.5) lib/action_dispatch/middleware/callbacks.rb:27:in `call'
943
+ actionpack (4.2.5) lib/action_dispatch/middleware/reloader.rb:73:in `call'
944
+ actionpack (4.2.5) lib/action_dispatch/middleware/remote_ip.rb:78:in `call'
945
+ actionpack (4.2.5) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call'
946
+ actionpack (4.2.5) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call'
947
+ railties (4.2.5) lib/rails/rack/logger.rb:38:in `call_app'
948
+ railties (4.2.5) lib/rails/rack/logger.rb:20:in `block in call'
949
+ activesupport (4.2.5) lib/active_support/tagged_logging.rb:68:in `block in tagged'
950
+ activesupport (4.2.5) lib/active_support/tagged_logging.rb:26:in `tagged'
951
+ activesupport (4.2.5) lib/active_support/tagged_logging.rb:68:in `tagged'
952
+ railties (4.2.5) lib/rails/rack/logger.rb:20:in `call'
953
+ actionpack (4.2.5) lib/action_dispatch/middleware/request_id.rb:21:in `call'
954
+ rack (1.6.4) lib/rack/methodoverride.rb:22:in `call'
955
+ rack (1.6.4) lib/rack/runtime.rb:18:in `call'
956
+ activesupport (4.2.5) lib/active_support/cache/strategy/local_cache_middleware.rb:28:in `call'
957
+ rack (1.6.4) lib/rack/lock.rb:17:in `call'
958
+ actionpack (4.2.5) lib/action_dispatch/middleware/static.rb:116:in `call'
959
+ rack (1.6.4) lib/rack/sendfile.rb:113:in `call'
960
+ railties (4.2.5) lib/rails/engine.rb:518:in `call'
961
+ railties (4.2.5) lib/rails/application.rb:165:in `call'
962
+ rack (1.6.4) lib/rack/lock.rb:17:in `call'
963
+ rack (1.6.4) lib/rack/content_length.rb:15:in `call'
964
+ rack (1.6.4) lib/rack/handler/webrick.rb:88:in `service'
965
+ /home/agro/.rbenv/versions/2.2.2/lib/ruby/2.2.0/webrick/httpserver.rb:138:in `service'
966
+ /home/agro/.rbenv/versions/2.2.2/lib/ruby/2.2.0/webrick/httpserver.rb:94:in `run'
967
+ /home/agro/.rbenv/versions/2.2.2/lib/ruby/2.2.0/webrick/server.rb:294:in `block in start_thread'
968
+
969
+
970
+ Rendered /home/agro/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.5/lib/action_dispatch/middleware/templates/rescues/_source.erb (4.7ms)
971
+ Rendered /home/agro/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.5/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (2.6ms)
972
+ Rendered /home/agro/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.5/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (1.5ms)
973
+ Rendered /home/agro/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.5/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb within rescues/layout (25.9ms)
974
+
975
+
976
+ Started GET "/" for 127.0.0.1 at 2015-12-29 21:10:44 +0300
977
+
978
+ RuntimeError (Cannot load `Rails.application.database_configuration`:
979
+ Could not load database configuration. No such file - ["config/database.yml"]):
980
+ railties (4.2.5) lib/rails/application/configuration.rb:110:in `database_configuration'
981
+ activerecord (4.2.5) lib/active_record/railtie.rb:117:in `block (2 levels) in <class:Railtie>'
982
+ activesupport (4.2.5) lib/active_support/lazy_load_hooks.rb:38:in `instance_eval'
983
+ activesupport (4.2.5) lib/active_support/lazy_load_hooks.rb:38:in `execute_hook'
984
+ activesupport (4.2.5) lib/active_support/lazy_load_hooks.rb:45:in `block in run_load_hooks'
985
+ activesupport (4.2.5) lib/active_support/lazy_load_hooks.rb:44:in `each'
986
+ activesupport (4.2.5) lib/active_support/lazy_load_hooks.rb:44:in `run_load_hooks'
987
+ activerecord (4.2.5) lib/active_record/base.rb:315:in `<module:ActiveRecord>'
988
+ activerecord (4.2.5) lib/active_record/base.rb:26:in `<top (required)>'
989
+ activerecord (4.2.5) lib/active_record/migration.rb:383:in `connection'
990
+ activerecord (4.2.5) lib/active_record/migration.rb:370:in `call'
991
+ actionpack (4.2.5) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call'
992
+ activesupport (4.2.5) lib/active_support/callbacks.rb:88:in `__run_callbacks__'
993
+ activesupport (4.2.5) lib/active_support/callbacks.rb:778:in `_run_call_callbacks'
994
+ activesupport (4.2.5) lib/active_support/callbacks.rb:81:in `run_callbacks'
995
+ actionpack (4.2.5) lib/action_dispatch/middleware/callbacks.rb:27:in `call'
996
+ actionpack (4.2.5) lib/action_dispatch/middleware/reloader.rb:73:in `call'
997
+ actionpack (4.2.5) lib/action_dispatch/middleware/remote_ip.rb:78:in `call'
998
+ actionpack (4.2.5) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call'
999
+ actionpack (4.2.5) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call'
1000
+ railties (4.2.5) lib/rails/rack/logger.rb:38:in `call_app'
1001
+ railties (4.2.5) lib/rails/rack/logger.rb:20:in `block in call'
1002
+ activesupport (4.2.5) lib/active_support/tagged_logging.rb:68:in `block in tagged'
1003
+ activesupport (4.2.5) lib/active_support/tagged_logging.rb:26:in `tagged'
1004
+ activesupport (4.2.5) lib/active_support/tagged_logging.rb:68:in `tagged'
1005
+ railties (4.2.5) lib/rails/rack/logger.rb:20:in `call'
1006
+ actionpack (4.2.5) lib/action_dispatch/middleware/request_id.rb:21:in `call'
1007
+ rack (1.6.4) lib/rack/methodoverride.rb:22:in `call'
1008
+ rack (1.6.4) lib/rack/runtime.rb:18:in `call'
1009
+ activesupport (4.2.5) lib/active_support/cache/strategy/local_cache_middleware.rb:28:in `call'
1010
+ rack (1.6.4) lib/rack/lock.rb:17:in `call'
1011
+ actionpack (4.2.5) lib/action_dispatch/middleware/static.rb:116:in `call'
1012
+ rack (1.6.4) lib/rack/sendfile.rb:113:in `call'
1013
+ railties (4.2.5) lib/rails/engine.rb:518:in `call'
1014
+ railties (4.2.5) lib/rails/application.rb:165:in `call'
1015
+ rack (1.6.4) lib/rack/lock.rb:17:in `call'
1016
+ rack (1.6.4) lib/rack/content_length.rb:15:in `call'
1017
+ rack (1.6.4) lib/rack/handler/webrick.rb:88:in `service'
1018
+ /home/agro/.rbenv/versions/2.2.2/lib/ruby/2.2.0/webrick/httpserver.rb:138:in `service'
1019
+ /home/agro/.rbenv/versions/2.2.2/lib/ruby/2.2.0/webrick/httpserver.rb:94:in `run'
1020
+ /home/agro/.rbenv/versions/2.2.2/lib/ruby/2.2.0/webrick/server.rb:294:in `block in start_thread'
1021
+
1022
+
1023
+ Rendered /home/agro/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.5/lib/action_dispatch/middleware/templates/rescues/_source.erb (4.4ms)
1024
+ Rendered /home/agro/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.5/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (2.4ms)
1025
+ Rendered /home/agro/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.5/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (1.2ms)
1026
+ Rendered /home/agro/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.5/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb within rescues/layout (25.3ms)
1027
+
1028
+
1029
+ Started GET "/" for 127.0.0.1 at 2015-12-29 21:11:26 +0300
1030
+ ActiveRecord::SchemaMigration Load (3.6ms) SELECT "schema_migrations".* FROM "schema_migrations"
1031
+ Processing by Rails::WelcomeController#index as HTML
1032
+ Rendered /home/agro/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/railties-4.2.5/lib/rails/templates/rails/welcome/index.html.erb (4.2ms)
1033
+ Completed 200 OK in 60ms (Views: 59.4ms | ActiveRecord: 0.0ms)
1034
+
1035
+
1036
+ Started GET "/api_flashcards" for 127.0.0.1 at 2015-12-29 21:11:34 +0300
1037
+
1038
+ ActionController::RoutingError (No route matches [GET] "/api_flashcards"):
1039
+ actionpack (4.2.5) lib/action_dispatch/middleware/debug_exceptions.rb:21:in `call'
1040
+ actionpack (4.2.5) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call'
1041
+ railties (4.2.5) lib/rails/rack/logger.rb:38:in `call_app'
1042
+ railties (4.2.5) lib/rails/rack/logger.rb:20:in `block in call'
1043
+ activesupport (4.2.5) lib/active_support/tagged_logging.rb:68:in `block in tagged'
1044
+ activesupport (4.2.5) lib/active_support/tagged_logging.rb:26:in `tagged'
1045
+ activesupport (4.2.5) lib/active_support/tagged_logging.rb:68:in `tagged'
1046
+ railties (4.2.5) lib/rails/rack/logger.rb:20:in `call'
1047
+ actionpack (4.2.5) lib/action_dispatch/middleware/request_id.rb:21:in `call'
1048
+ rack (1.6.4) lib/rack/methodoverride.rb:22:in `call'
1049
+ rack (1.6.4) lib/rack/runtime.rb:18:in `call'
1050
+ activesupport (4.2.5) lib/active_support/cache/strategy/local_cache_middleware.rb:28:in `call'
1051
+ rack (1.6.4) lib/rack/lock.rb:17:in `call'
1052
+ actionpack (4.2.5) lib/action_dispatch/middleware/static.rb:116:in `call'
1053
+ rack (1.6.4) lib/rack/sendfile.rb:113:in `call'
1054
+ railties (4.2.5) lib/rails/engine.rb:518:in `call'
1055
+ railties (4.2.5) lib/rails/application.rb:165:in `call'
1056
+ rack (1.6.4) lib/rack/lock.rb:17:in `call'
1057
+ rack (1.6.4) lib/rack/content_length.rb:15:in `call'
1058
+ rack (1.6.4) lib/rack/handler/webrick.rb:88:in `service'
1059
+ /home/agro/.rbenv/versions/2.2.2/lib/ruby/2.2.0/webrick/httpserver.rb:138:in `service'
1060
+ /home/agro/.rbenv/versions/2.2.2/lib/ruby/2.2.0/webrick/httpserver.rb:94:in `run'
1061
+ /home/agro/.rbenv/versions/2.2.2/lib/ruby/2.2.0/webrick/server.rb:294:in `block in start_thread'
1062
+
1063
+
1064
+ Rendered /home/agro/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.5/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (2.5ms)
1065
+ Rendered /home/agro/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.5/lib/action_dispatch/middleware/templates/routes/_route.html.erb (1.1ms)
1066
+ Rendered /home/agro/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.5/lib/action_dispatch/middleware/templates/routes/_route.html.erb (0.2ms)
1067
+ Rendered /home/agro/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.5/lib/action_dispatch/middleware/templates/routes/_table.html.erb (98.6ms)
1068
+ Rendered /home/agro/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.5/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (149.6ms)
1069
+ Rendered /home/agro/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.5/lib/action_dispatch/middleware/templates/rescues/routing_error.html.erb within rescues/layout (330.6ms)
1070
+
1071
+
1072
+ Started GET "/api_flashcards/test/hello" for 127.0.0.1 at 2015-12-29 21:11:44 +0300
1073
+ Processing by ApiFlashcards::TestController#hello as HTML
1074
+ Filter chain halted as :authenticate_basic rendered or redirected
1075
+ Completed 401 Unauthorized in 0ms (ActiveRecord: 0.0ms)
1076
+
1077
+
1078
+ Started GET "/api_flashcards/test/hello" for 127.0.0.1 at 2015-12-29 21:11:49 +0300
1079
+ Processing by ApiFlashcards::TestController#hello as HTML
1080
+ User Load (32.7ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "admin"]]
1081
+ Filter chain halted as :authenticate_basic rendered or redirected
1082
+ Completed 401 Unauthorized in 296ms (ActiveRecord: 115.3ms)
1083
+
1084
+
1085
+ Started GET "/api_flashcards/test/hello" for 127.0.0.1 at 2015-12-29 21:11:57 +0300
1086
+ Processing by ApiFlashcards::TestController#hello as HTML
1087
+ User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "12@er.ty"]]
1088
+ Filter chain halted as :authenticate_basic rendered or redirected
1089
+ Completed 401 Unauthorized in 2ms (ActiveRecord: 0.4ms)
1090
+
1091
+
1092
+ Started GET "/api_flashcards/test/hello" for 127.0.0.1 at 2015-12-29 21:11:59 +0300
1093
+ Processing by ApiFlashcards::TestController#hello as HTML
1094
+ User Load (0.6ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", ""]]
1095
+ Filter chain halted as :authenticate_basic rendered or redirected
1096
+ Completed 401 Unauthorized in 2ms (ActiveRecord: 0.6ms)
1097
+
1098
+
1099
+ Started GET "/api_flashcards/test/hello" for 127.0.0.1 at 2015-12-29 21:11:59 +0300
1100
+ Processing by ApiFlashcards::TestController#hello as HTML
1101
+ User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", ""]]
1102
+ Filter chain halted as :authenticate_basic rendered or redirected
1103
+ Completed 401 Unauthorized in 2ms (ActiveRecord: 0.4ms)
1104
+
1105
+
1106
+ Started GET "/api_flashcards/test/hello" for 127.0.0.1 at 2015-12-29 21:12:07 +0300
1107
+ Processing by ApiFlashcards::TestController#hello as HTML
1108
+ User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "12@er.ty"]]
1109
+ Filter chain halted as :authenticate_basic rendered or redirected
1110
+ Completed 401 Unauthorized in 2ms (ActiveRecord: 0.4ms)
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: api_flashcards
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1.3
4
+ version: 0.0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Shkrt
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-12-28 00:00:00.000000000 Z
11
+ date: 2015-12-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -111,7 +111,6 @@ files:
111
111
  - app/helpers/api_flashcards/application_helper.rb
112
112
  - app/models/api_flashcards/concerns/user.rb
113
113
  - app/views/api_flashcards/test/hello.html.erb
114
- - app/views/layouts/api_flashcards/application.html.erb
115
114
  - config/routes.rb
116
115
  - lib/api_flashcards.rb
117
116
  - lib/api_flashcards/engine.rb
@@ -133,6 +132,7 @@ files:
133
132
  - spec/dummy/config.ru
134
133
  - spec/dummy/config/application.rb
135
134
  - spec/dummy/config/boot.rb
135
+ - spec/dummy/config/database.yml
136
136
  - spec/dummy/config/database.yml.travis
137
137
  - spec/dummy/config/environment.rb
138
138
  - spec/dummy/config/environments/development.rb
@@ -210,6 +210,7 @@ test_files:
210
210
  - spec/dummy/config/environments/production.rb
211
211
  - spec/dummy/config/environments/test.rb
212
212
  - spec/dummy/config/environments/development.rb
213
+ - spec/dummy/config/database.yml
213
214
  - spec/dummy/config/initializers/assets.rb
214
215
  - spec/dummy/config/initializers/mime_types.rb
215
216
  - spec/dummy/config/initializers/wrap_parameters.rb
@@ -1,14 +0,0 @@
1
- <!DOCTYPE html>
2
- <html>
3
- <head>
4
- <title>ApiFlashcards</title>
5
- <%= stylesheet_link_tag "api_flashcards/application", media: "all" %>
6
- <%= javascript_include_tag "api_flashcards/application" %>
7
- <%= csrf_meta_tags %>
8
- </head>
9
- <body>
10
-
11
- <%= yield %>
12
-
13
- </body>
14
- </html>