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 +4 -4
- data/CODE_OF_CONDUCT.md +57 -17
- data/README.md +57 -17
- data/bin/check_dependencies +1 -1
- data/check_dependencies.gemspec +1 -1
- data/lib/check_dependencies.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: b59a47c5d8d3061675a6e65e54208c165f191889dff8e155fafe30bee1427b4a
|
|
4
|
+
data.tar.gz: 9a53f687b2dd4502ddb42a38be5d2b48e41f839d6eb2923bac1258aee057bf61
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: a585576604889412b7b2e9b628841e1ac641c49e33b0716ef1fa57962a3830a362c5e42bad867e23110c662c87d0bf2eb81fab1d336bd165f43884438a20bf4b
|
|
7
|
+
data.tar.gz: 8e360c2429323cd223abefb702918867917f4276bc3a278b06635a2b00b123c3f3c5c6861cceca5bf9302e33bd4eb7a267dc8a4c3319f62cd622e28547c129c8
|
data/CODE_OF_CONDUCT.md
CHANGED
|
@@ -1,39 +1,79 @@
|
|
|
1
|
-
|
|
1
|
+
```markdown
|
|
2
|
+
# check_dependencies Gem
|
|
2
3
|
|
|
3
|
-
|
|
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
|
-
|
|
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
|
-
|
|
14
|
+
And then execute:
|
|
12
15
|
|
|
13
|
-
|
|
16
|
+
```bash
|
|
17
|
+
$ bundle install
|
|
18
|
+
```
|
|
14
19
|
|
|
15
|
-
|
|
20
|
+
Or install it yourself as:
|
|
16
21
|
|
|
17
|
-
|
|
22
|
+
```bash
|
|
23
|
+
$ gem install check_dependencies
|
|
24
|
+
```
|
|
18
25
|
|
|
19
26
|
## Usage
|
|
20
27
|
|
|
21
|
-
|
|
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
|
-
##
|
|
50
|
+
## Functions Overview
|
|
24
51
|
|
|
25
|
-
|
|
52
|
+
The gem provides the following key functionalities:
|
|
26
53
|
|
|
27
|
-
|
|
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/
|
|
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
|
-
|
|
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
|
-
|
|
1
|
+
```markdown
|
|
2
|
+
# check_dependencies Gem
|
|
2
3
|
|
|
3
|
-
|
|
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
|
-
|
|
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
|
-
|
|
14
|
+
And then execute:
|
|
12
15
|
|
|
13
|
-
|
|
16
|
+
```bash
|
|
17
|
+
$ bundle install
|
|
18
|
+
```
|
|
14
19
|
|
|
15
|
-
|
|
20
|
+
Or install it yourself as:
|
|
16
21
|
|
|
17
|
-
|
|
22
|
+
```bash
|
|
23
|
+
$ gem install check_dependencies
|
|
24
|
+
```
|
|
18
25
|
|
|
19
26
|
## Usage
|
|
20
27
|
|
|
21
|
-
|
|
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
|
-
##
|
|
50
|
+
## Functions Overview
|
|
24
51
|
|
|
25
|
-
|
|
52
|
+
The gem provides the following key functionalities:
|
|
26
53
|
|
|
27
|
-
|
|
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/
|
|
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
|
-
|
|
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/bin/check_dependencies
CHANGED
|
@@ -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
|
|
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
|
|
data/check_dependencies.gemspec
CHANGED
data/lib/check_dependencies.rb
CHANGED
|
@@ -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
|
|
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
|
|