check_dependencies 0.1.0 → 0.1.1
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/CHANGELOG.md +5 -0
- data/CODE_OF_CONDUCT.md +17 -55
- data/Gemfile +7 -3
- data/README.md +17 -55
- data/Rakefile +5 -1
- data/bin/check_dependencies +1 -1
- data/bin/console +2 -5
- data/check_dependencies.gemspec +1 -1
- data/lib/check_dependencies/version.rb +5 -0
- data/lib/{check_all_depencies.rb → check_dependencies.rb} +1 -1
- data/sig/check_dependencies.rbs +4 -0
- metadata +5 -3
- data/lib/check_all_depencies/version.rb +0 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 0a73f424d5cc5e08111750a3b039462c0e300fc84fbe1d87764a1130bb44c016
|
|
4
|
+
data.tar.gz: 7267576a8ff4408a1aafad2298538c1a7b93303723a0940d8a22faad9715bb1b
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 3bc20fb056d628e70992ccf439e02d5f68d44d659df56460d39bf90d9d6fe325dcef69425ea11eef7a11dabc74dd550893c09433d558ba4f46a48ad0e7dc1dfe
|
|
7
|
+
data.tar.gz: 117ce102e6919275d7aa9b9cd7ad2d448e0bf5f9cfd620cb93f638b01b0d0868519c29d038b35cbcb7e26cdc6f7e58d07b422b647c9dd2026d5f5a628e4c5aa2
|
data/CHANGELOG.md
ADDED
data/CODE_OF_CONDUCT.md
CHANGED
|
@@ -1,77 +1,39 @@
|
|
|
1
|
-
|
|
2
|
-
# check_dependencies Gem
|
|
1
|
+
# CheckDependencies
|
|
3
2
|
|
|
4
|
-
|
|
3
|
+
TODO: Delete this and the text below, and describe your gem
|
|
5
4
|
|
|
6
|
-
|
|
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.
|
|
7
6
|
|
|
8
|
-
|
|
7
|
+
## Installation
|
|
9
8
|
|
|
10
|
-
|
|
11
|
-
gem 'check_dependencies', git: 'https://github.com/ITxiansheng/check_dependencies.git'
|
|
12
|
-
```
|
|
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.
|
|
13
10
|
|
|
14
|
-
|
|
11
|
+
Install the gem and add to the application's Gemfile by executing:
|
|
15
12
|
|
|
16
|
-
|
|
17
|
-
$ bundle install
|
|
18
|
-
```
|
|
13
|
+
$ bundle add UPDATE_WITH_YOUR_GEM_NAME_PRIOR_TO_RELEASE_TO_RUBYGEMS_ORG
|
|
19
14
|
|
|
20
|
-
|
|
15
|
+
If bundler is not being used to manage dependencies, install the gem by executing:
|
|
21
16
|
|
|
22
|
-
|
|
23
|
-
$ gem install check_dependencies
|
|
24
|
-
```
|
|
17
|
+
$ gem install UPDATE_WITH_YOUR_GEM_NAME_PRIOR_TO_RELEASE_TO_RUBYGEMS_ORG
|
|
25
18
|
|
|
26
19
|
## Usage
|
|
27
20
|
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
### Command Syntax
|
|
31
|
-
|
|
32
|
-
```bash
|
|
33
|
-
check_dependencies --lockPath LOCK_PATH --depWay DEP_WAY --configPath CONFIG_PATH
|
|
34
|
-
```
|
|
35
|
-
|
|
36
|
-
### Options
|
|
37
|
-
|
|
38
|
-
- `--lockPath LOCK_PATH`: Specifies the path to your Podfile.lock file.
|
|
39
|
-
- `--depWay DEP_WAY`: Specifies the dependency mode. This can be either `path` for local path dependencies or `branch` for remote git branch dependencies.
|
|
40
|
-
- `--configPath CONFIG_PATH`: Specifies the path to the configuration file containing dependency configurations.
|
|
41
|
-
|
|
42
|
-
### Example
|
|
43
|
-
|
|
44
|
-
```bash
|
|
45
|
-
check_dependencies --lockPath ./Podfile.lock --depWay path --configPath ./repo_configs.txt
|
|
46
|
-
```
|
|
21
|
+
TODO: Write usage instructions here
|
|
47
22
|
|
|
48
|
-
##
|
|
23
|
+
## Development
|
|
49
24
|
|
|
50
|
-
|
|
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.
|
|
51
26
|
|
|
52
|
-
|
|
53
|
-
- Generating Podfile entries for local path or remote git branch dependencies.
|
|
54
|
-
- Processing and formatting dependencies for correct integration into Podfiles.
|
|
55
|
-
|
|
56
|
-
## Workflow
|
|
57
|
-
|
|
58
|
-
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.
|
|
59
|
-
|
|
60
|
-
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.
|
|
61
|
-
|
|
62
|
-
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).
|
|
63
|
-
|
|
64
|
-
## Note
|
|
65
|
-
|
|
66
|
-
- Ensure that the `repo_configs` file is properly formatted and from a trusted source to avoid potential security risks.
|
|
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).
|
|
67
28
|
|
|
68
29
|
## Contributing
|
|
69
30
|
|
|
70
|
-
Bug reports and pull requests are welcome on GitHub at
|
|
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).
|
|
71
32
|
|
|
72
33
|
## License
|
|
73
34
|
|
|
74
35
|
The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
|
|
75
|
-
```
|
|
76
36
|
|
|
77
|
-
|
|
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).
|
data/Gemfile
CHANGED
|
@@ -1,6 +1,10 @@
|
|
|
1
|
-
|
|
1
|
+
# frozen_string_literal: true
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
source "https://rubygems.org"
|
|
4
4
|
|
|
5
|
-
# Specify your gem's dependencies in
|
|
5
|
+
# Specify your gem's dependencies in check_dependencies.gemspec
|
|
6
6
|
gemspec
|
|
7
|
+
|
|
8
|
+
gem "rake", "~> 13.0"
|
|
9
|
+
|
|
10
|
+
gem "standard", "~> 1.3"
|
data/README.md
CHANGED
|
@@ -1,77 +1,39 @@
|
|
|
1
|
-
|
|
2
|
-
# check_dependencies Gem
|
|
1
|
+
# CheckDependencies
|
|
3
2
|
|
|
4
|
-
|
|
3
|
+
TODO: Delete this and the text below, and describe your gem
|
|
5
4
|
|
|
6
|
-
|
|
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.
|
|
7
6
|
|
|
8
|
-
|
|
7
|
+
## Installation
|
|
9
8
|
|
|
10
|
-
|
|
11
|
-
gem 'check_dependencies', git: 'https://github.com/ITxiansheng/check_dependencies.git'
|
|
12
|
-
```
|
|
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.
|
|
13
10
|
|
|
14
|
-
|
|
11
|
+
Install the gem and add to the application's Gemfile by executing:
|
|
15
12
|
|
|
16
|
-
|
|
17
|
-
$ bundle install
|
|
18
|
-
```
|
|
13
|
+
$ bundle add UPDATE_WITH_YOUR_GEM_NAME_PRIOR_TO_RELEASE_TO_RUBYGEMS_ORG
|
|
19
14
|
|
|
20
|
-
|
|
15
|
+
If bundler is not being used to manage dependencies, install the gem by executing:
|
|
21
16
|
|
|
22
|
-
|
|
23
|
-
$ gem install check_dependencies
|
|
24
|
-
```
|
|
17
|
+
$ gem install UPDATE_WITH_YOUR_GEM_NAME_PRIOR_TO_RELEASE_TO_RUBYGEMS_ORG
|
|
25
18
|
|
|
26
19
|
## Usage
|
|
27
20
|
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
### Command Syntax
|
|
31
|
-
|
|
32
|
-
```bash
|
|
33
|
-
check_dependencies --lockPath LOCK_PATH --depWay DEP_WAY --configPath CONFIG_PATH
|
|
34
|
-
```
|
|
35
|
-
|
|
36
|
-
### Options
|
|
37
|
-
|
|
38
|
-
- `--lockPath LOCK_PATH`: Specifies the path to your Podfile.lock file.
|
|
39
|
-
- `--depWay DEP_WAY`: Specifies the dependency mode. This can be either `path` for local path dependencies or `branch` for remote git branch dependencies.
|
|
40
|
-
- `--configPath CONFIG_PATH`: Specifies the path to the configuration file containing dependency configurations.
|
|
41
|
-
|
|
42
|
-
### Example
|
|
43
|
-
|
|
44
|
-
```bash
|
|
45
|
-
check_dependencies --lockPath ./Podfile.lock --depWay path --configPath ./repo_configs.txt
|
|
46
|
-
```
|
|
21
|
+
TODO: Write usage instructions here
|
|
47
22
|
|
|
48
|
-
##
|
|
23
|
+
## Development
|
|
49
24
|
|
|
50
|
-
|
|
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.
|
|
51
26
|
|
|
52
|
-
|
|
53
|
-
- Generating Podfile entries for local path or remote git branch dependencies.
|
|
54
|
-
- Processing and formatting dependencies for correct integration into Podfiles.
|
|
55
|
-
|
|
56
|
-
## Workflow
|
|
57
|
-
|
|
58
|
-
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.
|
|
59
|
-
|
|
60
|
-
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.
|
|
61
|
-
|
|
62
|
-
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).
|
|
63
|
-
|
|
64
|
-
## Note
|
|
65
|
-
|
|
66
|
-
- Ensure that the `repo_configs` file is properly formatted and from a trusted source to avoid potential security risks.
|
|
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).
|
|
67
28
|
|
|
68
29
|
## Contributing
|
|
69
30
|
|
|
70
|
-
Bug reports and pull requests are welcome on GitHub at
|
|
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).
|
|
71
32
|
|
|
72
33
|
## License
|
|
73
34
|
|
|
74
35
|
The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
|
|
75
|
-
```
|
|
76
36
|
|
|
77
|
-
|
|
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).
|
data/Rakefile
CHANGED
data/bin/check_dependencies
CHANGED
|
@@ -165,7 +165,7 @@ require 'json'
|
|
|
165
165
|
|
|
166
166
|
options = {}
|
|
167
167
|
OptionParser.new do |opts|
|
|
168
|
-
opts.banner = "Usage:
|
|
168
|
+
opts.banner = "Usage: check_dependencies --lockPath LOCK_PATH --depWay DEP_WAY --configPath CONFIG_PATH"
|
|
169
169
|
|
|
170
170
|
opts.on("--lockPath LOCK_PATH", "Specify the Podfile.lock path") do |lockPath|
|
|
171
171
|
options[:lockPath] = lockPath
|
data/bin/console
CHANGED
|
@@ -1,14 +1,11 @@
|
|
|
1
1
|
#!/usr/bin/env ruby
|
|
2
|
+
# frozen_string_literal: true
|
|
2
3
|
|
|
3
4
|
require "bundler/setup"
|
|
4
|
-
require "
|
|
5
|
+
require "check_dependencies"
|
|
5
6
|
|
|
6
7
|
# You can add fixtures and/or initialization code here to make experimenting
|
|
7
8
|
# with your gem easier. You can also use a different console, if you like.
|
|
8
9
|
|
|
9
|
-
# (If you use this, don't forget to add pry to your Gemfile!)
|
|
10
|
-
# require "pry"
|
|
11
|
-
# Pry.start
|
|
12
|
-
|
|
13
10
|
require "irb"
|
|
14
11
|
IRB.start(__FILE__)
|
data/check_dependencies.gemspec
CHANGED
|
@@ -165,7 +165,7 @@ require 'json'
|
|
|
165
165
|
|
|
166
166
|
options = {}
|
|
167
167
|
OptionParser.new do |opts|
|
|
168
|
-
opts.banner = "Usage:
|
|
168
|
+
opts.banner = "Usage: check_dependencies --lockPath LOCK_PATH --depWay DEP_WAY --configPath CONFIG_PATH"
|
|
169
169
|
|
|
170
170
|
opts.on("--lockPath LOCK_PATH", "Specify the Podfile.lock path") do |lockPath|
|
|
171
171
|
options[:lockPath] = lockPath
|
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.
|
|
4
|
+
version: 0.1.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- ITxiansheng
|
|
@@ -48,6 +48,7 @@ executables:
|
|
|
48
48
|
extensions: []
|
|
49
49
|
extra_rdoc_files: []
|
|
50
50
|
files:
|
|
51
|
+
- CHANGELOG.md
|
|
51
52
|
- CODE_OF_CONDUCT.md
|
|
52
53
|
- Gemfile
|
|
53
54
|
- LICENSE.txt
|
|
@@ -57,8 +58,9 @@ files:
|
|
|
57
58
|
- bin/console
|
|
58
59
|
- bin/setup
|
|
59
60
|
- check_dependencies.gemspec
|
|
60
|
-
- lib/
|
|
61
|
-
- lib/
|
|
61
|
+
- lib/check_dependencies.rb
|
|
62
|
+
- lib/check_dependencies/version.rb
|
|
63
|
+
- sig/check_dependencies.rbs
|
|
62
64
|
homepage: https://github.com/ITxiansheng/check_dependencies
|
|
63
65
|
licenses:
|
|
64
66
|
- MIT
|