check_dependencies 0.1.1 → 0.1.2

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
2
  SHA256:
3
- metadata.gz: 0a73f424d5cc5e08111750a3b039462c0e300fc84fbe1d87764a1130bb44c016
4
- data.tar.gz: 7267576a8ff4408a1aafad2298538c1a7b93303723a0940d8a22faad9715bb1b
3
+ metadata.gz: b59a47c5d8d3061675a6e65e54208c165f191889dff8e155fafe30bee1427b4a
4
+ data.tar.gz: 9a53f687b2dd4502ddb42a38be5d2b48e41f839d6eb2923bac1258aee057bf61
5
5
  SHA512:
6
- metadata.gz: 3bc20fb056d628e70992ccf439e02d5f68d44d659df56460d39bf90d9d6fe325dcef69425ea11eef7a11dabc74dd550893c09433d558ba4f46a48ad0e7dc1dfe
7
- data.tar.gz: 117ce102e6919275d7aa9b9cd7ad2d448e0bf5f9cfd620cb93f638b01b0d0868519c29d038b35cbcb7e26cdc6f7e58d07b422b647c9dd2026d5f5a628e4c5aa2
6
+ metadata.gz: a585576604889412b7b2e9b628841e1ac641c49e33b0716ef1fa57962a3830a362c5e42bad867e23110c662c87d0bf2eb81fab1d336bd165f43884438a20bf4b
7
+ data.tar.gz: 8e360c2429323cd223abefb702918867917f4276bc3a278b06635a2b00b123c3f3c5c6861cceca5bf9302e33bd4eb7a267dc8a4c3319f62cd622e28547c129c8
data/CODE_OF_CONDUCT.md CHANGED
@@ -1,39 +1,79 @@
1
- # CheckDependencies
1
+ ```markdown
2
+ # check_dependencies Gem
2
3
 
3
- TODO: Delete this and the text below, and describe your gem
4
-
5
- Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/check_dependencies`. To experiment with that code, run `bin/console` for an interactive prompt.
4
+ check_dependencies Gem is a Ruby gem that offers utilities to assist in managing CocoaPods dependencies within iOS projects. This gem provides functionality to dynamically switch between local path-based dependencies and remote git branch-based dependencies.
6
5
 
7
6
  ## Installation
8
7
 
9
- TODO: Replace `UPDATE_WITH_YOUR_GEM_NAME_PRIOR_TO_RELEASE_TO_RUBYGEMS_ORG` with your gem name right after releasing it to RubyGems.org. Please do not do it earlier due to security reasons. Alternatively, replace this section with instructions to install your gem from git if you don't plan to release to RubyGems.org.
8
+ Install the gem by adding it to your Gemfile:
9
+
10
+ ```ruby
11
+ gem 'check_dependencies', git: 'https://github.com/ITxiansheng/check_dependencies.git'
12
+ ```
10
13
 
11
- Install the gem and add to the application's Gemfile by executing:
14
+ And then execute:
12
15
 
13
- $ bundle add UPDATE_WITH_YOUR_GEM_NAME_PRIOR_TO_RELEASE_TO_RUBYGEMS_ORG
16
+ ```bash
17
+ $ bundle install
18
+ ```
14
19
 
15
- If bundler is not being used to manage dependencies, install the gem by executing:
20
+ Or install it yourself as:
16
21
 
17
- $ gem install UPDATE_WITH_YOUR_GEM_NAME_PRIOR_TO_RELEASE_TO_RUBYGEMS_ORG
22
+ ```bash
23
+ $ gem install check_dependencies
24
+ ```
18
25
 
19
26
  ## Usage
20
27
 
21
- TODO: Write usage instructions here
28
+ The gem provides a command-line interface for interacting with its functionalities. You can use the `check_dependencies` command followed by appropriate options.
29
+ ```bash
30
+ check_dependencies --help
31
+ ```
32
+ ### Command Syntax
33
+
34
+ ```bash
35
+ check_dependencies --lockPath LOCK_PATH --depWay DEP_WAY --configPath CONFIG_PATH
36
+ ```
37
+
38
+ ### Options
39
+
40
+ - `--lockPath LOCK_PATH`: Specifies the path to your Podfile.lock file.
41
+ - `--depWay DEP_WAY`: Specifies the dependency mode. This can be either `path` for local path dependencies or `branch` for remote git branch dependencies.
42
+ - `--configPath CONFIG_PATH`: Specifies the path to the configuration file containing dependency configurations.
43
+
44
+ ### Example
45
+
46
+ ```bash
47
+ check_dependencies --lockPath ./Podfile.lock --depWay path --configPath ./repo_configs.txt
48
+ ```
22
49
 
23
- ## Development
50
+ ## Functions Overview
24
51
 
25
- 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.
52
+ The gem provides the following key functionalities:
26
53
 
27
- 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).
54
+ - Parsing `Podfile.lock` content to extract pod dependencies.
55
+ - Generating Podfile entries for local path or remote git branch dependencies.
56
+ - Processing and formatting dependencies for correct integration into Podfiles.
57
+
58
+ ## Workflow
59
+
60
+ 1. **Configuration Preparation**: Prepare the `repo_configs` file with the necessary configuration for each library. This file should map library names to their configuration, including local path, branch name, and git URL.
61
+
62
+ 2. **Running the Gem**: Execute the gem with the required options. Based on the specified `depWay`, the gem will process the `Podfile.lock` file and the `repo_configs` to output the necessary Podfile entries.
63
+
64
+ 3. **Integration**: After generating the Podfile entries, integrate them into your Podfile as needed. This allows you to switch between using local versions of libraries (for development or debugging) and their remote versions (for production or shared development).
65
+
66
+ ## Note
67
+
68
+ - Ensure that the `repo_configs` file is properly formatted and from a trusted source to avoid potential security risks.
28
69
 
29
70
  ## Contributing
30
71
 
31
- Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/check_dependencies. 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]/check_dependencies/blob/main/CODE_OF_CONDUCT.md).
72
+ Bug reports and pull requests are welcome on GitHub at [example/check_dependencies](https://github.com/ITxiansheng/check_dependencies). 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/ITxiansheng/check_dependencies/blob/main/CODE_OF_CONDUCT.md).
32
73
 
33
74
  ## License
34
75
 
35
76
  The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
77
+ ```
36
78
 
37
- ## Code of Conduct
38
-
39
- Everyone interacting in the CheckDependencies project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/[USERNAME]/check_dependencies/blob/main/CODE_OF_CONDUCT.md).
79
+ This README provides an overview of the gem's installation, usage, functions, workflow, notes, contributing guidelines, and license information. Adjust as needed for your specific project and preferences.
data/README.md CHANGED
@@ -1,39 +1,79 @@
1
- # CheckDependencies
1
+ ```markdown
2
+ # check_dependencies Gem
2
3
 
3
- TODO: Delete this and the text below, and describe your gem
4
-
5
- Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/check_dependencies`. To experiment with that code, run `bin/console` for an interactive prompt.
4
+ check_dependencies Gem is a Ruby gem that offers utilities to assist in managing CocoaPods dependencies within iOS projects. This gem provides functionality to dynamically switch between local path-based dependencies and remote git branch-based dependencies.
6
5
 
7
6
  ## Installation
8
7
 
9
- TODO: Replace `UPDATE_WITH_YOUR_GEM_NAME_PRIOR_TO_RELEASE_TO_RUBYGEMS_ORG` with your gem name right after releasing it to RubyGems.org. Please do not do it earlier due to security reasons. Alternatively, replace this section with instructions to install your gem from git if you don't plan to release to RubyGems.org.
8
+ Install the gem by adding it to your Gemfile:
9
+
10
+ ```ruby
11
+ gem 'check_dependencies', git: 'https://github.com/ITxiansheng/check_dependencies.git'
12
+ ```
10
13
 
11
- Install the gem and add to the application's Gemfile by executing:
14
+ And then execute:
12
15
 
13
- $ bundle add UPDATE_WITH_YOUR_GEM_NAME_PRIOR_TO_RELEASE_TO_RUBYGEMS_ORG
16
+ ```bash
17
+ $ bundle install
18
+ ```
14
19
 
15
- If bundler is not being used to manage dependencies, install the gem by executing:
20
+ Or install it yourself as:
16
21
 
17
- $ gem install UPDATE_WITH_YOUR_GEM_NAME_PRIOR_TO_RELEASE_TO_RUBYGEMS_ORG
22
+ ```bash
23
+ $ gem install check_dependencies
24
+ ```
18
25
 
19
26
  ## Usage
20
27
 
21
- TODO: Write usage instructions here
28
+ The gem provides a command-line interface for interacting with its functionalities. You can use the `check_dependencies` command followed by appropriate options.
29
+ ```bash
30
+ check_dependencies --help
31
+ ```
32
+ ### Command Syntax
33
+
34
+ ```bash
35
+ check_dependencies --lockPath LOCK_PATH --depWay DEP_WAY --configPath CONFIG_PATH
36
+ ```
37
+
38
+ ### Options
39
+
40
+ - `--lockPath LOCK_PATH`: Specifies the path to your Podfile.lock file.
41
+ - `--depWay DEP_WAY`: Specifies the dependency mode. This can be either `path` for local path dependencies or `branch` for remote git branch dependencies.
42
+ - `--configPath CONFIG_PATH`: Specifies the path to the configuration file containing dependency configurations.
43
+
44
+ ### Example
45
+
46
+ ```bash
47
+ check_dependencies --lockPath ./Podfile.lock --depWay path --configPath ./repo_configs.txt
48
+ ```
22
49
 
23
- ## Development
50
+ ## Functions Overview
24
51
 
25
- 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.
52
+ The gem provides the following key functionalities:
26
53
 
27
- 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).
54
+ - Parsing `Podfile.lock` content to extract pod dependencies.
55
+ - Generating Podfile entries for local path or remote git branch dependencies.
56
+ - Processing and formatting dependencies for correct integration into Podfiles.
57
+
58
+ ## Workflow
59
+
60
+ 1. **Configuration Preparation**: Prepare the `repo_configs` file with the necessary configuration for each library. This file should map library names to their configuration, including local path, branch name, and git URL.
61
+
62
+ 2. **Running the Gem**: Execute the gem with the required options. Based on the specified `depWay`, the gem will process the `Podfile.lock` file and the `repo_configs` to output the necessary Podfile entries.
63
+
64
+ 3. **Integration**: After generating the Podfile entries, integrate them into your Podfile as needed. This allows you to switch between using local versions of libraries (for development or debugging) and their remote versions (for production or shared development).
65
+
66
+ ## Note
67
+
68
+ - Ensure that the `repo_configs` file is properly formatted and from a trusted source to avoid potential security risks.
28
69
 
29
70
  ## Contributing
30
71
 
31
- Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/check_dependencies. 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]/check_dependencies/blob/main/CODE_OF_CONDUCT.md).
72
+ Bug reports and pull requests are welcome on GitHub at [example/check_dependencies](https://github.com/ITxiansheng/check_dependencies). 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/ITxiansheng/check_dependencies/blob/main/CODE_OF_CONDUCT.md).
32
73
 
33
74
  ## License
34
75
 
35
76
  The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
77
+ ```
36
78
 
37
- ## Code of Conduct
38
-
39
- Everyone interacting in the CheckDependencies project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/[USERNAME]/check_dependencies/blob/main/CODE_OF_CONDUCT.md).
79
+ This README provides an overview of the gem's installation, usage, functions, workflow, notes, contributing guidelines, and license information. Adjust as needed for your specific project and preferences.
@@ -203,7 +203,7 @@ end.parse!
203
203
 
204
204
  # Check if all required arguments were provided
205
205
  if options[:lockPath].nil? || options[:depWay].nil? || options[:configPath].nil?
206
- puts "Please provide lockPath, depWay, and configPath parameters.\n you can run:\n ruby MapHelper.rb --help "
206
+ puts "Please provide lockPath, depWay, and configPath parameters.\n you can run:\n check_dependencies --help "
207
207
  exit
208
208
  end
209
209
 
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |spec|
2
2
  spec.name = "check_dependencies"
3
- spec.version = "0.1.1"
3
+ spec.version = "0.1.2"
4
4
  spec.authors = ["ITxiansheng"]
5
5
  spec.email = ["itxiansheng@gmail.com"]
6
6
 
@@ -203,7 +203,7 @@ end.parse!
203
203
 
204
204
  # Check if all required arguments were provided
205
205
  if options[:lockPath].nil? || options[:depWay].nil? || options[:configPath].nil?
206
- puts "Please provide lockPath, depWay, and configPath parameters.\n you can run:\n ruby MapHelper.rb --help "
206
+ puts "Please provide lockPath, depWay, and configPath parameters.\n you can run:\n check_dependencies --help "
207
207
  exit
208
208
  end
209
209
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: check_dependencies
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - ITxiansheng