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: 4d87ddec1dc5c7c4f0a49ba91e1c3b64de6f98826f60feea653348736883f1c4
4
- data.tar.gz: e06c57be9eccd39f2459b6aa73c18a0eecc15be69b7b2155f2d4c2046b11de57
3
+ metadata.gz: 7f73872a08f8b9da41b9ae4e7602b7941a824f8dcb1dd9829039cce3ad89d70b
4
+ data.tar.gz: c90a81eb047fcbe96715b52e12e542cc23ca2f3b4c4c610a9e62013702aca1fc
5
5
  SHA512:
6
- metadata.gz: ec2ef481634f91d84ce14186ae583ca4625c71c80d76955ff803e01e9a4dc232f6484c2bcf6a58b39ed454636b8daf9b54bc79404d6fab2f040989a4d4e97c94
7
- data.tar.gz: 67d750a01f3d233eae1e7f45acefef1d83a12cedb73210449e8ee1b50fffa2384e76a15c2943d90ca2b5daf8d654bf61917d063a349bd6070ae46c59ed4c2931
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
- 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,7 +48,9 @@ module Fastlane
48
48
  dependency_overrides = pubspec["dependency_overrides"]
49
49
 
50
50
  plugins.keys.each do |key|
51
- info = plugins[key]
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
 
@@ -1,5 +1,5 @@
1
1
  module Fastlane
2
2
  module SunnyProject
3
- VERSION = "0.1.6"
3
+ VERSION = "0.1.11"
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.6
4
+ version: 0.1.11
5
5
  platform: ruby
6
6
  authors:
7
7
  - ericmartineau