podfileDep 2.1.6 → 2.2.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,44 @@
1
+ module Pod
2
+ class YamlPod
3
+
4
+ def initialize(pod)
5
+ @pod = pod
6
+ end
7
+
8
+ attr_accessor :module_name
9
+ attr_accessor :pod
10
+ attr_accessor :subspecs
11
+ attr_accessor :version
12
+ attr_accessor :git
13
+ attr_accessor :tag
14
+ attr_accessor :branch
15
+ attr_accessor :podspec
16
+ attr_accessor :configurations
17
+ attr_accessor :path
18
+ attr_accessor :inhibit_warnings
19
+ attr_accessor :source
20
+ attr_accessor :binary
21
+
22
+ def option
23
+ result = {:configurations => self.configurations,
24
+ :inhibit_warnings => self.inhibit_warnings,
25
+ :subspecs => self.subspecs}
26
+
27
+ if self.path #路径依赖
28
+ result[:path] = self.path
29
+ elsif self.podspec #podspec引用
30
+ result[:podspec] = self.podspec
31
+ elsif self.version #版本号依赖
32
+ result[:source] = self.source
33
+ elsif self.git #git仓库引用
34
+ result[:git] = self.git
35
+ if self.tag #tag引用
36
+ result[:tag] = self.tag
37
+ else #分支引用 或着未指定分支 也按分支引用
38
+ result[:branch] = self.branch
39
+ end
40
+ end
41
+ result
42
+ end
43
+ end
44
+ end
data/lib/podfileDep.rb CHANGED
@@ -1,5 +1,15 @@
1
1
  require_relative 'podfileDep/yaml/yaml_dep'
2
2
 
3
+ module Thin
4
+
5
+ yaml_dep = Pod::YamlDep.new
6
+
7
+ if yaml_dep.quick_build
8
+ require_relative 'podfileDep/thin/installer'
9
+ end
10
+
11
+ end
12
+
3
13
 
4
14
  module Pod
5
15
  class Podfile
@@ -8,8 +18,8 @@ module Pod
8
18
  # 加入插件
9
19
  plugin("podfileDep")
10
20
 
11
- # 解析依赖
12
- Pod::YamlManager.share_manager.analysis_yaml(self, false) do |name|
21
+ yam_dep = YamlDep.new
22
+ yam_dep.install_yaml_dep(self) do |name|
13
23
  yield(name) if block_given?
14
24
  end
15
25
 
@@ -20,7 +30,8 @@ end
20
30
  # 兼容旧的方式
21
31
  module PodfileDep
22
32
  def PodfileDep.setup(targets)
23
- res = Pod::YamlManager.share_manager.analysis_yaml(nil, true)
33
+ yam_dep = Pod::YamlDep.new
34
+ res = yam_dep.analysis_yaml_dep
24
35
  warn "\n⚠️ [PodfileDep.setup方法已过期],请使用新的方式, 参考:https://gitee.com/sourceiOS/podfileDepDemo/blob/master/Podfile\n"
25
36
  res
26
37
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: podfileDep
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.6
4
+ version: 2.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - 王帅朋
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2023-06-21 00:00:00.000000000 Z
11
+ date: 2023-07-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: cocoapods
@@ -46,7 +46,6 @@ extensions: []
46
46
  extra_rdoc_files: []
47
47
  files:
48
48
  - CHANGELOG.md
49
- - CODE_OF_CONDUCT.md
50
49
  - Gemfile
51
50
  - README.md
52
51
  - Rakefile
@@ -65,8 +64,13 @@ files:
65
64
  - lib/podfileDep/reference/project.rb
66
65
  - lib/podfileDep/reference/uninstall.rb
67
66
  - lib/podfileDep/reference/unused.rb
67
+ - lib/podfileDep/thin/installer.rb
68
+ - lib/podfileDep/thin/local.rb
69
+ - lib/podfileDep/thin/pod_target.rb
70
+ - lib/podfileDep/thin/shell.rb
68
71
  - lib/podfileDep/version.rb
69
72
  - lib/podfileDep/yaml/yaml_dep.rb
73
+ - lib/podfileDep/yaml/yaml_pod.rb
70
74
  - podfileDep.gemspec
71
75
  - release.sh
72
76
  homepage: https://gitee.com/sourceiOS/podfileDepDemo
data/CODE_OF_CONDUCT.md DELETED
@@ -1,84 +0,0 @@
1
- # Contributor Covenant Code of Conduct
2
-
3
- ## Our Pledge
4
-
5
- We as members, contributors, and leaders pledge to make participation in our community a harassment-free experience for everyone, regardless of age, body size, visible or invisible disability, ethnicity, sex characteristics, gender identity and expression, level of experience, education, socio-economic status, nationality, personal appearance, race, religion, or sexual identity and orientation.
6
-
7
- We pledge to act and interact in ways that contribute to an open, welcoming, diverse, inclusive, and healthy community.
8
-
9
- ## Our Standards
10
-
11
- Examples of behavior that contributes to a positive environment for our community include:
12
-
13
- * Demonstrating empathy and kindness toward other people
14
- * Being respectful of differing opinions, viewpoints, and experiences
15
- * Giving and gracefully accepting constructive feedback
16
- * Accepting responsibility and apologizing to those affected by our mistakes, and learning from the experience
17
- * Focusing on what is best not just for us as individuals, but for the overall community
18
-
19
- Examples of unacceptable behavior include:
20
-
21
- * The use of sexualized language or imagery, and sexual attention or
22
- advances of any kind
23
- * Trolling, insulting or derogatory comments, and personal or political attacks
24
- * Public or private harassment
25
- * Publishing others' private information, such as a physical or email
26
- address, without their explicit permission
27
- * Other conduct which could reasonably be considered inappropriate in a
28
- professional setting
29
-
30
- ## Enforcement Responsibilities
31
-
32
- Community leaders are responsible for clarifying and enforcing our standards of acceptable behavior and will take appropriate and fair corrective action in response to any behavior that they deem inappropriate, threatening, offensive, or harmful.
33
-
34
- Community leaders have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct, and will communicate reasons for moderation decisions when appropriate.
35
-
36
- ## Scope
37
-
38
- This Code of Conduct applies within all community spaces, and also applies when an individual is officially representing the community in public spaces. Examples of representing our community include using an official e-mail address, posting via an official social media account, or acting as an appointed representative at an online or offline event.
39
-
40
- ## Enforcement
41
-
42
- Instances of abusive, harassing, or otherwise unacceptable behavior may be reported to the community leaders responsible for enforcement at wangshuaipeng@ceair.com. All complaints will be reviewed and investigated promptly and fairly.
43
-
44
- All community leaders are obligated to respect the privacy and security of the reporter of any incident.
45
-
46
- ## Enforcement Guidelines
47
-
48
- Community leaders will follow these Community Impact Guidelines in determining the consequences for any action they deem in violation of this Code of Conduct:
49
-
50
- ### 1. Correction
51
-
52
- **Community Impact**: Use of inappropriate language or other behavior deemed unprofessional or unwelcome in the community.
53
-
54
- **Consequence**: A private, written warning from community leaders, providing clarity around the nature of the violation and an explanation of why the behavior was inappropriate. A public apology may be requested.
55
-
56
- ### 2. Warning
57
-
58
- **Community Impact**: A violation through a single incident or series of actions.
59
-
60
- **Consequence**: A warning with consequences for continued behavior. No interaction with the people involved, including unsolicited interaction with those enforcing the Code of Conduct, for a specified period of time. This includes avoiding interactions in community spaces as well as external channels like social media. Violating these terms may lead to a temporary or permanent ban.
61
-
62
- ### 3. Temporary Ban
63
-
64
- **Community Impact**: A serious violation of community standards, including sustained inappropriate behavior.
65
-
66
- **Consequence**: A temporary ban from any sort of interaction or public communication with the community for a specified period of time. No public or private interaction with the people involved, including unsolicited interaction with those enforcing the Code of Conduct, is allowed during this period. Violating these terms may lead to a permanent ban.
67
-
68
- ### 4. Permanent Ban
69
-
70
- **Community Impact**: Demonstrating a pattern of violation of community standards, including sustained inappropriate behavior, harassment of an individual, or aggression toward or disparagement of classes of individuals.
71
-
72
- **Consequence**: A permanent ban from any sort of public interaction within the community.
73
-
74
- ## Attribution
75
-
76
- This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 2.0,
77
- available at https://www.contributor-covenant.org/version/2/0/code_of_conduct.html.
78
-
79
- Community Impact Guidelines were inspired by [Mozilla's code of conduct enforcement ladder](https://github.com/mozilla/diversity).
80
-
81
- [homepage]: https://www.contributor-covenant.org
82
-
83
- For answers to common questions about this code of conduct, see the FAQ at
84
- https://www.contributor-covenant.org/faq. Translations are available at https://www.contributor-covenant.org/translations.