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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c2dc04f09bab4927a06925024375fc8870e32946
4
- data.tar.gz: 3b05ab236f66ed462b91d08f88c1538e2741a1ce
3
+ metadata.gz: 5b4849ed2c72bad7e8a2e208b9d3cfb39bb6fb18
4
+ data.tar.gz: 0e860aa41fa1d5c3d7d2773a35bf689d963328e1
5
5
  SHA512:
6
- metadata.gz: 48886bd57762f32ed30f8f418f487282584ee4e80b2d9e9290b69b43e2e511006a35a5e09240f0e4b2cb8e09dc268dd7347c0823452da3e38b44ed06b0ce09cc
7
- data.tar.gz: 27d814b14b3ccba2e1e4d25f406e23b5f2272e2f97838c6fc785b46e1359fa0a148f5cf63c4ef05ede8d46cef93a9a29570c066488d4240ef4d94162a8aad9d1
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)
@@ -38,7 +38,7 @@ module Repos
38
38
  if options[:verbose]
39
39
  Dir.chdir repository do
40
40
  system 'git status'
41
- system 'git stash list'
41
+ system 'git --no-pager stash list'
42
42
  puts
43
43
  end
44
44
  end
@@ -1,4 +1,4 @@
1
1
  module Repos
2
2
  # The version number of the gem.
3
- VERSION = '0.1.0'
3
+ VERSION = '0.1.1'
4
4
  end
@@ -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') { `echo "hello" > file` }
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
- `echo "hello" > file`
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
@@ -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') { `echo "Hello, world!" > file` }
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.0
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-25 00:00:00.000000000 Z
11
+ date: 2014-07-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thor