repos 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -0
- data/lib/repos/cli.rb +1 -1
- data/lib/repos/version.rb +1 -1
- data/spec/repos_spec.rb +2 -2
- data/spec/spec_helper.rb +3 -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: 5b4849ed2c72bad7e8a2e208b9d3cfb39bb6fb18
|
4
|
+
data.tar.gz: 0e860aa41fa1d5c3d7d2773a35bf689d963328e1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b99714933563d373c74cf9fd92572ab58ad07fe0c380022b066a83f1e6c9db1598cb8635d8e8e4de141d655a5e29e209dce0c2589318b7be1cd9920171cb2c20
|
7
|
+
data.tar.gz: 0459fa1235ba6a450fcdd2eb4745f5df32eab8a065668132f7989c3c802d91a9486100f400f6040aedf467250e3edece55204839c3625eb58eb156e3fe0b8a99
|
data/README.md
CHANGED
@@ -1,4 +1,5 @@
|
|
1
1
|
# Repos
|
2
|
+
[![Gem Version](https://badge.fury.io/rb/repos.svg)](http://badge.fury.io/rb/repos)
|
2
3
|
[![Build Status](https://travis-ci.org/nicolasmccurdy/repos.svg?branch=master)](https://travis-ci.org/nicolasmccurdy/repos)
|
3
4
|
[![Dependency Status](https://gemnasium.com/nicolasmccurdy/repos.svg)](https://gemnasium.com/nicolasmccurdy/repos)
|
4
5
|
[![Code Climate](https://codeclimate.com/github/nicolasmccurdy/findrepos.png)](https://codeclimate.com/github/nicolasmccurdy/findrepos)
|
data/lib/repos/cli.rb
CHANGED
data/lib/repos/version.rb
CHANGED
data/spec/repos_spec.rb
CHANGED
@@ -22,7 +22,7 @@ describe Repos do
|
|
22
22
|
context 'when the given repository has a modified file in the working ' \
|
23
23
|
'tree' do
|
24
24
|
it 'returns false' do
|
25
|
-
Dir.chdir('repo') {
|
25
|
+
Dir.chdir('repo') { File.open('file', 'w') { |f| f.write('hello') } }
|
26
26
|
expect(Repos.clean? 'repo').to be false
|
27
27
|
end
|
28
28
|
end
|
@@ -30,7 +30,7 @@ describe Repos do
|
|
30
30
|
context 'when the given repository has a modified file in the stage' do
|
31
31
|
it 'returns false' do
|
32
32
|
Dir.chdir 'repo' do
|
33
|
-
|
33
|
+
File.open('file', 'w') { |f| f.write('hello') }
|
34
34
|
`git add file`
|
35
35
|
end
|
36
36
|
expect(Repos.clean? 'repo').to be false
|
data/spec/spec_helper.rb
CHANGED
@@ -23,7 +23,9 @@ def create_repo_tree
|
|
23
23
|
create_repo 'a_clean_repo'
|
24
24
|
|
25
25
|
create_repo 'a_dirty_repo'
|
26
|
-
Dir.chdir('a_dirty_repo')
|
26
|
+
Dir.chdir('a_dirty_repo') do
|
27
|
+
File.open('file', 'w') { |f| f.write('Hello, world!') }
|
28
|
+
end
|
27
29
|
|
28
30
|
Dir.mkdir 'not_a_repo'
|
29
31
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: repos
|
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
|
- Nicolas McCurdy
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-07-
|
11
|
+
date: 2014-07-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: thor
|