shopify_app_whitelist 1.1.1 → 2.0.0

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6c8003c7388499362d50d33437086ede928e4239
4
- data.tar.gz: 711c467edc9d8b544daa173f07290138a0b6e2b9
3
+ metadata.gz: 437b4a447b1e7a006a078b84ef2aeadc1a0824ff
4
+ data.tar.gz: faa39629eedc697675481d134f30069a60cac2cc
5
5
  SHA512:
6
- metadata.gz: 2823098dfe4bc9fce047d0b41f89dab8faa0d883ee1d13e30b1ba6afac48c4c9c46ed84f46b3feb37f49415c7c2d5be5d15086699837bdc810eb911b811ad772
7
- data.tar.gz: fabc3854b6e5b069b875f9ffb55af6f959a11ac790591127806e742bc5fb13f756a9a619da772a98081057fd8a145e1811dc2379dc0849404685612b559e1669
6
+ metadata.gz: fc18ac2893e4872b0f8bf2ab579ba2dcf19e69efb73ede10f6b82be3fd23e33a2423879913bfdcca9abd69d7b02f4740280d310aa7299ae8dd15d7ef284c7791
7
+ data.tar.gz: c23bbf7bd59cf347bbbbcced3992f51400d89d69bf1f3e13c0e8b6e49b1e2b5b03f646579334c59bd7d87fc0ab31b0279aee5fb80eec53a8efff79199e7ce73a
data/README.md CHANGED
@@ -6,7 +6,9 @@ This Gem extends [shopify_app](https://github.com/Shopify/shopify_app) to add a
6
6
 
7
7
  ## Compatibility
8
8
 
9
- Rails 4 and Rails 5 are supported. Appraisal Gem is used to test against both versions.
9
+ **v2.0 up** - Rails 5 and Shopify App 8 are supported.
10
+
11
+ **v1.0 up** - Rails 4 and Rails 5, Shopify App <7.1 are supported. Appraisal Gem is used to test against both versions of Rails.
10
12
 
11
13
  ## Installation
12
14
 
@@ -37,6 +39,10 @@ This Gem is tested. See `test/` or run `bundle rake test` after installing devel
37
39
 
38
40
  ## How It Works
39
41
 
40
- This Gem adds two configuration options to `ShopifyApp::Configuration` automatically. Using a Railite, it also automatically injects a controller concern into `ApplicationController`.
42
+ This Gem adds two configuration options to `ShopifyApp::Configuration` automatically. Using a Railite, it also automatically injects a controller concern into `ActionController::Base`.
41
43
 
42
44
  The concern will check if the current controller is `shopify_app/sessions_controller` and that the action is one of `new`, `create`, or `callback`. If it is, it will check the shop's Shopify domain against the whitelist to see if the shop is allowed to access these methods.
45
+
46
+ ## License
47
+
48
+ This project is released under the MIT license.
@@ -2,8 +2,8 @@ module ShopifyAppWhitelist
2
2
  # Railite implementation for the Gem
3
3
  class Railtie < Rails::Railtie
4
4
  config.after_initialize do
5
- # Include our concern into the ApplicationController after initialization
6
- Rails.app_class::ApplicationController.class_eval do
5
+ # Include our concern into the ActionController::Base
6
+ ActionController::Base.class_eval do
7
7
  include ShopifyAppWhitelist::ProtectionConcern
8
8
  end
9
9
  end
@@ -1,4 +1,4 @@
1
1
  module ShopifyAppWhitelist
2
2
  # Gem version
3
- VERSION = '1.1.1'.freeze
3
+ VERSION = '2.0.0'.freeze
4
4
  end
@@ -8,44 +8,28 @@ module ShopifyAppWhitelist
8
8
  end
9
9
 
10
10
  test 'not allowed shop should redirect to configured location' do
11
- if Rails::VERSION::MAJOR >= 5
12
- post :create, params: { shop: 'not-allowed.myshopify.com' }
13
- else
14
- post :create, { shop: 'not-allowed.myshopify.com' }
15
- end
11
+ post :create, params: { shop: 'not-allowed.myshopify.com' }
16
12
 
17
13
  assert_response :redirect
18
14
  assert response.location.include?(ShopifyApp.configuration.whitelist_redirect)
19
15
  end
20
16
 
21
17
  test 'allowed shop should be granted access' do
22
- if Rails::VERSION::MAJOR >= 5
23
- post :create, params: { shop: 'allowed.myshopify.com' }
24
- else
25
- post :create, { shop: 'allowed.myshopify.com' }
26
- end
18
+ post :create, params: { shop: 'allowed.myshopify.com' }
27
19
 
28
20
  assert_response :success
29
21
  assert response.body.include?('auth/')
30
22
  end
31
23
 
32
24
  test 'everyone should be granted login page' do
33
- if Rails::VERSION::MAJOR >= 5
34
- get :new, params: { shop: nil }
35
- else
36
- get :new, { shop: nil }
37
- end
25
+ get :new, params: { shop: nil }
38
26
 
39
27
  assert_response :success
40
28
  end
41
29
 
42
30
  test 'protection works for each action' do
43
31
  [[:post, :create], [:get, :new], [:get, :callback]].each do |method, action|
44
- if Rails::VERSION::MAJOR >= 5
45
- send(method, action, params: { shop: 'not-allowed.myshopify.com' })
46
- else
47
- send(method, action, { shop: 'not-allowed.myshopify.com' })
48
- end
32
+ send(method, action, params: { shop: 'not-allowed.myshopify.com' })
49
33
 
50
34
  assert_response :redirect
51
35
  assert response.location.include?(ShopifyApp.configuration.whitelist_redirect)
@@ -577,3 +577,846 @@ Processing by ShopifyApp::SessionsController#create as HTML
577
577
  Rendered inline template (1.2ms)
578
578
  Completed 200 OK in 27ms (Views: 3.0ms | ActiveRecord: 0.0ms)
579
579
   (0.1ms) rollback transaction
580
+  (0.2ms) begin transaction
581
+ ---------------------------------------------------------------------------------------
582
+ ShopifyAppWhitelist::SessionsControllerTest: test_allowed_shop_should_be_granted_access
583
+ ---------------------------------------------------------------------------------------
584
+ Processing by ShopifyApp::SessionsController#create as HTML
585
+ Parameters: {"shop"=>"allowed.myshopify.com"}
586
+ Rendered inline template (18.0ms)
587
+ Completed 200 OK in 92ms (Views: 77.0ms | ActiveRecord: 0.0ms)
588
+  (0.1ms) rollback transaction
589
+  (0.1ms) begin transaction
590
+ ---------------------------------------------------------------------------------------
591
+ ShopifyAppWhitelist::SessionsControllerTest: test_everyone_should_be_granted_login_page
592
+ ---------------------------------------------------------------------------------------
593
+ Processing by ShopifyApp::SessionsController#new as HTML
594
+ Parameters: {"shop"=>nil}
595
+ Rendered /mnt/c/Users/Tyler/Development/Github/shopify_app_whitelist/vendor/bundle/ruby/2.3.0/gems/shopify_app-7.2.8/app/views/shopify_app/sessions/new.html.erb (0.8ms)
596
+ Completed 200 OK in 13ms (Views: 12.3ms | ActiveRecord: 0.0ms)
597
+  (0.1ms) rollback transaction
598
+  (0.1ms) begin transaction
599
+ ---------------------------------------------------------------------------------------------------------
600
+ ShopifyAppWhitelist::SessionsControllerTest: test_not_allowed_shop_should_redirect_to_configured_location
601
+ ---------------------------------------------------------------------------------------------------------
602
+ Processing by ShopifyApp::SessionsController#create as HTML
603
+ Parameters: {"shop"=>"not-allowed.myshopify.com"}
604
+ Redirected to http://test.host/404.html
605
+ Filter chain halted as :whitelist_check rendered or redirected
606
+ Completed 302 Found in 3ms (ActiveRecord: 0.0ms)
607
+  (0.1ms) rollback transaction
608
+  (0.1ms) begin transaction
609
+ ----------------------------------------------------------------------------------
610
+ ShopifyAppWhitelist::SessionsControllerTest: test_protection_works_for_each_action
611
+ ----------------------------------------------------------------------------------
612
+ Processing by ShopifyApp::SessionsController#create as HTML
613
+ Parameters: {"shop"=>"not-allowed.myshopify.com"}
614
+ Redirected to http://test.host/404.html
615
+ Filter chain halted as :whitelist_check rendered or redirected
616
+ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
617
+ Processing by ShopifyApp::SessionsController#new as HTML
618
+ Parameters: {"shop"=>"not-allowed.myshopify.com"}
619
+ Redirected to http://test.host/404.html
620
+ Filter chain halted as :whitelist_check rendered or redirected
621
+ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
622
+ Processing by ShopifyApp::SessionsController#callback as HTML
623
+ Parameters: {"shop"=>"not-allowed.myshopify.com"}
624
+ Redirected to http://test.host/404.html
625
+ Filter chain halted as :whitelist_check rendered or redirected
626
+ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
627
+  (0.2ms) rollback transaction
628
+  (0.1ms) begin transaction
629
+ -----------------------------------------------------------------------
630
+ ShopifyAppWhitelistTest: test_adds_configuration_options_to_shopify_app
631
+ -----------------------------------------------------------------------
632
+  (0.1ms) rollback transaction
633
+  (0.1ms) begin transaction
634
+ --------------------------------------------------------------------
635
+ ShopifyAppWhitelistTest: test_adds_concern_to_application_controller
636
+ --------------------------------------------------------------------
637
+  (0.1ms) rollback transaction
638
+  (0.1ms) begin transaction
639
+ ----------------------------------------
640
+ ShopifyAppWhitelistTest: test_is_working
641
+ ----------------------------------------
642
+  (0.1ms) rollback transaction
643
+  (0.1ms) begin transaction
644
+ ---------------------------------------------------------------------------------------
645
+ ShopifyAppWhitelist::SessionsControllerTest: test_allowed_shop_should_be_granted_access
646
+ ---------------------------------------------------------------------------------------
647
+ Processing by ShopifyApp::SessionsController#create as HTML
648
+ Parameters: {"shop"=>"allowed.myshopify.com"}
649
+ Rendering inline template
650
+ Rendered inline template (3.1ms)
651
+ Completed 200 OK in 25ms (Views: 12.0ms | ActiveRecord: 0.0ms)
652
+  (0.1ms) rollback transaction
653
+  (0.1ms) begin transaction
654
+ ---------------------------------------------------------------------------------------
655
+ ShopifyAppWhitelist::SessionsControllerTest: test_everyone_should_be_granted_login_page
656
+ ---------------------------------------------------------------------------------------
657
+ Processing by ShopifyApp::SessionsController#new as HTML
658
+ Parameters: {"shop"=>""}
659
+ Rendering /mnt/c/Users/Tyler/Development/Github/shopify_app_whitelist/vendor/bundle/ruby/2.3.0/gems/shopify_app-8.1.0/app/views/shopify_app/sessions/new.html.erb
660
+ Rendered /mnt/c/Users/Tyler/Development/Github/shopify_app_whitelist/vendor/bundle/ruby/2.3.0/gems/shopify_app-8.1.0/app/views/shopify_app/sessions/new.html.erb (0.6ms)
661
+ Completed 200 OK in 8ms (Views: 1.1ms | ActiveRecord: 0.0ms)
662
+  (0.2ms) rollback transaction
663
+  (0.1ms) begin transaction
664
+ ---------------------------------------------------------------------------------------------------------
665
+ ShopifyAppWhitelist::SessionsControllerTest: test_not_allowed_shop_should_redirect_to_configured_location
666
+ ---------------------------------------------------------------------------------------------------------
667
+ Processing by ShopifyApp::SessionsController#create as HTML
668
+ Parameters: {"shop"=>"not-allowed.myshopify.com"}
669
+ Rendering inline template
670
+ Rendered inline template (0.6ms)
671
+ Completed 200 OK in 2ms (Views: 1.1ms | ActiveRecord: 0.0ms)
672
+  (0.1ms) rollback transaction
673
+  (0.2ms) begin transaction
674
+ ----------------------------------------------------------------------------------
675
+ ShopifyAppWhitelist::SessionsControllerTest: test_protection_works_for_each_action
676
+ ----------------------------------------------------------------------------------
677
+ Processing by ShopifyApp::SessionsController#create as HTML
678
+ Parameters: {"shop"=>"not-allowed.myshopify.com"}
679
+ Rendering inline template
680
+ Rendered inline template (0.4ms)
681
+ Completed 200 OK in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)
682
+  (0.1ms) rollback transaction
683
+  (0.1ms) begin transaction
684
+ --------------------------------------------------------------------
685
+ ShopifyAppWhitelistTest: test_adds_concern_to_application_controller
686
+ --------------------------------------------------------------------
687
+  (0.1ms) rollback transaction
688
+  (0.1ms) begin transaction
689
+ ----------------------------------------
690
+ ShopifyAppWhitelistTest: test_is_working
691
+ ----------------------------------------
692
+  (0.0ms) rollback transaction
693
+  (0.1ms) begin transaction
694
+ -----------------------------------------------------------------------
695
+ ShopifyAppWhitelistTest: test_adds_configuration_options_to_shopify_app
696
+ -----------------------------------------------------------------------
697
+  (0.0ms) rollback transaction
698
+  (0.2ms) begin transaction
699
+ --------------------------------------------------------------------
700
+ ShopifyAppWhitelistTest: test_adds_concern_to_application_controller
701
+ --------------------------------------------------------------------
702
+  (0.1ms) rollback transaction
703
+  (0.1ms) begin transaction
704
+ -----------------------------------------------------------------------
705
+ ShopifyAppWhitelistTest: test_adds_configuration_options_to_shopify_app
706
+ -----------------------------------------------------------------------
707
+  (0.1ms) rollback transaction
708
+  (0.1ms) begin transaction
709
+ ----------------------------------------
710
+ ShopifyAppWhitelistTest: test_is_working
711
+ ----------------------------------------
712
+  (0.0ms) rollback transaction
713
+  (0.1ms) begin transaction
714
+ ----------------------------------------------------------------------------------
715
+ ShopifyAppWhitelist::SessionsControllerTest: test_protection_works_for_each_action
716
+ ----------------------------------------------------------------------------------
717
+ Processing by ShopifyApp::SessionsController#create as HTML
718
+ Parameters: {"shop"=>"not-allowed.myshopify.com"}
719
+ Rendering inline template
720
+ Rendered inline template (6.5ms)
721
+ Completed 200 OK in 44ms (Views: 26.6ms | ActiveRecord: 0.0ms)
722
+  (0.1ms) rollback transaction
723
+  (0.2ms) begin transaction
724
+ ---------------------------------------------------------------------------------------------------------
725
+ ShopifyAppWhitelist::SessionsControllerTest: test_not_allowed_shop_should_redirect_to_configured_location
726
+ ---------------------------------------------------------------------------------------------------------
727
+ Processing by ShopifyApp::SessionsController#create as HTML
728
+ Parameters: {"shop"=>"not-allowed.myshopify.com"}
729
+ Rendering inline template
730
+ Rendered inline template (0.7ms)
731
+ Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms)
732
+  (0.1ms) rollback transaction
733
+  (0.2ms) begin transaction
734
+ ---------------------------------------------------------------------------------------
735
+ ShopifyAppWhitelist::SessionsControllerTest: test_everyone_should_be_granted_login_page
736
+ ---------------------------------------------------------------------------------------
737
+ Processing by ShopifyApp::SessionsController#new as HTML
738
+ Parameters: {"shop"=>""}
739
+ Rendering /mnt/c/Users/Tyler/Development/Github/shopify_app_whitelist/vendor/bundle/ruby/2.3.0/gems/shopify_app-8.1.0/app/views/shopify_app/sessions/new.html.erb
740
+ Rendered /mnt/c/Users/Tyler/Development/Github/shopify_app_whitelist/vendor/bundle/ruby/2.3.0/gems/shopify_app-8.1.0/app/views/shopify_app/sessions/new.html.erb (1.5ms)
741
+ Completed 200 OK in 27ms (Views: 3.2ms | ActiveRecord: 0.0ms)
742
+  (0.1ms) rollback transaction
743
+  (0.1ms) begin transaction
744
+ ---------------------------------------------------------------------------------------
745
+ ShopifyAppWhitelist::SessionsControllerTest: test_allowed_shop_should_be_granted_access
746
+ ---------------------------------------------------------------------------------------
747
+ Processing by ShopifyApp::SessionsController#create as HTML
748
+ Parameters: {"shop"=>"allowed.myshopify.com"}
749
+ Rendering inline template
750
+ Rendered inline template (0.5ms)
751
+ Completed 200 OK in 1ms (Views: 1.0ms | ActiveRecord: 0.0ms)
752
+  (0.1ms) rollback transaction
753
+  (0.5ms) begin transaction
754
+ ---------------------------------------------------------------------------------------
755
+ ShopifyAppWhitelist::SessionsControllerTest: test_allowed_shop_should_be_granted_access
756
+ ---------------------------------------------------------------------------------------
757
+ Processing by ShopifyApp::SessionsController#create as HTML
758
+ Parameters: {"shop"=>"allowed.myshopify.com"}
759
+ Rendering inline template
760
+ Rendered inline template (4.0ms)
761
+ Completed 200 OK in 32ms (Views: 16.1ms | ActiveRecord: 0.0ms)
762
+  (0.1ms) rollback transaction
763
+  (0.1ms) begin transaction
764
+ ----------------------------------------------------------------------------------
765
+ ShopifyAppWhitelist::SessionsControllerTest: test_protection_works_for_each_action
766
+ ----------------------------------------------------------------------------------
767
+ Processing by ShopifyApp::SessionsController#create as HTML
768
+ Parameters: {"shop"=>"not-allowed.myshopify.com"}
769
+ Rendering inline template
770
+ Rendered inline template (0.4ms)
771
+ Completed 200 OK in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)
772
+  (0.1ms) rollback transaction
773
+  (0.1ms) begin transaction
774
+ ---------------------------------------------------------------------------------------------------------
775
+ ShopifyAppWhitelist::SessionsControllerTest: test_not_allowed_shop_should_redirect_to_configured_location
776
+ ---------------------------------------------------------------------------------------------------------
777
+ Processing by ShopifyApp::SessionsController#create as HTML
778
+ Parameters: {"shop"=>"not-allowed.myshopify.com"}
779
+ Rendering inline template
780
+ Rendered inline template (0.4ms)
781
+ Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms)
782
+  (0.1ms) rollback transaction
783
+  (0.1ms) begin transaction
784
+ ---------------------------------------------------------------------------------------
785
+ ShopifyAppWhitelist::SessionsControllerTest: test_everyone_should_be_granted_login_page
786
+ ---------------------------------------------------------------------------------------
787
+ Processing by ShopifyApp::SessionsController#new as HTML
788
+ Parameters: {"shop"=>""}
789
+ Rendering /mnt/c/Users/Tyler/Development/Github/shopify_app_whitelist/vendor/bundle/ruby/2.3.0/gems/shopify_app-8.1.0/app/views/shopify_app/sessions/new.html.erb
790
+ Rendered /mnt/c/Users/Tyler/Development/Github/shopify_app_whitelist/vendor/bundle/ruby/2.3.0/gems/shopify_app-8.1.0/app/views/shopify_app/sessions/new.html.erb (1.8ms)
791
+ Completed 200 OK in 16ms (Views: 2.5ms | ActiveRecord: 0.0ms)
792
+  (0.1ms) rollback transaction
793
+  (0.2ms) begin transaction
794
+ --------------------------------------------------------------------
795
+ ShopifyAppWhitelistTest: test_adds_concern_to_application_controller
796
+ --------------------------------------------------------------------
797
+  (0.1ms) rollback transaction
798
+  (0.1ms) begin transaction
799
+ -----------------------------------------------------------------------
800
+ ShopifyAppWhitelistTest: test_adds_configuration_options_to_shopify_app
801
+ -----------------------------------------------------------------------
802
+  (0.1ms) rollback transaction
803
+  (0.3ms) begin transaction
804
+ ----------------------------------------
805
+ ShopifyAppWhitelistTest: test_is_working
806
+ ----------------------------------------
807
+  (0.1ms) rollback transaction
808
+  (0.2ms) begin transaction
809
+ --------------------------------------------------------------------
810
+ ShopifyAppWhitelistTest: test_adds_concern_to_application_controller
811
+ --------------------------------------------------------------------
812
+  (0.1ms) rollback transaction
813
+  (0.2ms) begin transaction
814
+ -----------------------------------------------------------------------
815
+ ShopifyAppWhitelistTest: test_adds_configuration_options_to_shopify_app
816
+ -----------------------------------------------------------------------
817
+  (0.1ms) rollback transaction
818
+  (0.1ms) begin transaction
819
+ ----------------------------------------
820
+ ShopifyAppWhitelistTest: test_is_working
821
+ ----------------------------------------
822
+  (0.0ms) rollback transaction
823
+  (0.1ms) begin transaction
824
+ ---------------------------------------------------------------------------------------
825
+ ShopifyAppWhitelist::SessionsControllerTest: test_allowed_shop_should_be_granted_access
826
+ ---------------------------------------------------------------------------------------
827
+ Processing by ShopifyApp::SessionsController#create as HTML
828
+ Parameters: {"shop"=>"allowed.myshopify.com"}
829
+ Rendering inline template
830
+ Rendered inline template (6.9ms)
831
+ Completed 200 OK in 45ms (Views: 19.8ms | ActiveRecord: 0.0ms)
832
+  (0.1ms) rollback transaction
833
+  (0.1ms) begin transaction
834
+ ----------------------------------------------------------------------------------
835
+ ShopifyAppWhitelist::SessionsControllerTest: test_protection_works_for_each_action
836
+ ----------------------------------------------------------------------------------
837
+ Processing by ShopifyApp::SessionsController#create as HTML
838
+ Parameters: {"shop"=>"not-allowed.myshopify.com"}
839
+ Rendering inline template
840
+ Rendered inline template (0.4ms)
841
+ Completed 200 OK in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)
842
+  (0.1ms) rollback transaction
843
+  (0.2ms) begin transaction
844
+ ---------------------------------------------------------------------------------------------------------
845
+ ShopifyAppWhitelist::SessionsControllerTest: test_not_allowed_shop_should_redirect_to_configured_location
846
+ ---------------------------------------------------------------------------------------------------------
847
+ Processing by ShopifyApp::SessionsController#create as HTML
848
+ Parameters: {"shop"=>"not-allowed.myshopify.com"}
849
+ Rendering inline template
850
+ Rendered inline template (0.6ms)
851
+ Completed 200 OK in 2ms (Views: 1.1ms | ActiveRecord: 0.0ms)
852
+  (0.1ms) rollback transaction
853
+  (0.2ms) begin transaction
854
+ ---------------------------------------------------------------------------------------
855
+ ShopifyAppWhitelist::SessionsControllerTest: test_everyone_should_be_granted_login_page
856
+ ---------------------------------------------------------------------------------------
857
+ Processing by ShopifyApp::SessionsController#new as HTML
858
+ Parameters: {"shop"=>""}
859
+ Rendering /mnt/c/Users/Tyler/Development/Github/shopify_app_whitelist/vendor/bundle/ruby/2.3.0/gems/shopify_app-8.1.0/app/views/shopify_app/sessions/new.html.erb
860
+ Rendered /mnt/c/Users/Tyler/Development/Github/shopify_app_whitelist/vendor/bundle/ruby/2.3.0/gems/shopify_app-8.1.0/app/views/shopify_app/sessions/new.html.erb (1.3ms)
861
+ Completed 200 OK in 27ms (Views: 2.4ms | ActiveRecord: 0.0ms)
862
+  (0.1ms) rollback transaction
863
+  (0.1ms) begin transaction
864
+ ---------------------------------------------------------------------------------------------------------
865
+ ShopifyAppWhitelist::SessionsControllerTest: test_not_allowed_shop_should_redirect_to_configured_location
866
+ ---------------------------------------------------------------------------------------------------------
867
+ Processing by ShopifyApp::SessionsController#create as HTML
868
+ Parameters: {"shop"=>"not-allowed.myshopify.com"}
869
+ Rendering inline template
870
+ Rendered inline template (2.9ms)
871
+ Completed 200 OK in 25ms (Views: 12.5ms | ActiveRecord: 0.0ms)
872
+  (0.1ms) rollback transaction
873
+  (0.2ms) begin transaction
874
+ ---------------------------------------------------------------------------------------
875
+ ShopifyAppWhitelist::SessionsControllerTest: test_allowed_shop_should_be_granted_access
876
+ ---------------------------------------------------------------------------------------
877
+ Processing by ShopifyApp::SessionsController#create as HTML
878
+ Parameters: {"shop"=>"allowed.myshopify.com"}
879
+ Rendering inline template
880
+ Rendered inline template (1.8ms)
881
+ Completed 200 OK in 6ms (Views: 5.5ms | ActiveRecord: 0.0ms)
882
+  (0.3ms) rollback transaction
883
+  (0.1ms) begin transaction
884
+ ---------------------------------------------------------------------------------------
885
+ ShopifyAppWhitelist::SessionsControllerTest: test_everyone_should_be_granted_login_page
886
+ ---------------------------------------------------------------------------------------
887
+ Processing by ShopifyApp::SessionsController#new as HTML
888
+ Parameters: {"shop"=>""}
889
+ Rendering /mnt/c/Users/Tyler/Development/Github/shopify_app_whitelist/vendor/bundle/ruby/2.3.0/gems/shopify_app-8.1.0/app/views/shopify_app/sessions/new.html.erb
890
+ Rendered /mnt/c/Users/Tyler/Development/Github/shopify_app_whitelist/vendor/bundle/ruby/2.3.0/gems/shopify_app-8.1.0/app/views/shopify_app/sessions/new.html.erb (0.8ms)
891
+ Completed 200 OK in 30ms (Views: 1.5ms | ActiveRecord: 0.0ms)
892
+  (0.1ms) rollback transaction
893
+  (0.1ms) begin transaction
894
+ ----------------------------------------------------------------------------------
895
+ ShopifyAppWhitelist::SessionsControllerTest: test_protection_works_for_each_action
896
+ ----------------------------------------------------------------------------------
897
+ Processing by ShopifyApp::SessionsController#create as HTML
898
+ Parameters: {"shop"=>"not-allowed.myshopify.com"}
899
+ Rendering inline template
900
+ Rendered inline template (0.4ms)
901
+ Completed 200 OK in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)
902
+  (0.1ms) rollback transaction
903
+  (0.1ms) begin transaction
904
+ --------------------------------------------------------------------
905
+ ShopifyAppWhitelistTest: test_adds_concern_to_application_controller
906
+ --------------------------------------------------------------------
907
+  (0.3ms) rollback transaction
908
+  (0.1ms) begin transaction
909
+ -----------------------------------------------------------------------
910
+ ShopifyAppWhitelistTest: test_adds_configuration_options_to_shopify_app
911
+ -----------------------------------------------------------------------
912
+  (0.1ms) rollback transaction
913
+  (0.1ms) begin transaction
914
+ ----------------------------------------
915
+ ShopifyAppWhitelistTest: test_is_working
916
+ ----------------------------------------
917
+  (0.0ms) rollback transaction
918
+  (0.2ms) begin transaction
919
+ ----------------------------------------
920
+ ShopifyAppWhitelistTest: test_is_working
921
+ ----------------------------------------
922
+  (0.2ms) rollback transaction
923
+  (0.1ms) begin transaction
924
+ -----------------------------------------------------------------------
925
+ ShopifyAppWhitelistTest: test_adds_configuration_options_to_shopify_app
926
+ -----------------------------------------------------------------------
927
+  (0.1ms) rollback transaction
928
+  (0.2ms) begin transaction
929
+ --------------------------------------------------------------------
930
+ ShopifyAppWhitelistTest: test_adds_concern_to_application_controller
931
+ --------------------------------------------------------------------
932
+  (0.1ms) rollback transaction
933
+  (0.1ms) begin transaction
934
+ ---------------------------------------------------------------------------------------
935
+ ShopifyAppWhitelist::SessionsControllerTest: test_allowed_shop_should_be_granted_access
936
+ ---------------------------------------------------------------------------------------
937
+ Processing by ShopifyApp::SessionsController#create as HTML
938
+ Parameters: {"shop"=>"allowed.myshopify.com"}
939
+ Rendering inline template
940
+ Rendered inline template (3.2ms)
941
+ Completed 200 OK in 31ms (Views: 14.2ms | ActiveRecord: 0.0ms)
942
+  (0.1ms) rollback transaction
943
+  (0.1ms) begin transaction
944
+ ---------------------------------------------------------------------------------------------------------
945
+ ShopifyAppWhitelist::SessionsControllerTest: test_not_allowed_shop_should_redirect_to_configured_location
946
+ ---------------------------------------------------------------------------------------------------------
947
+ Processing by ShopifyApp::SessionsController#create as HTML
948
+ Parameters: {"shop"=>"not-allowed.myshopify.com"}
949
+ Rendering inline template
950
+ Rendered inline template (0.4ms)
951
+ Completed 200 OK in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)
952
+  (0.2ms) rollback transaction
953
+  (0.1ms) begin transaction
954
+ ---------------------------------------------------------------------------------------
955
+ ShopifyAppWhitelist::SessionsControllerTest: test_everyone_should_be_granted_login_page
956
+ ---------------------------------------------------------------------------------------
957
+ Processing by ShopifyApp::SessionsController#new as HTML
958
+ Parameters: {"shop"=>""}
959
+ Rendering /mnt/c/Users/Tyler/Development/Github/shopify_app_whitelist/vendor/bundle/ruby/2.3.0/gems/shopify_app-8.1.0/app/views/shopify_app/sessions/new.html.erb
960
+ Rendered /mnt/c/Users/Tyler/Development/Github/shopify_app_whitelist/vendor/bundle/ruby/2.3.0/gems/shopify_app-8.1.0/app/views/shopify_app/sessions/new.html.erb (1.2ms)
961
+ Completed 200 OK in 12ms (Views: 2.1ms | ActiveRecord: 0.0ms)
962
+  (0.1ms) rollback transaction
963
+  (0.1ms) begin transaction
964
+ ----------------------------------------------------------------------------------
965
+ ShopifyAppWhitelist::SessionsControllerTest: test_protection_works_for_each_action
966
+ ----------------------------------------------------------------------------------
967
+ Processing by ShopifyApp::SessionsController#create as HTML
968
+ Parameters: {"shop"=>"not-allowed.myshopify.com"}
969
+ Rendering inline template
970
+ Rendered inline template (0.4ms)
971
+ Completed 200 OK in 1ms (Views: 0.9ms | ActiveRecord: 0.0ms)
972
+  (0.1ms) rollback transaction
973
+  (0.2ms) begin transaction
974
+ ---------------------------------------------------------------------------------------
975
+ ShopifyAppWhitelist::SessionsControllerTest: test_allowed_shop_should_be_granted_access
976
+ ---------------------------------------------------------------------------------------
977
+ Processing by ShopifyApp::SessionsController#create as HTML
978
+ Parameters: {"shop"=>"allowed.myshopify.com"}
979
+ Rendering inline template
980
+ Rendered inline template (2.8ms)
981
+ Completed 200 OK in 25ms (Views: 12.5ms | ActiveRecord: 0.0ms)
982
+  (0.1ms) rollback transaction
983
+  (0.1ms) begin transaction
984
+ ---------------------------------------------------------------------------------------------------------
985
+ ShopifyAppWhitelist::SessionsControllerTest: test_not_allowed_shop_should_redirect_to_configured_location
986
+ ---------------------------------------------------------------------------------------------------------
987
+ Processing by ShopifyApp::SessionsController#create as HTML
988
+ Parameters: {"shop"=>"not-allowed.myshopify.com"}
989
+ Rendering inline template
990
+ Rendered inline template (0.4ms)
991
+ Completed 200 OK in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)
992
+  (0.2ms) rollback transaction
993
+  (0.1ms) begin transaction
994
+ ----------------------------------------------------------------------------------
995
+ ShopifyAppWhitelist::SessionsControllerTest: test_protection_works_for_each_action
996
+ ----------------------------------------------------------------------------------
997
+ Processing by ShopifyApp::SessionsController#create as HTML
998
+ Parameters: {"shop"=>"not-allowed.myshopify.com"}
999
+ Rendering inline template
1000
+ Rendered inline template (0.4ms)
1001
+ Completed 200 OK in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)
1002
+  (0.2ms) rollback transaction
1003
+  (0.2ms) begin transaction
1004
+ ---------------------------------------------------------------------------------------
1005
+ ShopifyAppWhitelist::SessionsControllerTest: test_everyone_should_be_granted_login_page
1006
+ ---------------------------------------------------------------------------------------
1007
+ Processing by ShopifyApp::SessionsController#new as HTML
1008
+ Parameters: {"shop"=>""}
1009
+ Rendering /mnt/c/Users/Tyler/Development/Github/shopify_app_whitelist/vendor/bundle/ruby/2.3.0/gems/shopify_app-8.1.0/app/views/shopify_app/sessions/new.html.erb
1010
+ Rendered /mnt/c/Users/Tyler/Development/Github/shopify_app_whitelist/vendor/bundle/ruby/2.3.0/gems/shopify_app-8.1.0/app/views/shopify_app/sessions/new.html.erb (0.7ms)
1011
+ Completed 200 OK in 13ms (Views: 1.4ms | ActiveRecord: 0.0ms)
1012
+  (0.1ms) rollback transaction
1013
+  (0.1ms) begin transaction
1014
+ --------------------------------------------------------------------
1015
+ ShopifyAppWhitelistTest: test_adds_concern_to_application_controller
1016
+ --------------------------------------------------------------------
1017
+  (0.1ms) rollback transaction
1018
+  (0.1ms) begin transaction
1019
+ -----------------------------------------------------------------------
1020
+ ShopifyAppWhitelistTest: test_adds_configuration_options_to_shopify_app
1021
+ -----------------------------------------------------------------------
1022
+  (0.1ms) rollback transaction
1023
+  (0.1ms) begin transaction
1024
+ ----------------------------------------
1025
+ ShopifyAppWhitelistTest: test_is_working
1026
+ ----------------------------------------
1027
+  (0.1ms) rollback transaction
1028
+  (0.2ms) begin transaction
1029
+ -----------------------------------------------------------------------
1030
+ ShopifyAppWhitelistTest: test_adds_configuration_options_to_shopify_app
1031
+ -----------------------------------------------------------------------
1032
+  (0.1ms) rollback transaction
1033
+  (0.0ms) begin transaction
1034
+ ----------------------------------------
1035
+ ShopifyAppWhitelistTest: test_is_working
1036
+ ----------------------------------------
1037
+  (0.0ms) rollback transaction
1038
+  (0.0ms) begin transaction
1039
+ --------------------------------------------------------------------
1040
+ ShopifyAppWhitelistTest: test_adds_concern_to_application_controller
1041
+ --------------------------------------------------------------------
1042
+  (0.0ms) rollback transaction
1043
+  (0.1ms) begin transaction
1044
+ ---------------------------------------------------------------------------------------
1045
+ ShopifyAppWhitelist::SessionsControllerTest: test_everyone_should_be_granted_login_page
1046
+ ---------------------------------------------------------------------------------------
1047
+ Processing by ShopifyApp::SessionsController#new as HTML
1048
+ Parameters: {"shop"=>""}
1049
+ Rendering /mnt/c/Users/Tyler/Development/Github/shopify_app_whitelist/vendor/bundle/ruby/2.3.0/gems/shopify_app-8.1.0/app/views/shopify_app/sessions/new.html.erb
1050
+ Rendered /mnt/c/Users/Tyler/Development/Github/shopify_app_whitelist/vendor/bundle/ruby/2.3.0/gems/shopify_app-8.1.0/app/views/shopify_app/sessions/new.html.erb (3.6ms)
1051
+ Completed 200 OK in 25ms (Views: 14.8ms | ActiveRecord: 0.0ms)
1052
+  (0.1ms) rollback transaction
1053
+  (0.1ms) begin transaction
1054
+ ---------------------------------------------------------------------------------------
1055
+ ShopifyAppWhitelist::SessionsControllerTest: test_allowed_shop_should_be_granted_access
1056
+ ---------------------------------------------------------------------------------------
1057
+ Processing by ShopifyApp::SessionsController#create as HTML
1058
+ Parameters: {"shop"=>"allowed.myshopify.com"}
1059
+ Rendering inline template
1060
+ Rendered inline template (0.6ms)
1061
+ Completed 200 OK in 14ms (Views: 1.1ms | ActiveRecord: 0.0ms)
1062
+  (0.1ms) rollback transaction
1063
+  (0.1ms) begin transaction
1064
+ ---------------------------------------------------------------------------------------------------------
1065
+ ShopifyAppWhitelist::SessionsControllerTest: test_not_allowed_shop_should_redirect_to_configured_location
1066
+ ---------------------------------------------------------------------------------------------------------
1067
+ Processing by ShopifyApp::SessionsController#create as HTML
1068
+ Parameters: {"shop"=>"not-allowed.myshopify.com"}
1069
+ Rendering inline template
1070
+ Rendered inline template (0.4ms)
1071
+ Completed 200 OK in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)
1072
+  (0.1ms) rollback transaction
1073
+  (0.1ms) begin transaction
1074
+ ----------------------------------------------------------------------------------
1075
+ ShopifyAppWhitelist::SessionsControllerTest: test_protection_works_for_each_action
1076
+ ----------------------------------------------------------------------------------
1077
+ Processing by ShopifyApp::SessionsController#create as HTML
1078
+ Parameters: {"shop"=>"not-allowed.myshopify.com"}
1079
+ Rendering inline template
1080
+ Rendered inline template (0.4ms)
1081
+ Completed 200 OK in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)
1082
+  (0.1ms) rollback transaction
1083
+  (0.1ms) begin transaction
1084
+ ---------------------------------------------------------------------------------------
1085
+ ShopifyAppWhitelist::SessionsControllerTest: test_everyone_should_be_granted_login_page
1086
+ ---------------------------------------------------------------------------------------
1087
+ Processing by ShopifyApp::SessionsController#new as HTML
1088
+ Parameters: {"shop"=>""}
1089
+ Rendering /mnt/c/Users/Tyler/Development/Github/shopify_app_whitelist/vendor/bundle/ruby/2.3.0/gems/shopify_app-8.1.0/app/views/shopify_app/sessions/new.html.erb
1090
+ Rendered /mnt/c/Users/Tyler/Development/Github/shopify_app_whitelist/vendor/bundle/ruby/2.3.0/gems/shopify_app-8.1.0/app/views/shopify_app/sessions/new.html.erb (4.5ms)
1091
+ Completed 200 OK in 26ms (Views: 15.6ms | ActiveRecord: 0.0ms)
1092
+  (0.1ms) rollback transaction
1093
+  (0.1ms) begin transaction
1094
+ ---------------------------------------------------------------------------------------
1095
+ ShopifyAppWhitelist::SessionsControllerTest: test_allowed_shop_should_be_granted_access
1096
+ ---------------------------------------------------------------------------------------
1097
+ Processing by ShopifyApp::SessionsController#create as HTML
1098
+ Parameters: {"shop"=>"allowed.myshopify.com"}
1099
+ Rendering inline template
1100
+ Rendered inline template (0.4ms)
1101
+ Completed 200 OK in 18ms (Views: 1.0ms | ActiveRecord: 0.0ms)
1102
+  (0.1ms) rollback transaction
1103
+  (0.1ms) begin transaction
1104
+ ----------------------------------------------------------------------------------
1105
+ ShopifyAppWhitelist::SessionsControllerTest: test_protection_works_for_each_action
1106
+ ----------------------------------------------------------------------------------
1107
+ Processing by ShopifyApp::SessionsController#create as HTML
1108
+ Parameters: {"shop"=>"not-allowed.myshopify.com"}
1109
+ Rendering inline template
1110
+ Rendered inline template (0.4ms)
1111
+ Completed 200 OK in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)
1112
+  (0.1ms) rollback transaction
1113
+  (0.2ms) begin transaction
1114
+ ---------------------------------------------------------------------------------------------------------
1115
+ ShopifyAppWhitelist::SessionsControllerTest: test_not_allowed_shop_should_redirect_to_configured_location
1116
+ ---------------------------------------------------------------------------------------------------------
1117
+ Processing by ShopifyApp::SessionsController#create as HTML
1118
+ Parameters: {"shop"=>"not-allowed.myshopify.com"}
1119
+ Rendering inline template
1120
+ Rendered inline template (0.4ms)
1121
+ Completed 200 OK in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)
1122
+  (0.2ms) rollback transaction
1123
+  (0.1ms) begin transaction
1124
+ --------------------------------------------------------------------
1125
+ ShopifyAppWhitelistTest: test_adds_concern_to_application_controller
1126
+ --------------------------------------------------------------------
1127
+  (0.0ms) rollback transaction
1128
+  (0.1ms) begin transaction
1129
+ -----------------------------------------------------------------------
1130
+ ShopifyAppWhitelistTest: test_adds_configuration_options_to_shopify_app
1131
+ -----------------------------------------------------------------------
1132
+  (0.0ms) rollback transaction
1133
+  (0.0ms) begin transaction
1134
+ ----------------------------------------
1135
+ ShopifyAppWhitelistTest: test_is_working
1136
+ ----------------------------------------
1137
+  (0.0ms) rollback transaction
1138
+  (0.2ms) begin transaction
1139
+ -----------------------------------------------------------------------
1140
+ ShopifyAppWhitelistTest: test_adds_configuration_options_to_shopify_app
1141
+ -----------------------------------------------------------------------
1142
+  (0.1ms) rollback transaction
1143
+  (0.1ms) begin transaction
1144
+ --------------------------------------------------------------------
1145
+ ShopifyAppWhitelistTest: test_adds_concern_to_application_controller
1146
+ --------------------------------------------------------------------
1147
+  (0.0ms) rollback transaction
1148
+  (0.0ms) begin transaction
1149
+ ----------------------------------------
1150
+ ShopifyAppWhitelistTest: test_is_working
1151
+ ----------------------------------------
1152
+  (0.1ms) rollback transaction
1153
+  (0.0ms) begin transaction
1154
+ ----------------------------------------------------------------------------------
1155
+ ShopifyAppWhitelist::SessionsControllerTest: test_protection_works_for_each_action
1156
+ ----------------------------------------------------------------------------------
1157
+ Processing by ShopifyApp::SessionsController#create as HTML
1158
+ Parameters: {"shop"=>"not-allowed.myshopify.com"}
1159
+ Rendering inline template
1160
+ Rendered inline template (2.8ms)
1161
+ Completed 200 OK in 25ms (Views: 11.9ms | ActiveRecord: 0.0ms)
1162
+  (0.1ms) rollback transaction
1163
+  (0.1ms) begin transaction
1164
+ ---------------------------------------------------------------------------------------
1165
+ ShopifyAppWhitelist::SessionsControllerTest: test_allowed_shop_should_be_granted_access
1166
+ ---------------------------------------------------------------------------------------
1167
+ Processing by ShopifyApp::SessionsController#create as HTML
1168
+ Parameters: {"shop"=>"allowed.myshopify.com"}
1169
+ Rendering inline template
1170
+ Rendered inline template (0.4ms)
1171
+ Completed 200 OK in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)
1172
+  (0.1ms) rollback transaction
1173
+  (0.0ms) begin transaction
1174
+ ---------------------------------------------------------------------------------------------------------
1175
+ ShopifyAppWhitelist::SessionsControllerTest: test_not_allowed_shop_should_redirect_to_configured_location
1176
+ ---------------------------------------------------------------------------------------------------------
1177
+ Processing by ShopifyApp::SessionsController#create as HTML
1178
+ Parameters: {"shop"=>"not-allowed.myshopify.com"}
1179
+ Rendering inline template
1180
+ Rendered inline template (0.4ms)
1181
+ Completed 200 OK in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)
1182
+  (0.1ms) rollback transaction
1183
+  (0.1ms) begin transaction
1184
+ ---------------------------------------------------------------------------------------
1185
+ ShopifyAppWhitelist::SessionsControllerTest: test_everyone_should_be_granted_login_page
1186
+ ---------------------------------------------------------------------------------------
1187
+ Processing by ShopifyApp::SessionsController#new as HTML
1188
+ Parameters: {"shop"=>""}
1189
+ Rendering /mnt/c/Users/Tyler/Development/Github/shopify_app_whitelist/vendor/bundle/ruby/2.3.0/gems/shopify_app-8.1.0/app/views/shopify_app/sessions/new.html.erb
1190
+ Rendered /mnt/c/Users/Tyler/Development/Github/shopify_app_whitelist/vendor/bundle/ruby/2.3.0/gems/shopify_app-8.1.0/app/views/shopify_app/sessions/new.html.erb (0.7ms)
1191
+ Completed 200 OK in 10ms (Views: 1.5ms | ActiveRecord: 0.0ms)
1192
+  (0.1ms) rollback transaction
1193
+  (0.2ms) begin transaction
1194
+ ---------------------------------------------------------------------------------------
1195
+ ShopifyAppWhitelist::SessionsControllerTest: test_allowed_shop_should_be_granted_access
1196
+ ---------------------------------------------------------------------------------------
1197
+ Processing by ShopifyApp::SessionsController#create as HTML
1198
+ Parameters: {"shop"=>"allowed.myshopify.com"}
1199
+ Rendering inline template
1200
+ Rendered inline template (2.8ms)
1201
+ Completed 200 OK in 45ms (Views: 28.9ms | ActiveRecord: 0.0ms)
1202
+  (0.1ms) rollback transaction
1203
+  (0.1ms) begin transaction
1204
+ ---------------------------------------------------------------------------------------------------------
1205
+ ShopifyAppWhitelist::SessionsControllerTest: test_not_allowed_shop_should_redirect_to_configured_location
1206
+ ---------------------------------------------------------------------------------------------------------
1207
+ Processing by ShopifyApp::SessionsController#create as HTML
1208
+ Parameters: {"shop"=>"not-allowed.myshopify.com"}
1209
+ Rendering inline template
1210
+ Rendered inline template (0.3ms)
1211
+ Completed 200 OK in 1ms (Views: 0.9ms | ActiveRecord: 0.0ms)
1212
+  (0.1ms) rollback transaction
1213
+  (0.1ms) begin transaction
1214
+ ---------------------------------------------------------------------------------------
1215
+ ShopifyAppWhitelist::SessionsControllerTest: test_everyone_should_be_granted_login_page
1216
+ ---------------------------------------------------------------------------------------
1217
+ Processing by ShopifyApp::SessionsController#new as HTML
1218
+ Parameters: {"shop"=>""}
1219
+ Rendering /mnt/c/Users/Tyler/Development/Github/shopify_app_whitelist/vendor/bundle/ruby/2.3.0/gems/shopify_app-8.1.0/app/views/shopify_app/sessions/new.html.erb
1220
+ Rendered /mnt/c/Users/Tyler/Development/Github/shopify_app_whitelist/vendor/bundle/ruby/2.3.0/gems/shopify_app-8.1.0/app/views/shopify_app/sessions/new.html.erb (1.0ms)
1221
+ Completed 200 OK in 11ms (Views: 2.0ms | ActiveRecord: 0.0ms)
1222
+  (0.3ms) rollback transaction
1223
+  (0.1ms) begin transaction
1224
+ ----------------------------------------------------------------------------------
1225
+ ShopifyAppWhitelist::SessionsControllerTest: test_protection_works_for_each_action
1226
+ ----------------------------------------------------------------------------------
1227
+ Processing by ShopifyApp::SessionsController#create as HTML
1228
+ Parameters: {"shop"=>"not-allowed.myshopify.com"}
1229
+ Rendering inline template
1230
+ Rendered inline template (0.7ms)
1231
+ Completed 200 OK in 2ms (Views: 1.8ms | ActiveRecord: 0.0ms)
1232
+  (0.1ms) rollback transaction
1233
+  (0.1ms) begin transaction
1234
+ -----------------------------------------------------------------------
1235
+ ShopifyAppWhitelistTest: test_adds_configuration_options_to_shopify_app
1236
+ -----------------------------------------------------------------------
1237
+  (0.0ms) rollback transaction
1238
+  (0.1ms) begin transaction
1239
+ ----------------------------------------
1240
+ ShopifyAppWhitelistTest: test_is_working
1241
+ ----------------------------------------
1242
+  (0.0ms) rollback transaction
1243
+  (0.1ms) begin transaction
1244
+ --------------------------------------------------------------------
1245
+ ShopifyAppWhitelistTest: test_adds_concern_to_application_controller
1246
+ --------------------------------------------------------------------
1247
+  (0.1ms) rollback transaction
1248
+  (0.1ms) begin transaction
1249
+ ---------------------------------------------------------------------------------------
1250
+ ShopifyAppWhitelist::SessionsControllerTest: test_everyone_should_be_granted_login_page
1251
+ ---------------------------------------------------------------------------------------
1252
+ Processing by ShopifyApp::SessionsController#new as HTML
1253
+ Parameters: {"shop"=>""}
1254
+ Rendering /mnt/c/Users/Tyler/Development/Github/shopify_app_whitelist/vendor/bundle/ruby/2.3.0/gems/shopify_app-8.1.0/app/views/shopify_app/sessions/new.html.erb
1255
+ Rendered /mnt/c/Users/Tyler/Development/Github/shopify_app_whitelist/vendor/bundle/ruby/2.3.0/gems/shopify_app-8.1.0/app/views/shopify_app/sessions/new.html.erb (5.3ms)
1256
+ Completed 200 OK in 37ms (Views: 19.5ms | ActiveRecord: 0.0ms)
1257
+  (0.1ms) rollback transaction
1258
+  (0.1ms) begin transaction
1259
+ ---------------------------------------------------------------------------------------------------------
1260
+ ShopifyAppWhitelist::SessionsControllerTest: test_not_allowed_shop_should_redirect_to_configured_location
1261
+ ---------------------------------------------------------------------------------------------------------
1262
+ Processing by ShopifyApp::SessionsController#create as HTML
1263
+ Parameters: {"shop"=>"not-allowed.myshopify.com"}
1264
+ Rendering inline template
1265
+ Rendered inline template (0.6ms)
1266
+ Completed 200 OK in 20ms (Views: 1.4ms | ActiveRecord: 0.0ms)
1267
+  (0.2ms) rollback transaction
1268
+  (0.1ms) begin transaction
1269
+ ----------------------------------------------------------------------------------
1270
+ ShopifyAppWhitelist::SessionsControllerTest: test_protection_works_for_each_action
1271
+ ----------------------------------------------------------------------------------
1272
+ Processing by ShopifyApp::SessionsController#create as HTML
1273
+ Parameters: {"shop"=>"not-allowed.myshopify.com"}
1274
+ Rendering inline template
1275
+ Rendered inline template (0.6ms)
1276
+ Completed 200 OK in 1ms (Views: 1.0ms | ActiveRecord: 0.0ms)
1277
+  (0.1ms) rollback transaction
1278
+  (0.1ms) begin transaction
1279
+ ---------------------------------------------------------------------------------------
1280
+ ShopifyAppWhitelist::SessionsControllerTest: test_allowed_shop_should_be_granted_access
1281
+ ---------------------------------------------------------------------------------------
1282
+ Processing by ShopifyApp::SessionsController#create as HTML
1283
+ Parameters: {"shop"=>"allowed.myshopify.com"}
1284
+ Rendering inline template
1285
+ Rendered inline template (0.4ms)
1286
+ Completed 200 OK in 2ms (Views: 0.8ms | ActiveRecord: 0.0ms)
1287
+  (0.1ms) rollback transaction
1288
+  (0.1ms) begin transaction
1289
+ --------------------------------------------------------------------
1290
+ ShopifyAppWhitelistTest: test_adds_concern_to_application_controller
1291
+ --------------------------------------------------------------------
1292
+  (0.1ms) rollback transaction
1293
+  (0.1ms) begin transaction
1294
+ ----------------------------------------
1295
+ ShopifyAppWhitelistTest: test_is_working
1296
+ ----------------------------------------
1297
+  (0.1ms) rollback transaction
1298
+  (0.1ms) begin transaction
1299
+ -----------------------------------------------------------------------
1300
+ ShopifyAppWhitelistTest: test_adds_configuration_options_to_shopify_app
1301
+ -----------------------------------------------------------------------
1302
+  (0.1ms) rollback transaction
1303
+  (0.2ms) begin transaction
1304
+ ---------------------------------------------------------------------------------------------------------
1305
+ ShopifyAppWhitelist::SessionsControllerTest: test_not_allowed_shop_should_redirect_to_configured_location
1306
+ ---------------------------------------------------------------------------------------------------------
1307
+ Processing by ShopifyApp::SessionsController#create as HTML
1308
+ Parameters: {"shop"=>"not-allowed.myshopify.com"}
1309
+ Rendering inline template
1310
+ Rendered inline template (3.1ms)
1311
+ Completed 200 OK in 26ms (Views: 13.8ms | ActiveRecord: 0.0ms)
1312
+  (0.1ms) rollback transaction
1313
+  (0.3ms) begin transaction
1314
+ ----------------------------------------------------------------------------------
1315
+ ShopifyAppWhitelist::SessionsControllerTest: test_protection_works_for_each_action
1316
+ ----------------------------------------------------------------------------------
1317
+ Processing by ShopifyApp::SessionsController#create as HTML
1318
+ Parameters: {"shop"=>"not-allowed.myshopify.com"}
1319
+ Rendering inline template
1320
+ Rendered inline template (0.7ms)
1321
+ Completed 200 OK in 4ms (Views: 2.7ms | ActiveRecord: 0.0ms)
1322
+  (0.1ms) rollback transaction
1323
+  (0.1ms) begin transaction
1324
+ ---------------------------------------------------------------------------------------
1325
+ ShopifyAppWhitelist::SessionsControllerTest: test_allowed_shop_should_be_granted_access
1326
+ ---------------------------------------------------------------------------------------
1327
+ Processing by ShopifyApp::SessionsController#create as HTML
1328
+ Parameters: {"shop"=>"allowed.myshopify.com"}
1329
+ Rendering inline template
1330
+ Rendered inline template (0.4ms)
1331
+ Completed 200 OK in 2ms (Views: 0.9ms | ActiveRecord: 0.0ms)
1332
+  (0.2ms) rollback transaction
1333
+  (0.1ms) begin transaction
1334
+ ---------------------------------------------------------------------------------------
1335
+ ShopifyAppWhitelist::SessionsControllerTest: test_everyone_should_be_granted_login_page
1336
+ ---------------------------------------------------------------------------------------
1337
+ Processing by ShopifyApp::SessionsController#new as HTML
1338
+ Parameters: {"shop"=>""}
1339
+ Rendering /mnt/c/Users/Tyler/Development/Github/shopify_app_whitelist/vendor/bundle/ruby/2.3.0/gems/shopify_app-8.1.0/app/views/shopify_app/sessions/new.html.erb
1340
+ Rendered /mnt/c/Users/Tyler/Development/Github/shopify_app_whitelist/vendor/bundle/ruby/2.3.0/gems/shopify_app-8.1.0/app/views/shopify_app/sessions/new.html.erb (4.9ms)
1341
+ Completed 200 OK in 16ms (Views: 6.5ms | ActiveRecord: 0.0ms)
1342
+  (0.4ms) rollback transaction
1343
+  (0.1ms) begin transaction
1344
+ --------------------------------------------------------------------
1345
+ ShopifyAppWhitelistTest: test_adds_concern_to_application_controller
1346
+ --------------------------------------------------------------------
1347
+  (0.1ms) rollback transaction
1348
+  (0.1ms) begin transaction
1349
+ ----------------------------------------
1350
+ ShopifyAppWhitelistTest: test_is_working
1351
+ ----------------------------------------
1352
+  (0.0ms) rollback transaction
1353
+  (0.0ms) begin transaction
1354
+ -----------------------------------------------------------------------
1355
+ ShopifyAppWhitelistTest: test_adds_configuration_options_to_shopify_app
1356
+ -----------------------------------------------------------------------
1357
+  (0.0ms) rollback transaction
1358
+  (0.2ms) begin transaction
1359
+ --------------------------------------------------------------------
1360
+ ShopifyAppWhitelistTest: test_adds_concern_to_application_controller
1361
+ --------------------------------------------------------------------
1362
+  (0.1ms) rollback transaction
1363
+  (0.1ms) begin transaction
1364
+ -----------------------------------------------------------------------
1365
+ ShopifyAppWhitelistTest: test_adds_configuration_options_to_shopify_app
1366
+ -----------------------------------------------------------------------
1367
+  (0.1ms) rollback transaction
1368
+  (0.1ms) begin transaction
1369
+ ----------------------------------------
1370
+ ShopifyAppWhitelistTest: test_is_working
1371
+ ----------------------------------------
1372
+  (0.2ms) rollback transaction
1373
+  (0.1ms) begin transaction
1374
+ ---------------------------------------------------------------------------------------
1375
+ ShopifyAppWhitelist::SessionsControllerTest: test_allowed_shop_should_be_granted_access
1376
+ ---------------------------------------------------------------------------------------
1377
+ Processing by ShopifyApp::SessionsController#create as HTML
1378
+ Parameters: {"shop"=>"allowed.myshopify.com"}
1379
+ Rendering inline template
1380
+ Rendered inline template (3.1ms)
1381
+ Completed 200 OK in 34ms (Views: 16.7ms | ActiveRecord: 0.0ms)
1382
+  (0.1ms) rollback transaction
1383
+  (0.1ms) begin transaction
1384
+ ---------------------------------------------------------------------------------------------------------
1385
+ ShopifyAppWhitelist::SessionsControllerTest: test_not_allowed_shop_should_redirect_to_configured_location
1386
+ ---------------------------------------------------------------------------------------------------------
1387
+ Processing by ShopifyApp::SessionsController#create as HTML
1388
+ Parameters: {"shop"=>"not-allowed.myshopify.com"}
1389
+ Redirected to http://test.host/404.html
1390
+ Filter chain halted as :whitelist_check rendered or redirected
1391
+ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
1392
+  (0.2ms) rollback transaction
1393
+  (0.1ms) begin transaction
1394
+ ----------------------------------------------------------------------------------
1395
+ ShopifyAppWhitelist::SessionsControllerTest: test_protection_works_for_each_action
1396
+ ----------------------------------------------------------------------------------
1397
+ Processing by ShopifyApp::SessionsController#create as HTML
1398
+ Parameters: {"shop"=>"not-allowed.myshopify.com"}
1399
+ Redirected to http://test.host/404.html
1400
+ Filter chain halted as :whitelist_check rendered or redirected
1401
+ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
1402
+ Processing by ShopifyApp::SessionsController#new as HTML
1403
+ Parameters: {"shop"=>"not-allowed.myshopify.com"}
1404
+ Redirected to http://test.host/404.html
1405
+ Filter chain halted as :whitelist_check rendered or redirected
1406
+ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
1407
+ Processing by ShopifyApp::SessionsController#callback as HTML
1408
+ Parameters: {"shop"=>"not-allowed.myshopify.com"}
1409
+ Redirected to http://test.host/404.html
1410
+ Filter chain halted as :whitelist_check rendered or redirected
1411
+ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
1412
+  (0.1ms) rollback transaction
1413
+  (0.1ms) begin transaction
1414
+ ---------------------------------------------------------------------------------------
1415
+ ShopifyAppWhitelist::SessionsControllerTest: test_everyone_should_be_granted_login_page
1416
+ ---------------------------------------------------------------------------------------
1417
+ Processing by ShopifyApp::SessionsController#new as HTML
1418
+ Parameters: {"shop"=>""}
1419
+ Rendering /mnt/c/Users/Tyler/Development/Github/shopify_app_whitelist/vendor/bundle/ruby/2.3.0/gems/shopify_app-8.1.0/app/views/shopify_app/sessions/new.html.erb
1420
+ Rendered /mnt/c/Users/Tyler/Development/Github/shopify_app_whitelist/vendor/bundle/ruby/2.3.0/gems/shopify_app-8.1.0/app/views/shopify_app/sessions/new.html.erb (1.0ms)
1421
+ Completed 200 OK in 16ms (Views: 1.8ms | ActiveRecord: 0.0ms)
1422
+  (0.1ms) rollback transaction
metadata CHANGED
@@ -1,49 +1,43 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: shopify_app_whitelist
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.1
4
+ version: 2.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tyler King
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-06-28 00:00:00.000000000 Z
11
+ date: 2017-09-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ">="
17
+ - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: 4.2.6
19
+ version: '5.0'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - ">="
24
+ - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: 4.2.6
26
+ version: '5.0'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: shopify_app
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: '7.0'
34
- - - ">="
35
- - !ruby/object:Gem::Version
36
- version: 7.0.1
33
+ version: '8.0'
37
34
  type: :runtime
38
35
  prerelease: false
39
36
  version_requirements: !ruby/object:Gem::Requirement
40
37
  requirements:
41
38
  - - "~>"
42
39
  - !ruby/object:Gem::Version
43
- version: '7.0'
44
- - - ">="
45
- - !ruby/object:Gem::Version
46
- version: 7.0.1
40
+ version: '8.0'
47
41
  - !ruby/object:Gem::Dependency
48
42
  name: appraisal
49
43
  requirement: !ruby/object:Gem::Requirement
@@ -145,7 +139,7 @@ dependencies:
145
139
  description: Adds a feature to whitelist certain shops to access your shopify_app
146
140
  installation
147
141
  email:
148
- - tyler.n.king@gmail.com
142
+ - tyler.n.king@outlook.com
149
143
  executables: []
150
144
  extensions: []
151
145
  extra_rdoc_files: []
@@ -170,7 +164,6 @@ files:
170
164
  - test/dummy/config/environments/test.rb
171
165
  - test/dummy/config/initializers/omniauth.rb
172
166
  - test/dummy/config/initializers/shopify_app.rb
173
- - test/dummy/config/initializers/shopify_session_repository.rb
174
167
  - test/dummy/config/routes.rb
175
168
  - test/dummy/config/secrets.yml
176
169
  - test/dummy/db/test.sqlite3
@@ -197,7 +190,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
197
190
  version: '0'
198
191
  requirements: []
199
192
  rubyforge_project:
200
- rubygems_version: 2.5.1
193
+ rubygems_version: 2.6.12
201
194
  signing_key:
202
195
  specification_version: 4
203
196
  summary: Adds whitelisting ability to shopify_app
@@ -212,7 +205,6 @@ test_files:
212
205
  - test/dummy/config/environments/test.rb
213
206
  - test/dummy/config/initializers/omniauth.rb
214
207
  - test/dummy/config/initializers/shopify_app.rb
215
- - test/dummy/config/initializers/shopify_session_repository.rb
216
208
  - test/dummy/config/routes.rb
217
209
  - test/dummy/config/secrets.yml
218
210
  - test/dummy/config.ru
@@ -1 +0,0 @@
1
- ShopifyApp::SessionRepository.storage = InMemorySessionStore