static_blocks 1.2.0 → 1.2.1
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:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 2e91679c34ddb56f2296e2b919979446c96370e9
|
|
4
|
+
data.tar.gz: b9372d4ba38ac8a0b1ed8a8d1d1045c447915e18
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 3ecf7c22521c8ef4daf8fe0073a75095cafa7a053e8cd6d69394174c0962d464e1c720db943934d2d28a83dae8e1562d4b9f75cba4ef0b54ffdbb490d801abb3
|
|
7
|
+
data.tar.gz: 48c5d2bcd147bee829a1b89f1c073fedcf5b1a40583b872ac6af21a64510065bfd3600e152a0ebfa95a6d0b4425fbd2c6684387e690e996f20b2280baace6c04
|
|
@@ -43,12 +43,12 @@ module StaticBlocks
|
|
|
43
43
|
if params[:file].nil?
|
|
44
44
|
redirect_to root_url
|
|
45
45
|
flash[:error] = "You did not attach a file."
|
|
46
|
-
elsif params[:file].original_filename.include? '
|
|
46
|
+
elsif params[:file].original_filename.include? '-snippets'
|
|
47
47
|
Snippet.import(params[:file])
|
|
48
48
|
redirect_to root_url, notice: "Snippets imported"
|
|
49
49
|
else
|
|
50
50
|
redirect_to root_url
|
|
51
|
-
flash[:error] = "Error. Please upload a valid
|
|
51
|
+
flash[:error] = "Error. Please upload a valid snippets csv."
|
|
52
52
|
end
|
|
53
53
|
end
|
|
54
54
|
|
|
@@ -56,7 +56,7 @@ module StaticBlocks
|
|
|
56
56
|
if params[:file].nil?
|
|
57
57
|
redirect_to root_url
|
|
58
58
|
flash[:error] = "You did not attach a file."
|
|
59
|
-
elsif params[:file].original_filename.include? '
|
|
59
|
+
elsif params[:file].original_filename.include? '-translations'
|
|
60
60
|
Snippet.import_translations(params[:file])
|
|
61
61
|
redirect_to root_url, notice: "Snippet translations imported"
|
|
62
62
|
else
|
|
Binary file
|
|
@@ -582,3 +582,333 @@ Processing by StaticBlocks::SnippetsController#export_translations as CSV
|
|
|
582
582
|
Rendered text template (0.0ms)
|
|
583
583
|
Sent data Dummy-translations-2013-08-18-19-19-06.csv (0.4ms)
|
|
584
584
|
Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.4ms)
|
|
585
|
+
Connecting to database specified by database.yml
|
|
586
|
+
|
|
587
|
+
|
|
588
|
+
Started GET "/" for 127.0.0.1 at 2013-08-18 23:21:02 -0700
|
|
589
|
+
|
|
590
|
+
|
|
591
|
+
Started GET "/en/info/index" for 127.0.0.1 at 2013-08-18 23:21:02 -0700
|
|
592
|
+
Processing by InfoController#index as HTML
|
|
593
|
+
Parameters: {"locale"=>"en"}
|
|
594
|
+
Rendered info/index.html.erb within layouts/application (2.4ms)
|
|
595
|
+
Completed 200 OK in 21ms (Views: 20.7ms | ActiveRecord: 0.0ms)
|
|
596
|
+
|
|
597
|
+
|
|
598
|
+
Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2013-08-18 23:21:02 -0700
|
|
599
|
+
Served asset /application.css - 200 OK (2ms)
|
|
600
|
+
|
|
601
|
+
|
|
602
|
+
Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2013-08-18 23:21:02 -0700
|
|
603
|
+
Served asset /jquery.js - 200 OK (42ms)
|
|
604
|
+
|
|
605
|
+
|
|
606
|
+
Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2013-08-18 23:21:02 -0700
|
|
607
|
+
Served asset /application.js - 200 OK (7ms)
|
|
608
|
+
|
|
609
|
+
|
|
610
|
+
Started GET "/assets/info.js?body=1" for 127.0.0.1 at 2013-08-18 23:21:02 -0700
|
|
611
|
+
Served asset /info.js - 200 OK (1ms)
|
|
612
|
+
|
|
613
|
+
|
|
614
|
+
Started GET "/assets/info.css?body=1" for 127.0.0.1 at 2013-08-18 23:21:02 -0700
|
|
615
|
+
Served asset /info.css - 200 OK (1ms)
|
|
616
|
+
|
|
617
|
+
|
|
618
|
+
Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2013-08-18 23:21:02 -0700
|
|
619
|
+
Served asset /jquery_ujs.js - 200 OK (3ms)
|
|
620
|
+
|
|
621
|
+
|
|
622
|
+
Started GET "/static_blocks" for 127.0.0.1 at 2013-08-18 23:21:04 -0700
|
|
623
|
+
|
|
624
|
+
|
|
625
|
+
Started GET "/static_blocks/en/snippets" for 127.0.0.1 at 2013-08-18 23:21:04 -0700
|
|
626
|
+
Processing by StaticBlocks::SnippetsController#index as HTML
|
|
627
|
+
Parameters: {"locale"=>"en"}
|
|
628
|
+
[1m[36mStaticBlocks::Snippet Load (0.2ms)[0m [1mSELECT DISTINCT "static_blocks_snippets".* FROM "static_blocks_snippets" [0m
|
|
629
|
+
[1m[35mStaticBlocks::Snippet Load (0.2ms)[0m SELECT DISTINCT "static_blocks_snippets".* FROM "static_blocks_snippets" ORDER BY title asc LIMIT 10 OFFSET 0
|
|
630
|
+
[1m[36mStaticBlocks::Snippet::Translation Load (0.2ms)[0m [1mSELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."static_blocks_snippet_id" = 1[0m
|
|
631
|
+
Rendered /home/travis/code/static_blocks/app/views/static_blocks/snippets/index.html.erb within layouts/static_blocks/application (85.0ms)
|
|
632
|
+
Completed 200 OK in 218ms (Views: 213.6ms | ActiveRecord: 2.3ms)
|
|
633
|
+
|
|
634
|
+
|
|
635
|
+
Started GET "/assets/static_blocks/application.css?body=1" for 127.0.0.1 at 2013-08-18 23:21:05 -0700
|
|
636
|
+
Served asset /static_blocks/application.css - 200 OK (24ms)
|
|
637
|
+
|
|
638
|
+
|
|
639
|
+
Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2013-08-18 23:21:05 -0700
|
|
640
|
+
Served asset /jquery_ujs.js - 304 Not Modified (0ms)
|
|
641
|
+
|
|
642
|
+
|
|
643
|
+
Started GET "/assets/bootstrap-wysihtml5/index.css?body=1" for 127.0.0.1 at 2013-08-18 23:21:05 -0700
|
|
644
|
+
Served asset /bootstrap-wysihtml5/index.css - 200 OK (6ms)
|
|
645
|
+
|
|
646
|
+
|
|
647
|
+
Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2013-08-18 23:21:05 -0700
|
|
648
|
+
Served asset /jquery.js - 304 Not Modified (0ms)
|
|
649
|
+
|
|
650
|
+
|
|
651
|
+
Started GET "/assets/bootstrap-wysihtml5/core.css?body=1" for 127.0.0.1 at 2013-08-18 23:21:05 -0700
|
|
652
|
+
Served asset /bootstrap-wysihtml5/core.css - 200 OK (2ms)
|
|
653
|
+
|
|
654
|
+
|
|
655
|
+
Started GET "/assets/static_blocks/static_blocks.css?body=1" for 127.0.0.1 at 2013-08-18 23:21:05 -0700
|
|
656
|
+
Served asset /static_blocks/static_blocks.css - 200 OK (9ms)
|
|
657
|
+
|
|
658
|
+
|
|
659
|
+
Started GET "/assets/static_blocks/static_blocks.js?body=1" for 127.0.0.1 at 2013-08-18 23:21:05 -0700
|
|
660
|
+
Served asset /static_blocks/static_blocks.js - 200 OK (5ms)
|
|
661
|
+
|
|
662
|
+
|
|
663
|
+
Started GET "/assets/bootstrap-transition.js?body=1" for 127.0.0.1 at 2013-08-18 23:21:05 -0700
|
|
664
|
+
Served asset /bootstrap-transition.js - 200 OK (3ms)
|
|
665
|
+
|
|
666
|
+
|
|
667
|
+
Started GET "/assets/bootstrap-affix.js?body=1" for 127.0.0.1 at 2013-08-18 23:21:05 -0700
|
|
668
|
+
Served asset /bootstrap-affix.js - 200 OK (1ms)
|
|
669
|
+
|
|
670
|
+
|
|
671
|
+
Started GET "/assets/bootstrap-alert.js?body=1" for 127.0.0.1 at 2013-08-18 23:21:05 -0700
|
|
672
|
+
Served asset /bootstrap-alert.js - 200 OK (1ms)
|
|
673
|
+
|
|
674
|
+
|
|
675
|
+
Started GET "/assets/bootstrap-button.js?body=1" for 127.0.0.1 at 2013-08-18 23:21:05 -0700
|
|
676
|
+
Served asset /bootstrap-button.js - 200 OK (2ms)
|
|
677
|
+
|
|
678
|
+
|
|
679
|
+
Started GET "/assets/bootstrap-carousel.js?body=1" for 127.0.0.1 at 2013-08-18 23:21:05 -0700
|
|
680
|
+
Served asset /bootstrap-carousel.js - 200 OK (3ms)
|
|
681
|
+
|
|
682
|
+
|
|
683
|
+
Started GET "/assets/bootstrap-collapse.js?body=1" for 127.0.0.1 at 2013-08-18 23:21:05 -0700
|
|
684
|
+
Served asset /bootstrap-collapse.js - 200 OK (6ms)
|
|
685
|
+
|
|
686
|
+
|
|
687
|
+
Started GET "/assets/bootstrap-dropdown.js?body=1" for 127.0.0.1 at 2013-08-18 23:21:05 -0700
|
|
688
|
+
Served asset /bootstrap-dropdown.js - 200 OK (3ms)
|
|
689
|
+
|
|
690
|
+
|
|
691
|
+
Started GET "/assets/bootstrap-modal.js?body=1" for 127.0.0.1 at 2013-08-18 23:21:05 -0700
|
|
692
|
+
Served asset /bootstrap-modal.js - 200 OK (2ms)
|
|
693
|
+
|
|
694
|
+
|
|
695
|
+
Started GET "/assets/bootstrap-scrollspy.js?body=1" for 127.0.0.1 at 2013-08-18 23:21:05 -0700
|
|
696
|
+
Served asset /bootstrap-scrollspy.js - 200 OK (2ms)
|
|
697
|
+
|
|
698
|
+
|
|
699
|
+
Started GET "/assets/bootstrap-tab.js?body=1" for 127.0.0.1 at 2013-08-18 23:21:05 -0700
|
|
700
|
+
Served asset /bootstrap-tab.js - 200 OK (1ms)
|
|
701
|
+
|
|
702
|
+
|
|
703
|
+
Started GET "/assets/bootstrap-tooltip.js?body=1" for 127.0.0.1 at 2013-08-18 23:21:05 -0700
|
|
704
|
+
Served asset /bootstrap-tooltip.js - 200 OK (2ms)
|
|
705
|
+
|
|
706
|
+
|
|
707
|
+
Started GET "/assets/bootstrap-popover.js?body=1" for 127.0.0.1 at 2013-08-18 23:21:05 -0700
|
|
708
|
+
Served asset /bootstrap-popover.js - 200 OK (1ms)
|
|
709
|
+
|
|
710
|
+
|
|
711
|
+
Started GET "/assets/bootstrap-typeahead.js?body=1" for 127.0.0.1 at 2013-08-18 23:21:05 -0700
|
|
712
|
+
Served asset /bootstrap-typeahead.js - 200 OK (3ms)
|
|
713
|
+
|
|
714
|
+
|
|
715
|
+
Started GET "/assets/bootstrap.js?body=1" for 127.0.0.1 at 2013-08-18 23:21:05 -0700
|
|
716
|
+
Served asset /bootstrap.js - 200 OK (56ms)
|
|
717
|
+
|
|
718
|
+
|
|
719
|
+
Started GET "/assets/bootstrap-wysihtml5/wysihtml5.js?body=1" for 127.0.0.1 at 2013-08-18 23:21:05 -0700
|
|
720
|
+
Served asset /bootstrap-wysihtml5/wysihtml5.js - 200 OK (16ms)
|
|
721
|
+
|
|
722
|
+
|
|
723
|
+
Started GET "/assets/static_blocks/application.js?body=1" for 127.0.0.1 at 2013-08-18 23:21:05 -0700
|
|
724
|
+
Served asset /static_blocks/application.js - 200 OK (23ms)
|
|
725
|
+
|
|
726
|
+
|
|
727
|
+
Started GET "/assets/bootstrap-wysihtml5/index.js?body=1" for 127.0.0.1 at 2013-08-18 23:21:05 -0700
|
|
728
|
+
Served asset /bootstrap-wysihtml5/index.js - 200 OK (3ms)
|
|
729
|
+
|
|
730
|
+
|
|
731
|
+
Started GET "/assets/bootstrap-wysihtml5/core.js?body=1" for 127.0.0.1 at 2013-08-18 23:21:05 -0700
|
|
732
|
+
Served asset /bootstrap-wysihtml5/core.js - 200 OK (1ms)
|
|
733
|
+
|
|
734
|
+
|
|
735
|
+
Started GET "/static_blocks/en/snippets/export.csv" for 127.0.0.1 at 2013-08-18 23:21:15 -0700
|
|
736
|
+
Processing by StaticBlocks::SnippetsController#export as CSV
|
|
737
|
+
Parameters: {"locale"=>"en"}
|
|
738
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "static_blocks_snippets"
|
|
739
|
+
[1m[36m (0.1ms)[0m [1mselect * from static_blocks_snippets[0m
|
|
740
|
+
Rendered text template (0.0ms)
|
|
741
|
+
Sent data Dummy-snippets-2013-08-18-23-21-15.csv (1.5ms)
|
|
742
|
+
Completed 200 OK in 5ms (Views: 1.4ms | ActiveRecord: 0.2ms)
|
|
743
|
+
|
|
744
|
+
|
|
745
|
+
Started GET "/static_blocks/en/snippets/export_translations.csv" for 127.0.0.1 at 2013-08-18 23:21:16 -0700
|
|
746
|
+
Processing by StaticBlocks::SnippetsController#export_translations as CSV
|
|
747
|
+
Parameters: {"locale"=>"en"}
|
|
748
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "static_blocks_snippets"
|
|
749
|
+
[1m[36m (0.1ms)[0m [1m
|
|
750
|
+
SELECT s.title, t.* FROM static_blocks_snippet_translations t
|
|
751
|
+
INNER JOIN static_blocks_snippets s
|
|
752
|
+
ON t.static_blocks_snippet_id = s.id
|
|
753
|
+
[0m
|
|
754
|
+
Rendered text template (0.0ms)
|
|
755
|
+
Sent data Dummy-translations-2013-08-18-23-21-16.csv (0.6ms)
|
|
756
|
+
Completed 200 OK in 2ms (Views: 0.5ms | ActiveRecord: 0.3ms)
|
|
757
|
+
|
|
758
|
+
|
|
759
|
+
Started POST "/static_blocks/en/snippets/import" for 127.0.0.1 at 2013-08-18 23:21:25 -0700
|
|
760
|
+
Processing by StaticBlocks::SnippetsController#import as HTML
|
|
761
|
+
Parameters: {"utf8"=>"✓", "authenticity_token"=>"SKaJ0NBMY0X15yvN8PQi8eUITvqhaYqe1SKXIUo2LjA=", "file"=>#<ActionDispatch::Http::UploadedFile:0x0000000520ab70 @original_filename="Dummy-snippets-2013-08-18-23-21-15.csv", @content_type="text/csv", @headers="Content-Disposition: form-data; name=\"file\"; filename=\"Dummy-snippets-2013-08-18-23-21-15.csv\"\r\nContent-Type: text/csv\r\n", @tempfile=#<Tempfile:/tmp/RackMultipart20130818-20278-1lc4weh>>, "commit"=>"Import snippets", "locale"=>"en"}
|
|
762
|
+
Redirected to http://localhost:3000/static_blocks/en
|
|
763
|
+
Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
|
|
764
|
+
|
|
765
|
+
|
|
766
|
+
Started GET "/static_blocks/en" for 127.0.0.1 at 2013-08-18 23:21:25 -0700
|
|
767
|
+
Processing by StaticBlocks::SnippetsController#index as HTML
|
|
768
|
+
Parameters: {"locale"=>"en"}
|
|
769
|
+
[1m[35mStaticBlocks::Snippet Load (0.2ms)[0m SELECT DISTINCT "static_blocks_snippets".* FROM "static_blocks_snippets"
|
|
770
|
+
[1m[36mStaticBlocks::Snippet Load (0.2ms)[0m [1mSELECT DISTINCT "static_blocks_snippets".* FROM "static_blocks_snippets" ORDER BY title asc LIMIT 10 OFFSET 0[0m
|
|
771
|
+
[1m[35mStaticBlocks::Snippet::Translation Load (0.2ms)[0m SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."static_blocks_snippet_id" = 1
|
|
772
|
+
Rendered /home/travis/code/static_blocks/app/views/static_blocks/snippets/index.html.erb within layouts/static_blocks/application (18.7ms)
|
|
773
|
+
Completed 200 OK in 78ms (Views: 41.4ms | ActiveRecord: 0.5ms)
|
|
774
|
+
|
|
775
|
+
|
|
776
|
+
Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2013-08-18 23:21:25 -0700
|
|
777
|
+
Served asset /jquery.js - 304 Not Modified (0ms)
|
|
778
|
+
|
|
779
|
+
|
|
780
|
+
Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2013-08-18 23:21:25 -0700
|
|
781
|
+
Served asset /jquery_ujs.js - 304 Not Modified (0ms)
|
|
782
|
+
|
|
783
|
+
|
|
784
|
+
Started POST "/static_blocks/en/snippets/import" for 127.0.0.1 at 2013-08-18 23:22:20 -0700
|
|
785
|
+
Processing by StaticBlocks::SnippetsController#import as HTML
|
|
786
|
+
Parameters: {"utf8"=>"✓", "authenticity_token"=>"SKaJ0NBMY0X15yvN8PQi8eUITvqhaYqe1SKXIUo2LjA=", "file"=>#<ActionDispatch::Http::UploadedFile:0x007f3cdc0811a8 @original_filename="Dummy-snippets-2013-08-18-23-21-15.csv", @content_type="text/csv", @headers="Content-Disposition: form-data; name=\"file\"; filename=\"Dummy-snippets-2013-08-18-23-21-15.csv\"\r\nContent-Type: text/csv\r\n", @tempfile=#<Tempfile:/tmp/RackMultipart20130818-20278-17xvwmz>>, "commit"=>"Import snippets", "locale"=>"en"}
|
|
787
|
+
[1m[36mStaticBlocks::Snippet Load (0.1ms)[0m [1mSELECT "static_blocks_snippets".* FROM "static_blocks_snippets" WHERE "static_blocks_snippets"."title" = 'hi' LIMIT 1[0m
|
|
788
|
+
[1m[35mStaticBlocks::Snippet::Translation Load (0.1ms)[0m SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."static_blocks_snippet_id" = 1
|
|
789
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
|
790
|
+
[1m[35mStaticBlocks::Snippet Exists (0.2ms)[0m SELECT 1 AS one FROM "static_blocks_snippets" WHERE ("static_blocks_snippets"."title" = 'hi' AND "static_blocks_snippets"."id" != 1) LIMIT 1
|
|
791
|
+
[1m[36m (0.3ms)[0m [1mUPDATE "static_blocks_snippets" SET "content" = 'hi', "updated_at" = '2013-08-19 06:22:20.236999' WHERE "static_blocks_snippets"."id" = 1[0m
|
|
792
|
+
[1m[35mStaticBlocks::Snippet::Translation Load (0.1ms)[0m SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."static_blocks_snippet_id" = 1 AND "static_blocks_snippet_translations"."locale" = 'en' LIMIT 1
|
|
793
|
+
[1m[36mStaticBlocks::Snippet::Translation Load (0.2ms)[0m [1mSELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."id" = ? LIMIT 1[0m [["id", 1]]
|
|
794
|
+
[1m[35m (19.6ms)[0m commit transaction
|
|
795
|
+
Redirected to http://localhost:3000/static_blocks/en
|
|
796
|
+
Completed 302 Found in 61ms (ActiveRecord: 21.4ms)
|
|
797
|
+
|
|
798
|
+
|
|
799
|
+
Started GET "/static_blocks/en" for 127.0.0.1 at 2013-08-18 23:22:20 -0700
|
|
800
|
+
Processing by StaticBlocks::SnippetsController#index as HTML
|
|
801
|
+
Parameters: {"locale"=>"en"}
|
|
802
|
+
[1m[36mStaticBlocks::Snippet Load (0.3ms)[0m [1mSELECT DISTINCT "static_blocks_snippets".* FROM "static_blocks_snippets" [0m
|
|
803
|
+
[1m[35mStaticBlocks::Snippet Load (0.2ms)[0m SELECT DISTINCT "static_blocks_snippets".* FROM "static_blocks_snippets" ORDER BY title asc LIMIT 10 OFFSET 0
|
|
804
|
+
[1m[36mStaticBlocks::Snippet::Translation Load (0.1ms)[0m [1mSELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."static_blocks_snippet_id" = 1[0m
|
|
805
|
+
Rendered /home/travis/code/static_blocks/app/views/static_blocks/snippets/index.html.erb within layouts/static_blocks/application (54.6ms)
|
|
806
|
+
Completed 200 OK in 72ms (Views: 70.4ms | ActiveRecord: 0.5ms)
|
|
807
|
+
|
|
808
|
+
|
|
809
|
+
Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2013-08-18 23:22:20 -0700
|
|
810
|
+
Served asset /jquery.js - 304 Not Modified (0ms)
|
|
811
|
+
|
|
812
|
+
|
|
813
|
+
Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2013-08-18 23:22:20 -0700
|
|
814
|
+
Served asset /jquery_ujs.js - 304 Not Modified (0ms)
|
|
815
|
+
|
|
816
|
+
|
|
817
|
+
Started POST "/static_blocks/en/snippets/import" for 127.0.0.1 at 2013-08-18 23:22:33 -0700
|
|
818
|
+
Processing by StaticBlocks::SnippetsController#import as HTML
|
|
819
|
+
Parameters: {"utf8"=>"✓", "authenticity_token"=>"SKaJ0NBMY0X15yvN8PQi8eUITvqhaYqe1SKXIUo2LjA=", "file"=>#<ActionDispatch::Http::UploadedFile:0x00000005125c00 @original_filename="Dummy-translations-2013-08-18-23-21-16.csv", @content_type="text/csv", @headers="Content-Disposition: form-data; name=\"file\"; filename=\"Dummy-translations-2013-08-18-23-21-16.csv\"\r\nContent-Type: text/csv\r\n", @tempfile=#<Tempfile:/tmp/RackMultipart20130818-20278-yw3br9>>, "commit"=>"Import snippets", "locale"=>"en"}
|
|
820
|
+
Redirected to http://localhost:3000/static_blocks/en
|
|
821
|
+
Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
|
|
822
|
+
|
|
823
|
+
|
|
824
|
+
Started GET "/static_blocks/en" for 127.0.0.1 at 2013-08-18 23:22:33 -0700
|
|
825
|
+
Processing by StaticBlocks::SnippetsController#index as HTML
|
|
826
|
+
Parameters: {"locale"=>"en"}
|
|
827
|
+
[1m[35mStaticBlocks::Snippet Load (0.2ms)[0m SELECT DISTINCT "static_blocks_snippets".* FROM "static_blocks_snippets"
|
|
828
|
+
[1m[36mStaticBlocks::Snippet Load (0.2ms)[0m [1mSELECT DISTINCT "static_blocks_snippets".* FROM "static_blocks_snippets" ORDER BY title asc LIMIT 10 OFFSET 0[0m
|
|
829
|
+
[1m[35mStaticBlocks::Snippet::Translation Load (0.1ms)[0m SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."static_blocks_snippet_id" = 1
|
|
830
|
+
Rendered /home/travis/code/static_blocks/app/views/static_blocks/snippets/index.html.erb within layouts/static_blocks/application (14.3ms)
|
|
831
|
+
Completed 200 OK in 33ms (Views: 30.8ms | ActiveRecord: 0.4ms)
|
|
832
|
+
|
|
833
|
+
|
|
834
|
+
Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2013-08-18 23:22:33 -0700
|
|
835
|
+
Served asset /jquery_ujs.js - 304 Not Modified (0ms)
|
|
836
|
+
|
|
837
|
+
|
|
838
|
+
Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2013-08-18 23:22:33 -0700
|
|
839
|
+
Served asset /jquery.js - 304 Not Modified (0ms)
|
|
840
|
+
|
|
841
|
+
|
|
842
|
+
Started POST "/static_blocks/en/snippets/import_translations" for 127.0.0.1 at 2013-08-18 23:22:39 -0700
|
|
843
|
+
Processing by StaticBlocks::SnippetsController#import_translations as HTML
|
|
844
|
+
Parameters: {"utf8"=>"✓", "authenticity_token"=>"SKaJ0NBMY0X15yvN8PQi8eUITvqhaYqe1SKXIUo2LjA=", "file"=>#<ActionDispatch::Http::UploadedFile:0x007f3cdc0c1488 @original_filename="Dummy-translations-2013-08-18-23-21-16.csv", @content_type="text/csv", @headers="Content-Disposition: form-data; name=\"file\"; filename=\"Dummy-translations-2013-08-18-23-21-16.csv\"\r\nContent-Type: text/csv\r\n", @tempfile=#<Tempfile:/tmp/RackMultipart20130818-20278-72jusg>>, "commit"=>"Import translations", "locale"=>"en"}
|
|
845
|
+
[1m[36m (61.1ms)[0m [1mDELETE FROM static_blocks_snippet_translations[0m
|
|
846
|
+
[1m[35mStaticBlocks::Snippet Load (0.2ms)[0m SELECT "static_blocks_snippets".* FROM "static_blocks_snippets" WHERE "static_blocks_snippets"."title" = 'hi' LIMIT 1
|
|
847
|
+
[1m[36m (33.9ms)[0m [1m
|
|
848
|
+
INSERT INTO static_blocks_snippet_translations
|
|
849
|
+
(static_blocks_snippet_id, locale, content, created_at, updated_at) VALUES
|
|
850
|
+
(1, 'en', 'hi', '2013-08-19 02:15:22.791938', '2013-08-19 02:15:22.791938')[0m
|
|
851
|
+
Redirected to http://localhost:3000/static_blocks/en
|
|
852
|
+
Completed 302 Found in 101ms (ActiveRecord: 95.1ms)
|
|
853
|
+
|
|
854
|
+
|
|
855
|
+
Started GET "/static_blocks/en" for 127.0.0.1 at 2013-08-18 23:22:39 -0700
|
|
856
|
+
Processing by StaticBlocks::SnippetsController#index as HTML
|
|
857
|
+
Parameters: {"locale"=>"en"}
|
|
858
|
+
[1m[35mStaticBlocks::Snippet Load (0.2ms)[0m SELECT DISTINCT "static_blocks_snippets".* FROM "static_blocks_snippets"
|
|
859
|
+
[1m[36mStaticBlocks::Snippet Load (0.2ms)[0m [1mSELECT DISTINCT "static_blocks_snippets".* FROM "static_blocks_snippets" ORDER BY title asc LIMIT 10 OFFSET 0[0m
|
|
860
|
+
[1m[35mStaticBlocks::Snippet::Translation Load (0.1ms)[0m SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."static_blocks_snippet_id" = 1
|
|
861
|
+
Rendered /home/travis/code/static_blocks/app/views/static_blocks/snippets/index.html.erb within layouts/static_blocks/application (18.4ms)
|
|
862
|
+
Completed 200 OK in 37ms (Views: 35.4ms | ActiveRecord: 0.5ms)
|
|
863
|
+
|
|
864
|
+
|
|
865
|
+
Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2013-08-18 23:22:39 -0700
|
|
866
|
+
Served asset /jquery.js - 304 Not Modified (0ms)
|
|
867
|
+
|
|
868
|
+
|
|
869
|
+
Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2013-08-18 23:22:39 -0700
|
|
870
|
+
Served asset /jquery_ujs.js - 304 Not Modified (0ms)
|
|
871
|
+
|
|
872
|
+
|
|
873
|
+
Started GET "/static_blocks/en/snippets/1/edit" for 127.0.0.1 at 2013-08-18 23:22:41 -0700
|
|
874
|
+
Processing by StaticBlocks::SnippetsController#edit as HTML
|
|
875
|
+
Parameters: {"locale"=>"en", "id"=>"1"}
|
|
876
|
+
[1m[36mStaticBlocks::Snippet Load (0.2ms)[0m [1mSELECT "static_blocks_snippets".* FROM "static_blocks_snippets" WHERE "static_blocks_snippets"."id" = ? LIMIT 1[0m [["id", "1"]]
|
|
877
|
+
[1m[35mStaticBlocks::Snippet::Translation Load (0.2ms)[0m SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."static_blocks_snippet_id" = 1
|
|
878
|
+
Rendered /home/travis/code/static_blocks/app/views/static_blocks/snippets/_form.html.erb (4.6ms)
|
|
879
|
+
Rendered /home/travis/code/static_blocks/app/views/static_blocks/snippets/edit.html.erb within layouts/static_blocks/application (5.5ms)
|
|
880
|
+
Completed 200 OK in 23ms (Views: 21.7ms | ActiveRecord: 0.4ms)
|
|
881
|
+
|
|
882
|
+
|
|
883
|
+
Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2013-08-18 23:22:41 -0700
|
|
884
|
+
Served asset /jquery_ujs.js - 304 Not Modified (0ms)
|
|
885
|
+
|
|
886
|
+
|
|
887
|
+
Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2013-08-18 23:22:41 -0700
|
|
888
|
+
Served asset /jquery.js - 304 Not Modified (0ms)
|
|
889
|
+
|
|
890
|
+
|
|
891
|
+
Started GET "/assets/bootstrap-wysihtml5/wysiwyg-color.css" for 127.0.0.1 at 2013-08-18 23:22:41 -0700
|
|
892
|
+
Served asset /bootstrap-wysihtml5/wysiwyg-color.css - 200 OK (2ms)
|
|
893
|
+
|
|
894
|
+
|
|
895
|
+
Started GET "/assets/glyphicons-halflings.png" for 127.0.0.1 at 2013-08-18 23:22:41 -0700
|
|
896
|
+
Served asset /glyphicons-halflings.png - 200 OK (4ms)
|
|
897
|
+
|
|
898
|
+
|
|
899
|
+
Started GET "/static_blocks/en/snippets" for 127.0.0.1 at 2013-08-18 23:22:42 -0700
|
|
900
|
+
Processing by StaticBlocks::SnippetsController#index as HTML
|
|
901
|
+
Parameters: {"locale"=>"en"}
|
|
902
|
+
[1m[36mStaticBlocks::Snippet Load (0.2ms)[0m [1mSELECT DISTINCT "static_blocks_snippets".* FROM "static_blocks_snippets" [0m
|
|
903
|
+
[1m[35mStaticBlocks::Snippet Load (0.2ms)[0m SELECT DISTINCT "static_blocks_snippets".* FROM "static_blocks_snippets" ORDER BY title asc LIMIT 10 OFFSET 0
|
|
904
|
+
[1m[36mStaticBlocks::Snippet::Translation Load (0.1ms)[0m [1mSELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."static_blocks_snippet_id" = 1[0m
|
|
905
|
+
Rendered /home/travis/code/static_blocks/app/views/static_blocks/snippets/index.html.erb within layouts/static_blocks/application (57.9ms)
|
|
906
|
+
Completed 200 OK in 74ms (Views: 73.0ms | ActiveRecord: 0.5ms)
|
|
907
|
+
|
|
908
|
+
|
|
909
|
+
Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2013-08-18 23:22:42 -0700
|
|
910
|
+
Served asset /jquery.js - 304 Not Modified (0ms)
|
|
911
|
+
|
|
912
|
+
|
|
913
|
+
Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2013-08-18 23:22:42 -0700
|
|
914
|
+
Served asset /jquery_ujs.js - 304 Not Modified (0ms)
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
20278
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: static_blocks
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.2.
|
|
4
|
+
version: 1.2.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Travis Luong
|
|
@@ -421,6 +421,7 @@ files:
|
|
|
421
421
|
- spec/dummy/tmp/cache/assets/CFB/C30/sprockets%2F2de3475255d131235e621a623d7bceab
|
|
422
422
|
- spec/dummy/tmp/cache/assets/DF3/040/sprockets%2Feccc3dc40bdf47acdeca4801e4184439
|
|
423
423
|
- spec/dummy/tmp/cache/assets/E57/6D0/sprockets%2Fc8b55fceb98a2eb3aed066a0b8db5c2e
|
|
424
|
+
- spec/dummy/tmp/pids/server.pid
|
|
424
425
|
- spec/dummy/db/migrate/20130611042521_create_static_blocks_static_blocks.static_blocks.rb
|
|
425
426
|
- spec/dummy/db/migrate/20130612035223_create_static_block_translations.static_blocks.rb
|
|
426
427
|
- spec/dummy/db/development.sqlite3
|
|
@@ -602,6 +603,7 @@ test_files:
|
|
|
602
603
|
- spec/dummy/tmp/cache/assets/CFB/C30/sprockets%2F2de3475255d131235e621a623d7bceab
|
|
603
604
|
- spec/dummy/tmp/cache/assets/DF3/040/sprockets%2Feccc3dc40bdf47acdeca4801e4184439
|
|
604
605
|
- spec/dummy/tmp/cache/assets/E57/6D0/sprockets%2Fc8b55fceb98a2eb3aed066a0b8db5c2e
|
|
606
|
+
- spec/dummy/tmp/pids/server.pid
|
|
605
607
|
- spec/dummy/db/migrate/20130611042521_create_static_blocks_static_blocks.static_blocks.rb
|
|
606
608
|
- spec/dummy/db/migrate/20130612035223_create_static_block_translations.static_blocks.rb
|
|
607
609
|
- spec/dummy/db/development.sqlite3
|