awesome_translations 0.0.7 → 0.0.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +13 -0
- data/lib/awesome_translations/global_translator.rb +43 -0
- data/lib/awesome_translations/object_extensions.rb +1 -37
- data/lib/awesome_translations/version.rb +1 -1
- data/lib/awesome_translations.rb +8 -5
- data/spec/dummy/log/test.log +233 -0
- data/spec/dummy/tmp/cache/assets/test/sass/cd5c2e50cf21c8dd5320bc76db0c28d83e16429a/groups.css.scssc +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/40c039851f1e9c7652e79559d5f0eb57 +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/4eaa569e863732fc01883e425e991e3b +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/6f26f574ff8dfe3727a8b37e0eb78e89 +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/8277106af358b15d5d9ea5f25e6c16b9 +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/d242c6bd6f900ddf1e2da56629ea4214 +0 -0
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 841a4232003732fc8e30b6193b46f31604a51086
|
4
|
+
data.tar.gz: 798320a600a7b4aaad1f39910e5f1dee898f2b57
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 227e2b2decb2056fc30351cc62f164c6f8ae61572e4934ecdaf23f4a94601b2e9b906da82a2874b174540ac8a3ed8142dcfd7e6a6a30354edb301ddf2bbb2a1a
|
7
|
+
data.tar.gz: db7f8e1019e5086cb9f0a8a45ee6809e579394b716903afdef196026766685540c21d8ad9488be9604a15510e3fb690f878ff3664688b51c8f4b40d16418b835
|
data/README.md
CHANGED
@@ -20,6 +20,19 @@ Insert this into your "routes.rb" file:
|
|
20
20
|
mount AwesomeTranslations::Engine => "/awesome_translations" if Rails.env.development?
|
21
21
|
```
|
22
22
|
|
23
|
+
## Translations under controllers and models
|
24
|
+
|
25
|
+
If you want to do translations from your models or controllers, you will need to add this to a new initializer file under "config/initializers/awesome_translations.rb"
|
26
|
+
|
27
|
+
```ruby
|
28
|
+
AwesomeTranslations.load_object_extensions
|
29
|
+
```
|
30
|
+
|
31
|
+
You will also need to modify the line in your Gemfile a bit:
|
32
|
+
```ruby
|
33
|
+
gem 'awesome_translations'
|
34
|
+
```
|
35
|
+
|
23
36
|
## Translating your application
|
24
37
|
|
25
38
|
Start a Rails server for your project and go to the namespace called something like "http://localhost:3000/awesome_translations". Start translating your app through the webinterface.
|
@@ -0,0 +1,43 @@
|
|
1
|
+
class AwesomeTranslations::GlobalTranslator
|
2
|
+
def self.translate(key, args, &blk)
|
3
|
+
if key.is_a?(String) && key.start_with?(".")
|
4
|
+
caller_number = args[:caller_number] || 0
|
5
|
+
|
6
|
+
# Removed any helpful appended input to filepath from stacktrace.
|
7
|
+
if match = caller[caller_number].match(/\A(.+):(\d+):/)
|
8
|
+
previous_file = match[1]
|
9
|
+
else
|
10
|
+
raise "Could not get previous file name from: #{caller[0]}"
|
11
|
+
end
|
12
|
+
|
13
|
+
# Remove any Rails root.
|
14
|
+
removed_root = false
|
15
|
+
AwesomeTranslations::ModelInspector.engines.each do |engine|
|
16
|
+
root = engine.root.to_s
|
17
|
+
|
18
|
+
if previous_file.starts_with?(root)
|
19
|
+
previous_file = previous_file.gsub(/\A#{Regexp.escape(root)}\//, "")
|
20
|
+
removed_root = true
|
21
|
+
break
|
22
|
+
end
|
23
|
+
end
|
24
|
+
|
25
|
+
dir = File.dirname(previous_file)
|
26
|
+
dir = dir.gsub(/\A#{Regexp.escape(Rails.root.to_s)}\//, "")
|
27
|
+
dir = dir.gsub(/\Aapp\//, "") if dir.starts_with?("app/")
|
28
|
+
|
29
|
+
file = File.basename(previous_file, File.extname(previous_file))
|
30
|
+
|
31
|
+
translation_key = dir
|
32
|
+
translation_key = translation_key.gsub(/\Aapp\//, "")
|
33
|
+
translation_key << "/#{file}"
|
34
|
+
translation_key.gsub!("/", ".")
|
35
|
+
translation_key << key
|
36
|
+
|
37
|
+
# Change key to full path.
|
38
|
+
key = translation_key
|
39
|
+
end
|
40
|
+
|
41
|
+
I18n.t(key, *args[:translation_args], &blk)
|
42
|
+
end
|
43
|
+
end
|
@@ -1,41 +1,5 @@
|
|
1
1
|
module AwesomeTranslations::ObjectExtensions
|
2
2
|
def t(key, *args, &blk)
|
3
|
-
|
4
|
-
# Removed any helpful appended input to filepath from stacktrace.
|
5
|
-
if match = caller[0].match(/\A(.+):(\d+):/)
|
6
|
-
previous_file = match[1]
|
7
|
-
else
|
8
|
-
raise "Could not get previous file name from: #{caller[0]}"
|
9
|
-
end
|
10
|
-
|
11
|
-
# Remove any Rails root.
|
12
|
-
removed_root = false
|
13
|
-
AwesomeTranslations::ModelInspector.engines.each do |engine|
|
14
|
-
root = engine.root.to_s
|
15
|
-
|
16
|
-
if previous_file.starts_with?(root)
|
17
|
-
previous_file = previous_file.gsub(/\A#{Regexp.escape(root)}\//, "")
|
18
|
-
removed_root = true
|
19
|
-
break
|
20
|
-
end
|
21
|
-
end
|
22
|
-
|
23
|
-
dir = File.dirname(previous_file)
|
24
|
-
dir = dir.gsub(/\A#{Regexp.escape(Rails.root.to_s)}\//, "")
|
25
|
-
dir = dir.gsub(/\Aapp\//, "") if dir.starts_with?("app/")
|
26
|
-
|
27
|
-
file = File.basename(previous_file, File.extname(previous_file))
|
28
|
-
|
29
|
-
translation_key = dir
|
30
|
-
translation_key = translation_key.gsub(/\Aapp\//, "")
|
31
|
-
translation_key << "/#{file}"
|
32
|
-
translation_key.gsub!("/", ".")
|
33
|
-
translation_key << key
|
34
|
-
|
35
|
-
# Change key to full path.
|
36
|
-
key = translation_key
|
37
|
-
end
|
38
|
-
|
39
|
-
I18n.t(key, *args, &blk)
|
3
|
+
AwesomeTranslations::GlobalTranslator.translate(key, caller_number: 1, translation_args: args, &blk)
|
40
4
|
end
|
41
5
|
end
|
data/lib/awesome_translations.rb
CHANGED
@@ -4,11 +4,14 @@ require "array_enumerator"
|
|
4
4
|
require "jquery-rails"
|
5
5
|
|
6
6
|
module AwesomeTranslations
|
7
|
-
|
8
|
-
|
9
|
-
autoload :
|
10
|
-
autoload :
|
11
|
-
autoload :
|
7
|
+
path = "#{File.dirname(__FILE__)}/awesome_translations"
|
8
|
+
|
9
|
+
autoload :Config, "#{path}/config"
|
10
|
+
autoload :ErbInspector, "#{path}/erb_inspector"
|
11
|
+
autoload :GlobalTranslator, "#{path}/global_translator"
|
12
|
+
autoload :Handlers, "#{path}/handlers"
|
13
|
+
autoload :ObjectExtensions, "#{path}/object_extensions"
|
14
|
+
autoload :ModelInspector, "#{path}/model_inspector"
|
12
15
|
|
13
16
|
def self.config
|
14
17
|
@config ||= AwesomeTranslations::Config.new
|
data/spec/dummy/log/test.log
CHANGED
@@ -591,3 +591,236 @@ Completed 302 Found in 8ms (ActiveRecord: 0.0ms)
|
|
591
591
|
[1m[35m (0.0ms)[0m rollback transaction
|
592
592
|
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
593
593
|
[1m[35m (0.0ms)[0m rollback transaction
|
594
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.4ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
595
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
596
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
597
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
598
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
599
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
600
|
+
[1m[35m (0.1ms)[0m begin transaction
|
601
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
602
|
+
[1m[35mUser Exists (0.4ms)[0m SELECT 1 AS one FROM "users" WHERE "users"."email" = 'rbutler@shuffledrive.com' LIMIT 1
|
603
|
+
[1m[36mSQL (2.6ms)[0m [1mINSERT INTO "users" ("age", "email", "password") VALUES (?, ?, ?)[0m [["age", 5], ["email", "rbutler@shuffledrive.com"], ["password", "curabitur at"]]
|
604
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
605
|
+
Processing by UsersController#index as HTML
|
606
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users"[0m
|
607
|
+
Rendered users/index.html.haml within layouts/application (12.5ms)
|
608
|
+
Completed 200 OK in 48ms (Views: 47.8ms | ActiveRecord: 0.1ms)
|
609
|
+
[1m[35m (0.6ms)[0m rollback transaction
|
610
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
611
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
612
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
613
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
614
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
615
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
616
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
617
|
+
Processing by AwesomeTranslations::HandlersController#index as HTML
|
618
|
+
Completed 200 OK in 205ms (Views: 204.7ms | ActiveRecord: 0.0ms)
|
619
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
620
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
621
|
+
Processing by AwesomeTranslations::HandlersController#show as HTML
|
622
|
+
Parameters: {"id"=>"model_handler"}
|
623
|
+
Completed 200 OK in 10ms (Views: 10.1ms | ActiveRecord: 0.0ms)
|
624
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
625
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
626
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
627
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
628
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
629
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
630
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
631
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
632
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
633
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
634
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
635
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
636
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
637
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
638
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
639
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
640
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
641
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
642
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
643
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
644
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
645
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
646
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
647
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
648
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
649
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
650
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
651
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
652
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
653
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
654
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
655
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
656
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
657
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
658
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
659
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
660
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
661
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
662
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
663
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
664
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
665
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
666
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
667
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
668
|
+
Processing by AwesomeTranslations::GroupsController#update as HTML
|
669
|
+
Parameters: {"handler_id"=>"model_handler", "id"=>"User", "t"=>{"activerecord.attributes.user.password"=>"[FILTERED]"}}
|
670
|
+
Redirected to http://test.host/handlers/model_handler/groups/User
|
671
|
+
Completed 302 Found in 5ms (ActiveRecord: 0.0ms)
|
672
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
673
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
674
|
+
Processing by AwesomeTranslations::GroupsController#update as HTML
|
675
|
+
Parameters: {"handler_id"=>"model_handler", "id"=>"Role", "t"=>{"activerecord.attributes.role.role"=>{"da"=>"Rolle", "de"=>"Die type", "en"=>"Role"}}}
|
676
|
+
Redirected to http://test.host/handlers/model_handler/groups/Role
|
677
|
+
Completed 302 Found in 8ms (ActiveRecord: 0.0ms)
|
678
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
679
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
680
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
681
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
682
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
683
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
684
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
685
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
686
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
687
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
688
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
689
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
690
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
691
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
692
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
693
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
694
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
695
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
696
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
697
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
698
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
699
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
700
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
701
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
702
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
703
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
704
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
705
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
706
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
707
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
708
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
709
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
710
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
711
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
712
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
713
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
714
|
+
[1m[35m (0.1ms)[0m begin transaction
|
715
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
716
|
+
[1m[35m (0.0ms)[0m begin transaction
|
717
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
718
|
+
[1m[35mUser Exists (0.1ms)[0m SELECT 1 AS one FROM "users" WHERE "users"."email" = 'sramos@eabox.name' LIMIT 1
|
719
|
+
[1m[36mSQL (2.1ms)[0m [1mINSERT INTO "users" ("age", "email", "password") VALUES (?, ?, ?)[0m [["age", 10], ["email", "sramos@eabox.name"], ["password", "in hac"]]
|
720
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
721
|
+
Processing by UsersController#index as HTML
|
722
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users"[0m
|
723
|
+
Rendered users/index.html.haml within layouts/application (12.1ms)
|
724
|
+
Completed 200 OK in 29ms (Views: 28.0ms | ActiveRecord: 0.1ms)
|
725
|
+
[1m[35m (0.4ms)[0m rollback transaction
|
726
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
727
|
+
Processing by AwesomeTranslations::GroupsController#update as HTML
|
728
|
+
Parameters: {"handler_id"=>"model_handler", "id"=>"User", "t"=>{"activerecord.attributes.user.password"=>"[FILTERED]"}}
|
729
|
+
Redirected to http://test.host/handlers/model_handler/groups/User
|
730
|
+
Completed 302 Found in 8ms (ActiveRecord: 0.0ms)
|
731
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
732
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
733
|
+
Processing by AwesomeTranslations::GroupsController#update as HTML
|
734
|
+
Parameters: {"handler_id"=>"model_handler", "id"=>"Role", "t"=>{"activerecord.attributes.role.role"=>{"da"=>"Rolle", "de"=>"Die type", "en"=>"Role"}}}
|
735
|
+
Redirected to http://test.host/handlers/model_handler/groups/Role
|
736
|
+
Completed 302 Found in 9ms (ActiveRecord: 0.0ms)
|
737
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
738
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
739
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
740
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
741
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
742
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
743
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
744
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
745
|
+
Processing by AwesomeTranslations::HandlersController#index as HTML
|
746
|
+
Completed 200 OK in 12ms (Views: 11.4ms | ActiveRecord: 0.0ms)
|
747
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
748
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
749
|
+
Processing by AwesomeTranslations::HandlersController#show as HTML
|
750
|
+
Parameters: {"id"=>"model_handler"}
|
751
|
+
Completed 200 OK in 21ms (Views: 20.8ms | ActiveRecord: 0.0ms)
|
752
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
753
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
754
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
755
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
756
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
757
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
758
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
759
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
760
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
761
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
762
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
763
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
764
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
765
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
766
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
767
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
768
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
769
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
770
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
771
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
772
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
773
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
774
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
775
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
776
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
777
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
778
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
779
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
780
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
781
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
782
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
783
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
784
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
785
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
786
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
787
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
788
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
789
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
790
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
791
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
792
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
793
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
794
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
795
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
796
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
797
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
798
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
799
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
800
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
801
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
802
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
803
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
804
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
805
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
806
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
807
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
808
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
809
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
810
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
811
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
812
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
813
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
814
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
815
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
816
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
817
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
818
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
819
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
820
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
821
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
822
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
823
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
824
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
825
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
826
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
data/spec/dummy/tmp/cache/assets/test/sass/cd5c2e50cf21c8dd5320bc76db0c28d83e16429a/groups.css.scssc
CHANGED
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: awesome_translations
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kasper Johansen
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-05-
|
11
|
+
date: 2015-05-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -212,6 +212,7 @@ files:
|
|
212
212
|
- lib/awesome_translations/erb_inspector.rb
|
213
213
|
- lib/awesome_translations/erb_inspector/file_inspector.rb
|
214
214
|
- lib/awesome_translations/erb_inspector/translation_inspector.rb
|
215
|
+
- lib/awesome_translations/global_translator.rb
|
215
216
|
- lib/awesome_translations/handlers.rb
|
216
217
|
- lib/awesome_translations/handlers/base_handler.rb
|
217
218
|
- lib/awesome_translations/handlers/erb_handler.rb
|