licensed 4.0.1 → 4.0.3

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: 3746e4cddde0edf382e8821057edf8e850e1c3e7f919ae7ffe8c0a0d2e9673b6
4
- data.tar.gz: 3bfd9b9455a01be274fec72b4594679845c0e43ea2296690b816edc602e92978
3
+ metadata.gz: 9b570c99aa05e69aae2e75f5e661f1cb307c2031e30e0df440d1387f504cbb22
4
+ data.tar.gz: d5976f503706900355565f95edb7d0aa8502b2e1cde65d351d3b9bce5257a6c7
5
5
  SHA512:
6
- metadata.gz: 3cefdf63dab57c1710903687b8eb4afb8538a8e95f2c7a911d156f44ad221bc47fb127519a72bd76d833f13bbd803c9b77b253b8012964fcd9316e3a73fc1adf
7
- data.tar.gz: 7af786369bda501fd1196dadf82427d0ba83cb37491aa231ed3b3717b9df30849af017ff0e0450eaeb5f4d24933a1ae1f3d4757821d73e6c6d757289f5555c51
6
+ metadata.gz: bda6cf9e2df1df8854493763a70bbb876c40b070bec8dd30a8323e89435920ad6109616fb353720aa8d0c1533d9815c3476ca71ae43ff1883868fe162babb10a
7
+ data.tar.gz: 65f70a20f64c63c469a159d36d45dbc17d8c235bac9e2ceda8519227531ba37efb0aec5e1a0d298e71729f5f91a37e00fec35801e67de0398489d72bb5b96343
data/CHANGELOG.md CHANGED
@@ -6,6 +6,23 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
6
6
 
7
7
  ## [Unreleased]
8
8
 
9
+ ## 4.0.3
10
+
11
+ ### Changed
12
+
13
+ - Cocoapods dependency enumeration has been disabled (https://github.com/github/licensed/pull/616)
14
+
15
+ ### Fixed
16
+
17
+ - Fixed method signature change in Bundler API with Bundler >= 2.4.4 (:tada: @CvX https://github.com/github/licensed/pull/614)
18
+ - Fixed installation dependency compatibility with Rails >= 7.0 (https://github.com/github/licensed/pull/616)
19
+
20
+ ## 4.0.2
21
+
22
+ ### Fixed
23
+
24
+ - The path to a gradlew executable can be configured when enumerating gradle dependencies (:tada: @LouisBoudreau https://github.com/github/licensed/pull/610)
25
+
9
26
  ## 4.0.1
10
27
 
11
28
  ### Fixed
@@ -683,4 +700,4 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
683
700
 
684
701
  Initial release :tada:
685
702
 
686
- [Unreleased]: https://github.com/github/licensed/compare/4.0.1...HEAD
703
+ [Unreleased]: https://github.com/github/licensed/compare/4.0.3...HEAD
@@ -1,10 +1,12 @@
1
1
  # CocoaPods
2
2
 
3
+ **NOTE!**: Enumerating Cocoapods dependencies is disabled until the cocoapods-core gem is compatible with Rails 7+. See https://github.com/CocoaPods/Core/pull/733
4
+
3
5
  The cocoapods source will detect dependencies when `Podfile` and `Podfile.lock` are found at an app's `source_path`.
4
6
 
5
7
  It uses the `pod` CLI commands to enumerate dependencies and gather metadata on each package.
6
8
 
7
- ### Evaluating dependencies from a specific target
9
+ ## Evaluating dependencies from a specific target
8
10
 
9
11
  The `cocoapods.targets` property is used to specify which targets to analyze dependencies from. By default, dependencies from all targets will be analyzed.
10
12
 
@@ -14,6 +14,7 @@ gradle:
14
14
  - runtime
15
15
  - runtimeClassPath
16
16
  ```
17
+
17
18
  ### Multi-build projects
18
19
 
19
20
  To run `licensed` for specific projects in a [multi-build project](https://docs.gradle.org/current/userguide/multi_project_builds.html) you must specify the [apps](../configuration/application_source.md) configuration key.
@@ -21,4 +22,13 @@ To run `licensed` for specific projects in a [multi-build project](https://docs.
21
22
  ```yml
22
23
  apps:
23
24
  - source_path: ./path/to/subproject
24
- ```
25
+ ```
26
+
27
+ ### Gradlew
28
+
29
+ The `gradle.gradlew` property is used to determine where the `gradlew` executable is. The default location the [configuration root](../configuration/configuration_root.md).
30
+
31
+ ```yml
32
+ gradle:
33
+ gradlew: path/from/root/to/gradle/gradlew
34
+ ```
@@ -47,8 +47,8 @@ module Licensed
47
47
  Licensed::Bundler::MissingSpecification.new(name: name, version: version, platform: platform, source: source)
48
48
  end
49
49
 
50
- def __materialize__(*args)
51
- spec = super(*args)
50
+ def __materialize__(*args, **kwargs)
51
+ spec = super(*args, **kwargs)
52
52
  return spec if spec
53
53
 
54
54
  Licensed::Bundler::MissingSpecification.new(name: name, version: version, platform: platform, source: source)
@@ -2,15 +2,20 @@
2
2
  require "json"
3
3
  require "pathname"
4
4
  require "uri"
5
- require "cocoapods-core"
5
+
6
+ # **NOTE** Cocoapods is disabled until cocoapods-core supports recent rails versions
7
+ # https://github.com/CocoaPods/Core/pull/733
8
+ # require "cocoapods-core"
6
9
 
7
10
  module Licensed
8
11
  module Sources
9
12
  class Cocoapods < Source
10
13
  def enabled?
11
- return unless Licensed::Shell.tool_available?("pod")
14
+ false
15
+
16
+ # return unless Licensed::Shell.tool_available?("pod")
12
17
 
13
- config.pwd.join("Podfile").exist? && config.pwd.join("Podfile.lock").exist?
18
+ # config.pwd.join("Podfile").exist? && config.pwd.join("Podfile.lock").exist?
14
19
  end
15
20
 
16
21
  def enumerate_dependencies
@@ -46,11 +51,13 @@ module Licensed
46
51
  end
47
52
 
48
53
  def lockfile
49
- @lockfile ||= Pod::Lockfile.from_file(config.pwd.join("Podfile.lock"))
54
+ @lockfile = nil
55
+ # @lockfile ||= Pod::Lockfile.from_file(config.pwd.join("Podfile.lock"))
50
56
  end
51
57
 
52
58
  def podfile
53
- @podfile ||= Pod::Podfile.from_file(config.pwd.join("Podfile"))
59
+ @podfile = nil
60
+ # @podfile ||= Pod::Podfile.from_file(config.pwd.join("Podfile"))
54
61
  end
55
62
 
56
63
  def dependency_path(name)
@@ -66,7 +66,6 @@ module Licensed
66
66
  return @executable if defined?(@executable)
67
67
 
68
68
  @executable = begin
69
- gradlew = File.join(config.pwd, "gradlew")
70
69
  return gradlew if File.executable?(gradlew)
71
70
 
72
71
  "gradle" if Licensed::Shell.tool_available?("gradle")
@@ -89,6 +88,14 @@ module Licensed
89
88
  end
90
89
  end
91
90
 
91
+ # Returns the path to the Gradle wrapper.
92
+ def gradlew
93
+ @gradlew ||= begin
94
+ gradlew = config.dig("gradle", "gradlew")
95
+ config.root.join(gradlew || "gradlew").to_s
96
+ end
97
+ end
98
+
92
99
  # Returns a key to uniquely identify a name and version in the obtained CSV content
93
100
  def csv_key(name:, version:)
94
101
  "#{name}-#{version}"
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
  module Licensed
3
- VERSION = "4.0.1".freeze
3
+ VERSION = "4.0.3".freeze
4
4
 
5
5
  def self.previous_major_versions
6
6
  major_version = Gem::Version.new(Licensed::VERSION).segments.first
data/licensed.gemspec CHANGED
@@ -31,7 +31,7 @@ Gem::Specification.new do |spec|
31
31
  spec.add_dependency "parallel", "1.22.1"
32
32
  spec.add_dependency "reverse_markdown", "2.1.1"
33
33
  spec.add_dependency "json", "2.6.3"
34
- spec.add_dependency "cocoapods-core", "1.11.3"
34
+ # spec.add_dependency "cocoapods-core", "1.11.3"
35
35
 
36
36
  spec.add_development_dependency "rake", "13.0.6"
37
37
  spec.add_development_dependency "minitest", "5.17.0"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: licensed
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.0.1
4
+ version: 4.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - GitHub
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2023-01-06 00:00:00.000000000 Z
11
+ date: 2023-01-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: licensee
@@ -122,20 +122,6 @@ dependencies:
122
122
  - - '='
123
123
  - !ruby/object:Gem::Version
124
124
  version: 2.6.3
125
- - !ruby/object:Gem::Dependency
126
- name: cocoapods-core
127
- requirement: !ruby/object:Gem::Requirement
128
- requirements:
129
- - - '='
130
- - !ruby/object:Gem::Version
131
- version: 1.11.3
132
- type: :runtime
133
- prerelease: false
134
- version_requirements: !ruby/object:Gem::Requirement
135
- requirements:
136
- - - '='
137
- - !ruby/object:Gem::Version
138
- version: 1.11.3
139
125
  - !ruby/object:Gem::Dependency
140
126
  name: rake
141
127
  requirement: !ruby/object:Gem::Requirement