ed 0.3.0 → 0.4.0
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +9 -4
- data/lib/ed.rb +14 -21
- data/lib/ed/version.rb +1 -1
- metadata +14 -9
data/README.md
CHANGED
@@ -12,8 +12,13 @@ __OVERVIEW__
|
|
12
12
|
__DESCRIPTION__
|
13
13
|
|
14
14
|
A Domain Specific Language(DSL) that you can use to talk to Git from Ruby.
|
15
|
-
It isn't intended to be a full interface to Git, but a very small subset of
|
16
|
-
one that
|
15
|
+
It isn't intended to be a full interface to Git, but a very small subset of
|
16
|
+
one that you can use to check out commits and then run Ruby code in the
|
17
|
+
context of those commits.
|
18
|
+
|
19
|
+
So, for example, you might want to check out tag 'v0.1.0' and tag 'v0.2.0' to
|
20
|
+
run the tests of both tags, or benchmark code from one commit against another,
|
21
|
+
that kinda thing.
|
17
22
|
|
18
23
|
__WHY?__
|
19
24
|
|
@@ -55,8 +60,8 @@ _supported_
|
|
55
60
|
|
56
61
|
* Rubinius
|
57
62
|
* CRuby (1.8 / 1.9)
|
58
|
-
* JRuby
|
59
|
-
* MacRuby
|
63
|
+
* JRuby
|
64
|
+
* MacRuby
|
60
65
|
|
61
66
|
__INSTALL__
|
62
67
|
|
data/lib/ed.rb
CHANGED
@@ -9,24 +9,20 @@ require 'ed/core_ext/object'
|
|
9
9
|
class Ed
|
10
10
|
|
11
11
|
include Observe
|
12
|
-
|
13
|
-
class << self
|
14
12
|
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
end
|
29
|
-
|
13
|
+
#
|
14
|
+
# @example
|
15
|
+
# Ed.configure do |config|
|
16
|
+
# config.fork = true
|
17
|
+
# end
|
18
|
+
#
|
19
|
+
# @yieldparam config
|
20
|
+
# (see Ed::Config.change)
|
21
|
+
#
|
22
|
+
# @return [void]
|
23
|
+
#
|
24
|
+
def self.configure &block
|
25
|
+
Ed::Config.change(&block)
|
30
26
|
end
|
31
27
|
|
32
28
|
#
|
@@ -73,10 +69,7 @@ class Ed
|
|
73
69
|
#
|
74
70
|
def commit commit, &block
|
75
71
|
if Ed::Config.fork?
|
76
|
-
pid = fork {
|
77
|
-
switch(commit, &block)
|
78
|
-
}
|
79
|
-
|
72
|
+
pid = fork { switch(commit, &block) }
|
80
73
|
Process.wait(pid)
|
81
74
|
else
|
82
75
|
switch(commit, &block)
|
data/lib/ed/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ed
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.4.0
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,11 +9,11 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-01-
|
12
|
+
date: 2012-01-05 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: observe
|
16
|
-
requirement: &
|
16
|
+
requirement: &70219235715720 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ~>
|
@@ -21,10 +21,10 @@ dependencies:
|
|
21
21
|
version: 0.2.0
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
|
-
version_requirements: *
|
24
|
+
version_requirements: *70219235715720
|
25
25
|
- !ruby/object:Gem::Dependency
|
26
26
|
name: rake
|
27
|
-
requirement: &
|
27
|
+
requirement: &70219235715200 !ruby/object:Gem::Requirement
|
28
28
|
none: false
|
29
29
|
requirements:
|
30
30
|
- - ~>
|
@@ -32,10 +32,10 @@ dependencies:
|
|
32
32
|
version: 0.9.2
|
33
33
|
type: :development
|
34
34
|
prerelease: false
|
35
|
-
version_requirements: *
|
35
|
+
version_requirements: *70219235715200
|
36
36
|
- !ruby/object:Gem::Dependency
|
37
37
|
name: minitest
|
38
|
-
requirement: &
|
38
|
+
requirement: &70219235714740 !ruby/object:Gem::Requirement
|
39
39
|
none: false
|
40
40
|
requirements:
|
41
41
|
- - ~>
|
@@ -43,7 +43,7 @@ dependencies:
|
|
43
43
|
version: '2.6'
|
44
44
|
type: :development
|
45
45
|
prerelease: false
|
46
|
-
version_requirements: *
|
46
|
+
version_requirements: *70219235714740
|
47
47
|
description: A Domain Specific Language(DSL) that you can use to talk to Git from
|
48
48
|
Ruby.
|
49
49
|
email:
|
@@ -83,12 +83,18 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
83
83
|
- - ! '>='
|
84
84
|
- !ruby/object:Gem::Version
|
85
85
|
version: '0'
|
86
|
+
segments:
|
87
|
+
- 0
|
88
|
+
hash: -1787377853303757998
|
86
89
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
87
90
|
none: false
|
88
91
|
requirements:
|
89
92
|
- - ! '>='
|
90
93
|
- !ruby/object:Gem::Version
|
91
94
|
version: '0'
|
95
|
+
segments:
|
96
|
+
- 0
|
97
|
+
hash: -1787377853303757998
|
92
98
|
requirements: []
|
93
99
|
rubyforge_project: Ed
|
94
100
|
rubygems_version: 1.8.11
|
@@ -98,4 +104,3 @@ summary: A Domain Specific Language(DSL) that you can use to talk to Git from Ru
|
|
98
104
|
test_files:
|
99
105
|
- test/setup.rb
|
100
106
|
- test/test_ed.rb
|
101
|
-
has_rdoc:
|