gitwrab 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: f5bf9024ae6d8bb199a0355a8b93c3cfe79f5b2e5510952dcb0fe88b31d39c0b
4
+ data.tar.gz: 2d77387f9f33a6ec18267edf08b7d3f10c1cb8657999ab276bd12408193f1fdc
5
+ SHA512:
6
+ metadata.gz: 31f0adbb541ddc20eb1e0c6b7bfff73c60f9d37cf022e6da8e579dab5f5aa73488accd5c25ac7e8572658dc7085072272be433a4cf077dfe6fd9835f92fa06f0
7
+ data.tar.gz: a07690908b3cf8dbdebd2190171a2c2ae908ea8103c3226e38e37a4a19b29dd7e2ebae533f2ce7ec9dcd560c73b972704f64029e77b080883060c7ca42839829
data/.rubocop.yml ADDED
@@ -0,0 +1,23 @@
1
+ AllCops:
2
+ TargetRubyVersion: 2.6
3
+ NewCops: enable
4
+
5
+ require:
6
+ - rubocop-minitest
7
+ - rubocop-rake
8
+
9
+ # Style/StringLiterals:
10
+ # Enabled: true
11
+ # EnforcedStyle: double_quotes
12
+
13
+ # Style/StringLiteralsInInterpolation:
14
+ # Enabled: true
15
+ # EnforcedStyle: double_quotes
16
+
17
+ Layout/LineLength:
18
+ Max: 100
19
+
20
+ Metrics/BlockLength:
21
+ Exclude:
22
+ - gitwrab.gemspec
23
+ - test/**/*.rb
data/Gemfile ADDED
@@ -0,0 +1,5 @@
1
+ # frozen_string_literal: true
2
+
3
+ source 'https://rubygems.org'
4
+
5
+ gemspec
data/README.md ADDED
@@ -0,0 +1,23 @@
1
+ # Gitwrab
2
+
3
+ Gem to wrab git command.
4
+
5
+ ## Installation
6
+
7
+ Manual install, by executing:
8
+
9
+ $ gem install gitwrab
10
+
11
+ Add to Gemfile with:
12
+
13
+ $ bundle add gitwrab
14
+
15
+ ## Usage
16
+
17
+ TODO: Write usage instructions here
18
+
19
+ ## Contributing
20
+
21
+ Bug reports and pull requests are welcome on
22
+ - GitLab at https://gitlab.com/[USERNAME]/gitwrab
23
+ - GitHub at https://github.com/[USERNAME]/gitwrab
data/Rakefile ADDED
@@ -0,0 +1,26 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'bundler/gem_tasks'
4
+
5
+ require 'bump/tasks'
6
+
7
+ require 'rake/testtask'
8
+
9
+ Rake::TestTask.new(:test) do |t|
10
+ t.libs.push('lib', 'test')
11
+ t.test_files = FileList['test/**/test_*.rb', 'test/**/*_test.rb',]
12
+ t.verbose = true
13
+ t.warning = true
14
+ end
15
+
16
+ require 'rubocop/rake_task'
17
+ RuboCop::RakeTask.new
18
+
19
+ require 'yard'
20
+
21
+ YARD::Rake::YardocTask.new do |t|
22
+ t.files = ['lib/**/*.rb']
23
+ t.stats_options = ['--list-undoc']
24
+ end
25
+
26
+ task default: %i[test rubocop]
@@ -0,0 +1,16 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Gitwrab
4
+ # to configure settings for gitwrab
5
+ # allow to specify :
6
+ # - path for git binary
7
+ class Conf
8
+ attr_accessor :git_path
9
+
10
+ def initialize(env: ENV)
11
+ @env = env
12
+
13
+ @git_path = @env['GIT_PATH'] || 'git'
14
+ end
15
+ end
16
+ end
@@ -0,0 +1,10 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Gitwrab
4
+ # Repository to provide service around local repository
5
+ class Repository
6
+ def initialize(dir, _options = {})
7
+ @dir = dir
8
+ end
9
+ end
10
+ end
@@ -0,0 +1,5 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Gitwrab
4
+ VERSION = '0.2.0'
5
+ end
data/lib/gitwrab.rb ADDED
@@ -0,0 +1,20 @@
1
+ # frozen_string_literal: true
2
+
3
+ require_relative 'gitwrab/version'
4
+ require_relative 'gitwrab/conf'
5
+ require_relative 'gitwrab/repository'
6
+
7
+ # namespace for gitwrab library
8
+ # service entrypoint for
9
+ # - init
10
+ # - clone
11
+ # - repository
12
+ # - config
13
+ # - conf (gitwrab)
14
+ module Gitwrab
15
+ def self.conf
16
+ @conf ||= Gitwrab::Conf.new
17
+ yield @conf if block_given?
18
+ @conf
19
+ end
20
+ end
data/scripts/console ADDED
@@ -0,0 +1,15 @@
1
+ #!/usr/bin/env ruby
2
+ # frozen_string_literal: true
3
+
4
+ require 'bundler/setup'
5
+ require 'gitwrab'
6
+
7
+ # You can add fixtures and/or initialization code here to make experimenting
8
+ # with your gem easier. You can also use a different console, if you like.
9
+
10
+ # (If you use this, don't forget to add pry to your Gemfile!)
11
+ # require "pry"
12
+ # Pry.start
13
+
14
+ require 'irb'
15
+ IRB.start(__FILE__)
data/scripts/setup ADDED
@@ -0,0 +1,8 @@
1
+ #!/usr/bin/env bash
2
+ set -euo pipefail
3
+ IFS=$'\n\t'
4
+ set -vx
5
+
6
+ bundle install
7
+
8
+ # Do any other automated setup that you need to do here
metadata ADDED
@@ -0,0 +1,208 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: gitwrab
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.2.0
5
+ platform: ruby
6
+ authors:
7
+ - Thomas Tych
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2023-04-30 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: bump
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: 0.10.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.10.0
27
+ - !ruby/object:Gem::Dependency
28
+ name: byebug
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '11.1'
34
+ - - ">="
35
+ - !ruby/object:Gem::Version
36
+ version: 11.1.3
37
+ type: :development
38
+ prerelease: false
39
+ version_requirements: !ruby/object:Gem::Requirement
40
+ requirements:
41
+ - - "~>"
42
+ - !ruby/object:Gem::Version
43
+ version: '11.1'
44
+ - - ">="
45
+ - !ruby/object:Gem::Version
46
+ version: 11.1.3
47
+ - !ruby/object:Gem::Dependency
48
+ name: minitest
49
+ requirement: !ruby/object:Gem::Requirement
50
+ requirements:
51
+ - - "~>"
52
+ - !ruby/object:Gem::Version
53
+ version: '5.18'
54
+ type: :development
55
+ prerelease: false
56
+ version_requirements: !ruby/object:Gem::Requirement
57
+ requirements:
58
+ - - "~>"
59
+ - !ruby/object:Gem::Version
60
+ version: '5.18'
61
+ - !ruby/object:Gem::Dependency
62
+ name: rake
63
+ requirement: !ruby/object:Gem::Requirement
64
+ requirements:
65
+ - - "~>"
66
+ - !ruby/object:Gem::Version
67
+ version: '13.0'
68
+ type: :development
69
+ prerelease: false
70
+ version_requirements: !ruby/object:Gem::Requirement
71
+ requirements:
72
+ - - "~>"
73
+ - !ruby/object:Gem::Version
74
+ version: '13.0'
75
+ - !ruby/object:Gem::Dependency
76
+ name: reek
77
+ requirement: !ruby/object:Gem::Requirement
78
+ requirements:
79
+ - - "~>"
80
+ - !ruby/object:Gem::Version
81
+ version: '6.1'
82
+ - - ">="
83
+ - !ruby/object:Gem::Version
84
+ version: 6.1.4
85
+ type: :development
86
+ prerelease: false
87
+ version_requirements: !ruby/object:Gem::Requirement
88
+ requirements:
89
+ - - "~>"
90
+ - !ruby/object:Gem::Version
91
+ version: '6.1'
92
+ - - ">="
93
+ - !ruby/object:Gem::Version
94
+ version: 6.1.4
95
+ - !ruby/object:Gem::Dependency
96
+ name: rubocop
97
+ requirement: !ruby/object:Gem::Requirement
98
+ requirements:
99
+ - - "~>"
100
+ - !ruby/object:Gem::Version
101
+ version: '1.21'
102
+ type: :development
103
+ prerelease: false
104
+ version_requirements: !ruby/object:Gem::Requirement
105
+ requirements:
106
+ - - "~>"
107
+ - !ruby/object:Gem::Version
108
+ version: '1.21'
109
+ - !ruby/object:Gem::Dependency
110
+ name: rubocop-minitest
111
+ requirement: !ruby/object:Gem::Requirement
112
+ requirements:
113
+ - - "~>"
114
+ - !ruby/object:Gem::Version
115
+ version: 0.29.0
116
+ type: :development
117
+ prerelease: false
118
+ version_requirements: !ruby/object:Gem::Requirement
119
+ requirements:
120
+ - - "~>"
121
+ - !ruby/object:Gem::Version
122
+ version: 0.29.0
123
+ - !ruby/object:Gem::Dependency
124
+ name: rubocop-rake
125
+ requirement: !ruby/object:Gem::Requirement
126
+ requirements:
127
+ - - "~>"
128
+ - !ruby/object:Gem::Version
129
+ version: 0.6.0
130
+ type: :development
131
+ prerelease: false
132
+ version_requirements: !ruby/object:Gem::Requirement
133
+ requirements:
134
+ - - "~>"
135
+ - !ruby/object:Gem::Version
136
+ version: 0.6.0
137
+ - !ruby/object:Gem::Dependency
138
+ name: yard-doctest
139
+ requirement: !ruby/object:Gem::Requirement
140
+ requirements:
141
+ - - "~>"
142
+ - !ruby/object:Gem::Version
143
+ version: 0.1.17
144
+ type: :development
145
+ prerelease: false
146
+ version_requirements: !ruby/object:Gem::Requirement
147
+ requirements:
148
+ - - "~>"
149
+ - !ruby/object:Gem::Version
150
+ version: 0.1.17
151
+ - !ruby/object:Gem::Dependency
152
+ name: yardstick
153
+ requirement: !ruby/object:Gem::Requirement
154
+ requirements:
155
+ - - "~>"
156
+ - !ruby/object:Gem::Version
157
+ version: 0.9.9
158
+ type: :development
159
+ prerelease: false
160
+ version_requirements: !ruby/object:Gem::Requirement
161
+ requirements:
162
+ - - "~>"
163
+ - !ruby/object:Gem::Version
164
+ version: 0.9.9
165
+ description: git command wrabper
166
+ email:
167
+ - thomas.tych@gmail.com
168
+ executables: []
169
+ extensions: []
170
+ extra_rdoc_files: []
171
+ files:
172
+ - ".rubocop.yml"
173
+ - Gemfile
174
+ - README.md
175
+ - Rakefile
176
+ - lib/gitwrab.rb
177
+ - lib/gitwrab/conf.rb
178
+ - lib/gitwrab/repository.rb
179
+ - lib/gitwrab/version.rb
180
+ - scripts/console
181
+ - scripts/setup
182
+ homepage: https://gitlab.com/ttych/gitwrab
183
+ licenses: []
184
+ metadata:
185
+ homepage_uri: https://gitlab.com/ttych/gitwrab
186
+ source_code_uri: https://gitlab.com/ttych/gitwrab
187
+ changelog_uri: https://gitlab.com/ttych/gitwrab/CHANGELOG.md
188
+ rubygems_mfa_required: 'true'
189
+ post_install_message:
190
+ rdoc_options: []
191
+ require_paths:
192
+ - lib
193
+ required_ruby_version: !ruby/object:Gem::Requirement
194
+ requirements:
195
+ - - ">="
196
+ - !ruby/object:Gem::Version
197
+ version: 2.6.0
198
+ required_rubygems_version: !ruby/object:Gem::Requirement
199
+ requirements:
200
+ - - ">="
201
+ - !ruby/object:Gem::Version
202
+ version: '0'
203
+ requirements: []
204
+ rubygems_version: 3.4.10
205
+ signing_key:
206
+ specification_version: 4
207
+ summary: git command wrabper
208
+ test_files: []