gvcs 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: 61f7e6ffb7a9c46c84c58f4b45f7bb82be808787862e76a34ed658a7f3008850
4
- data.tar.gz: 0d8b83c811a78f95112d7bb84ad9e2afb1f331ec940b3caa80f6db4f9e0c6149
3
+ metadata.gz: ea2b87c11601cb430ff9c54b45bb53c5149b395bc886846226a95291de52c2af
4
+ data.tar.gz: 99154facafd02d00a0032274901aa956277fe03d8fb337ebcc6cb231d70b9486
5
5
  SHA512:
6
- metadata.gz: 6877a9e6941f681969397f9afc8156e5e6f2eab8e273c6f9a79cb09064d3378184e3e3d728a21408365385c08143325e69c0f69a928e745e7e40659f8e4e9410
7
- data.tar.gz: ae9c73d36c50d45300d95af074348264e9c50b2e8b5857a99bba9a6973516ccce46dd4f54b4c4f03115eb9aa4b329b3afeb2c76284b01caa9f2870f03252acb4
6
+ metadata.gz: 31083c45038aede667c47cc6773e18cecbea2418eec3df1cca8c51ac895052c39281de48470360fd6f5c10d9453a237b38b7a128077858562023d09176457b7f
7
+ data.tar.gz: 9f4df18b733f531e1ab8605af64c5eaff173d7636e48df3bfffa56da23c2ac08e160644ad50cfb39a8399e4a8c6dfb80db7fefc8f8c639f807048002421544e4
data/.gitignore CHANGED
@@ -7,3 +7,4 @@
7
7
  /spec/reports/
8
8
  /tmp/
9
9
  tags
10
+ *.gem
data/Gemfile.lock ADDED
@@ -0,0 +1,56 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ gvcs (0.1.0)
5
+
6
+ GEM
7
+ remote: https://rubygems.org/
8
+ specs:
9
+ base58 (0.2.3)
10
+ devops_assist (0.3.1)
11
+ git_cli
12
+ git_cli_prompt
13
+ gvcs
14
+ teLogger
15
+ toolrack
16
+ tty-prompt
17
+ git_cli (0.10.0)
18
+ gvcs
19
+ ptools (~> 1.4.0)
20
+ teLogger
21
+ toolrack
22
+ git_cli_prompt (0.3.1)
23
+ teLogger
24
+ toolrack
25
+ tty-prompt
26
+ minitest (5.17.0)
27
+ pastel (0.8.0)
28
+ tty-color (~> 0.5)
29
+ ptools (1.4.3)
30
+ rake (12.3.3)
31
+ teLogger (0.2.2)
32
+ toolrack (0.20.0)
33
+ base58
34
+ tty-color (0.6.0)
35
+ tty-cursor (0.7.1)
36
+ tty-prompt (0.23.1)
37
+ pastel (~> 0.8)
38
+ tty-reader (~> 0.8)
39
+ tty-reader (0.9.0)
40
+ tty-cursor (~> 0.7)
41
+ tty-screen (~> 0.8)
42
+ wisper (~> 2.0)
43
+ tty-screen (0.8.1)
44
+ wisper (2.0.1)
45
+
46
+ PLATFORMS
47
+ x86_64-linux
48
+
49
+ DEPENDENCIES
50
+ devops_assist
51
+ gvcs!
52
+ minitest (~> 5.0)
53
+ rake (~> 12.0)
54
+
55
+ BUNDLED WITH
56
+ 2.2.28
data/README.md CHANGED
@@ -21,7 +21,16 @@ Or install it yourself as:
21
21
 
22
22
  ## Usage
23
23
 
24
- TODO: Write usage instructions here
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/[USERNAME]/gvcs/blob/master/CODE_OF_CONDUCT.md).
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/[USERNAME]/gvcs/blob/master/CODE_OF_CONDUCT.md).
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"
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 = "MIT"
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,6 @@ 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'
29
31
  end
data/lib/gvcs/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Gvcs
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
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,30 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gvcs
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
  - Chris Liaw
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-10-31 00:00:00.000000000 Z
12
- dependencies: []
13
- description: ''
11
+ date: 2023-02-21 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
+ description: Standardize API for version control system interfacing
14
28
  email:
15
29
  - chrisliaw@antrapol.com
16
30
  executables: []
@@ -21,6 +35,7 @@ files:
21
35
  - ".travis.yml"
22
36
  - CODE_OF_CONDUCT.md
23
37
  - Gemfile
38
+ - Gemfile.lock
24
39
  - LICENSE.txt
25
40
  - README.md
26
41
  - Rakefile
@@ -29,9 +44,9 @@ files:
29
44
  - gvcs.gemspec
30
45
  - lib/gvcs.rb
31
46
  - lib/gvcs/version.rb
32
- homepage: ''
47
+ homepage: https://github.com/chrisliaw/gvcs
33
48
  licenses:
34
- - MIT
49
+ - GPL-3.0
35
50
  metadata: {}
36
51
  post_install_message:
37
52
  rdoc_options: []
@@ -48,8 +63,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
48
63
  - !ruby/object:Gem::Version
49
64
  version: '0'
50
65
  requirements: []
51
- rubygems_version: 3.1.2
66
+ rubygems_version: 3.2.22
52
67
  signing_key:
53
68
  specification_version: 4
54
- summary: ''
69
+ summary: Generic Version Control System
55
70
  test_files: []