fastlane-plugin-sunny_project 0.1.5 → 0.1.10

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: 7c90ea7726a0c3b36982e44302d6d8d35e0b4067c655c21bba74ba01dee84d9c
4
- data.tar.gz: f27bc1ec235f610d66c81413227d4e9d53d83bcaee834d4b668070de784bf558
3
+ metadata.gz: acd74a03c0eb44cd3ecfd916866c3de9ff2c9eca253171379c9cb7a2bb461ccb
4
+ data.tar.gz: e7caed0c23289ce3b09bd8ff085a0d13d6d820503eb03723cc6e9b4ecf1999d3
5
5
  SHA512:
6
- metadata.gz: 047cd447a90553162eb2895c9fdc4d85f1f170849a0fa90646af69516e216907f72e9348517ee2a24295b45c0c83c46879e48bff6d42bd55682cb2c2ccf8cc25
7
- data.tar.gz: ebe81994c213e694a669142bb4deba1f4435b9019498586f10eae3dc21c4b44319b61be44e6a6a572ada49191511b997565acbf3ced32b975cb4ba682fe01afe
6
+ metadata.gz: 324c820378416a9a736ee367615b798b2c5da9b23886bdaf016d53aa6c5d3f369a0f819ed5a0e9ccb173c7148adc9ab1971643277b82a871415ee8b15c542046
7
+ data.tar.gz: 560a8b70f999957c37e6300d5c15875b4cec3b51348694cecb51723a84c202d4dd7a942af1a12543a77b4ff271e033783be37d5de4103dfb69e95bdca874c0d3
@@ -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]
@@ -49,6 +49,9 @@ module Fastlane
49
49
 
50
50
  plugins.keys.each do |key|
51
51
  info = plugins[key]
52
+ if info.nil? or info == ''
53
+ info = key
54
+ end
52
55
  folder = key
53
56
  branch = nil
54
57
  path = nil
@@ -88,13 +91,11 @@ module Fastlane
88
91
 
89
92
  pyaml = Psych::Visitors::YAMLTree.create
90
93
  pyaml << pubspec
91
- n=StringIO.new
94
+ n = StringIO.new
92
95
  emitter = CustomVisitor.new(n)
93
96
  emitter.accept(pyaml.tree)
94
- final_pubspec=n.string.gsub("---", "")
97
+ final_pubspec = n.string.gsub("---", "")
95
98
  File.write('pubspec.yaml', final_pubspec)
96
- # normalize = YamlNormalizer::Services::Normalize.new('pubspec.yaml')
97
- # normalize.call
98
99
  print(final_pubspec)
99
100
  end
100
101
 
@@ -135,7 +136,7 @@ module Fastlane
135
136
 
136
137
  def visit_Psych_Nodes_Scalar(o)
137
138
  if o.value.is_a? String
138
- str="#{o.value}"
139
+ str = "#{o.value}"
139
140
  if str.start_with?('^') || str.start_with?('..')
140
141
  @handler.scalar o.value, o.anchor, o.tag, o.plain, o.quoted, 1
141
142
  elsif str.start_with?('https://') || str.start_with?('git@')
@@ -149,7 +150,6 @@ module Fastlane
149
150
  end
150
151
  end
151
152
 
152
-
153
153
  end
154
154
  end
155
155
 
@@ -1,5 +1,5 @@
1
1
  module Fastlane
2
2
  module SunnyProject
3
- VERSION = "0.1.5"
3
+ VERSION = "0.1.10"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fastlane-plugin-sunny_project
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.5
4
+ version: 0.1.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - ericmartineau
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-12-02 00:00:00.000000000 Z
11
+ date: 2020-12-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: ci