Git_Repo 0.0.1 → 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -16,11 +16,12 @@ Gem::Specification.new do |s|
16
16
  s.files = `git ls-files`.split("\n")
17
17
  s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
18
18
  s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
19
- s.add_development_dependency 'bacon'
20
- s.add_development_dependency 'rake'
21
19
  s.require_paths = ["lib"]
22
20
 
23
21
  # specify any dependencies here; for example:
24
22
  # s.add_development_dependency "rspec"
25
23
  # s.add_runtime_dependency "rest-client"
24
+ s.add_development_dependency 'rake'
25
+ s.add_development_dependency 'bacon'
26
+ s.add_development_dependency 'Bacon_Colored'
26
27
  end
@@ -41,6 +41,10 @@ class Git_Repo
41
41
  shell "git status"
42
42
  end
43
43
 
44
+ def changes_to_be_committed?
45
+ status['Changes to be committed']
46
+ end
47
+
44
48
  def nothing_to_commit?
45
49
  !!( status['nothing to commit (working directory clean)'] )
46
50
  end
@@ -59,11 +63,11 @@ class Git_Repo
59
63
 
60
64
  def shell cmd
61
65
  val = `cd #{address} && #{cmd} 2>&1`.to_s.strip
62
- puts cmd
66
+ print cmd, "\n"
63
67
  if $?.exitstatus != 0
64
68
  raise Failed_Shell_Command, "Results:\n#{val}"
65
69
  end
66
- puts val
70
+ print val, "\n"
67
71
  val
68
72
  end
69
73
 
@@ -1,3 +1,3 @@
1
1
  class Git_Repo
2
- VERSION = "0.0.1"
2
+ VERSION = "0.1.0"
3
3
  end
@@ -1,6 +1,7 @@
1
1
 
2
2
  require File.expand_path('spec/helper')
3
3
  require 'Git_Repo'
4
+ require 'Bacon_Colored'
4
5
 
5
6
 
6
7
  Dir.glob('spec/tests/*.rb').each { |file|
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: Git_Repo
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.1.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,27 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2011-10-08 00:00:00.000000000Z
12
+ date: 2012-04-29 00:00:00.000000000 Z
13
13
  dependencies:
14
+ - !ruby/object:Gem::Dependency
15
+ name: rake
16
+ requirement: !ruby/object:Gem::Requirement
17
+ none: false
18
+ requirements:
19
+ - - ! '>='
20
+ - !ruby/object:Gem::Version
21
+ version: '0'
22
+ type: :development
23
+ prerelease: false
24
+ version_requirements: !ruby/object:Gem::Requirement
25
+ none: false
26
+ requirements:
27
+ - - ! '>='
28
+ - !ruby/object:Gem::Version
29
+ version: '0'
14
30
  - !ruby/object:Gem::Dependency
15
31
  name: bacon
16
- requirement: &7163800 !ruby/object:Gem::Requirement
32
+ requirement: !ruby/object:Gem::Requirement
17
33
  none: false
18
34
  requirements:
19
35
  - - ! '>='
@@ -21,10 +37,15 @@ dependencies:
21
37
  version: '0'
22
38
  type: :development
23
39
  prerelease: false
24
- version_requirements: *7163800
40
+ version_requirements: !ruby/object:Gem::Requirement
41
+ none: false
42
+ requirements:
43
+ - - ! '>='
44
+ - !ruby/object:Gem::Version
45
+ version: '0'
25
46
  - !ruby/object:Gem::Dependency
26
- name: rake
27
- requirement: &7121840 !ruby/object:Gem::Requirement
47
+ name: Bacon_Colored
48
+ requirement: !ruby/object:Gem::Requirement
28
49
  none: false
29
50
  requirements:
30
51
  - - ! '>='
@@ -32,7 +53,12 @@ dependencies:
32
53
  version: '0'
33
54
  type: :development
34
55
  prerelease: false
35
- version_requirements: *7121840
56
+ version_requirements: !ruby/object:Gem::Requirement
57
+ none: false
58
+ requirements:
59
+ - - ! '>='
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
36
62
  description: Helpers to manipulate Git Repos
37
63
  email:
38
64
  - i-hate-spam-45671204@mailinator.com
@@ -69,7 +95,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
69
95
  version: '0'
70
96
  requirements: []
71
97
  rubyforge_project: Git_Repo
72
- rubygems_version: 1.8.11
98
+ rubygems_version: 1.8.23
73
99
  signing_key:
74
100
  specification_version: 3
75
101
  summary: Helpers to manipulate Git Repos