fastlane-plugin-sunny_project 0.1.7 → 0.1.12
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: ce09a7dbac996131b1ab79160b61e18b6e96fdc7386063ef2eb79db761a90f3a
|
4
|
+
data.tar.gz: acbbf5f6d56e25ddf67d27a04092c2f0f5bdd1c7dc63e570154a5b8add3fd507
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 88c00465254af98b556b1069d65e7b80519a1be8f966318ecded71b3151d4fab0a47df88a99b92ce29b0a199282a4b74f8c82cc0688d87bfd53c544f02fa8930
|
7
|
+
data.tar.gz: d3da7a78490ee8032fe0afed0f72f923e92299fbdaa82da56641629ec5acdb81b936b211589a382ce4979c2902cb3b4f48cc5bd14fe75a4416c7354f3e6e4f56
|
@@ -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,10 +48,9 @@ module Fastlane
|
|
48
48
|
dependency_overrides = pubspec["dependency_overrides"]
|
49
49
|
|
50
50
|
plugins.keys.each do |key|
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
end
|
51
|
+
|
52
|
+
info = plugins[key] ? plugins[key] : "#{key}"
|
53
|
+
|
55
54
|
folder = key
|
56
55
|
branch = nil
|
57
56
|
path = nil
|
@@ -91,13 +90,11 @@ module Fastlane
|
|
91
90
|
|
92
91
|
pyaml = Psych::Visitors::YAMLTree.create
|
93
92
|
pyaml << pubspec
|
94
|
-
n=StringIO.new
|
93
|
+
n = StringIO.new
|
95
94
|
emitter = CustomVisitor.new(n)
|
96
95
|
emitter.accept(pyaml.tree)
|
97
|
-
final_pubspec=n.string.gsub("---", "")
|
96
|
+
final_pubspec = n.string.gsub("---", "")
|
98
97
|
File.write('pubspec.yaml', final_pubspec)
|
99
|
-
# normalize = YamlNormalizer::Services::Normalize.new('pubspec.yaml')
|
100
|
-
# normalize.call
|
101
98
|
print(final_pubspec)
|
102
99
|
end
|
103
100
|
|
@@ -138,7 +135,7 @@ module Fastlane
|
|
138
135
|
|
139
136
|
def visit_Psych_Nodes_Scalar(o)
|
140
137
|
if o.value.is_a? String
|
141
|
-
str="#{o.value}"
|
138
|
+
str = "#{o.value}"
|
142
139
|
if str.start_with?('^') || str.start_with?('..')
|
143
140
|
@handler.scalar o.value, o.anchor, o.tag, o.plain, o.quoted, 1
|
144
141
|
elsif str.start_with?('https://') || str.start_with?('git@')
|
@@ -152,7 +149,6 @@ module Fastlane
|
|
152
149
|
end
|
153
150
|
end
|
154
151
|
|
155
|
-
|
156
152
|
end
|
157
153
|
end
|
158
154
|
|