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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7b09ec9dbfff4ae05a366698f0c9a3cfa88ff6f6e22b00a8fb87a714fc779337
4
- data.tar.gz: 9813997bb97acac6fee25a7167d28427ef7a20ee4d13acc2620a6cb13b7fcf57
3
+ metadata.gz: 0a73f424d5cc5e08111750a3b039462c0e300fc84fbe1d87764a1130bb44c016
4
+ data.tar.gz: 7267576a8ff4408a1aafad2298538c1a7b93303723a0940d8a22faad9715bb1b
5
5
  SHA512:
6
- metadata.gz: 2c0482690d841b1ac71f8a75a7c73d4b582ed0875b35a6902ed1fce6cf98d4e192114017677785390bb49c25c0a9ac280b4ce986732a4d69ee20663227ed8cde
7
- data.tar.gz: 95b16ef3c5a139b0f0a888a5eed4e51ef1c52ce5cf960b4b940e9a5d39b073524014cb44a8a867547e2fd3852bf886a2fd846b5392ae28aece9428d9d9e4d469
6
+ metadata.gz: 3bc20fb056d628e70992ccf439e02d5f68d44d659df56460d39bf90d9d6fe325dcef69425ea11eef7a11dabc74dd550893c09433d558ba4f46a48ad0e7dc1dfe
7
+ data.tar.gz: 117ce102e6919275d7aa9b9cd7ad2d448e0bf5f9cfd620cb93f638b01b0d0868519c29d038b35cbcb7e26cdc6f7e58d07b422b647c9dd2026d5f5a628e4c5aa2
data/CHANGELOG.md ADDED
@@ -0,0 +1,5 @@
1
+ ## [Unreleased]
2
+
3
+ ## [0.1.0] - 2024-03-13
4
+
5
+ - Initial release
data/CODE_OF_CONDUCT.md CHANGED
@@ -1,77 +1,39 @@
1
- ```markdown
2
- # check_dependencies Gem
1
+ # CheckDependencies
3
2
 
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.
3
+ TODO: Delete this and the text below, and describe your gem
5
4
 
6
- ## Installation
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
- Install the gem by adding it to your Gemfile:
7
+ ## Installation
9
8
 
10
- ```ruby
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
- And then execute:
11
+ Install the gem and add to the application's Gemfile by executing:
15
12
 
16
- ```bash
17
- $ bundle install
18
- ```
13
+ $ bundle add UPDATE_WITH_YOUR_GEM_NAME_PRIOR_TO_RELEASE_TO_RUBYGEMS_ORG
19
14
 
20
- Or install it yourself as:
15
+ If bundler is not being used to manage dependencies, install the gem by executing:
21
16
 
22
- ```bash
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
- The gem provides a command-line interface for interacting with its functionalities. You can use the `check_dependencies` command followed by appropriate options.
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
- ## Functions Overview
23
+ ## Development
49
24
 
50
- The gem provides the following key functionalities:
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
- - Parsing `Podfile.lock` content to extract pod dependencies.
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 [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).
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
- 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.
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
- 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
- # Specify your gem's dependencies in check_all_depencies.gemspec
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
- ```markdown
2
- # check_dependencies Gem
1
+ # CheckDependencies
3
2
 
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.
3
+ TODO: Delete this and the text below, and describe your gem
5
4
 
6
- ## Installation
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
- Install the gem by adding it to your Gemfile:
7
+ ## Installation
9
8
 
10
- ```ruby
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
- And then execute:
11
+ Install the gem and add to the application's Gemfile by executing:
15
12
 
16
- ```bash
17
- $ bundle install
18
- ```
13
+ $ bundle add UPDATE_WITH_YOUR_GEM_NAME_PRIOR_TO_RELEASE_TO_RUBYGEMS_ORG
19
14
 
20
- Or install it yourself as:
15
+ If bundler is not being used to manage dependencies, install the gem by executing:
21
16
 
22
- ```bash
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
- The gem provides a command-line interface for interacting with its functionalities. You can use the `check_dependencies` command followed by appropriate options.
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
- ## Functions Overview
23
+ ## Development
49
24
 
50
- The gem provides the following key functionalities:
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
- - Parsing `Podfile.lock` content to extract pod dependencies.
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 [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).
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
- 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.
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
@@ -1,2 +1,6 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require "bundler/gem_tasks"
2
- task :default => :spec
4
+ require "standard/rake"
5
+
6
+ task default: :standard
@@ -165,7 +165,7 @@ require 'json'
165
165
 
166
166
  options = {}
167
167
  OptionParser.new do |opts|
168
- opts.banner = "Usage: check_all_depencies --lockPath LOCK_PATH --depWay DEP_WAY --configPath CONFIG_PATH"
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 "check_all_depencies"
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__)
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |spec|
2
2
  spec.name = "check_dependencies"
3
- spec.version = "0.1.0"
3
+ spec.version = "0.1.1"
4
4
  spec.authors = ["ITxiansheng"]
5
5
  spec.email = ["itxiansheng@gmail.com"]
6
6
 
@@ -0,0 +1,5 @@
1
+ # frozen_string_literal: true
2
+
3
+ module CheckDependencies
4
+ VERSION = "0.1.0"
5
+ end
@@ -165,7 +165,7 @@ require 'json'
165
165
 
166
166
  options = {}
167
167
  OptionParser.new do |opts|
168
- opts.banner = "Usage: check_all_depencies --lockPath LOCK_PATH --depWay DEP_WAY --configPath CONFIG_PATH"
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
@@ -0,0 +1,4 @@
1
+ module CheckDependencies
2
+ VERSION: String
3
+ # See the writing guide of rbs: https://github.com/ruby/rbs#guides
4
+ end
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.0
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/check_all_depencies.rb
61
- - lib/check_all_depencies/version.rb
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
@@ -1,3 +0,0 @@
1
- module CheckAllDepencies
2
- VERSION = "0.1.0"
3
- end