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: 47f1f205b1e0dcbce39efea35526c3a120c2ee9a3a8c3168b0e49b8f43b9c341
4
- data.tar.gz: bca08ff1e1e0fca5715987d0009d9c172d3203113e138e4b15b4fca2333a391a
3
+ metadata.gz: ce09a7dbac996131b1ab79160b61e18b6e96fdc7386063ef2eb79db761a90f3a
4
+ data.tar.gz: acbbf5f6d56e25ddf67d27a04092c2f0f5bdd1c7dc63e570154a5b8add3fd507
5
5
  SHA512:
6
- metadata.gz: 85999cf40a2ac299f6a97deb1a4c61bf21af1ab12c4b5d3debd7743bac5b063c366708b96e3284d77a04e619c1cf4d87edb089c5e7ee8a17e6fcc49df4cedb06
7
- data.tar.gz: d4f72c21d4a1a6ec4ab877de39806b26dc98480fcb24e9c86018b6a196ff497b1b956f60eb4aead0ba8ca990a7c659a993a099f74179dc0ea6d3f46b91c59aa1
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
- require 'yaml_normalizer'
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
- info = plugins[key]
52
- if info == nil
53
- info = key
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
 
@@ -1,5 +1,5 @@
1
1
  module Fastlane
2
2
  module SunnyProject
3
- VERSION = "0.1.7"
3
+ VERSION = "0.1.12"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fastlane-plugin-sunny_project
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.7
4
+ version: 0.1.12
5
5
  platform: ruby
6
6
  authors:
7
7
  - ericmartineau