cocoapods-acknowledgements 1.1.2 → 1.1.3

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
- SHA1:
3
- metadata.gz: 90c8a00b0d0e2dbe6bdd7f17ee655c4ba484ace5
4
- data.tar.gz: d117cfd663429a586fc7766f962ccb914d9b5314
2
+ SHA256:
3
+ metadata.gz: dea90b6cc9946925808971560e4e4748f40c709d1ab31f19d6d1c3fdeeb6ee84
4
+ data.tar.gz: 59db6e539ddb3bd7e3956c3dd505c85f039a26b94042309b2637ca92f0e47472
5
5
  SHA512:
6
- metadata.gz: b66ec8e09910f3a2fd321adbf8f68d67fe20a25daff76faf3a76633f8efbbded6c87e4d09bf374d0dcec4eb121ff15d7653f731cc45ee52c932517ecca3d7ffc
7
- data.tar.gz: 494935dcd2185fbf03a4e4b34cb816cfbf500b50855e81142fc908003b6995979f53d92f23ff0267cc3059b2546c99133a507b2129b0f00616230a8ba096b6d2
6
+ metadata.gz: 8e4b19c4eb23677ebe75d919e24cae38b2bb029b64120ee7092e6799a255dacebbf47fe035ac69d7aed58e97e1040f50627feb6ad85d7ddeeb152bb3dc4cf570
7
+ data.tar.gz: c65a59d01d3337e5dcec5729d1dd855c098584d3c342503ea9a1ef534b1f9d97edfc50c5866331c9b274ecd194e8c51f69dc47526eb5b95f37add8a25afdbe9b
@@ -1,5 +1,17 @@
1
1
  # CocoaPods Acknowledgements Changelog
2
2
 
3
+ ## 1.1.3 (2018-04-04)
4
+
5
+ ##### Enhancements
6
+
7
+ * Update matching for `Settings.bundle` file in project.
8
+ [Jim Hildensperger](https://github.com/jhildensperger)
9
+
10
+ ##### Bug Fixes
11
+
12
+ * None.
13
+
14
+
3
15
  ## 1.1.2 (2016-10-28)
4
16
 
5
17
  ##### Enhancements
data/README.md CHANGED
@@ -33,7 +33,7 @@ plugin 'cocoapods-acknowledgements', :settings_bundle => true , :settings_post_p
33
33
  }
34
34
  ```
35
35
 
36
- The plugin will search through the first two levels of your project to find a `Settings.bundle` file, and add the file to the bundle. If this is not enough for you, we'd love a PR.
36
+ The plugin will search through your project files to find a `Settings.bundle` file, and add the file to the bundle. If this is not enough for you, we'd love a PR.
37
37
 
38
38
  You can also exclude some dependencies so they won't be added to the generated plists. This is useful when you don't want to add private dependencies.
39
39
 
@@ -32,9 +32,9 @@ module CocoaPodsAcknowledgements
32
32
 
33
33
  end
34
34
 
35
- # TODO: Code golf this
36
- def self.settings_bundle_in_project
37
- Dir.glob("**/*Settings.bundle").first
35
+ def self.settings_bundle_in_project(project)
36
+ file = project.files.find { |f| f.path =~ /Settings\.bundle$/ }
37
+ file.real_path.to_path unless file.nil?
38
38
  end
39
39
 
40
40
  Pod::HooksManager.register('cocoapods-acknowledgements', :post_install) do |context, user_options|
@@ -77,7 +77,7 @@ module CocoaPodsAcknowledgements
77
77
  # We need to look for a Settings.bundle
78
78
  # and add this to the root of the bundle
79
79
 
80
- settings_bundle = settings_bundle_in_project
80
+ settings_bundle = settings_bundle_in_project(project)
81
81
  if settings_bundle == nil
82
82
  Pod::UI.warn "Could not find a Settings.bundle to add the Pod Settings Plist to."
83
83
  else
@@ -1,3 +1,3 @@
1
1
  module CocoaPodsAcknowledgements
2
- VERSION = "1.1.2"
2
+ VERSION = "1.1.3"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cocoapods-acknowledgements
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.2
4
+ version: 1.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Fabio Pelosin
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2016-10-28 00:00:00.000000000 Z
13
+ date: 2018-04-04 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: activesupport
@@ -117,7 +117,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
117
117
  version: '0'
118
118
  requirements: []
119
119
  rubyforge_project:
120
- rubygems_version: 2.6.7
120
+ rubygems_version: 2.7.6
121
121
  signing_key:
122
122
  specification_version: 4
123
123
  summary: CocoaPods plugin that generates an acknowledgements plist to make it easy