gitty 0.4.4 → 0.4.5
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/gitty.rb +1 -2
- data/lib/{string.rb → gitty/ext.rb} +18 -1
- data/spec/spec_helper.rb +2 -2
- metadata +35 -44
- data/lib/ext.rb +0 -16
data/lib/gitty.rb
CHANGED
@@ -1,3 +1,20 @@
|
|
1
|
+
class Symbol
|
2
|
+
unless method_defined?(:to_proc)
|
3
|
+
def to_proc
|
4
|
+
proc { |obj, *args| obj.send(self, *args) }
|
5
|
+
end
|
6
|
+
end
|
7
|
+
end
|
8
|
+
|
9
|
+
class Object
|
10
|
+
unless method_defined?(:tap)
|
11
|
+
def tap
|
12
|
+
yield self
|
13
|
+
self
|
14
|
+
end
|
15
|
+
end
|
16
|
+
end
|
17
|
+
|
1
18
|
class String
|
2
19
|
def constantize
|
3
20
|
Object.module_eval("::" + self)
|
@@ -10,4 +27,4 @@ class String
|
|
10
27
|
def classify
|
11
28
|
gsub(/^[a-z]/) { |l| l.upcase}.gsub(/_[a-z]/) { |l| l[1..1].upcase}.gsub(/\b[a-z]/) {|l| l.upcase}.gsub("/", "::")
|
12
29
|
end
|
13
|
-
end
|
30
|
+
end
|
data/spec/spec_helper.rb
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
require File.dirname(__FILE__) + "/../lib/gitty"
|
2
2
|
require 'rubygems'
|
3
|
-
require "
|
3
|
+
require "rspec"
|
4
4
|
SPEC_PATH = Pathname.new(File.dirname(__FILE__))
|
5
5
|
require SPEC_PATH + "../features/support/sandbox_world.rb"
|
6
6
|
require SPEC_PATH + "support/constants.rb"
|
7
7
|
|
8
8
|
|
9
9
|
require 'forwardable'
|
10
|
-
|
10
|
+
RSpec.configure do |config|
|
11
11
|
extend Forwardable
|
12
12
|
def sandbox
|
13
13
|
@sandbox ||= SandboxWorld.new
|
metadata
CHANGED
@@ -1,35 +1,36 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: gitty
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
5
|
-
prerelease:
|
6
|
-
segments:
|
7
|
-
- 0
|
8
|
-
- 4
|
9
|
-
- 4
|
10
|
-
version: 0.4.4
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.4.5
|
5
|
+
prerelease:
|
11
6
|
platform: ruby
|
12
|
-
authors:
|
7
|
+
authors:
|
13
8
|
- Tim Harper
|
14
9
|
autorequire:
|
15
10
|
bindir: bin
|
16
11
|
cert_chain: []
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
12
|
+
date: 2011-09-11 00:00:00.000000000Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
15
|
+
name: rspec
|
16
|
+
requirement: &70345100962520 !ruby/object:Gem::Requirement
|
17
|
+
none: false
|
18
|
+
requirements:
|
19
|
+
- - ~>
|
20
|
+
- !ruby/object:Gem::Version
|
21
|
+
version: '2.6'
|
22
|
+
type: :development
|
23
|
+
prerelease: false
|
24
|
+
version_requirements: *70345100962520
|
22
25
|
description: Unobtrusively extend git
|
23
26
|
email: timcharper@gmail.com
|
24
|
-
executables:
|
27
|
+
executables:
|
25
28
|
- git-hook
|
26
29
|
extensions: []
|
27
|
-
|
28
|
-
extra_rdoc_files:
|
30
|
+
extra_rdoc_files:
|
29
31
|
- LICENSE
|
30
32
|
- README.textile
|
31
|
-
files:
|
32
|
-
- lib/ext.rb
|
33
|
+
files:
|
33
34
|
- lib/gitty/commands/init.rb
|
34
35
|
- lib/gitty/commands/install.rb
|
35
36
|
- lib/gitty/commands/list.rb
|
@@ -38,12 +39,12 @@ files:
|
|
38
39
|
- lib/gitty/commands/shell.rb
|
39
40
|
- lib/gitty/commands/show.rb
|
40
41
|
- lib/gitty/commands/uninstall.rb
|
42
|
+
- lib/gitty/ext.rb
|
41
43
|
- lib/gitty/helpers.rb
|
42
44
|
- lib/gitty/hook.rb
|
43
45
|
- lib/gitty/hook_command.rb
|
44
46
|
- lib/gitty/runner.rb
|
45
47
|
- lib/gitty.rb
|
46
|
-
- lib/string.rb
|
47
48
|
- assets/helpers/git-cleanup-branches
|
48
49
|
- assets/helpers/git-strip-new-whitespace
|
49
50
|
- assets/helpers/git-submodule-helper
|
@@ -65,41 +66,31 @@ files:
|
|
65
66
|
- Rakefile
|
66
67
|
- README.textile
|
67
68
|
- LICENSE
|
68
|
-
has_rdoc: true
|
69
69
|
homepage: http://github.com/timcharper/gitty
|
70
70
|
licenses: []
|
71
|
-
|
72
71
|
post_install_message:
|
73
72
|
rdoc_options: []
|
74
|
-
|
75
|
-
require_paths:
|
73
|
+
require_paths:
|
76
74
|
- lib
|
77
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
75
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
78
76
|
none: false
|
79
|
-
requirements:
|
80
|
-
- -
|
81
|
-
- !ruby/object:Gem::Version
|
82
|
-
|
83
|
-
|
84
|
-
- 0
|
85
|
-
version: "0"
|
86
|
-
required_rubygems_version: !ruby/object:Gem::Requirement
|
77
|
+
requirements:
|
78
|
+
- - ! '>='
|
79
|
+
- !ruby/object:Gem::Version
|
80
|
+
version: '0'
|
81
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
87
82
|
none: false
|
88
|
-
requirements:
|
89
|
-
- -
|
90
|
-
- !ruby/object:Gem::Version
|
91
|
-
|
92
|
-
segments:
|
93
|
-
- 0
|
94
|
-
version: "0"
|
83
|
+
requirements:
|
84
|
+
- - ! '>='
|
85
|
+
- !ruby/object:Gem::Version
|
86
|
+
version: '0'
|
95
87
|
requirements: []
|
96
|
-
|
97
88
|
rubyforge_project:
|
98
|
-
rubygems_version: 1.
|
89
|
+
rubygems_version: 1.8.7
|
99
90
|
signing_key:
|
100
91
|
specification_version: 3
|
101
92
|
summary: Unobtrusively extend git
|
102
|
-
test_files:
|
93
|
+
test_files:
|
103
94
|
- spec/gitty/hook_spec.rb
|
104
95
|
- spec/gitty_spec.rb
|
105
96
|
- spec/spec_helper.rb
|
data/lib/ext.rb
DELETED