cocoapods-mapfile 0.2.3 → 0.2.5

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: cd22ad1c9300a50d1e79ad4e19c349784d632ef50766b00741faad26d4e350a4
4
- data.tar.gz: 425b0e5b884e3eaa4ad9f9f60bdc8680e5a4d4573e72e97af2f2f0707305e0e9
3
+ metadata.gz: 8eb57eb32ca81d86a3af1b1fa9b49115c3a7607bf1e6c2c546060e865a855652
4
+ data.tar.gz: 78ce44dbd5d258ffa4baa8d27201447fc8c2c995163239ec48cdc163fa1ab661
5
5
  SHA512:
6
- metadata.gz: bad97e72c3cde2ae26a510a8f1e3cf97e0f60ab219f187d440658950a47d0d9a46af541bfa18f46a9e37f2bec39512e84e3da7aa750a9e04bfe1f5963216e729
7
- data.tar.gz: 96a82f5e9926050be9cb1fb4c225cdd5b54a0ae4c5e982736680bf97558145a2f1a5ca1058259d4ba366272bb073abcca9d96c3020cce7847cb16408db3821a2
6
+ metadata.gz: e5acfc25fe04df059e746b82d1e4d6661ef598a378a19790bad48b04f5b10e11ad3e975bb61aa38b53a801bfe98234ed526744090be4cbb6477de4f982dce515
7
+ data.tar.gz: 73714efd5ea58856fd5170f2df67a036a15c9581bd5b4fd935f416b1508bf8b41d50f1e220d1cf81930891fb010ad3552583ee9925f8011801ca57feac14f18d
data/README.md CHANGED
@@ -129,6 +129,12 @@ Every time you execute pod install or pod update, `cocoapods-mapfile` will autom
129
129
  - `USER_HEADER_SEARCH_PATHS`
130
130
  - `HEAD_SEARCH_PATHS`
131
131
 
132
+ ## TODO
133
+
134
+ - File generation speed
135
+ - Perfect interface
136
+ - Optimize the code
137
+
132
138
  ## Contributing
133
139
 
134
140
  Bug reports and pull requests are welcome on GitHub at [cocoapods-hmap](https://github.com/Cat1237/cocoapods-hmap). This project is intended to be a safe, welcoming space for collaboration.
@@ -4,24 +4,22 @@ require 'hmap'
4
4
 
5
5
  module Pod
6
6
  # hook
7
- module CocoaPodsHMapHook
8
- @HooksManager = HooksManager
9
- @HooksManager.register('cocoapods-mapfile', :post_install) do |_, options|
10
- args = ["gen", "--project-directory=#{Config.instance.installation_root}"]
11
- # allow_targets = options['allow_targets']
12
- # unless allow_targets.nil?
13
- # if allow_targets.is_a?(Array)
14
- # args << "--allow-targets=#{allow_targets.join(', ')}" unless allow_targets.empty?
15
- # else
16
- # print 'waring:'.yellow, \
17
- # 'plugin cocoapods-mapfile args allow_targets must be a array, like ## allow_targets: [target1, targte2] ##'
18
- # end
19
- # end
20
- # save_origin = options['save_oripodgin'].nil? ? true : options['save_origin']
21
- # use_origin_headermap = options['use_origin_headermap'].nil? ? true : options['use_origin_headermap']
22
- # args << '--fno-save-origin' unless save_origin
23
- # args << '--fno-use-origin-headermap' unless use_origin_headermap
24
- HMap::Command.run(args)
25
- end
7
+ @HooksManager = HooksManager
8
+ @HooksManager.register('cocoapods-mapfile', :post_install) do |_, _options|
9
+ args = ['gen', "--project-directory=#{Config.instance.installation_root}"]
10
+ # allow_targets = options['allow_targets']
11
+ # unless allow_targets.nil?
12
+ # if allow_targets.is_a?(Array)
13
+ # args << "--allow-targets=#{allow_targets.join(', ')}" unless allow_targets.empty?
14
+ # else
15
+ # print 'waring:'.yellow, \
16
+ # 'plugin cocoapods-mapfile args allow_targets must be a array, like ## allow_targets: [target1, targte2] ##'
17
+ # end
18
+ # end
19
+ # save_origin = options['save_oripodgin'].nil? ? true : options['save_origin']
20
+ # use_origin_headermap = options['use_origin_headermap'].nil? ? true : options['use_origin_headermap']
21
+ # args << '--fno-save-origin' unless save_origin
22
+ # args << '--fno-use-origin-headermap' unless use_origin_headermap
23
+ HMap::Command.run(args)
26
24
  end
27
25
  end
data/lib/hmap/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module HMap
4
- VERSION = '0.2.3'
4
+ VERSION = '0.2.5'
5
5
  end
@@ -52,7 +52,7 @@ module HMap
52
52
  end
53
53
 
54
54
  def product_name
55
- target.product_name
55
+ target.product_name.gsub(/[-]/, '_')
56
56
  end
57
57
 
58
58
  def full_product_name
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cocoapods-mapfile
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.3
4
+ version: 0.2.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Cat1237
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-11-08 00:00:00.000000000 Z
11
+ date: 2021-11-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler