cocoapods-ykutility 0.0.16 → 0.0.18

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: a518af9ccb2e0fe2e75671c2495fdaad0d1822f4ad23730fd4a5512c81209484
4
- data.tar.gz: faad0a772db8bab11e185272f4ff80e85875a0ae12da0c0beacc7ba689dfaa2b
3
+ metadata.gz: 39a9a6dbf6bbae7a26bc1268eaacb7be4a0e297634819162e68e4bba226ea6a5
4
+ data.tar.gz: 8ad12e93caae8c91ccb56080164f577fc074bee408bce563c47eb53777014df3
5
5
  SHA512:
6
- metadata.gz: 6518511c90d62afb13c630e6054ecfd07859e35341fcec5a858745f9ba6372c346469172d4350182a5bbcb1f009cd6f53ef28f3e4bed8e025318d3b499112e74
7
- data.tar.gz: 636fba12f302609d559714ba04f14ca4b2070f84bb51d64a3ffbe26a69a742d993c8c4f9e9ecb36b8f49eecb695c31b325fb5c1136f3825368158acadf9ba5b3
6
+ metadata.gz: 5165399c54df662f3ffb0c7790c9cc0011fd8dd2b36baca05a7f9a90f6250db2b78287f396b4317e99b3f864bc8bac0e441329b0367ed1ee5e740bfed1a1c66c
7
+ data.tar.gz: 96381ecac62375d1fccb537011d4c27b67b79853f792fc818de8b9fb5f00623f5306aafd87a0d2d97277f13332e787fae1b6bd65be9c4cf0b3b1fe765787845e
@@ -1,23 +1,27 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module YKPod
4
-
5
4
  class YKCreatePodConfig
6
5
  attr_accessor :name, :language, :with_demo, :with_register, :author, :author_email, :prefix, :path
7
6
 
8
- def initialize()
9
- @name = ""
10
- @language = ""
7
+ def initialize
8
+ @name = ''
9
+ @language = ''
11
10
  @with_demo = true
12
11
  @with_register = false
13
- @author = open("|git config --global user.name").gets.strip.gsub('.', '')
14
- @author_email = open("|git config --global user.email").gets.strip
15
- @prefix = "YK"
12
+
13
+ user_name = open('|git config --global user.name').gets
14
+ user_name = user_name.blank? ? 'xxximac' : user_name
15
+ user_email = open('|git config --global user.email').gets
16
+ user_email = user_email.blank? ? 'xxx@xxx.com' : user_email
17
+ @author = user_name.strip.gsub('.', '')
18
+ @author_email = user_email.strip
19
+ @prefix = 'YK'
16
20
  @path = File.expand_path(Dir.getwd.to_s)
17
21
  end
18
22
 
19
23
  def prefix_name
20
- return name.start_with?(prefix) ? name : prefix + name
24
+ name.start_with?(prefix) ? name : prefix + name
21
25
  end
22
26
  end
23
- end
27
+ end
@@ -3,6 +3,7 @@
3
3
  module YKPod
4
4
  module YKExchangeTool
5
5
  require 'cocoapods-ykutility/tools/yk_log_tool'
6
+ require 'file_exists'
6
7
  include YKPod::YKLogTool
7
8
  def updateFileDirs(rootDir, keyWord, destWord)
8
9
  Dir.glob("#{rootDir}/**/**/**/**").each do |name|
@@ -1,5 +1,5 @@
1
1
  module CocoapodsYkPodUtility
2
- VERSION = '0.0.16'
2
+ VERSION = '0.0.18'
3
3
  YK_POD_TEMPLATE_PATH = File.expand_path(File.join(__FILE__, '../../../podTemplate'))
4
4
  YK_POD_BUSINESS_REGISTER_PATH = File.expand_path(File.join(__FILE__, '../../../podTemplate/register'))
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cocoapods-ykutility
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.16
4
+ version: 0.0.18
5
5
  platform: ruby
6
6
  authors:
7
7
  - stephen.chen
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-07-31 00:00:00.000000000 Z
11
+ date: 2023-12-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jazzy
@@ -38,6 +38,20 @@ dependencies:
38
38
  - - ">="
39
39
  - !ruby/object:Gem::Version
40
40
  version: '0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: file_exists
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ">="
46
+ - !ruby/object:Gem::Version
47
+ version: '0'
48
+ type: :runtime
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ">="
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
41
55
  - !ruby/object:Gem::Dependency
42
56
  name: bundler
43
57
  requirement: !ruby/object:Gem::Requirement
@@ -129,7 +143,7 @@ homepage: https://github.com/stephen5652/cocoapods-yk-pod-utility.git
129
143
  licenses:
130
144
  - MIT
131
145
  metadata: {}
132
- post_install_message:
146
+ post_install_message:
133
147
  rdoc_options: []
134
148
  require_paths:
135
149
  - lib
@@ -144,8 +158,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
144
158
  - !ruby/object:Gem::Version
145
159
  version: '0'
146
160
  requirements: []
147
- rubygems_version: 3.0.3.1
148
- signing_key:
161
+ rubygems_version: 3.4.10
162
+ signing_key:
149
163
  specification_version: 4
150
164
  summary: 一款cocoapods插件,用于创建定制化标准组件.
151
165
  test_files: []