cocoapods-ykutility 0.0.16 → 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: a518af9ccb2e0fe2e75671c2495fdaad0d1822f4ad23730fd4a5512c81209484
4
- data.tar.gz: faad0a772db8bab11e185272f4ff80e85875a0ae12da0c0beacc7ba689dfaa2b
3
+ metadata.gz: df1781fbaaf385bb78e2c6f759f83f695b97160873bd6f43dae0023d3b45392c
4
+ data.tar.gz: c4aa773035e0e924208073a652c6c3c32bfc3540d76ba4452be7170688fa09a8
5
5
  SHA512:
6
- metadata.gz: 6518511c90d62afb13c630e6054ecfd07859e35341fcec5a858745f9ba6372c346469172d4350182a5bbcb1f009cd6f53ef28f3e4bed8e025318d3b499112e74
7
- data.tar.gz: 636fba12f302609d559714ba04f14ca4b2070f84bb51d64a3ffbe26a69a742d993c8c4f9e9ecb36b8f49eecb695c31b325fb5c1136f3825368158acadf9ba5b3
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.16'
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
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.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: []