redbreast 1.2.0 → 1.2.3
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/colors/swiftui_colors_template_generator.rb +1 -1
- data/lib/redbreast/template_generators/images/swift_images_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 +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 68f6acf09ee632dd54e78b2a728ec3d4b155918354f566610bfcb8ebe8e92c28
|
4
|
+
data.tar.gz: 1a322fa3e7fe6ae863b71cf8668e4393e95f071b4091c126f766dc2e08febe14
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9267bdb2cc6758ff394ea515bff44ad11db9f497a658857ae446cb29e8e7c2b790c2ec5337fb0b673bfb50e9ec225db091e0f26faebab6ffe5157e405ee68b2c
|
7
|
+
data.tar.gz: e88425bd3bb65f68f9f9ea4ee413048b3807839a25f0ff7b49f0ef5bd43bc8fa71aac2d72bd9a8a8fe0eaf112b9fb2925bdd807d1c78ce1156a65cb279a1330d
|
@@ -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
|
@@ -50,7 +50,7 @@ module Redbreast
|
|
50
50
|
end
|
51
51
|
|
52
52
|
def generate_extension(extended_class, app_name)
|
53
|
-
text = 'extension ' + extended_class + " {\n"
|
53
|
+
text = 'public extension ' + extended_class + " {\n"
|
54
54
|
|
55
55
|
return text if app_name.nil? || app_name.empty?
|
56
56
|
|
@@ -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
|
@@ -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('Color', app_name) %>
|
16
|
-
<%= generate_file_swift(names: asset_names, variable: 'static var %s: Color { Color("%s", bundle: %s) }', bundle: bundle) %>
|
16
|
+
<%= generate_file_swift(names: asset_names, variable: 'public static var %s: Color { Color("%s", bundle: %s) }', 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('UIImage', app_name) %>
|
17
|
-
<%= generate_file_swift(names: asset_names, variable: 'static var %s: UIImage { return UIImage(named: "%s", in: %s, compatibleWith: nil)! }', bundle: bundle) %>
|
17
|
+
<%= generate_file_swift(names: asset_names, variable: 'public static var %s: UIImage { return UIImage(named: "%s", in: %s, compatibleWith: nil)! }', bundle: bundle) %>
|
18
18
|
}
|
19
19
|
TEMPLATE
|
20
20
|
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.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Maroje
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-
|
11
|
+
date: 2022-04-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -198,7 +198,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
198
198
|
- !ruby/object:Gem::Version
|
199
199
|
version: '0'
|
200
200
|
requirements: []
|
201
|
-
rubygems_version: 3.
|
201
|
+
rubygems_version: 3.1.2
|
202
202
|
signing_key:
|
203
203
|
specification_version: 4
|
204
204
|
summary: A CLI for safe and strongly typed resources
|