fastlane-plugin-sunny_project 0.1.6 → 0.1.11
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: 7f73872a08f8b9da41b9ae4e7602b7941a824f8dcb1dd9829039cce3ad89d70b
|
4
|
+
data.tar.gz: c90a81eb047fcbe96715b52e12e542cc23ca2f3b4c4c610a9e62013702aca1fc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 898fe3aa42028e78c68bb6b32556279c76451d1f7ed8f47c9503702110df66cf6a1db90dc76dce86548a9af858b2669699b28190813d2e8beab68a6137e8fdc7
|
7
|
+
data.tar.gz: 7889d6a5accb38b1592f9bbd6548cf0106e857bd42562596716bb95da8a395d936037dd530c4d9785ccbd0792c092071a0d9d1f5ede3810feb4c136922082a6d
|
@@ -4,18 +4,18 @@ require 'fastlane/action'
|
|
4
4
|
require_relative '../helper/sunny_project_helper'
|
5
5
|
require 'semantic'
|
6
6
|
require 'yaml'
|
7
|
-
|
7
|
+
|
8
8
|
require_relative '../helper/plugin_options'
|
9
9
|
|
10
10
|
def resort_keys(input)
|
11
|
-
resort={}
|
12
|
-
keys=[]
|
11
|
+
resort = {}
|
12
|
+
keys = []
|
13
13
|
input.each_key do |key|
|
14
14
|
puts("Key #{key} #{key.class}")
|
15
15
|
keys.push("#{key}")
|
16
16
|
end
|
17
17
|
|
18
|
-
keys=keys.sort
|
18
|
+
keys = keys.sort
|
19
19
|
puts("Sorted keys: #{keys}")
|
20
20
|
keys.each do |k|
|
21
21
|
resort[k] = input[k]
|
@@ -48,7 +48,9 @@ module Fastlane
|
|
48
48
|
dependency_overrides = pubspec["dependency_overrides"]
|
49
49
|
|
50
50
|
plugins.keys.each do |key|
|
51
|
-
|
51
|
+
|
52
|
+
info = plugins[key] ? plugins[key] : key
|
53
|
+
|
52
54
|
folder = key
|
53
55
|
branch = nil
|
54
56
|
path = nil
|
@@ -88,13 +90,11 @@ module Fastlane
|
|
88
90
|
|
89
91
|
pyaml = Psych::Visitors::YAMLTree.create
|
90
92
|
pyaml << pubspec
|
91
|
-
n=StringIO.new
|
93
|
+
n = StringIO.new
|
92
94
|
emitter = CustomVisitor.new(n)
|
93
95
|
emitter.accept(pyaml.tree)
|
94
|
-
final_pubspec=n.string.gsub("---", "")
|
96
|
+
final_pubspec = n.string.gsub("---", "")
|
95
97
|
File.write('pubspec.yaml', final_pubspec)
|
96
|
-
# normalize = YamlNormalizer::Services::Normalize.new('pubspec.yaml')
|
97
|
-
# normalize.call
|
98
98
|
print(final_pubspec)
|
99
99
|
end
|
100
100
|
|
@@ -135,7 +135,7 @@ module Fastlane
|
|
135
135
|
|
136
136
|
def visit_Psych_Nodes_Scalar(o)
|
137
137
|
if o.value.is_a? String
|
138
|
-
str="#{o.value}"
|
138
|
+
str = "#{o.value}"
|
139
139
|
if str.start_with?('^') || str.start_with?('..')
|
140
140
|
@handler.scalar o.value, o.anchor, o.tag, o.plain, o.quoted, 1
|
141
141
|
elsif str.start_with?('https://') || str.start_with?('git@')
|
@@ -149,7 +149,6 @@ module Fastlane
|
|
149
149
|
end
|
150
150
|
end
|
151
151
|
|
152
|
-
|
153
152
|
end
|
154
153
|
end
|
155
154
|
|