gettext_simple_rails 0.0.9 → 0.0.10
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/gettext_simple_rails/cache_handler.rb +5 -3
- data/lib/gettext_simple_rails/i18n_injector.rb +7 -65
- data/lib/gettext_simple_rails/translators/active_record_attributes_translator.rb +36 -0
- data/lib/gettext_simple_rails/translators/{active_record_translator.rb → active_record_validations_translator.rb} +5 -3
- data/lib/gettext_simple_rails/translators/globalize_translator.rb +32 -0
- data/lib/gettext_simple_rails/version.rb +1 -1
- data/lib/tasks/gettext_simple_rails_tasks.rake +0 -42
- data/spec/{active_record_spec.rb → active_record_validations_spec.rb} +2 -2
- data/spec/dummy/app/models/user.rb +2 -1
- data/spec/dummy/config/application.rb +1 -0
- data/spec/dummy/config/locales_gettext/static_translation_file.json +1 -1
- data/spec/dummy/db/migrate/20140515092420_create_user_translations.rb +11 -0
- data/spec/dummy/db/schema.rb +9 -5
- data/spec/dummy/db/test.sqlite3 +0 -0
- data/spec/dummy/lib/gettext_simple_rails/active_record_attributes_translator_translations.rb +40 -0
- data/spec/dummy/lib/gettext_simple_rails/active_record_validations_translator_translations.rb +18 -0
- data/spec/dummy/lib/gettext_simple_rails/date_translator_translations.rb +60 -0
- data/spec/dummy/lib/gettext_simple_rails/globalize_translator_translations.rb +6 -0
- data/spec/dummy/lib/gettext_simple_rails/number_translator_translations.rb +48 -0
- data/spec/dummy/log/test.log +440 -0
- data/spec/gettext_simple_rails_spec.rb +10 -11
- data/spec/globalize_translator_spec.rb +20 -0
- metadata +35 -13
- data/spec/dummy/db/development.sqlite3 +0 -0
- data/spec/dummy/lib/gettext_simple_rails/models/role_model_translations.rb +0 -21
- data/spec/dummy/lib/gettext_simple_rails/models/user_model_translations.rb +0 -22
- data/spec/dummy/log/development.log +0 -26
data/spec/dummy/log/test.log
CHANGED
@@ -535,3 +535,443 @@
|
|
535
535
|
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
536
536
|
[1m[35m (0.0ms)[0m begin transaction
|
537
537
|
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
538
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
539
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
540
|
+
[1m[35m (0.1ms)[0m begin transaction
|
541
|
+
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
|
542
|
+
[1m[35m (0.2ms)[0m begin transaction
|
543
|
+
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
|
544
|
+
[1m[35m (0.2ms)[0m begin transaction
|
545
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
546
|
+
[1m[35m (0.0ms)[0m begin transaction
|
547
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
548
|
+
[1m[35m (0.0ms)[0m begin transaction
|
549
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
550
|
+
[1m[35m (0.0ms)[0m begin transaction
|
551
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
552
|
+
[1m[35m (0.0ms)[0m begin transaction
|
553
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
554
|
+
[1m[35m (0.0ms)[0m begin transaction
|
555
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
556
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
557
|
+
[1m[35m (0.1ms)[0m begin transaction
|
558
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
559
|
+
[1m[35m (0.0ms)[0m begin transaction
|
560
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
561
|
+
[1m[35m (0.1ms)[0m begin transaction
|
562
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
563
|
+
[1m[35m (0.0ms)[0m begin transaction
|
564
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
565
|
+
[1m[35m (0.0ms)[0m begin transaction
|
566
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
567
|
+
[1m[35m (0.0ms)[0m begin transaction
|
568
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
569
|
+
[1m[35m (0.1ms)[0m begin transaction
|
570
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
571
|
+
[1m[35m (0.1ms)[0m begin transaction
|
572
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
573
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
574
|
+
Migrating to CreateUserTranslations (20140515092420)
|
575
|
+
[1m[35m (0.1ms)[0m begin transaction
|
576
|
+
[1m[36m (0.3ms)[0m [1mCREATE TABLE "user_translations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer NOT NULL, "locale" varchar(255) NOT NULL, "created_at" datetime, "updated_at" datetime) [0m
|
577
|
+
[1m[35m (0.1ms)[0m ALTER TABLE "user_translations" ADD "title" varchar(255)
|
578
|
+
[1m[36m (0.1ms)[0m [1mCREATE INDEX "index_user_translations_on_user_id" ON "user_translations" ("user_id")[0m
|
579
|
+
[1m[35m (0.1ms)[0m CREATE INDEX "index_user_translations_on_locale" ON "user_translations" ("locale")
|
580
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20140515092420"]]
|
581
|
+
[1m[35m (113.7ms)[0m commit transaction
|
582
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
583
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
584
|
+
[1m[35m (0.1ms)[0m begin transaction
|
585
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
586
|
+
[1m[35m (0.0ms)[0m begin transaction
|
587
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
588
|
+
[1m[35m (0.0ms)[0m begin transaction
|
589
|
+
[1m[36m (0.3ms)[0m [1mrollback transaction[0m
|
590
|
+
[1m[35m (0.2ms)[0m begin transaction
|
591
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
592
|
+
[1m[35m (0.0ms)[0m begin transaction
|
593
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
594
|
+
[1m[35m (0.0ms)[0m begin transaction
|
595
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
596
|
+
[1m[35m (0.1ms)[0m begin transaction
|
597
|
+
[1m[36m (0.3ms)[0m [1mrollback transaction[0m
|
598
|
+
[1m[35m (0.2ms)[0m begin transaction
|
599
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
600
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
601
|
+
[1m[35m (0.1ms)[0m begin transaction
|
602
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
603
|
+
[1m[35m (0.0ms)[0m begin transaction
|
604
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
605
|
+
[1m[35m (0.0ms)[0m begin transaction
|
606
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
607
|
+
[1m[35m (0.1ms)[0m begin transaction
|
608
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
609
|
+
[1m[35m (0.0ms)[0m begin transaction
|
610
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
611
|
+
[1m[35m (0.0ms)[0m begin transaction
|
612
|
+
[1m[36m (0.3ms)[0m [1mrollback transaction[0m
|
613
|
+
[1m[35m (0.2ms)[0m begin transaction
|
614
|
+
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
|
615
|
+
[1m[35m (0.2ms)[0m begin transaction
|
616
|
+
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
|
617
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
618
|
+
[1m[35m (0.1ms)[0m begin transaction
|
619
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
620
|
+
[1m[35m (0.0ms)[0m begin transaction
|
621
|
+
[1m[36m (0.3ms)[0m [1mrollback transaction[0m
|
622
|
+
[1m[35m (0.2ms)[0m begin transaction
|
623
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
624
|
+
[1m[35m (0.0ms)[0m begin transaction
|
625
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
626
|
+
[1m[35m (0.0ms)[0m begin transaction
|
627
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
628
|
+
[1m[35m (0.1ms)[0m begin transaction
|
629
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
630
|
+
[1m[35m (0.0ms)[0m begin transaction
|
631
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
632
|
+
[1m[35m (0.0ms)[0m begin transaction
|
633
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
634
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
635
|
+
[1m[35m (0.1ms)[0m begin transaction
|
636
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
637
|
+
[1m[35m (0.0ms)[0m begin transaction
|
638
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
639
|
+
[1m[35m (0.0ms)[0m begin transaction
|
640
|
+
[1m[36m (0.3ms)[0m [1mrollback transaction[0m
|
641
|
+
[1m[35m (0.2ms)[0m begin transaction
|
642
|
+
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
|
643
|
+
[1m[35m (0.2ms)[0m begin transaction
|
644
|
+
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
|
645
|
+
[1m[35m (0.2ms)[0m begin transaction
|
646
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
647
|
+
[1m[35m (0.0ms)[0m begin transaction
|
648
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
649
|
+
[1m[35m (0.0ms)[0m begin transaction
|
650
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
651
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
652
|
+
[1m[35m (0.1ms)[0m begin transaction
|
653
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
654
|
+
[1m[35m (0.0ms)[0m begin transaction
|
655
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
656
|
+
[1m[35m (0.0ms)[0m begin transaction
|
657
|
+
[1m[36m (0.3ms)[0m [1mrollback transaction[0m
|
658
|
+
[1m[35m (0.2ms)[0m begin transaction
|
659
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
660
|
+
[1m[35m (0.0ms)[0m begin transaction
|
661
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
662
|
+
[1m[35m (0.0ms)[0m begin transaction
|
663
|
+
[1m[36m (0.3ms)[0m [1mrollback transaction[0m
|
664
|
+
[1m[35m (0.2ms)[0m begin transaction
|
665
|
+
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
|
666
|
+
[1m[35m (0.2ms)[0m begin transaction
|
667
|
+
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
|
668
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
669
|
+
[1m[35m (0.1ms)[0m begin transaction
|
670
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
671
|
+
[1m[35m (0.0ms)[0m begin transaction
|
672
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
673
|
+
[1m[35m (0.0ms)[0m begin transaction
|
674
|
+
[1m[36m (0.3ms)[0m [1mrollback transaction[0m
|
675
|
+
[1m[35m (0.2ms)[0m begin transaction
|
676
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
677
|
+
[1m[35m (0.0ms)[0m begin transaction
|
678
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
679
|
+
[1m[35m (0.0ms)[0m begin transaction
|
680
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
681
|
+
[1m[35m (0.0ms)[0m begin transaction
|
682
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
683
|
+
[1m[35m (0.0ms)[0m begin transaction
|
684
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
685
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
686
|
+
[1m[35m (0.1ms)[0m begin transaction
|
687
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
688
|
+
[1m[35m (0.0ms)[0m begin transaction
|
689
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
690
|
+
[1m[35m (0.0ms)[0m begin transaction
|
691
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
692
|
+
[1m[35m (0.0ms)[0m begin transaction
|
693
|
+
[1m[36m (0.3ms)[0m [1mrollback transaction[0m
|
694
|
+
[1m[35m (0.2ms)[0m begin transaction
|
695
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
696
|
+
[1m[35m (0.0ms)[0m begin transaction
|
697
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
698
|
+
[1m[35m (0.0ms)[0m begin transaction
|
699
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
700
|
+
[1m[35m (0.0ms)[0m begin transaction
|
701
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
702
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
703
|
+
[1m[35m (0.1ms)[0m begin transaction
|
704
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
705
|
+
[1m[35m (0.0ms)[0m begin transaction
|
706
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
707
|
+
[1m[35m (0.0ms)[0m begin transaction
|
708
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
709
|
+
[1m[35m (0.1ms)[0m begin transaction
|
710
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
711
|
+
[1m[35m (0.0ms)[0m begin transaction
|
712
|
+
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
|
713
|
+
[1m[35m (0.2ms)[0m begin transaction
|
714
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
715
|
+
[1m[35m (0.0ms)[0m begin transaction
|
716
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
717
|
+
[1m[35m (0.1ms)[0m begin transaction
|
718
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
719
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
720
|
+
[1m[35m (0.1ms)[0m begin transaction
|
721
|
+
[1m[36m (0.3ms)[0m [1mrollback transaction[0m
|
722
|
+
[1m[35m (0.2ms)[0m begin transaction
|
723
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
724
|
+
[1m[35m (0.0ms)[0m begin transaction
|
725
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
726
|
+
[1m[35m (0.0ms)[0m begin transaction
|
727
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
728
|
+
[1m[35m (0.0ms)[0m begin transaction
|
729
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
730
|
+
[1m[35m (0.1ms)[0m begin transaction
|
731
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
732
|
+
[1m[35m (0.0ms)[0m begin transaction
|
733
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
734
|
+
[1m[35m (0.0ms)[0m begin transaction
|
735
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
736
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
737
|
+
[1m[35m (0.1ms)[0m begin transaction
|
738
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
739
|
+
[1m[35m (0.1ms)[0m begin transaction
|
740
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
741
|
+
[1m[35m (0.0ms)[0m begin transaction
|
742
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
743
|
+
[1m[35m (0.0ms)[0m begin transaction
|
744
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
745
|
+
[1m[35m (0.0ms)[0m begin transaction
|
746
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
747
|
+
[1m[35m (0.1ms)[0m begin transaction
|
748
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
749
|
+
[1m[35m (0.0ms)[0m begin transaction
|
750
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
751
|
+
[1m[35m (0.1ms)[0m begin transaction
|
752
|
+
[1m[36m (0.3ms)[0m [1mrollback transaction[0m
|
753
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
754
|
+
[1m[35m (0.1ms)[0m begin transaction
|
755
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
756
|
+
[1m[35m (0.0ms)[0m begin transaction
|
757
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
758
|
+
[1m[35m (0.0ms)[0m begin transaction
|
759
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
760
|
+
[1m[35m (0.0ms)[0m begin transaction
|
761
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
762
|
+
[1m[35m (0.0ms)[0m begin transaction
|
763
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
764
|
+
[1m[35m (0.0ms)[0m begin transaction
|
765
|
+
[1m[36m (0.3ms)[0m [1mrollback transaction[0m
|
766
|
+
[1m[35m (0.2ms)[0m begin transaction
|
767
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
768
|
+
[1m[35m (0.0ms)[0m begin transaction
|
769
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
770
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
771
|
+
[1m[35m (0.1ms)[0m begin transaction
|
772
|
+
[1m[36m (0.3ms)[0m [1mrollback transaction[0m
|
773
|
+
[1m[35m (0.2ms)[0m begin transaction
|
774
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
775
|
+
[1m[35m (0.1ms)[0m begin transaction
|
776
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
777
|
+
[1m[35m (0.0ms)[0m begin transaction
|
778
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
779
|
+
[1m[35m (0.0ms)[0m begin transaction
|
780
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
781
|
+
[1m[35m (0.1ms)[0m begin transaction
|
782
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
783
|
+
[1m[35m (0.0ms)[0m begin transaction
|
784
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
785
|
+
[1m[35m (0.0ms)[0m begin transaction
|
786
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
787
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
788
|
+
[1m[35m (0.1ms)[0m begin transaction
|
789
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
790
|
+
[1m[35m (0.0ms)[0m begin transaction
|
791
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
792
|
+
[1m[35m (0.1ms)[0m begin transaction
|
793
|
+
[1m[36m (0.3ms)[0m [1mrollback transaction[0m
|
794
|
+
[1m[35m (0.2ms)[0m begin transaction
|
795
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
796
|
+
[1m[35m (0.0ms)[0m begin transaction
|
797
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
798
|
+
[1m[35m (0.0ms)[0m begin transaction
|
799
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
800
|
+
[1m[35m (0.0ms)[0m begin transaction
|
801
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
802
|
+
[1m[35m (0.0ms)[0m begin transaction
|
803
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
804
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
805
|
+
[1m[35m (0.1ms)[0m begin transaction
|
806
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
807
|
+
[1m[35m (0.0ms)[0m begin transaction
|
808
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
809
|
+
[1m[35m (0.0ms)[0m begin transaction
|
810
|
+
[1m[36m (0.3ms)[0m [1mrollback transaction[0m
|
811
|
+
[1m[35m (0.2ms)[0m begin transaction
|
812
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
813
|
+
[1m[35m (0.0ms)[0m begin transaction
|
814
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
815
|
+
[1m[35m (0.0ms)[0m begin transaction
|
816
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
817
|
+
[1m[35m (0.0ms)[0m begin transaction
|
818
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
819
|
+
[1m[35m (0.0ms)[0m begin transaction
|
820
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
821
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
822
|
+
[1m[35m (0.1ms)[0m begin transaction
|
823
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
824
|
+
[1m[35m (0.1ms)[0m begin transaction
|
825
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
826
|
+
[1m[35m (0.0ms)[0m begin transaction
|
827
|
+
[1m[36m (0.3ms)[0m [1mrollback transaction[0m
|
828
|
+
[1m[35m (0.2ms)[0m begin transaction
|
829
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
830
|
+
[1m[35m (0.0ms)[0m begin transaction
|
831
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
832
|
+
[1m[35m (0.0ms)[0m begin transaction
|
833
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
834
|
+
[1m[35m (0.1ms)[0m begin transaction
|
835
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
836
|
+
[1m[35m (0.0ms)[0m begin transaction
|
837
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
838
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
839
|
+
[1m[35m (0.1ms)[0m begin transaction
|
840
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
841
|
+
[1m[35m (0.0ms)[0m begin transaction
|
842
|
+
[1m[36m (0.3ms)[0m [1mrollback transaction[0m
|
843
|
+
[1m[35m (0.3ms)[0m begin transaction
|
844
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
845
|
+
[1m[35m (0.0ms)[0m begin transaction
|
846
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
847
|
+
[1m[35m (0.0ms)[0m begin transaction
|
848
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
849
|
+
[1m[35m (0.0ms)[0m begin transaction
|
850
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
851
|
+
[1m[35m (0.0ms)[0m begin transaction
|
852
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
853
|
+
[1m[35m (0.0ms)[0m begin transaction
|
854
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
855
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
856
|
+
[1m[35m (0.1ms)[0m begin transaction
|
857
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
858
|
+
[1m[35m (0.0ms)[0m begin transaction
|
859
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
860
|
+
[1m[35m (0.0ms)[0m begin transaction
|
861
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
862
|
+
[1m[35m (0.1ms)[0m begin transaction
|
863
|
+
[1m[36m (0.3ms)[0m [1mrollback transaction[0m
|
864
|
+
[1m[35m (0.2ms)[0m begin transaction
|
865
|
+
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
|
866
|
+
[1m[35m (0.2ms)[0m begin transaction
|
867
|
+
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
|
868
|
+
[1m[35m (0.0ms)[0m begin transaction
|
869
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
870
|
+
[1m[35m (0.1ms)[0m begin transaction
|
871
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
872
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
873
|
+
[1m[35m (0.1ms)[0m begin transaction
|
874
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
875
|
+
[1m[35m (0.0ms)[0m begin transaction
|
876
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
877
|
+
[1m[35m (0.1ms)[0m begin transaction
|
878
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
879
|
+
[1m[35m (0.0ms)[0m begin transaction
|
880
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
881
|
+
[1m[35m (0.0ms)[0m begin transaction
|
882
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
883
|
+
[1m[35m (0.1ms)[0m begin transaction
|
884
|
+
[1m[36m (0.3ms)[0m [1mrollback transaction[0m
|
885
|
+
[1m[35m (0.2ms)[0m begin transaction
|
886
|
+
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
|
887
|
+
[1m[35m (0.2ms)[0m begin transaction
|
888
|
+
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
|
889
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
890
|
+
[1m[35m (0.1ms)[0m begin transaction
|
891
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
892
|
+
[1m[35m (0.0ms)[0m begin transaction
|
893
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
894
|
+
[1m[35m (0.0ms)[0m begin transaction
|
895
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
896
|
+
[1m[35m (0.1ms)[0m begin transaction
|
897
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
898
|
+
[1m[35m (0.0ms)[0m begin transaction
|
899
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
900
|
+
[1m[35m (0.0ms)[0m begin transaction
|
901
|
+
[1m[36m (0.3ms)[0m [1mrollback transaction[0m
|
902
|
+
[1m[35m (0.2ms)[0m begin transaction
|
903
|
+
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
|
904
|
+
[1m[35m (0.2ms)[0m begin transaction
|
905
|
+
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
|
906
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
907
|
+
[1m[35m (0.1ms)[0m begin transaction
|
908
|
+
[1m[36m (0.3ms)[0m [1mrollback transaction[0m
|
909
|
+
[1m[35m (0.2ms)[0m begin transaction
|
910
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
911
|
+
[1m[35m (0.0ms)[0m begin transaction
|
912
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
913
|
+
[1m[35m (0.0ms)[0m begin transaction
|
914
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
915
|
+
[1m[35m (0.0ms)[0m begin transaction
|
916
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
917
|
+
[1m[35m (0.0ms)[0m begin transaction
|
918
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
919
|
+
[1m[35m (0.0ms)[0m begin transaction
|
920
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
921
|
+
[1m[35m (0.1ms)[0m begin transaction
|
922
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
923
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
924
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
925
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
926
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
927
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
928
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
929
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
930
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
931
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
932
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
933
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
934
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
935
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
936
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
937
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
938
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
939
|
+
[1m[36m (97.9ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) [0m
|
940
|
+
[1m[35m (114.9ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
941
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
942
|
+
Migrating to CreateUsers (20140410170418)
|
943
|
+
[1m[35m (0.0ms)[0m begin transaction
|
944
|
+
[1m[36m (0.3ms)[0m [1mCREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "birthday_at" date, "age" integer, "created_at" datetime, "updated_at" datetime) [0m
|
945
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20140410170418"]]
|
946
|
+
[1m[36m (118.6ms)[0m [1mcommit transaction[0m
|
947
|
+
Migrating to CreateRoles (20140411112622)
|
948
|
+
[1m[35m (0.2ms)[0m begin transaction
|
949
|
+
[1m[36m (0.8ms)[0m [1mCREATE TABLE "roles" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "role" varchar(255), "user_id" integer, "created_at" datetime, "updated_at" datetime) [0m
|
950
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20140411112622"]]
|
951
|
+
[1m[36m (75.6ms)[0m [1mcommit transaction[0m
|
952
|
+
Migrating to CreateUserTranslations (20140515092420)
|
953
|
+
[1m[35m (0.2ms)[0m begin transaction
|
954
|
+
[1m[36m (0.3ms)[0m [1mCREATE TABLE "user_translations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer NOT NULL, "locale" varchar(255) NOT NULL, "created_at" datetime, "updated_at" datetime) [0m
|
955
|
+
[1m[35m (0.1ms)[0m ALTER TABLE "user_translations" ADD "title" varchar(255)
|
956
|
+
[1m[36m (0.1ms)[0m [1mCREATE INDEX "index_user_translations_on_user_id" ON "user_translations" ("user_id")[0m
|
957
|
+
[1m[35m (0.1ms)[0m CREATE INDEX "index_user_translations_on_locale" ON "user_translations" ("locale")
|
958
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20140515092420"]]
|
959
|
+
[1m[35m (132.5ms)[0m commit transaction
|
960
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
961
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
962
|
+
[1m[35m (0.1ms)[0m begin transaction
|
963
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
964
|
+
[1m[35m (0.0ms)[0m begin transaction
|
965
|
+
[1m[36m (0.3ms)[0m [1mrollback transaction[0m
|
966
|
+
[1m[35m (0.2ms)[0m begin transaction
|
967
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
968
|
+
[1m[35m (0.0ms)[0m begin transaction
|
969
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
970
|
+
[1m[35m (0.0ms)[0m begin transaction
|
971
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
972
|
+
[1m[35m (0.0ms)[0m begin transaction
|
973
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
974
|
+
[1m[35m (0.0ms)[0m begin transaction
|
975
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
976
|
+
[1m[35m (0.0ms)[0m begin transaction
|
977
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
@@ -10,24 +10,24 @@ describe GettextSimpleRails do
|
|
10
10
|
FileUtils.rm_r(GettextSimpleRails.translation_dir) if File.exists?(GettextSimpleRails.translation_dir)
|
11
11
|
|
12
12
|
# Generate model translations so we can check them.
|
13
|
-
::Rake::Task["gettext_simple_rails:
|
13
|
+
::Rake::Task["gettext_simple_rails:generate_translator_files"].execute
|
14
14
|
end
|
15
15
|
|
16
16
|
it "generates model translations" do
|
17
|
-
user_model_translations_path = "#{GettextSimpleRails.translation_dir}/
|
17
|
+
user_model_translations_path = "#{GettextSimpleRails.translation_dir}/active_record_attributes_translator_translations.rb"
|
18
18
|
assert File.exists?(user_model_translations_path), "a file with user model translations should have been created but wasn't."
|
19
19
|
content = File.read(user_model_translations_path)
|
20
20
|
|
21
|
-
|
22
|
-
|
21
|
+
content.should include "_('activerecord.models.user.one')"
|
22
|
+
content.should include "_('activerecord.models.user.other')"
|
23
23
|
|
24
24
|
attributes = ["id", "name", "birthday_at", "age", "created_at", "updated_at"]
|
25
25
|
attributes.each do |attribute|
|
26
|
-
|
26
|
+
content.should include "_('activerecord.attributes.user.#{attribute}')"
|
27
27
|
end
|
28
28
|
|
29
29
|
# Relationship translations.
|
30
|
-
assert content.include?("
|
30
|
+
assert content.include?("_('activerecord.attributes.user.roles')"), "didn't contain relationship translations"
|
31
31
|
end
|
32
32
|
|
33
33
|
it "can inject the translations into I18n" do
|
@@ -37,13 +37,12 @@ describe GettextSimpleRails do
|
|
37
37
|
locales["da"] = {}
|
38
38
|
locales["en"] = {}
|
39
39
|
|
40
|
-
gs.__send__(:add_translation, "da", "models.
|
41
|
-
gs.__send__(:add_translation, "da", "models.
|
42
|
-
|
43
|
-
gs.__send__(:add_translation, "da", "models.attributes.user.name", "Navn")
|
40
|
+
gs.__send__(:add_translation, "da", "activerecord.models.user.one", "Bruger")
|
41
|
+
gs.__send__(:add_translation, "da", "activerecord.models.user.other", "Brugere")
|
42
|
+
gs.__send__(:add_translation, "da", "activerecord.attributes.user.name", "Navn")
|
44
43
|
|
45
44
|
injector = GettextSimpleRails::I18nInjector.new
|
46
|
-
injector.
|
45
|
+
injector.inject_translator_translations(gs)
|
47
46
|
|
48
47
|
I18n.with_locale :da do
|
49
48
|
assert_equal "Bruger", I18n.t("activerecord.models.user.one")
|
@@ -0,0 +1,20 @@
|
|
1
|
+
require "spec_helper"
|
2
|
+
|
3
|
+
describe GettextSimpleRails::Translators::GlobalizeTranslator do
|
4
|
+
before do
|
5
|
+
# Make it possible to call the Rake task.
|
6
|
+
::Dummy::Application.load_tasks
|
7
|
+
|
8
|
+
# Clean up any existing translations.
|
9
|
+
FileUtils.rm_r(GettextSimpleRails.translation_dir) if File.exists?(GettextSimpleRails.translation_dir)
|
10
|
+
|
11
|
+
# Generate model translations so we can check them.
|
12
|
+
::Rake::Task["gettext_simple_rails:generate_translator_files"].execute
|
13
|
+
end
|
14
|
+
|
15
|
+
it "should generate translations for validations" do
|
16
|
+
filepath = "#{GettextSimpleRails.translation_dir}/globalize_translator_translations.rb"
|
17
|
+
cont = File.read(filepath)
|
18
|
+
cont.should include "_('activerecord.attributes.user.title')"
|
19
|
+
end
|
20
|
+
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gettext_simple_rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.10
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kasper Johansen
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-05-
|
11
|
+
date: 2014-05-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -94,6 +94,20 @@ dependencies:
|
|
94
94
|
- - '>='
|
95
95
|
- !ruby/object:Gem::Version
|
96
96
|
version: '0'
|
97
|
+
- !ruby/object:Gem::Dependency
|
98
|
+
name: globalize
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
100
|
+
requirements:
|
101
|
+
- - ~>
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: 4.0.1
|
104
|
+
type: :development
|
105
|
+
prerelease: false
|
106
|
+
version_requirements: !ruby/object:Gem::Requirement
|
107
|
+
requirements:
|
108
|
+
- - ~>
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: 4.0.1
|
97
111
|
description: Inspects models and other modules to easily generate .po-files and translate
|
98
112
|
them with POEdit.
|
99
113
|
email:
|
@@ -115,9 +129,11 @@ files:
|
|
115
129
|
- lib/gettext_simple_rails/i18n_injector.rb
|
116
130
|
- lib/gettext_simple_rails/version.rb
|
117
131
|
- lib/gettext_simple_rails/model_inspector.rb
|
132
|
+
- lib/gettext_simple_rails/translators/active_record_validations_translator.rb
|
118
133
|
- lib/gettext_simple_rails/translators/simple_form_translator.rb
|
134
|
+
- lib/gettext_simple_rails/translators/globalize_translator.rb
|
119
135
|
- lib/gettext_simple_rails/translators/active_admin_translator.rb
|
120
|
-
- lib/gettext_simple_rails/translators/
|
136
|
+
- lib/gettext_simple_rails/translators/active_record_attributes_translator.rb
|
121
137
|
- lib/gettext_simple_rails/translators/number_translator.rb
|
122
138
|
- lib/gettext_simple_rails/translators/devise_translator.rb
|
123
139
|
- lib/gettext_simple_rails/translators/date_translator.rb
|
@@ -126,6 +142,7 @@ files:
|
|
126
142
|
- lib/tasks/gettext_simple_rails_tasks.rake
|
127
143
|
- MIT-LICENSE
|
128
144
|
- Rakefile
|
145
|
+
- spec/globalize_translator_spec.rb
|
129
146
|
- spec/poedit_config_with_ruby.conf
|
130
147
|
- spec/poedit_config_without_ruby.conf
|
131
148
|
- spec/cache_handler_spec.rb
|
@@ -135,8 +152,11 @@ files:
|
|
135
152
|
- spec/dummy/config.ru
|
136
153
|
- spec/dummy/README.rdoc
|
137
154
|
- spec/dummy/Rakefile
|
138
|
-
- spec/dummy/lib/gettext_simple_rails/
|
139
|
-
- spec/dummy/lib/gettext_simple_rails/
|
155
|
+
- spec/dummy/lib/gettext_simple_rails/date_translator_translations.rb
|
156
|
+
- spec/dummy/lib/gettext_simple_rails/active_record_validations_translator_translations.rb
|
157
|
+
- spec/dummy/lib/gettext_simple_rails/number_translator_translations.rb
|
158
|
+
- spec/dummy/lib/gettext_simple_rails/globalize_translator_translations.rb
|
159
|
+
- spec/dummy/lib/gettext_simple_rails/active_record_attributes_translator_translations.rb
|
140
160
|
- spec/dummy/test/models/user_test.rb
|
141
161
|
- spec/dummy/test/models/role_test.rb
|
142
162
|
- spec/dummy/test/fixtures/users.yml
|
@@ -145,11 +165,10 @@ files:
|
|
145
165
|
- spec/dummy/public/500.html
|
146
166
|
- spec/dummy/public/422.html
|
147
167
|
- spec/dummy/public/favicon.ico
|
148
|
-
- spec/dummy/log/development.log
|
149
168
|
- spec/dummy/log/test.log
|
150
169
|
- spec/dummy/db/schema.rb
|
151
|
-
- spec/dummy/db/development.sqlite3
|
152
170
|
- spec/dummy/db/migrate/20140410170418_create_users.rb
|
171
|
+
- spec/dummy/db/migrate/20140515092420_create_user_translations.rb
|
153
172
|
- spec/dummy/db/migrate/20140411112622_create_roles.rb
|
154
173
|
- spec/dummy/db/test.sqlite3
|
155
174
|
- spec/dummy/app/models/user.rb
|
@@ -184,8 +203,8 @@ files:
|
|
184
203
|
- spec/setup_helper_spec.rb
|
185
204
|
- spec/gettext_simple_rails_spec.rb
|
186
205
|
- spec/spec_helper.rb
|
206
|
+
- spec/active_record_validations_spec.rb
|
187
207
|
- spec/date_translator_spec.rb
|
188
|
-
- spec/active_record_spec.rb
|
189
208
|
homepage: http://www.github.com/kaspernj/gettext_simple_rails
|
190
209
|
licenses:
|
191
210
|
- MIT
|
@@ -211,6 +230,7 @@ signing_key:
|
|
211
230
|
specification_version: 4
|
212
231
|
summary: Helpers for translating a Rails app with Gettext and POEdit.
|
213
232
|
test_files:
|
233
|
+
- spec/globalize_translator_spec.rb
|
214
234
|
- spec/poedit_config_with_ruby.conf
|
215
235
|
- spec/poedit_config_without_ruby.conf
|
216
236
|
- spec/cache_handler_spec.rb
|
@@ -220,8 +240,11 @@ test_files:
|
|
220
240
|
- spec/dummy/config.ru
|
221
241
|
- spec/dummy/README.rdoc
|
222
242
|
- spec/dummy/Rakefile
|
223
|
-
- spec/dummy/lib/gettext_simple_rails/
|
224
|
-
- spec/dummy/lib/gettext_simple_rails/
|
243
|
+
- spec/dummy/lib/gettext_simple_rails/date_translator_translations.rb
|
244
|
+
- spec/dummy/lib/gettext_simple_rails/active_record_validations_translator_translations.rb
|
245
|
+
- spec/dummy/lib/gettext_simple_rails/number_translator_translations.rb
|
246
|
+
- spec/dummy/lib/gettext_simple_rails/globalize_translator_translations.rb
|
247
|
+
- spec/dummy/lib/gettext_simple_rails/active_record_attributes_translator_translations.rb
|
225
248
|
- spec/dummy/test/models/user_test.rb
|
226
249
|
- spec/dummy/test/models/role_test.rb
|
227
250
|
- spec/dummy/test/fixtures/users.yml
|
@@ -230,11 +253,10 @@ test_files:
|
|
230
253
|
- spec/dummy/public/500.html
|
231
254
|
- spec/dummy/public/422.html
|
232
255
|
- spec/dummy/public/favicon.ico
|
233
|
-
- spec/dummy/log/development.log
|
234
256
|
- spec/dummy/log/test.log
|
235
257
|
- spec/dummy/db/schema.rb
|
236
|
-
- spec/dummy/db/development.sqlite3
|
237
258
|
- spec/dummy/db/migrate/20140410170418_create_users.rb
|
259
|
+
- spec/dummy/db/migrate/20140515092420_create_user_translations.rb
|
238
260
|
- spec/dummy/db/migrate/20140411112622_create_roles.rb
|
239
261
|
- spec/dummy/db/test.sqlite3
|
240
262
|
- spec/dummy/app/models/user.rb
|
@@ -269,5 +291,5 @@ test_files:
|
|
269
291
|
- spec/setup_helper_spec.rb
|
270
292
|
- spec/gettext_simple_rails_spec.rb
|
271
293
|
- spec/spec_helper.rb
|
294
|
+
- spec/active_record_validations_spec.rb
|
272
295
|
- spec/date_translator_spec.rb
|
273
|
-
- spec/active_record_spec.rb
|
Binary file
|