ed 0.1.1 → 0.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (4) hide show
  1. data/README.md +31 -8
  2. data/examples/benchmark.rb +0 -1
  3. data/lib/ed/version.rb +1 -1
  4. metadata +10 -10
data/README.md CHANGED
@@ -40,9 +40,12 @@ __EXAMPLES__
40
40
 
41
41
  __1.__
42
42
 
43
- Travel time and explore, with the aid of [Pry](https://github.com/pry/pry).
43
+ Travel time and benchmark tag '0.1.0' against tag '0.2.0'.
44
44
  (The calling scope is lost in this example, through use of instance\_eval):
45
45
 
46
+ require "ed"
47
+ require "benchmark"
48
+
46
49
  Repository "git://github.com/robgleeson/barney.git" do
47
50
  before do |path|
48
51
  $: << File.join(path, "lib/")
@@ -50,31 +53,51 @@ Travel time and explore, with the aid of [Pry](https://github.com/pry/pry).
50
53
  end
51
54
 
52
55
  tag "0.1.0" do
53
- binding.pry
56
+ Benchmark.bm do |r|
57
+ r.report("0.1.0") {
58
+ Barney::Share.new
59
+ }
60
+ end
54
61
  end
55
62
 
56
63
  tag "0.2.0" do
57
- binding.pry
64
+ Benchmark.bm do |r|
65
+ r.report("0.2.0") {
66
+ Barney::Share.new
67
+ }
68
+ end
58
69
  end
59
- end
70
+ end
71
+
60
72
 
61
73
  __2.__
62
74
 
63
- Travel time and explore, with the aid of [Pry](https://github.com/pry/pry).
75
+ Travel time and benchmark tag '0.1.0' against tag '0.2.0'.
64
76
  (The calling scope is kept in this example by accepting a block parameter):
65
77
 
66
- Ed.new "git://github.com/robgleeson/barney.git" do |repo|
78
+ require "ed"
79
+ require "benchmark"
80
+
81
+ Repository "git://github.com/robgleeson/barney.git" do |repo|
67
82
  repo.before do |path|
68
83
  $: << File.join(path, "lib/")
69
84
  require "barney"
70
85
  end
71
86
 
72
87
  repo.tag "0.1.0" do
73
- binding.pry
88
+ Benchmark.bm do |r|
89
+ r.report("0.1.0") {
90
+ Barney::Share.new
91
+ }
92
+ end
74
93
  end
75
94
 
76
95
  repo.tag "0.2.0" do
77
- binding.pry
96
+ Benchmark.bm do |r|
97
+ r.report("0.2.0") {
98
+ Barney::Share.new
99
+ }
100
+ end
78
101
  end
79
102
  end
80
103
 
@@ -1,5 +1,4 @@
1
1
  require "ed"
2
- require "pry"
3
2
  require "benchmark"
4
3
 
5
4
  Repository "git://github.com/robgleeson/barney.git" do
@@ -1,3 +1,3 @@
1
1
  class Ed
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.2"
3
3
  end
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.1.1
4
+ version: 0.1.2
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: 2011-12-10 00:00:00.000000000 Z
12
+ date: 2011-12-11 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: observe
16
- requirement: &70178311861360 !ruby/object:Gem::Requirement
16
+ requirement: &70223017774760 !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: *70178311861360
24
+ version_requirements: *70223017774760
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: rake
27
- requirement: &70178311860780 !ruby/object:Gem::Requirement
27
+ requirement: &70223017774200 !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: *70178311860780
35
+ version_requirements: *70223017774200
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: minitest
38
- requirement: &70178311860300 !ruby/object:Gem::Requirement
38
+ requirement: &70223017773740 !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: *70178311860300
46
+ version_requirements: *70223017773740
47
47
  description: A Domain Specific Language(DSL) that you can use to talk to Git from
48
48
  Ruby.
49
49
  email:
@@ -81,7 +81,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
81
81
  version: '0'
82
82
  segments:
83
83
  - 0
84
- hash: -4157435092543512331
84
+ hash: -3964033505304951136
85
85
  required_rubygems_version: !ruby/object:Gem::Requirement
86
86
  none: false
87
87
  requirements:
@@ -90,7 +90,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
90
90
  version: '0'
91
91
  segments:
92
92
  - 0
93
- hash: -4157435092543512331
93
+ hash: -3964033505304951136
94
94
  requirements: []
95
95
  rubyforge_project: Ed
96
96
  rubygems_version: 1.8.11