git_local 0.0.5 → 0.0.6
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/Gemfile.lock +5 -4
- data/git_local.gemspec +1 -0
- data/lib/git_local/repository.rb +2 -2
- data/lib/git_local/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 341679de1dc41050a8c505b4bb6e165d3b4b38c4
|
|
4
|
+
data.tar.gz: fc469cd308ff92cc6148563a85ce98b15d4d50bf
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: b0bbdac26e347c75f214d918b7daeb42f689137bdf40fc14a1df8cef6782d286eec942ff49ca77e514a7c1bed45c437aa02f0996d3434fcaffc2b2ab6269d0da
|
|
7
|
+
data.tar.gz: 764c40cfd988121f7da87368b9914781f77b8ce069e043784629de7f5a95a63a278b30bbff339074726704be17a5d7ae7535549e9da9f6b7e7ad660832a0ed2b
|
data/Gemfile.lock
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: .
|
|
3
3
|
specs:
|
|
4
|
-
git_local (0.0.
|
|
4
|
+
git_local (0.0.6)
|
|
5
5
|
|
|
6
6
|
GEM
|
|
7
7
|
remote: https://rubygems.org/
|
|
@@ -18,7 +18,8 @@ GEM
|
|
|
18
18
|
coderay (~> 1.1.0)
|
|
19
19
|
method_source (~> 0.8.1)
|
|
20
20
|
slop (~> 3.4)
|
|
21
|
-
rainbow (2.2.
|
|
21
|
+
rainbow (2.2.2)
|
|
22
|
+
rake
|
|
22
23
|
rake (10.5.0)
|
|
23
24
|
rspec (3.5.0)
|
|
24
25
|
rspec-core (~> 3.5.0)
|
|
@@ -36,7 +37,7 @@ GEM
|
|
|
36
37
|
rspec_junit_formatter (0.2.3)
|
|
37
38
|
builder (< 4)
|
|
38
39
|
rspec-core (>= 2, < 4, != 2.12.0)
|
|
39
|
-
rubocop (0.
|
|
40
|
+
rubocop (0.48.1)
|
|
40
41
|
parser (>= 2.3.3.1, < 3.0)
|
|
41
42
|
powerpack (~> 0.1)
|
|
42
43
|
rainbow (>= 1.99.1, < 3.0)
|
|
@@ -44,7 +45,7 @@ GEM
|
|
|
44
45
|
unicode-display_width (~> 1.0, >= 1.0.1)
|
|
45
46
|
ruby-progressbar (1.8.1)
|
|
46
47
|
slop (3.6.0)
|
|
47
|
-
unicode-display_width (1.1
|
|
48
|
+
unicode-display_width (1.2.1)
|
|
48
49
|
|
|
49
50
|
PLATFORMS
|
|
50
51
|
ruby
|
data/git_local.gemspec
CHANGED
data/lib/git_local/repository.rb
CHANGED
|
@@ -27,7 +27,7 @@ module GitLocal
|
|
|
27
27
|
searchable_repo_path = repo_path.end_with?("/") ? repo_path : "#{repo_path}/"
|
|
28
28
|
|
|
29
29
|
Dir.glob("#{searchable_repo_path}*").each_with_object([]) do |filename, git_files|
|
|
30
|
-
next if %w
|
|
30
|
+
next if %w[. ..].include?(filename) || File.extname(filename) == ".zip" || File.directory?(filename)
|
|
31
31
|
|
|
32
32
|
git_files << GitLocal::Object.new(filename)
|
|
33
33
|
end
|
|
@@ -66,7 +66,7 @@ module GitLocal
|
|
|
66
66
|
end
|
|
67
67
|
|
|
68
68
|
def check_for_special_characters(*args)
|
|
69
|
-
regexp = Regexp.new(/([A-Za-z0-9\-\_
|
|
69
|
+
regexp = Regexp.new(/([A-Za-z0-9\-\_\.\/#]+)/)
|
|
70
70
|
args.each do |arg|
|
|
71
71
|
raise InvalidArgument unless arg.gsub(regexp, "").empty?
|
|
72
72
|
end
|
data/lib/git_local/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: git_local
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.6
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Galvanize Product
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2017-
|
|
11
|
+
date: 2017-05-02 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|