txbr 2.4.0 → 2.4.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/txbr/content_tag.rb +4 -0
- data/lib/txbr/metadata.rb +3 -3
- data/lib/txbr/strings_manifest.rb +4 -0
- data/lib/txbr/template.rb +3 -2
- data/lib/txbr/template_group.rb +1 -1
- data/lib/txbr/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fd81fe81e5e0d795e842a3cf75c4277d0ba5e7211214596d2755835994d27435
|
4
|
+
data.tar.gz: 6a40e039b54a45ba5271525dbc27fea9294eadc7d0580e38f87c3f1d8579f6aa
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6d314adee43b7c9450db5a230e6e8b3a35205ed764f102f875c9967e01205e8d19bef938715d64aa1c065f91b7cf9a7a014733e14eff6c0b711a004f58e4a363
|
7
|
+
data.tar.gz: bbf37aa158dd6c518c472f7f10214648c1c6496437ba9373e14e52fe987c196d42738dc9d639c637d68c796cd6eb67e2cced94f3b5b3c755757e95accedd477d
|
data/lib/txbr/content_tag.rb
CHANGED
data/lib/txbr/metadata.rb
CHANGED
@@ -5,9 +5,9 @@ module Txbr
|
|
5
5
|
attr_reader :project_slug, :resource_slug, :prefix
|
6
6
|
|
7
7
|
def initialize(options = {})
|
8
|
-
@project_slug = options
|
9
|
-
@resource_slug = options
|
10
|
-
@prefix = options
|
8
|
+
@project_slug = options['project_slug']
|
9
|
+
@resource_slug = options['resource_slug']
|
10
|
+
@prefix = options['prefix']
|
11
11
|
end
|
12
12
|
|
13
13
|
def ==(other)
|
data/lib/txbr/template.rb
CHANGED
@@ -38,8 +38,9 @@ module Txbr
|
|
38
38
|
end
|
39
39
|
|
40
40
|
def content_tags
|
41
|
-
@content_tags ||= connected_content_tags.
|
42
|
-
ContentTag.new(liquid_template, tag)
|
41
|
+
@content_tags ||= connected_content_tags.each_with_object([]) do |tag, ret|
|
42
|
+
tag = ContentTag.new(liquid_template, tag)
|
43
|
+
ret << tag if tag.contains_translations?
|
43
44
|
end
|
44
45
|
end
|
45
46
|
|
data/lib/txbr/template_group.rb
CHANGED
data/lib/txbr/version.rb
CHANGED