erhu 0.1.1 → 0.1.3

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: 7938de471bcd82e87f8cc70ff95ffbbe076dcb2c6cd257d7bce0b57886aa22d8
4
- data.tar.gz: a1e9be16793f40b08ba00052c308d55caa8250fe946ec60b1f7845eb706029ba
3
+ metadata.gz: 227adb4306e0ba58bcd720a8bcefa6ff095a549120691e12caf82ed5617f45d3
4
+ data.tar.gz: 9c513925800b676c24a3416260d852123d5a513cad06a340e2b8e082387a0ca1
5
5
  SHA512:
6
- metadata.gz: 1083676b76a4f458af48e160a1e075f099965f3931bafd2abdea9dcee192b599bc0e90704829ea6a2b50187be1e7cd4db3f6f53679de6e82ffd7f86aee602630
7
- data.tar.gz: bbcb73c6b1f6ebbecf57b3ac6dc46b7a376f2f7fc58176b303020837b868a1b36aee55c65163ce18f159c5c5d11499e3c22ac940743b71d1416922e693bf9140
6
+ metadata.gz: 9dbcbd06bc4f7d18aff1493648b50b832426b7c39b4276a489c1c1318d46fe145af501c9361361d090957c8f6252be1d3cf112beb93fe368746d0ca4061370b5
7
+ data.tar.gz: c13fb491276df6ea20c70d1572ec245f7afed0be2ac1244380d00dc11d0b7eff3168fb5c9eeff869730a211d57c3ea0e75387e937803d34e8b2de6d943e47ae1
data/Gemfile.lock ADDED
@@ -0,0 +1,54 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ erhu (0.1.1)
5
+
6
+ GEM
7
+ remote: https://rubygems.org/
8
+ specs:
9
+ faraday (2.7.4)
10
+ faraday-net_http (>= 2.0, < 3.1)
11
+ ruby2_keywords (>= 0.0.4)
12
+ faraday-follow_redirects (0.3.0)
13
+ faraday (>= 1, < 3)
14
+ faraday-net_http (3.0.2)
15
+ pastel (0.8.0)
16
+ tty-color (~> 0.5)
17
+ rake (13.0.6)
18
+ ruby2_keywords (0.0.5)
19
+ rubyzip (2.3.2)
20
+ rugged (1.6.2)
21
+ strings-ansi (0.2.0)
22
+ tty-color (0.6.0)
23
+ tty-command (0.10.1)
24
+ pastel (~> 0.8)
25
+ tty-cursor (0.7.1)
26
+ tty-platform (0.3.0)
27
+ tty-progressbar (0.18.2)
28
+ strings-ansi (~> 0.2)
29
+ tty-cursor (~> 0.7)
30
+ tty-screen (~> 0.8)
31
+ unicode-display_width (>= 1.6, < 3.0)
32
+ tty-screen (0.8.1)
33
+ tty-spinner (0.9.3)
34
+ tty-cursor (~> 0.7)
35
+ unicode-display_width (2.4.2)
36
+
37
+ PLATFORMS
38
+ arm64-darwin-22
39
+
40
+ DEPENDENCIES
41
+ erhu!
42
+ faraday
43
+ faraday-follow_redirects
44
+ pastel
45
+ rake (~> 13.0)
46
+ rubyzip
47
+ rugged
48
+ tty-command
49
+ tty-platform
50
+ tty-progressbar
51
+ tty-spinner
52
+
53
+ BUNDLED WITH
54
+ 2.4.6
data/README.md CHANGED
@@ -1,3 +1,25 @@
1
1
  # Erhu
2
2
 
3
- 一个创新新的包管理,可以用来管理C语音的包,或者管理算法的包
3
+ 一个创新的包管理,可以用来管理C语言的包,或者管理算法的包,理论可以用在各种地方,目前主要支持C++,算法管理。
4
+
5
+ ## install
6
+ ```
7
+ gem install erhu
8
+ ```
9
+
10
+ ## 如何使用
11
+
12
+ 在根目录里面建立`ErhuFile`,用于拉取依赖
13
+
14
+ ```ruby
15
+ target "./thirdparty"
16
+ git "https://github.com/Tencent/rapidjson", tag: "v1.1.0"
17
+ git "https://github.com/DaveGamble/cJSON", tag: "v1.7.15"
18
+ git "https://github.com/catchorg/Catch2", tag: "v3.3.2"
19
+
20
+ package "https://github.com/DaveGamble/cJSON/archive/refs/tags/v1.7.15.zip", name: "cjson"
21
+ ```
22
+
23
+ 然后就在项目目录中使用 erhu 命令即可拉取对应的代码
24
+
25
+ 示例项目可以看 example 目录
data/erhu.gemspec ADDED
@@ -0,0 +1,38 @@
1
+ # frozen_string_literal: true
2
+
3
+ require_relative "lib/erhu/version"
4
+
5
+ Gem::Specification.new do |spec|
6
+ spec.name = "erhu"
7
+ spec.version = Erhu::VERSION
8
+ spec.authors = ["MJ"]
9
+ spec.email = ["tywf91@gmail.com"]
10
+
11
+ spec.summary = "Erhu 一个包管理"
12
+ spec.description = "Erhu 是一个动态可编程的包管理系统"
13
+ spec.homepage = "https://github.com/mjason/erhu.git"
14
+ spec.required_ruby_version = ">= 2.6.0"
15
+
16
+ # spec.metadata["allowed_push_host"] = "https://github.com/mjason/erhu.git'"
17
+
18
+ spec.metadata["homepage_uri"] = spec.homepage
19
+ spec.metadata["source_code_uri"] = "https://github.com/mjason/erhu.git"
20
+ spec.metadata["changelog_uri"] = "https://github.com/mjason/erhu.git"
21
+
22
+ # Specify which files should be added to the gem when it is released.
23
+ # The `git ls-files -z` loads the files in the RubyGem that have been added into git.
24
+ spec.files = Dir.chdir(__dir__) do
25
+ `git ls-files -z`.split("\x0").reject do |f|
26
+ (f == __FILE__) || f.match(%r{\A(?:(?:bin|test|spec|features)/|\.(?:git|circleci)|appveyor)})
27
+ end
28
+ end
29
+ spec.bindir = "exe"
30
+ spec.executables = spec.files.grep(%r{\Aexe/}) { |f| File.basename(f) }
31
+ spec.require_paths = ["lib"]
32
+
33
+ # Uncomment to register a new dependency of your gem
34
+ # spec.add_dependency "example-gem", "~> 1.0"
35
+
36
+ # For more information and examples about making a new gem, check out our
37
+ # guide at: https://bundler.io/guides/creating_gem.html
38
+ end
data/lib/erhu/init.rb CHANGED
@@ -2,7 +2,6 @@ require "tty-command"
2
2
  require "tty-platform"
3
3
  require "tty-progressbar"
4
4
  require "tty-spinner"
5
- require 'git'
6
5
  require "pastel"
7
6
  require 'fileutils'
8
7
  require 'rugged'
data/lib/erhu/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Erhu
4
- VERSION = "0.1.1"
4
+ VERSION = "0.1.3"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: erhu
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - MJ
@@ -19,8 +19,10 @@ extensions: []
19
19
  extra_rdoc_files: []
20
20
  files:
21
21
  - Gemfile
22
+ - Gemfile.lock
22
23
  - README.md
23
24
  - Rakefile
25
+ - erhu.gemspec
24
26
  - exe/erhu
25
27
  - lib/erhu.rb
26
28
  - lib/erhu/app.rb