fastlane-plugin-covfefe 0.9.0 → 0.9.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 85a40fc5ad5d3b9d5b18c9be75e627ccd492bf51
4
- data.tar.gz: f0240ab1150daf5d98380c5f3b67961ad9907229
3
+ metadata.gz: 8048f3303bac746f9bc141b08bf1106e3ff277f5
4
+ data.tar.gz: 24a49251287cfab421cdc844f7f7972d53237e88
5
5
  SHA512:
6
- metadata.gz: dbcb9a11097393cc006bdc9d1cb06005fdb0b444af38937754efb8dfb5ac205b71cb614177a696fbe7451486962f357de0de8af7a04249adb2bbe6cab888e0b3
7
- data.tar.gz: be1bf797805b5f36fd44a01b75594c84814d1cac1f9eb790e1801d2216cfae088daed5c69cc64c8e7b6084447d972af2a51a8cb233e64c6019c0f4fec96c003a
6
+ metadata.gz: b3b6e7fd91cc0a8c012f9dd44522cca82b7110c51e8fb86b7237776f13145b94982d40dd9d023d51686e9a8d8eaa2e55cdf42bc14269680f9e1e832b88ea44e5
7
+ data.tar.gz: df7f1909e370ba9feb1d8cd7ab0c36b6c82f17c421e2eeeb2363bc7e0b78d52fe0f9fd8a5cfafba16ac18138f68af7fd0e9e5560f91733387f235a32f67f0bbc
@@ -6,13 +6,14 @@ module Fastlane
6
6
  require 'tmpdir'
7
7
 
8
8
  Dir.mktmpdir("repo_clone") do |tmp_path|
9
-
10
- name = params[:name]
9
+ name = params[:options][:name]
11
10
  input_path = File.expand_path params[:input_path]
12
- output_path = File.expand_path params[:output_path]
11
+ output_path = params[:output_path]
12
+ output_path = File.join(output_path, params[:options][:in]) unless params[:options][:in].to_s.length == 0
13
+ output_path = File.expand_path output_path
13
14
  breadcrumbs = params[:output_path]
14
15
 
15
- options = Hash.new
16
+ options = {}
16
17
  options[:name] = name
17
18
  options = options.merge(params[:extra_options])
18
19
 
@@ -36,8 +37,8 @@ module Fastlane
36
37
  end
37
38
 
38
39
  def self.handle(options, input_path, output_path, breadcrumbs)
39
- Dir.entries(input_path).select { |f|
40
- next if f == '.' or f == '..' or f == '.git'
40
+ Dir.entries(input_path).select do |f|
41
+ next if ['.', '..', '.git'].include?(f)
41
42
  mustached = Mustache.render(f, name: options[:name])
42
43
  input = File.join(input_path, f)
43
44
  output = File.join(output_path, mustached)
@@ -52,7 +53,7 @@ module Fastlane
52
53
  string = Mustache.render(string, name: options[:name])
53
54
  File.write(output, string)
54
55
  end
55
- }
56
+ end
56
57
  end
57
58
 
58
59
  def self.description
@@ -82,15 +83,15 @@ module Fastlane
82
83
  default_value: FastlaneCore::FastlaneFolder.path + "../",
83
84
  optional: false,
84
85
  type: String),
85
- FastlaneCore::ConfigItem.new(key: :name,
86
- env_name: "FL_PI_MUSTACHE_NAME",
87
- description: "common name of the file structures",
88
- optional: false,
89
- type: String),
86
+ FastlaneCore::ConfigItem.new(key: :options,
87
+ env_name: "FL_PI_MUSTACHE_OPTIONS",
88
+ description: "name:common name of the file structures; in:optional path prefix the common name with;",
89
+ default_value: {},
90
+ type: Hash),
90
91
  FastlaneCore::ConfigItem.new(key: :extra_options,
91
92
  env_name: "FL_PI_MUSTACHE_EXTRA_OPTIONS",
92
93
  description: "extra values that that mustache can replace",
93
- default_value: Hash.new,
94
+ default_value: {},
94
95
  type: Hash),
95
96
  FastlaneCore::ConfigItem.new(key: :repo,
96
97
  env_name: "FL_PI_MUSTACHE_REPO",
@@ -1,5 +1,5 @@
1
1
  module Fastlane
2
2
  module Covfefe
3
- VERSION = "0.9.0"
3
+ VERSION = "0.9.1"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fastlane-plugin-covfefe
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.0
4
+ version: 0.9.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jakob Jensen