redbreast 1.2.5 → 1.3.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d6ad3a4048013b2fe1674cd37e6d09798f7c444c3dbfe8b9e691031dd04a7984
4
- data.tar.gz: b44b7e7d2512d10cdb3c26e349002cfa23410d5eb4ab1b7735352025a74cd630
3
+ metadata.gz: a7ce16fccb9741bca97a4f08ef76c0bb64ce67686aa48edbe8a7a426aca2951c
4
+ data.tar.gz: 4ee49fe8fa9a16e0f6a8c1631b59fc8bd3b23d1bad9de3e706949777d8648104
5
5
  SHA512:
6
- metadata.gz: 7c4753e2751f51aff773b9b7021bdc1cf7573367d98d4bcad7b3c02494f3e826e442dabddb6a57609ee411f3f79c36ab56766a6dd9ca27858b0869f25defde31
7
- data.tar.gz: 164652399895ff936501f536a2fc089202efd0dbe35e1093d28d4a7a1f98a6d737233abeb3915e95dfc848c64740b57eda23dad0a918c28911da2d9d6a450bb9
6
+ metadata.gz: 7db01230335e6eca956d71cdebc2611d7af0855fe4183b472dcfd45c08263c1e65b3b0c074cd8df12d1d0997620d570503e5ad9527a0fcb401f21c3663480fb7
7
+ data.tar.gz: 4779524e2b16d31b3d056334d2233a0bb70fd0c65863dd8769f049da8d40973bf76f20c18105289bee8b53a326d1751cc0479ace42ded5c9fb1a8b1bf775c91b
data/.ruby-version CHANGED
@@ -1 +1 @@
1
- 2.7.0
1
+ 3.1.0
@@ -22,7 +22,7 @@ module Redbreast
22
22
  end
23
23
 
24
24
  def write(output_source_path, template, file_name)
25
- file = ERB.new(template, nil, '-').result(binding)
25
+ file = ERB.new(template, trim_mode: '-').result(binding)
26
26
  File.write(File.join(output_source_path, file_name), file)
27
27
  end
28
28
 
@@ -11,7 +11,7 @@ module Redbreast
11
11
  directory = File.dirname(output_source_path)
12
12
  FileUtils.mkdir_p directory unless File.exist? directory
13
13
 
14
- file = ERB.new(template_generator.template, nil, '-').result(binding)
14
+ file = ERB.new(template_generator.template, trim_mode: '-').result(binding)
15
15
  File.write(output_source_path, file)
16
16
  end
17
17
 
@@ -11,7 +11,7 @@ module Redbreast
11
11
  directory = File.dirname(output_source_path)
12
12
  FileUtils.mkdir_p directory unless File.exist? directory
13
13
 
14
- file = ERB.new(template_generator.template, nil, '-').result(binding)
14
+ file = ERB.new(template_generator.template, trim_mode: '-').result(binding)
15
15
  File.write(output_source_path, file)
16
16
  end
17
17
 
@@ -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
@@ -12,7 +12,7 @@ module Redbreast
12
12
  import SwiftUI
13
13
 
14
14
  // THIS FILE IS AUTOGENERATED, DO NOT EDIT BY HAND
15
- // swiftlint:disable file_length type_body_length line_length superfluous_disable_commandextension_access_modifier
15
+ // swiftlint:disable file_length type_body_length line_length superfluous_disable_command extension_access_modifier
16
16
  <%= generate_extension('Image', app_name) %>
17
17
  <%= generate_file_swift(names: asset_names, variable: 'public static var %s: Image { Image("%s", bundle: %s) }', bundle: bundle) %>
18
18
  }
@@ -1,3 +1,3 @@
1
1
  module Redbreast
2
- VERSION = '1.2.5'
2
+ VERSION = '1.3.1'
3
3
  end
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.5
4
+ version: 1.3.1
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-17 00:00:00.000000000 Z
11
+ date: 2023-07-21 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.2.3
201
+ rubygems_version: 3.3.3
202
202
  signing_key:
203
203
  specification_version: 4
204
204
  summary: A CLI for safe and strongly typed resources