gvcs 0.1.0 → 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/.gitignore +2 -0
- data/.release_history.yml +4 -0
- data/Gemfile.lock +66 -0
- data/README.md +12 -3
- data/Rakefile +3 -0
- data/gvcs.gemspec +7 -4
- data/lib/gvcs/version.rb +1 -1
- data/lib/gvcs.rb +34 -0
- metadata +38 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 92cef6c70e04bc4b5aba59bf3d3c0aab347a44fce80f92d6c1738af821b866e5
|
4
|
+
data.tar.gz: 70bb182e5baacf43bfdf46c127b69335f879afd3e71d5cf69f300780a3624833
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4a5334883c6834bc9ad19cdc79d4d102fcdd478aec68a1dc5632acc8e13d983d854d5d0dc73984955d9d64193d9ea7a9055ee2e430c6c721ec00af54f99e636b
|
7
|
+
data.tar.gz: 0c62e16414f985ccd36723a7bf6fe351de34c1769392e78d82b6c7ad58994f6824109dee2454b1489f8f03b72760e9a7553d20a17b08a1c839c92a02053abe55
|
data/.gitignore
CHANGED
data/Gemfile.lock
ADDED
@@ -0,0 +1,66 @@
|
|
1
|
+
PATH
|
2
|
+
remote: .
|
3
|
+
specs:
|
4
|
+
gvcs (0.1.2)
|
5
|
+
|
6
|
+
GEM
|
7
|
+
remote: https://rubygems.org/
|
8
|
+
specs:
|
9
|
+
colorize (0.8.1)
|
10
|
+
devops_assist (0.3.11)
|
11
|
+
git_cli
|
12
|
+
git_cli_prompt (~> 0.3.3)
|
13
|
+
gvcs
|
14
|
+
teLogger
|
15
|
+
toolrack
|
16
|
+
tty-prompt
|
17
|
+
git_cli (0.11.3)
|
18
|
+
gvcs
|
19
|
+
ptools (~> 1.4.0)
|
20
|
+
teLogger
|
21
|
+
toolrack
|
22
|
+
git_cli_prompt (0.3.4)
|
23
|
+
teLogger
|
24
|
+
toolrack
|
25
|
+
tty-prompt
|
26
|
+
minitest (5.18.0)
|
27
|
+
pastel (0.8.0)
|
28
|
+
tty-color (~> 0.5)
|
29
|
+
ptools (1.4.3)
|
30
|
+
rake (12.3.3)
|
31
|
+
release-gem (0.1.10)
|
32
|
+
colorize
|
33
|
+
git_cli
|
34
|
+
gvcs
|
35
|
+
teLogger
|
36
|
+
toolrack
|
37
|
+
tty-command
|
38
|
+
tty-prompt
|
39
|
+
teLogger (0.2.2)
|
40
|
+
toolrack (0.22.0)
|
41
|
+
tty-color (0.6.0)
|
42
|
+
tty-command (0.10.1)
|
43
|
+
pastel (~> 0.8)
|
44
|
+
tty-cursor (0.7.1)
|
45
|
+
tty-prompt (0.23.1)
|
46
|
+
pastel (~> 0.8)
|
47
|
+
tty-reader (~> 0.8)
|
48
|
+
tty-reader (0.9.0)
|
49
|
+
tty-cursor (~> 0.7)
|
50
|
+
tty-screen (~> 0.8)
|
51
|
+
wisper (~> 2.0)
|
52
|
+
tty-screen (0.8.1)
|
53
|
+
wisper (2.0.1)
|
54
|
+
|
55
|
+
PLATFORMS
|
56
|
+
x86_64-linux
|
57
|
+
|
58
|
+
DEPENDENCIES
|
59
|
+
devops_assist
|
60
|
+
gvcs!
|
61
|
+
minitest (~> 5.0)
|
62
|
+
rake (~> 12.0)
|
63
|
+
release-gem
|
64
|
+
|
65
|
+
BUNDLED WITH
|
66
|
+
2.2.28
|
data/README.md
CHANGED
@@ -21,7 +21,16 @@ Or install it yourself as:
|
|
21
21
|
|
22
22
|
## Usage
|
23
23
|
|
24
|
-
|
24
|
+
This library is just the standardize classes definition.
|
25
|
+
Sample provider is [git\_cli](https://github.com/chrisliaw/git\_cli)
|
26
|
+
|
27
|
+
It means this gem is not designed to be use independently. It have to backed by a provider by requiring the provider after this. Example the way to load this will be:
|
28
|
+
|
29
|
+
```ruby
|
30
|
+
require 'gvcs'
|
31
|
+
require <provider>
|
32
|
+
```
|
33
|
+
Refers [git\_cli](https://github.com/chrisliaw/git\_cli) for more info.
|
25
34
|
|
26
35
|
## Development
|
27
36
|
|
@@ -31,7 +40,7 @@ To install this gem onto your local machine, run `bundle exec rake install`. To
|
|
31
40
|
|
32
41
|
## Contributing
|
33
42
|
|
34
|
-
Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/gvcs. 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/
|
43
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/gvcs. 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/chrisliaw/gvcs/blob/master/CODE_OF_CONDUCT.md).
|
35
44
|
|
36
45
|
|
37
46
|
## License
|
@@ -40,4 +49,4 @@ The gem is available as open source under the terms of the [MIT License](https:/
|
|
40
49
|
|
41
50
|
## Code of Conduct
|
42
51
|
|
43
|
-
Everyone interacting in the Gvcs project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/
|
52
|
+
Everyone interacting in the Gvcs project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/chrisliaw/gvcs/blob/master/CODE_OF_CONDUCT.md).
|
data/Rakefile
CHANGED
@@ -1,6 +1,8 @@
|
|
1
1
|
require "bundler/gem_tasks"
|
2
2
|
require "rake/testtask"
|
3
3
|
|
4
|
+
require 'devops_assist'
|
5
|
+
|
4
6
|
Rake::TestTask.new(:test) do |t|
|
5
7
|
t.libs << "test"
|
6
8
|
t.libs << "lib"
|
@@ -8,3 +10,4 @@ Rake::TestTask.new(:test) do |t|
|
|
8
10
|
end
|
9
11
|
|
10
12
|
task :default => :test
|
13
|
+
require 'release/gem'
|
data/gvcs.gemspec
CHANGED
@@ -6,10 +6,10 @@ Gem::Specification.new do |spec|
|
|
6
6
|
spec.authors = ["Chris Liaw"]
|
7
7
|
spec.email = ["chrisliaw@antrapol.com"]
|
8
8
|
|
9
|
-
spec.summary = %q{}
|
10
|
-
spec.description = %q{}
|
11
|
-
spec.homepage = ""
|
12
|
-
spec.license = "
|
9
|
+
spec.summary = %q{Generic Version Control System}
|
10
|
+
spec.description = %q{Standardize API for version control system interfacing}
|
11
|
+
spec.homepage = "https://github.com/chrisliaw/gvcs"
|
12
|
+
spec.license = "GPL-3.0"
|
13
13
|
spec.required_ruby_version = Gem::Requirement.new(">= 2.3.0")
|
14
14
|
|
15
15
|
#spec.metadata["allowed_push_host"] = "TODO: Set to 'http://mygemserver.com'"
|
@@ -26,4 +26,7 @@ Gem::Specification.new do |spec|
|
|
26
26
|
spec.bindir = "exe"
|
27
27
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
28
28
|
spec.require_paths = ["lib"]
|
29
|
+
|
30
|
+
spec.add_development_dependency 'devops_assist'
|
31
|
+
spec.add_development_dependency 'release-gem'
|
29
32
|
end
|
data/lib/gvcs/version.rb
CHANGED
data/lib/gvcs.rb
CHANGED
@@ -1,17 +1,51 @@
|
|
1
1
|
require "gvcs/version"
|
2
2
|
|
3
|
+
require 'singleton'
|
4
|
+
|
3
5
|
module Gvcs
|
4
6
|
class Error < StandardError; end
|
5
7
|
# Your code goes here...
|
6
8
|
|
9
|
+
# abstract the VCS engine
|
10
|
+
# e.g. git, hg, svn etc
|
7
11
|
class Vcs
|
8
12
|
end
|
9
13
|
|
14
|
+
# abstract of the vcs workspaces
|
10
15
|
class Workspace
|
11
16
|
end
|
12
17
|
|
18
|
+
# abstract of the vcs remote repository
|
13
19
|
class Repository
|
20
|
+
end
|
21
|
+
|
22
|
+
# configuration elements for the library
|
23
|
+
class Config
|
24
|
+
include Singleton
|
25
|
+
|
26
|
+
def initialize
|
27
|
+
@showCommand = false
|
28
|
+
@commandOut = STDOUT
|
29
|
+
end
|
30
|
+
|
31
|
+
def show_vcs_command(val, out = STDOUT)
|
32
|
+
if val == true or val == false
|
33
|
+
@showCommand = val
|
34
|
+
if @commandOut.respond_to?(:puts)
|
35
|
+
@commandOut = out
|
36
|
+
else
|
37
|
+
raise Error, "Command output minimally need to support puts() call. Given #{@commandOut}"
|
38
|
+
end
|
39
|
+
end
|
40
|
+
end
|
41
|
+
|
42
|
+
def is_show_vcs_command?
|
43
|
+
@showCommand
|
44
|
+
end
|
14
45
|
|
46
|
+
def command_output
|
47
|
+
@commandOut
|
48
|
+
end
|
15
49
|
end
|
16
50
|
|
17
51
|
end
|
metadata
CHANGED
@@ -1,16 +1,44 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gvcs
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Chris Liaw
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
12
|
-
dependencies:
|
13
|
-
|
11
|
+
date: 2023-04-06 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: devops_assist
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - ">="
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '0'
|
20
|
+
type: :development
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - ">="
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '0'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: release-gem
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - ">="
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '0'
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - ">="
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '0'
|
41
|
+
description: Standardize API for version control system interfacing
|
14
42
|
email:
|
15
43
|
- chrisliaw@antrapol.com
|
16
44
|
executables: []
|
@@ -18,9 +46,11 @@ extensions: []
|
|
18
46
|
extra_rdoc_files: []
|
19
47
|
files:
|
20
48
|
- ".gitignore"
|
49
|
+
- ".release_history.yml"
|
21
50
|
- ".travis.yml"
|
22
51
|
- CODE_OF_CONDUCT.md
|
23
52
|
- Gemfile
|
53
|
+
- Gemfile.lock
|
24
54
|
- LICENSE.txt
|
25
55
|
- README.md
|
26
56
|
- Rakefile
|
@@ -29,9 +59,9 @@ files:
|
|
29
59
|
- gvcs.gemspec
|
30
60
|
- lib/gvcs.rb
|
31
61
|
- lib/gvcs/version.rb
|
32
|
-
homepage:
|
62
|
+
homepage: https://github.com/chrisliaw/gvcs
|
33
63
|
licenses:
|
34
|
-
-
|
64
|
+
- GPL-3.0
|
35
65
|
metadata: {}
|
36
66
|
post_install_message:
|
37
67
|
rdoc_options: []
|
@@ -48,8 +78,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
48
78
|
- !ruby/object:Gem::Version
|
49
79
|
version: '0'
|
50
80
|
requirements: []
|
51
|
-
rubygems_version: 3.
|
81
|
+
rubygems_version: 3.4.10
|
52
82
|
signing_key:
|
53
83
|
specification_version: 4
|
54
|
-
summary:
|
84
|
+
summary: Generic Version Control System
|
55
85
|
test_files: []
|