arkana 1.4.0 → 1.5.0
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: eb1bab49c8625e2a2bd1cb8bd378789df20767222714a950028af877a4cfeb81
|
4
|
+
data.tar.gz: 9978033d03df9ea1c29528d8a506e6f82e43040c5675e81e5a84c2dc692a8b59
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 06d2d9248ba8d07e6faa667861a163599e246d61544168d7eebac39e974adf2af0ab4fdf28af7f3582727c4f304dd7d18f3692f7a5b521305865af4df7439e84
|
7
|
+
data.tar.gz: 242062bff10a161e4a5734a828bcebed1694d3de700f2160720e17d87f3566c3ea68406e80f5e1c4c18a74294423df415881e0804ff75853f7ecf78eb410485a
|
data/lib/arkana/models/config.rb
CHANGED
@@ -24,6 +24,8 @@ class Config
|
|
24
24
|
attr_reader :should_generate_unit_tests
|
25
25
|
# @returns [string]
|
26
26
|
attr_reader :package_manager
|
27
|
+
# @returns [boolean]
|
28
|
+
attr_reader :should_cocoapods_cross_import_modules
|
27
29
|
|
28
30
|
# @returns [string]
|
29
31
|
attr_accessor :current_flavor
|
@@ -45,6 +47,8 @@ class Config
|
|
45
47
|
@should_generate_unit_tests = yaml["should_generate_unit_tests"]
|
46
48
|
@should_generate_unit_tests = true if @should_generate_unit_tests.nil?
|
47
49
|
@package_manager = yaml["package_manager"] || "spm"
|
50
|
+
@should_cocoapods_cross_import_modules = yaml["should_cocoapods_cross_import_modules"]
|
51
|
+
@should_cocoapods_cross_import_modules = true if @should_cocoapods_cross_import_modules.nil?
|
48
52
|
end
|
49
53
|
# rubocop:enable Metrics/PerceivedComplexity, Metrics/CyclomaticComplexity
|
50
54
|
|
@@ -24,6 +24,8 @@ class TemplateArguments
|
|
24
24
|
@swift_declaration_strategy = config.swift_declaration_strategy
|
25
25
|
# Whether unit tests should be generated.
|
26
26
|
@should_generate_unit_tests = config.should_generate_unit_tests
|
27
|
+
# Whether cocoapods modules should cross import.
|
28
|
+
@should_cocoapods_cross_import_modules = config.should_cocoapods_cross_import_modules
|
27
29
|
end
|
28
30
|
|
29
31
|
def environment_protocol_secrets(environment)
|
@@ -5,7 +5,14 @@
|
|
5
5
|
// Automatically generated by Arkana (https://github.com/rogerluan/arkana)
|
6
6
|
|
7
7
|
import Foundation
|
8
|
+
<% if !@should_cocoapods_cross_import_modules %>
|
9
|
+
#if COCOAPODS
|
10
|
+
#else
|
11
|
+
<% end %>
|
8
12
|
import <%= @import_name %>Interfaces
|
13
|
+
<% if !@should_cocoapods_cross_import_modules %>
|
14
|
+
#endif
|
15
|
+
<% end %>
|
9
16
|
|
10
17
|
public enum <%= @namespace %> {
|
11
18
|
@inline(__always)
|
@@ -95,6 +95,7 @@ final class <%= @namespace %>Tests: XCTestCase {
|
|
95
95
|
]
|
96
96
|
XCTAssertEqual(<%= @namespace %>.decode(encoded: encoded, cipher: salt), "real_$lim_shady")
|
97
97
|
}
|
98
|
+
<% if ENV["ARKANA_RUNNING_CI_INTEGRATION_TESTS"] %>
|
98
99
|
|
99
100
|
func test_decodeEnvVarFromDotfile_withDollarSign__andEscaped_andNoQuotes_shouldDecode() {
|
100
101
|
XCTAssertEqual(globalSecrets.secretWithDollarSignEscapedAndAndNoQuotesKey, "real_$lim_shady")
|
@@ -119,4 +120,5 @@ final class <%= @namespace %>Tests: XCTestCase {
|
|
119
120
|
func test_decodeEnvVarFromDotfile_withWeirdCharacters_shouldDecode() {
|
120
121
|
XCTAssertEqual(globalSecrets.secretWithWeirdCharactersKey, "` ~ ! @ # % ^ & * ( ) _ - + = { [ } } | : ; ' < , > . ? /")
|
121
122
|
}
|
123
|
+
<% end %>
|
122
124
|
}
|
data/lib/arkana/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: arkana
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.5.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Roger Oba
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-
|
11
|
+
date: 2023-06-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: dotenv
|
@@ -105,7 +105,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
105
105
|
requirements:
|
106
106
|
- - ">="
|
107
107
|
- !ruby/object:Gem::Version
|
108
|
-
version: 2.
|
108
|
+
version: '2.7'
|
109
109
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
110
110
|
requirements:
|
111
111
|
- - ">="
|