podfileDep 1.0.0 → 1.1.0

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: '058842804957a777686796303c5dfba2878f93d7dde88957bffda2ab3ca2dde1'
4
- data.tar.gz: 170b78f5c875d1ffadfca8b645ad3b50231f329acf96c39b2a67d87e5c8e78fb
3
+ metadata.gz: c2844ce37f6852ca5f87320a1c51e9a8a49da272186481b1d9c858556ce8a833
4
+ data.tar.gz: 7c7b4be1c3bb5ca85786dc964b409efec1fc3ffb1987b7506aecb776cbecac20
5
5
  SHA512:
6
- metadata.gz: 44a48d4679b5fd5ffb26fad9dfa4cfe7698350f69786b6d4f1fc2d8dbb6e7a0d0060e3a8e7c9de50e835dd3c089d27e5ce8a0db33aba1110ab25f47728915504
7
- data.tar.gz: 03fb2d60e8c3f0e7bc345e47388d855054bd31e409b447167fb3d067e4d9b29889b492b75f4664f7bc1edbe36e0c23873c64b2d9a3f33fed4a86a3f25fe32702
6
+ metadata.gz: bb81a3aac54c9cb36ad145c1d52fe07dfa09283061f9845d3d6eae3ceade152b59fe3a290ef36a47bbae0375b3e02f257299890657f280f11657a2e0d855e5c8
7
+ data.tar.gz: 4b10ffd9ecc936e313244474e131d1bafdf7db0a4faa61ad69fdcb0565aff167790e35173e7e58f0b22cb1318bd43331419305a0781d5e8a880d25e829134798
data/CHANGELOG.md ADDED
@@ -0,0 +1,5 @@
1
+ ## [Unreleased]
2
+
3
+ ## [0.1.0] - 2022-12-27
4
+
5
+ - Initial release
data/CODE_OF_CONDUCT.md CHANGED
@@ -2,73 +2,83 @@
2
2
 
3
3
  ## Our Pledge
4
4
 
5
- In the interest of fostering an open and welcoming environment, we as
6
- contributors and maintainers pledge to making participation in our project and
7
- our community a harassment-free experience for everyone, regardless of age, body
8
- size, disability, ethnicity, gender identity and expression, level of experience,
9
- nationality, personal appearance, race, religion, or sexual identity and
10
- orientation.
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.
11
8
 
12
9
  ## Our Standards
13
10
 
14
- Examples of behavior that contributes to creating a positive environment
15
- include:
11
+ Examples of behavior that contributes to a positive environment for our community include:
16
12
 
17
- * Using welcoming and inclusive language
18
- * Being respectful of differing viewpoints and experiences
19
- * Gracefully accepting constructive criticism
20
- * Focusing on what is best for the community
21
- * Showing empathy towards other community members
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
22
18
 
23
- Examples of unacceptable behavior by participants include:
19
+ Examples of unacceptable behavior include:
24
20
 
25
- * The use of sexualized language or imagery and unwelcome sexual attention or
26
- advances
27
- * Trolling, insulting/derogatory comments, and personal or political attacks
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
28
24
  * Public or private harassment
29
- * Publishing others' private information, such as a physical or electronic
30
- address, without explicit permission
25
+ * Publishing others' private information, such as a physical or email
26
+ address, without their explicit permission
31
27
  * Other conduct which could reasonably be considered inappropriate in a
32
28
  professional setting
33
29
 
34
- ## Our Responsibilities
30
+ ## Enforcement Responsibilities
35
31
 
36
- Project maintainers are responsible for clarifying the standards of acceptable
37
- behavior and are expected to take appropriate and fair corrective action in
38
- response to any instances of unacceptable behavior.
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.
39
33
 
40
- Project maintainers have the right and responsibility to remove, edit, or
41
- reject comments, commits, code, wiki edits, issues, and other contributions
42
- that are not aligned to this Code of Conduct, or to ban temporarily or
43
- permanently any contributor for other behaviors that they deem inappropriate,
44
- threatening, offensive, or harmful.
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.
45
35
 
46
36
  ## Scope
47
37
 
48
- This Code of Conduct applies both within project spaces and in public spaces
49
- when an individual is representing the project or its community. Examples of
50
- representing a project or community include using an official project e-mail
51
- address, posting via an official social media account, or acting as an appointed
52
- representative at an online or offline event. Representation of a project may be
53
- further defined and clarified by project maintainers.
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.
54
39
 
55
40
  ## Enforcement
56
41
 
57
- Instances of abusive, harassing, or otherwise unacceptable behavior may be
58
- reported by contacting the project team at 2975745207@qq.com. All
59
- complaints will be reviewed and investigated and will result in a response that
60
- is deemed necessary and appropriate to the circumstances. The project team is
61
- obligated to maintain confidentiality with regard to the reporter of an incident.
62
- Further details of specific enforcement policies may be posted separately.
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.
63
59
 
64
- Project maintainers who do not follow or enforce the Code of Conduct in good
65
- faith may face temporary or permanent repercussions as determined by other
66
- members of the project's leadership.
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.
67
73
 
68
74
  ## Attribution
69
75
 
70
- This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
71
- available at [http://contributor-covenant.org/version/1/4][version]
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
72
82
 
73
- [homepage]: http://contributor-covenant.org
74
- [version]: http://contributor-covenant.org/version/1/4/
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.
data/Gemfile CHANGED
@@ -1,6 +1,8 @@
1
- source "https://rubygems.org"
1
+ # frozen_string_literal: true
2
2
 
3
- git_source(:github) {|repo_name| "https://github.com/#{repo_name}" }
3
+ source "https://rubygems.org"
4
4
 
5
5
  # Specify your gem's dependencies in podfileDep.gemspec
6
6
  gemspec
7
+
8
+ gem "rake", "~> 13.0"
data/Gemfile.lock ADDED
@@ -0,0 +1,19 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ podfileDep (0.2.0)
5
+
6
+ GEM
7
+ remote: https://rubygems.org/
8
+ specs:
9
+ rake (13.0.6)
10
+
11
+ PLATFORMS
12
+ x86_64-darwin-22
13
+
14
+ DEPENDENCIES
15
+ podfileDep!
16
+ rake (~> 13.0)
17
+
18
+ BUNDLED WITH
19
+ 2.3.26
data/README.md CHANGED
@@ -6,17 +6,11 @@ TODO: Delete this and the text above, and describe your gem
6
6
 
7
7
  ## Installation
8
8
 
9
- Add this line to your application's Gemfile:
9
+ Install the gem and add to the application's Gemfile by executing:
10
10
 
11
- ```ruby
12
- gem 'podfileDep'
13
- ```
11
+ $ bundle add podfileDep
14
12
 
15
- And then execute:
16
-
17
- $ bundle
18
-
19
- Or install it yourself as:
13
+ If bundler is not being used to manage dependencies, install the gem by executing:
20
14
 
21
15
  $ gem install podfileDep
22
16
 
@@ -28,16 +22,12 @@ TODO: Write usage instructions here
28
22
 
29
23
  After checking out the repo, run `bin/setup` to install dependencies. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
30
24
 
31
- To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
25
+ To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and the created tag, and push the `.gem` file to [rubygems.org](https://rubygems.org).
32
26
 
33
27
  ## Contributing
34
28
 
35
- Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/podfileDep. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
36
-
37
- ## License
38
-
39
- The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
29
+ Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/podfileDep. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [code of conduct](https://github.com/[USERNAME]/podfileDep/blob/main/CODE_OF_CONDUCT.md).
40
30
 
41
31
  ## Code of Conduct
42
32
 
43
- Everyone interacting in the PodfileDep projects codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/[USERNAME]/podfileDep/blob/master/CODE_OF_CONDUCT.md).
33
+ Everyone interacting in the PodfileDep project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/[USERNAME]/podfileDep/blob/main/CODE_OF_CONDUCT.md).
data/Rakefile CHANGED
@@ -1,2 +1,4 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require "bundler/gem_tasks"
2
- task :default => :spec
4
+ task default: %i[]
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module PodfileDep
2
- VERSION = "1.0.0"
4
+ VERSION = "1.1.0"
3
5
  end
data/lib/podfileDep.rb CHANGED
@@ -3,7 +3,6 @@ require 'yaml'
3
3
 
4
4
  module PodfileDep
5
5
 
6
- $openImportCheck = false
7
6
  $podfile_thirdParty = 'PodfileThirdParty.yaml'
8
7
  $podfile_module = 'PodfileModule.yaml'
9
8
  $podfile_local = 'PodfileLocal.yaml'
@@ -28,8 +27,7 @@ module PodfileDep
28
27
  end
29
28
  end
30
29
 
31
- def PodfileDep.setup(targets, openImportCheck)
32
- $openImportCheck = openImportCheck
30
+ def PodfileDep.setup(targets)
33
31
 
34
32
  PodfileDep.checkFile()
35
33
  PodfileDep.checkParam(targets)
@@ -216,7 +214,7 @@ PODS:
216
214
  end
217
215
 
218
216
  # 校验
219
- if not dependency['path'] and not dependency['source'] and dependency['version']
217
+ if not dependency['path'] and not dependency['podspec'] and not dependency['source'] and dependency['version']
220
218
  puts '❌ 请为组件'+dependency['pod']+'配置source字段或在'+ yamlName+'顶层设置默认source(字段:SOURCE和BINARY_SOURCE)'
221
219
  exit!
222
220
  end
@@ -552,11 +550,7 @@ module ImportCheck
552
550
  end
553
551
  end
554
552
 
555
- def ImportCheck.check(check)
556
- unless check
557
- puts "未开启import规范检查(开启方式podfile文件中PodfileDep.setup的第二个参数)"
558
- return
559
- end
553
+ def ImportCheck.check()
560
554
  puts "import规范检查中..."
561
555
  start = (Time.now.to_f * 1000).to_i
562
556
 
@@ -792,7 +786,7 @@ class PathUtil
792
786
  end
793
787
 
794
788
  END {
795
- ImportCheck.check($openImportCheck)
789
+ ImportCheck.check()
796
790
  PodfileDep.logIndirectDependencies()
797
791
  PodfileDep.logUnusedDependencies()
798
792
  }
@@ -0,0 +1,4 @@
1
+ module PodfileDep
2
+ VERSION: String
3
+ # See the writing guide of rbs: https://github.com/ruby/rbs#guides
4
+ end
metadata CHANGED
@@ -1,68 +1,37 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: podfileDep
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.1.0
5
5
  platform: ruby
6
6
  authors:
7
- - wangshuaipeng
7
+ - WANGSHUAIPENG
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2023-01-16 00:00:00.000000000 Z
12
- dependencies:
13
- - !ruby/object:Gem::Dependency
14
- name: bundler
15
- requirement: !ruby/object:Gem::Requirement
16
- requirements:
17
- - - "~>"
18
- - !ruby/object:Gem::Version
19
- version: '1.17'
20
- type: :development
21
- prerelease: false
22
- version_requirements: !ruby/object:Gem::Requirement
23
- requirements:
24
- - - "~>"
25
- - !ruby/object:Gem::Version
26
- version: '1.17'
27
- - !ruby/object:Gem::Dependency
28
- name: rake
29
- requirement: !ruby/object:Gem::Requirement
30
- requirements:
31
- - - "~>"
32
- - !ruby/object:Gem::Version
33
- version: '10.0'
34
- type: :development
35
- prerelease: false
36
- version_requirements: !ruby/object:Gem::Requirement
37
- requirements:
38
- - - "~>"
39
- - !ruby/object:Gem::Version
40
- version: '10.0'
41
- description: podfile文件解析.
11
+ date: 2023-02-05 00:00:00.000000000 Z
12
+ dependencies: []
13
+ description: Write a longer description or delete this line.
42
14
  email:
43
15
  - wsp810@163.com
44
16
  executables: []
45
17
  extensions: []
46
18
  extra_rdoc_files: []
47
19
  files:
48
- - ".gitignore"
20
+ - CHANGELOG.md
49
21
  - CODE_OF_CONDUCT.md
50
22
  - Gemfile
51
- - LICENSE.txt
23
+ - Gemfile.lock
52
24
  - README.md
53
25
  - Rakefile
54
- - bin/console
55
- - bin/setup
56
26
  - lib/podfileDep.rb
57
27
  - lib/podfileDep/version.rb
58
- - podfileDep.gemspec
59
- homepage: https://toscode.gitee.com/sourceiOS/podfileDep
60
- licenses:
61
- - MIT
28
+ - sig/podfileDep.rbs
29
+ homepage: https://gitee.com/sourceiOS/podfileDep
30
+ licenses: []
62
31
  metadata:
63
- homepage_uri: https://toscode.gitee.com/sourceiOS/podfileDep
64
- source_code_uri: https://toscode.gitee.com/sourceiOS/podfileDep.git
65
- changelog_uri: https://toscode.gitee.com/sourceiOS/podfileDep
32
+ homepage_uri: https://gitee.com/sourceiOS/podfileDep
33
+ source_code_uri: https://gitee.com/sourceiOS/podfileDep
34
+ changelog_uri: https://gitee.com/sourceiOS/podfileDep
66
35
  post_install_message:
67
36
  rdoc_options: []
68
37
  require_paths:
@@ -71,7 +40,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
71
40
  requirements:
72
41
  - - ">="
73
42
  - !ruby/object:Gem::Version
74
- version: '0'
43
+ version: 2.6.0
75
44
  required_rubygems_version: !ruby/object:Gem::Requirement
76
45
  requirements:
77
46
  - - ">="
@@ -81,5 +50,5 @@ requirements: []
81
50
  rubygems_version: 3.0.3
82
51
  signing_key:
83
52
  specification_version: 4
84
- summary: podfile文件解析.
53
+ summary: Write a short summary, because RubyGems requires one.
85
54
  test_files: []
data/.gitignore DELETED
@@ -1,8 +0,0 @@
1
- /.bundle/
2
- /.yardoc
3
- /_yardoc/
4
- /coverage/
5
- /doc/
6
- /pkg/
7
- /spec/reports/
8
- /tmp/
data/LICENSE.txt DELETED
@@ -1,21 +0,0 @@
1
- The MIT License (MIT)
2
-
3
- Copyright (c) 2023 lihaifeng
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in
13
- all copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
- THE SOFTWARE.
data/bin/console DELETED
@@ -1,14 +0,0 @@
1
- #!/usr/bin/env ruby
2
-
3
- require "bundler/setup"
4
- require "podfileDep"
5
-
6
- # You can add fixtures and/or initialization code here to make experimenting
7
- # with your gem easier. You can also use a different console, if you like.
8
-
9
- # (If you use this, don't forget to add pry to your Gemfile!)
10
- # require "pry"
11
- # Pry.start
12
-
13
- require "irb"
14
- IRB.start(__FILE__)
data/bin/setup DELETED
@@ -1,8 +0,0 @@
1
- #!/usr/bin/env bash
2
- set -euo pipefail
3
- IFS=$'\n\t'
4
- set -vx
5
-
6
- bundle install
7
-
8
- # Do any other automated setup that you need to do here
data/podfileDep.gemspec DELETED
@@ -1,41 +0,0 @@
1
-
2
- lib = File.expand_path("../lib", __FILE__)
3
- $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
- require "podfileDep/version"
5
-
6
- Gem::Specification.new do |spec|
7
- spec.name = "podfileDep"
8
- spec.version = PodfileDep::VERSION
9
- spec.authors = ["wangshuaipeng"]
10
- spec.email = ["wsp810@163.com"]
11
-
12
- spec.summary = %q{podfile文件解析.}
13
- spec.description = %q{podfile文件解析.}
14
- spec.homepage = "https://toscode.gitee.com/sourceiOS/podfileDep"
15
- spec.license = "MIT"
16
-
17
- # Prevent pushing this gem to RubyGems.org. To allow pushes either set the 'allowed_push_host'
18
- # to allow pushing to a single host or delete this section to allow pushing to any host.
19
- if spec.respond_to?(:metadata)
20
- # spec.metadata["allowed_push_host"] = "TODO: Set to 'http://mygemserver.com'"
21
-
22
- spec.metadata["homepage_uri"] = spec.homepage
23
- spec.metadata["source_code_uri"] = "https://toscode.gitee.com/sourceiOS/podfileDep.git"
24
- spec.metadata["changelog_uri"] = "https://toscode.gitee.com/sourceiOS/podfileDep"
25
- else
26
- raise "RubyGems 2.0 or newer is required to protect against " \
27
- "public gem pushes."
28
- end
29
-
30
- # Specify which files should be added to the gem when it is released.
31
- # The `git ls-files -z` loads the files in the RubyGem that have been added into git.
32
- spec.files = Dir.chdir(File.expand_path('..', __FILE__)) do
33
- `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
34
- end
35
- spec.bindir = "exe"
36
- spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
37
- spec.require_paths = ["lib"]
38
-
39
- spec.add_development_dependency "bundler", "~> 1.17"
40
- spec.add_development_dependency "rake", "~> 10.0"
41
- end