redbreast 1.2.1 → 1.2.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/redbreast/serializers/swift_serializer.rb +2 -2
- data/lib/redbreast/template_generators/colors/swift_colors_template_generator.rb +1 -1
- data/lib/redbreast/template_generators/images/swiftui_images_template_generator.rb +1 -1
- data/lib/redbreast/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6aca71fbf8dac645718a3761e8ea63d558da0408e164f3b76719c71033a998b0
|
4
|
+
data.tar.gz: 259911278e8748361af3ca309e0b737725b059f5ea2d325b129f1ad28d039942
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 55b2b2c6be72a7c22caa55a307ae1b1f4cb2baf13912fccc3c66d781503938a7ea36a90402d8cf9737cf1a7ebd9fbb653088bb56bbec46a7837ce1da497bee3b
|
7
|
+
data.tar.gz: '078a5708d06c491efd4c75afcdf80c1fc3026ec5365fa1ed0955a49afb974ce32e909cc1b20d14996f7aecc39b7f8ef7c8d649779d5706096cd4fdd79a9001d3'
|
@@ -30,7 +30,7 @@ module Redbreast
|
|
30
30
|
names_new_enum = []
|
31
31
|
new_enum_name = enum_name
|
32
32
|
|
33
|
-
text += "\n" + spacing + 'enum ' + upper_camel_case(enum_name) + ' {'
|
33
|
+
text += "\n" + spacing + 'public enum ' + upper_camel_case(enum_name) + ' {'
|
34
34
|
names_new, names_new_enum = separate_variables_from_folders(names: names, enum_name: enum_name, new_enum_name: new_enum_name, names_new_enum: names_new_enum, names_new: names_new)
|
35
35
|
|
36
36
|
if !names_new_enum.empty? && new_enum_name == enum_name
|
@@ -54,7 +54,7 @@ module Redbreast
|
|
54
54
|
|
55
55
|
return text if app_name.nil? || app_name.empty?
|
56
56
|
|
57
|
-
text + SPACER + "enum " + app_name + " {}\n}\n\
|
57
|
+
text + SPACER + "enum " + app_name + " {}\n}\n\nextension " + extended_class + '.' + app_name + " {"
|
58
58
|
end
|
59
59
|
|
60
60
|
def create_swift_test_cases(names:, declaration:, app_name:)
|
@@ -13,7 +13,7 @@ module Redbreast
|
|
13
13
|
// THIS FILE IS AUTOGENERATED, DO NOT EDIT BY HAND
|
14
14
|
// swiftlint:disable file_length type_body_length line_length superfluous_disable_command
|
15
15
|
<%= generate_extension('UIColor', app_name) %>
|
16
|
-
<%= generate_file_swift(names: asset_names, variable: 'static var %s: UIColor { return UIColor(named: "%s", in: %s, compatibleWith: nil)! }', bundle: bundle) %>
|
16
|
+
<%= generate_file_swift(names: asset_names, variable: 'public static var %s: UIColor { return UIColor(named: "%s", in: %s, compatibleWith: nil)! }', bundle: bundle) %>
|
17
17
|
}
|
18
18
|
TEMPLATE
|
19
19
|
end
|
@@ -14,7 +14,7 @@ module Redbreast
|
|
14
14
|
// THIS FILE IS AUTOGENERATED, DO NOT EDIT BY HAND
|
15
15
|
// swiftlint:disable file_length type_body_length line_length superfluous_disable_command
|
16
16
|
<%= generate_extension('Image', app_name) %>
|
17
|
-
<%= generate_file_swift(names: asset_names, variable: 'static var %s: Image { Image("%s", bundle: %s) }', bundle: bundle) %>
|
17
|
+
<%= generate_file_swift(names: asset_names, variable: 'public static var %s: Image { Image("%s", bundle: %s) }', bundle: bundle) %>
|
18
18
|
}
|
19
19
|
TEMPLATE
|
20
20
|
end
|
data/lib/redbreast/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: redbreast
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.2.
|
4
|
+
version: 1.2.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Maroje
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-04-
|
11
|
+
date: 2022-04-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|