redbreast 1.0.0 → 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 4c6b20739657e839f5499756143b085a3a6ad2d7e51434a69913db6e7e8f40da
|
|
4
|
+
data.tar.gz: 7c8ec026f73a66c9d5bf0bddb3f9322c8a46c357f610ad12d74e24a10a4dce87
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: f16f4697903ad22a3d19ca11369c6d6c87c37f1efcad9345ebdf7fb026b9af22fe6f86ab78ec7e0ed9712e4a724d7814a042d989c7fb41c8d10c7532b66a166c
|
|
7
|
+
data.tar.gz: 555c9491c3e15c22db3ed93c2669e3709c6edca7e83c0d66d697711287958268bf80742034620b20830e765c3b5cbd401f0699481ec574ac3f21e899b77de525
|
|
@@ -38,7 +38,7 @@ module Redbreast
|
|
|
38
38
|
outputSourcePathColors: output_source_path_colors,
|
|
39
39
|
outputTestPathImages: output_test_path_images,
|
|
40
40
|
outputTestPathColors: output_test_path_colors,
|
|
41
|
-
testableImport: include_tests ? testable_import_prompt(bundle, language) : nil
|
|
41
|
+
testableImport: include_tests ? testable_import_prompt(bundle, app_name, language) : nil
|
|
42
42
|
}
|
|
43
43
|
compact fields
|
|
44
44
|
end
|
|
@@ -138,12 +138,12 @@ module Redbreast
|
|
|
138
138
|
end
|
|
139
139
|
end
|
|
140
140
|
|
|
141
|
-
def testable_import_prompt(bundle, language)
|
|
141
|
+
def testable_import_prompt(bundle, app_name, language)
|
|
142
142
|
case language
|
|
143
143
|
when 'objc'
|
|
144
144
|
nil
|
|
145
145
|
when 'swift'
|
|
146
|
-
prompt.ask("Please enter
|
|
146
|
+
prompt.ask("Please enter a name that will be used for testable import in #{bundle} bundle?", default: "#{app_name}", required: true)
|
|
147
147
|
end
|
|
148
148
|
end
|
|
149
149
|
|
|
@@ -40,7 +40,7 @@ module Redbreast
|
|
|
40
40
|
unless names_new.empty?
|
|
41
41
|
|
|
42
42
|
indentation += indentation.empty? || indentation[-1] == '/' ? '' : '/'
|
|
43
|
-
text +=
|
|
43
|
+
text += generate_file_swift(names: names_new, spacing: spacing + "\t", indentation: indentation + enum_name, variable: variable, bundle: bundle)
|
|
44
44
|
end
|
|
45
45
|
|
|
46
46
|
text += "\n" + spacing + '}' + "\n"
|
|
@@ -53,7 +53,7 @@ module Redbreast
|
|
|
53
53
|
|
|
54
54
|
return text if app_name.nil? || app_name.empty?
|
|
55
55
|
|
|
56
|
-
text + "\tenum " + app_name + " {}\n}\n\nextension " + extended_class + '.' + app_name + " {
|
|
56
|
+
text + "\tenum " + app_name + " {}\n}\n\nextension " + extended_class + '.' + app_name + " {"
|
|
57
57
|
end
|
|
58
58
|
|
|
59
59
|
def create_swift_test_cases(names:, declaration:, app_name:)
|
|
@@ -79,9 +79,7 @@ module Redbreast
|
|
|
79
79
|
array.push(temp_arr.first)
|
|
80
80
|
else
|
|
81
81
|
name_prefix = indentation.empty? ? '' : '/'
|
|
82
|
-
text += spacing + variable % [clean_variable_name(name), indentation + name_prefix + name, bundle[:reference]]
|
|
83
|
-
#text += spacing + declaration + clean_variable_name(name) + type + indentation + name_prefix + name + var_end + bundle[:reference] + line_end
|
|
84
|
-
text += name == names.last ? '' : "\n"
|
|
82
|
+
text += "\n" + spacing + variable % [clean_variable_name(name), indentation + name_prefix + name, bundle[:reference]]
|
|
85
83
|
end
|
|
86
84
|
end
|
|
87
85
|
|
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.0.
|
|
4
|
+
version: 1.0.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Maroje
|
|
8
|
-
autorequire:
|
|
8
|
+
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2021-04-21 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|
|
@@ -122,7 +122,7 @@ dependencies:
|
|
|
122
122
|
- - ">="
|
|
123
123
|
- !ruby/object:Gem::Version
|
|
124
124
|
version: '0'
|
|
125
|
-
description:
|
|
125
|
+
description:
|
|
126
126
|
email:
|
|
127
127
|
- maroje.marcelic@infinum.com
|
|
128
128
|
executables:
|
|
@@ -180,7 +180,7 @@ licenses:
|
|
|
180
180
|
- MIT
|
|
181
181
|
metadata:
|
|
182
182
|
allowed_push_host: https://rubygems.org
|
|
183
|
-
post_install_message:
|
|
183
|
+
post_install_message:
|
|
184
184
|
rdoc_options: []
|
|
185
185
|
require_paths:
|
|
186
186
|
- lib
|
|
@@ -196,7 +196,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
196
196
|
version: '0'
|
|
197
197
|
requirements: []
|
|
198
198
|
rubygems_version: 3.0.6
|
|
199
|
-
signing_key:
|
|
199
|
+
signing_key:
|
|
200
200
|
specification_version: 4
|
|
201
201
|
summary: A CLI for safe and strongly typed resources
|
|
202
202
|
test_files: []
|