getclonedata 0.2 → 0.2.1

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
  SHA1:
3
- metadata.gz: b6e364139abf9d37bf10c72687438ae2d5ba1253
4
- data.tar.gz: 651bb52e46fe82effa862dc4fbb684004e2a2ecb
3
+ metadata.gz: 40a0d5c6633ff4dd9ba068b15e71c64b67463531
4
+ data.tar.gz: fcc1023787feda5b83fcbeeecb8d5bbf3039b966
5
5
  SHA512:
6
- metadata.gz: c4d10d2906526c65e88a45527a6d0f2e66795e41b715c048c08db6f16cdbbbc5da2df8cc5dd7a269c41e40b682bc4b12582eaf932907a3a4ebbf477ebde57c9c
7
- data.tar.gz: eac4ca1562e848d896ee2ea17c6c42ce67ab8a045631287479b51b64b95c912af45e379901243ad04bf8ae015eaa38156f01b8224c73b4aa8dbfdbed5c43f709
6
+ metadata.gz: dfe5e85353ab7b6a4e05bc211aef1f2f65ee0ae82b4785389c6fe04898cc382b3cec93e2c047a3dbe98474efe29a8d4191631dd62eb406a75712fbe4089cf6d2
7
+ data.tar.gz: bf2a0a6ae31207d6cf2aa2e2bb6fef1f61f222d9e70ae4f9e8db4bca5ae20462502328a27a48b757fb0be08afd9c13df2bc208b22554c3c5d95937b033b857ba
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- getclonedata (0.2)
4
+ getclonedata (0.2.1)
5
5
  cloc (~> 0.9)
6
6
  flay (~> 2.8)
7
7
  flog (~> 4.4)
@@ -7,6 +7,8 @@ module GetCloneData
7
7
  )
8
8
  )
9
9
 
10
+ @@itt = 0
11
+
10
12
  attr_reader :flog, :flog, :flay, :rubocop, :loc
11
13
 
12
14
  def initialize(repo_path:)
@@ -17,7 +19,7 @@ module GetCloneData
17
19
  repo_path = self.get_repo_path(git_url: git_url)
18
20
  `git clone --depth=1 #{git_url} #{repo_path}`
19
21
  return nil unless Dir.exists? repo_path
20
- new(repo_path: repo_path)
22
+ new(repo_path: repo_path)
21
23
  end
22
24
 
23
25
  def self.wipe
@@ -29,14 +31,19 @@ module GetCloneData
29
31
  end
30
32
 
31
33
  def self.get_repo_path(git_url:)
32
- repository = git_url.gsub('.git','').split('/')[3,4]
34
+ owner, repo = git_url.gsub('.git','').split('/')[3,4]
33
35
  File.expand_path(
34
36
  File.join(
35
- CLONED_REPO_PATH, repository[0], repository[1]
37
+ CLONED_REPO_PATH, owner, repo, itt.to_s
36
38
  )
37
39
  )
38
40
  end
39
41
 
42
+ def self.itt
43
+ @@itt = @@itt + 1
44
+ @@itt
45
+ end
46
+
40
47
  def get_flog_scores
41
48
  if Dir.exist? @repo_path
42
49
  flog_response = `flog #{@repo_path}`.split("\n")
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module GetCloneData
4
- VERSION = '0.2'
4
+ VERSION = '0.2.1'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: getclonedata
3
3
  version: !ruby/object:Gem::Version
4
- version: '0.2'
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Renaud Jollet
@@ -161,7 +161,6 @@ files:
161
161
  - lib/getclonedata/version.rb
162
162
  - spec/clonerepo_spec.rb
163
163
  - spec/spec_helper.rb
164
- - temp.zip
165
164
  homepage: https://github.com/Rubeasts/gitget
166
165
  licenses:
167
166
  - MIT
data/temp.zip DELETED
File without changes