furi-git-prompt 0.0.2 → 0.0.3

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: 926587b6fbec072f65b3d2055725c64b6dd725ae
4
- data.tar.gz: 6b0fffefeb51900c818494453b67a72af08eb52e
3
+ metadata.gz: 2570e7192c64334d8835987dbdea44ceaabf540d
4
+ data.tar.gz: 322b029a11ef40e35187183a480a59cff8482b4a
5
5
  SHA512:
6
- metadata.gz: 912f26137370999e4250737f08dc6557182edef7a287df4e9cbd0c41d8bcb45015dccf9315af50ea85462860534f956d5a94ee292d5118fecf7f2c2033b18a34
7
- data.tar.gz: 71b979f159312034ea866a0345a2a74d8e7c6bda1939bae53cd7d549fac10dc47fb4277874a7beb48b16570d474e8aa7e1705edaa13a2131cabf03f7975c6c14
6
+ metadata.gz: 99a93049ce4836adbe3c85d53031514f9ee20ea1713621029d5a9c00f4f873a144a8bc0e9151598a138af16e0f6896ea2d773e66675dd0110e345ab847b602e4
7
+ data.tar.gz: 1d8bdfd88ea79f242970a80aad753de6a69df4b28264eb066a93165a255c565282c24e48ef80a4f3a5da5f9a4c7f39effecd4c7471e99797c66e809f16b22ece
data/bin/furi-git-prompt CHANGED
@@ -1,4 +1,7 @@
1
1
  #!/usr/bin/env ruby
2
2
 
3
- require 'furi/git/prompt'
4
- puts Prompt.new.branch
3
+ require 'furi/git/git'
4
+ require 'furi/git/git_prompt'
5
+
6
+ puts GitPrompt.version
7
+ puts GitPrompt.branch
@@ -8,7 +8,7 @@ Gem::Specification.new do |spec|
8
8
  spec.version = Furi::Git::Prompt::VERSION
9
9
  spec.authors = ['Theo Pack']
10
10
  spec.email = %w(tf.pack@googlemail.com)
11
- spec.description = 'Prompt for git with all interesting informations'
11
+ spec.description = 'Git for git with all interesting informations'
12
12
  spec.summary = 'Git prompt'
13
13
  spec.homepage = 'https://github.com/FuriKuri/furi-git-prompt'
14
14
  spec.license = 'MIT'
@@ -1,6 +1,6 @@
1
1
  require_relative 'git_system_call'
2
2
 
3
- class Prompt
3
+ class Git
4
4
  def initialize
5
5
  @git_system = GitSystemCall.new
6
6
  end
@@ -0,0 +1,12 @@
1
+ require_relative 'prompt/version'
2
+ require_relative 'git'
3
+
4
+ module GitPrompt
5
+ def self.branch
6
+ Git.new.branch
7
+ end
8
+
9
+ def self.version
10
+ Furi::Git::Prompt::VERSION
11
+ end
12
+ end
@@ -1,7 +1,7 @@
1
1
  module Furi
2
2
  module Git
3
3
  module Prompt
4
- VERSION = '0.0.2'
4
+ VERSION = '0.0.3'
5
5
  end
6
6
  end
7
7
  end
@@ -1,11 +1,11 @@
1
1
  require 'rspec'
2
2
 
3
- require_relative '../../../lib/furi/git/prompt'
3
+ require_relative '../../../lib/furi/git/git'
4
4
 
5
- describe Prompt do
5
+ describe Git do
6
6
 
7
7
  it 'show current branch name of a git repository' do
8
8
  GitSystemCall.any_instance.stub(:git_branch).and_return('master')
9
- Prompt.new.branch.should == 'master'
9
+ Git.new.branch.should == 'master'
10
10
  end
11
11
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: furi-git-prompt
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Theo Pack
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-09-29 00:00:00.000000000 Z
11
+ date: 2013-10-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -52,7 +52,7 @@ dependencies:
52
52
  - - '>='
53
53
  - !ruby/object:Gem::Version
54
54
  version: '0'
55
- description: Prompt for git with all interesting informations
55
+ description: Git for git with all interesting informations
56
56
  email:
57
57
  - tf.pack@googlemail.com
58
58
  executables:
@@ -67,10 +67,11 @@ files:
67
67
  - Rakefile
68
68
  - bin/furi-git-prompt
69
69
  - furi-git-prompt.gemspec
70
+ - lib/furi/git/git.rb
71
+ - lib/furi/git/git_prompt.rb
70
72
  - lib/furi/git/git_system_call.rb
71
- - lib/furi/git/prompt.rb
72
73
  - lib/furi/git/prompt/version.rb
73
- - spec/furi/git/prompt_spec.rb
74
+ - spec/furi/git/git_spec.rb
74
75
  homepage: https://github.com/FuriKuri/furi-git-prompt
75
76
  licenses:
76
77
  - MIT
@@ -96,4 +97,4 @@ signing_key:
96
97
  specification_version: 4
97
98
  summary: Git prompt
98
99
  test_files:
99
- - spec/furi/git/prompt_spec.rb
100
+ - spec/furi/git/git_spec.rb