cocoapods-ykutility 0.0.15 → 0.0.17

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: 5982e97115a674d15ff828e0910f335cd3139718d0cc78b26a0fe479c87b1b76
4
- data.tar.gz: fd15dfd38bf166495a210141b1f7cf4ed5815385626f023c3c27dfe10f80d4ab
3
+ metadata.gz: df1781fbaaf385bb78e2c6f759f83f695b97160873bd6f43dae0023d3b45392c
4
+ data.tar.gz: c4aa773035e0e924208073a652c6c3c32bfc3540d76ba4452be7170688fa09a8
5
5
  SHA512:
6
- metadata.gz: 0e4cbc2d579f13ce39b3bba3b5b63abdbdd09f9e30a5e5f8061537c2dd6595e74e1911fbd4e5f256548992dae32b077785e3bc6bc061fdbec6c72cd806c10bb0
7
- data.tar.gz: 10691d43f0a0faaf2dbd46e4a7a19b9b7c3dbde11fc3e9dd4581c185c54329626b06b376851dc4ba32b08f34a6e9f587dfe49f6bd398bc91abd808dbf26a6c95
6
+ metadata.gz: 7e40dcea94c384fece0a4d2af9e5d758b793d4f19ff36d26a3b8cef546522be7720566c404239c7833c0a33c7241ad0bf98708ad0d83b7a7a896f3faf945833f
7
+ data.tar.gz: 20e51a395c6c15cc6e9ac497850bd4c453637b50edf428cd8ac43c0408bbc0a886e8dab16a06fe8e4061e322edc3b00b9d2d8b3da1f865997940092845542813
@@ -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
@@ -1,5 +1,5 @@
1
1
  module CocoapodsYkPodUtility
2
- VERSION = '0.0.15'
2
+ VERSION = '0.0.17'
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
@@ -29,8 +29,9 @@ Pod::Spec.new do |spec|
29
29
  # ――― Resources ―――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――― #
30
30
  # 放置 json,font,jpg,png等资源
31
31
 
32
+ # spec.resources = ["YKRPC_POD_NAME/{Public,Private}/**/*.{xib}"]
32
33
  # spec.resource_bundles = {
33
- # 'YKRPC_POD_NAME' => ['YKRPC_POD_NAME/Assets/*.xcassets', "YKRPC_POD_NAME/{Public,Private}/**/*.{png,jpg,font,json,xib}"]
34
+ # 'YKRPC_POD_NAME' => ['YKRPC_POD_NAME/Assets/*.xcassets', "YKRPC_POD_NAME/{Public,Private}/**/*.{png,jpg,font,json}"]
34
35
  # }
35
36
 
36
37
 
@@ -28,9 +28,9 @@ Pod::Spec.new do |spec|
28
28
 
29
29
  # ――― Resources ―――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――― #
30
30
  # 放置 json,font,jpg,png等资源
31
-
31
+ # spec.resources = ["YKRPC_POD_NAME/{Public,Private}/**/*.{xib}"]
32
32
  # spec.resource_bundles = {
33
- # 'YKRPC_POD_NAME' => ['YKRPC_POD_NAME/Assets/*.xcassets', "YKRPC_POD_NAME/{Public,Private}/**/*.{png,jpg,font,json,xib}"]
33
+ # 'YKRPC_POD_NAME' => ['YKRPC_POD_NAME/Assets/*.xcassets', "YKRPC_POD_NAME/{Public,Private}/**/*.{png,jpg,font,json}"]
34
34
  # }
35
35
 
36
36
 
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.15
4
+ version: 0.0.17
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-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jazzy
@@ -129,7 +129,7 @@ homepage: https://github.com/stephen5652/cocoapods-yk-pod-utility.git
129
129
  licenses:
130
130
  - MIT
131
131
  metadata: {}
132
- post_install_message:
132
+ post_install_message:
133
133
  rdoc_options: []
134
134
  require_paths:
135
135
  - lib
@@ -144,8 +144,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
144
144
  - !ruby/object:Gem::Version
145
145
  version: '0'
146
146
  requirements: []
147
- rubygems_version: 3.0.3.1
148
- signing_key:
147
+ rubygems_version: 3.1.6
148
+ signing_key:
149
149
  specification_version: 4
150
150
  summary: 一款cocoapods插件,用于创建定制化标准组件.
151
151
  test_files: []