gitignores 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 +5 -5
- data/Gemfile.lock +20 -14
- data/README.md +1 -2
- data/README.rdoc +1 -1
- data/gitignores.gemspec +0 -1
- data/lib/gitignores/version.rb +1 -1
- data/spec/gitignore_builder_spec.rb +4 -4
- data/spec/gitignore_fetcher_spec.rb +5 -5
- metadata +16 -17
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 4137f3ee5e7252e4a21dd063ee66d6aff600d91a40176123fb1617c31c7adb4d
|
4
|
+
data.tar.gz: 33b576db764596fcb3f3599c4d2a041e784a44f481f6c47f1df20bca197f1d07
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b353d55a750199b592aabdd5b3e5fce773c7059b0f45ff260dbe12ca661856fc3bc5d96c795ec0e6d9cc8ec5b71b7eab8a04d9e1d5df133e9424c694af132dfa
|
7
|
+
data.tar.gz: 5f8fdf97265decc4d6b6ad1cb2859300060d29730d593abf7589b3ae437e9f61d9e5a6d4c0d7a31e8f404c1dd6a783cc670242735277e3da227f0f4602af89ef
|
data/Gemfile.lock
CHANGED
@@ -1,26 +1,29 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
gitignores (0.1.
|
4
|
+
gitignores (0.1.1)
|
5
5
|
gli (= 2.13.3)
|
6
6
|
|
7
7
|
GEM
|
8
8
|
remote: https://rubygems.org/
|
9
9
|
specs:
|
10
|
-
diff-lcs (1.
|
10
|
+
diff-lcs (1.4.4)
|
11
11
|
gli (2.13.3)
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
rspec-
|
18
|
-
|
19
|
-
rspec-
|
20
|
-
rspec-
|
21
|
-
|
22
|
-
|
23
|
-
rspec-mocks (
|
12
|
+
rake (13.0.3)
|
13
|
+
rdoc (6.3.0)
|
14
|
+
rspec (3.10.0)
|
15
|
+
rspec-core (~> 3.10.0)
|
16
|
+
rspec-expectations (~> 3.10.0)
|
17
|
+
rspec-mocks (~> 3.10.0)
|
18
|
+
rspec-core (3.10.1)
|
19
|
+
rspec-support (~> 3.10.0)
|
20
|
+
rspec-expectations (3.10.1)
|
21
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
22
|
+
rspec-support (~> 3.10.0)
|
23
|
+
rspec-mocks (3.10.2)
|
24
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
25
|
+
rspec-support (~> 3.10.0)
|
26
|
+
rspec-support (3.10.2)
|
24
27
|
|
25
28
|
PLATFORMS
|
26
29
|
ruby
|
@@ -30,3 +33,6 @@ DEPENDENCIES
|
|
30
33
|
rake
|
31
34
|
rdoc
|
32
35
|
rspec
|
36
|
+
|
37
|
+
BUNDLED WITH
|
38
|
+
2.1.4
|
data/README.md
CHANGED
@@ -4,7 +4,7 @@ Tool for building a .gitignore from community templates at [github/gitignore](ht
|
|
4
4
|
|
5
5
|
## Installation
|
6
6
|
|
7
|
-
|
7
|
+
gem install gitignores
|
8
8
|
|
9
9
|
## Usage
|
10
10
|
|
@@ -27,4 +27,3 @@ Prints gitignores for Java, JetBrains, Eclipse to standard out
|
|
27
27
|
**update** updates the github/gitignore cache (by default `$HOME/.gitignores`)
|
28
28
|
|
29
29
|
gitignores update
|
30
|
-
|
data/README.rdoc
CHANGED
data/gitignores.gemspec
CHANGED
data/lib/gitignores/version.rb
CHANGED
@@ -11,7 +11,7 @@ describe GitignoreBuilder do
|
|
11
11
|
# Really simple test because I'm a Ruby newb
|
12
12
|
describe "#new" do
|
13
13
|
it "creates a new GitignoreBuilder" do
|
14
|
-
@builder.
|
14
|
+
expect(@builder).to be_an_instance_of GitignoreBuilder
|
15
15
|
end
|
16
16
|
end
|
17
17
|
|
@@ -21,8 +21,8 @@ describe GitignoreBuilder do
|
|
21
21
|
paths = @builder.find_gitignores_by_name ["foo", "bar"]
|
22
22
|
|
23
23
|
fake_ignores_root = File.expand_path(FAKE_IGNORES)
|
24
|
-
paths.
|
25
|
-
paths.
|
24
|
+
expect(paths).to include("#{fake_ignores_root}/foo.gitignore")
|
25
|
+
expect(paths).to include("#{fake_ignores_root}/Global/bar.gitignore")
|
26
26
|
end
|
27
27
|
|
28
28
|
it "raises GitignoreNotFound exception if it cannot find a Gitignore" do
|
@@ -37,7 +37,7 @@ describe GitignoreBuilder do
|
|
37
37
|
out = StringIO.new
|
38
38
|
@builder.concatenate_files(["#{FAKE_IGNORES}/foo.gitignore", "#{FAKE_IGNORES}/Global/bar.gitignore"], out)
|
39
39
|
|
40
|
-
out.string.
|
40
|
+
expect(out.string).to eq(
|
41
41
|
"
|
42
42
|
\# foo
|
43
43
|
|
@@ -11,8 +11,8 @@ describe Git do
|
|
11
11
|
FileUtils.rm_rf(test_repository)
|
12
12
|
@git.clone '.', test_repository
|
13
13
|
|
14
|
-
File.exists?(test_repository).
|
15
|
-
Dir[test_repository].empty
|
14
|
+
expect(File.exists?(test_repository)).to be true
|
15
|
+
expect(Dir[test_repository].empty?).to be false
|
16
16
|
end
|
17
17
|
end
|
18
18
|
|
@@ -27,7 +27,7 @@ describe GitignoreFetcher do
|
|
27
27
|
describe "#fetch_gitignores" do
|
28
28
|
|
29
29
|
it "downloads the github/gitignore repository" do
|
30
|
-
@mockGit.
|
30
|
+
expect(@mockGit).to receive(:clone)
|
31
31
|
|
32
32
|
@fetcher.fetch_gitignores
|
33
33
|
end
|
@@ -35,7 +35,7 @@ describe GitignoreFetcher do
|
|
35
35
|
it "updates the repository when given update flag" do
|
36
36
|
@fetcher.update_ignores = true
|
37
37
|
@mockGit.stub(:clone)
|
38
|
-
@mockGit.
|
38
|
+
expect(@mockGit).to receive(:pull).with(anything())
|
39
39
|
|
40
40
|
@fetcher.fetch_gitignores
|
41
41
|
end
|
@@ -48,7 +48,7 @@ describe GitignoreFetcher do
|
|
48
48
|
@fetcher.local_repository = FAKE_IGNORES
|
49
49
|
ignores = @fetcher.list_gitignores
|
50
50
|
|
51
|
-
ignores.
|
51
|
+
expect(ignores).to include("foo", "bar")
|
52
52
|
end
|
53
53
|
end
|
54
54
|
|
metadata
CHANGED
@@ -1,55 +1,55 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gitignores
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Johnathan Gilday
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2021-03-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- -
|
17
|
+
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
19
|
version: '0'
|
20
20
|
type: :development
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- -
|
24
|
+
- - ">="
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: '0'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: rdoc
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- -
|
31
|
+
- - ">="
|
32
32
|
- !ruby/object:Gem::Version
|
33
33
|
version: '0'
|
34
34
|
type: :development
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
|
-
- -
|
38
|
+
- - ">="
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '0'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: rspec
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
|
-
- -
|
45
|
+
- - ">="
|
46
46
|
- !ruby/object:Gem::Version
|
47
47
|
version: '0'
|
48
48
|
type: :development
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
|
-
- -
|
52
|
+
- - ">="
|
53
53
|
- !ruby/object:Gem::Version
|
54
54
|
version: '0'
|
55
55
|
- !ruby/object:Gem::Dependency
|
@@ -66,14 +66,14 @@ dependencies:
|
|
66
66
|
- - '='
|
67
67
|
- !ruby/object:Gem::Version
|
68
68
|
version: 2.13.3
|
69
|
-
description:
|
69
|
+
description:
|
70
70
|
email: me@johnathangilday.com
|
71
71
|
executables:
|
72
72
|
- gitignores
|
73
73
|
extensions: []
|
74
74
|
extra_rdoc_files: []
|
75
75
|
files:
|
76
|
-
- .gitignore
|
76
|
+
- ".gitignore"
|
77
77
|
- CHANGELOG.md
|
78
78
|
- Gemfile
|
79
79
|
- Gemfile.lock
|
@@ -96,25 +96,24 @@ files:
|
|
96
96
|
homepage: https://github.com/gilday/gitignore-builder
|
97
97
|
licenses: []
|
98
98
|
metadata: {}
|
99
|
-
post_install_message:
|
99
|
+
post_install_message:
|
100
100
|
rdoc_options: []
|
101
101
|
require_paths:
|
102
102
|
- lib
|
103
103
|
- lib
|
104
104
|
required_ruby_version: !ruby/object:Gem::Requirement
|
105
105
|
requirements:
|
106
|
-
- -
|
106
|
+
- - ">="
|
107
107
|
- !ruby/object:Gem::Version
|
108
108
|
version: '0'
|
109
109
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
110
110
|
requirements:
|
111
|
-
- -
|
111
|
+
- - ">="
|
112
112
|
- !ruby/object:Gem::Version
|
113
113
|
version: '0'
|
114
114
|
requirements: []
|
115
|
-
|
116
|
-
|
117
|
-
signing_key:
|
115
|
+
rubygems_version: 3.1.4
|
116
|
+
signing_key:
|
118
117
|
specification_version: 4
|
119
118
|
summary: Generates .gitignore
|
120
119
|
test_files: []
|