echoe 4.5.2 → 4.5.5
Sign up to get free protection for your applications and to get access to all the features.
- data.tar.gz.sig +0 -0
- data/CHANGELOG +2 -0
- data/echoe.gemspec +2 -2
- data/lib/echoe.rb +18 -3
- metadata +23 -2
- metadata.gz.sig +0 -0
data.tar.gz.sig
CHANGED
Binary file
|
data/CHANGELOG
CHANGED
data/echoe.gemspec
CHANGED
@@ -2,12 +2,12 @@
|
|
2
2
|
|
3
3
|
Gem::Specification.new do |s|
|
4
4
|
s.name = %q{echoe}
|
5
|
-
s.version = "4.5.
|
5
|
+
s.version = "4.5.5"
|
6
6
|
|
7
7
|
s.required_rubygems_version = Gem::Requirement.new(">= 1.2") if s.respond_to? :required_rubygems_version=
|
8
8
|
s.authors = ["Evan Weaver"]
|
9
9
|
s.cert_chain = ["/Users/eweaver/p/configuration/gem_certificates/evan_weaver-original-public_cert.pem"]
|
10
|
-
s.date = %q{2011-
|
10
|
+
s.date = %q{2011-03-15}
|
11
11
|
s.description = %q{A Rubygems packaging tool that provides Rake tasks for documentation, extension compiling, testing, and deployment.}
|
12
12
|
s.email = %q{}
|
13
13
|
s.extra_rdoc_files = ["CHANGELOG", "LICENSE", "README", "lib/echoe.rb", "lib/echoe/extensions.rb", "lib/echoe/platform.rb", "lib/echoe/rubygems.rb"]
|
data/lib/echoe.rb
CHANGED
@@ -494,15 +494,30 @@ private
|
|
494
494
|
|
495
495
|
desc 'Package and upload the release to Gemcutter'
|
496
496
|
task :release => [:clean, :package] do |t|
|
497
|
-
|
497
|
+
git_branch = nil
|
498
|
+
if (File.exist?(".git"))
|
499
|
+
git_branch = `git branch --no-color | egrep '^\\*' | awk '{print $2}'`.chomp
|
500
|
+
if (`git diff origin/#{git_branch}`).any?
|
501
|
+
puts "You need to commit and push your changes first."
|
502
|
+
exit(1)
|
503
|
+
end
|
504
|
+
end
|
505
|
+
tag = "#{name}-#{version}"
|
506
|
+
pkg = "pkg/#{tag}"
|
498
507
|
pkg_gem = pkg + ".gem"
|
499
508
|
pkg_tar = pkg + ".tgz"
|
500
509
|
pkg_tar_gz = pkg + ".tar.gz"
|
501
510
|
pkg_zip = pkg + ".zip"
|
502
511
|
|
503
512
|
puts "Releasing #{name} v. #{version} to Gemcutter."
|
504
|
-
system("gem push #{pkg_gem.inspect}")
|
505
|
-
|
513
|
+
if system("gem push #{pkg_gem.inspect}")
|
514
|
+
if git_branch
|
515
|
+
if system("git tag #{tag} && git push origin #{tag}")
|
516
|
+
puts "Tagged release as #{tag}"
|
517
|
+
end
|
518
|
+
end
|
519
|
+
end
|
520
|
+
end
|
506
521
|
|
507
522
|
### Extension building
|
508
523
|
|
metadata
CHANGED
@@ -1,8 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: echoe
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
+
hash: 33
|
4
5
|
prerelease:
|
5
|
-
|
6
|
+
segments:
|
7
|
+
- 4
|
8
|
+
- 5
|
9
|
+
- 5
|
10
|
+
version: 4.5.5
|
6
11
|
platform: ruby
|
7
12
|
authors:
|
8
13
|
- Evan Weaver
|
@@ -31,7 +36,7 @@ cert_chain:
|
|
31
36
|
yZ0=
|
32
37
|
-----END CERTIFICATE-----
|
33
38
|
|
34
|
-
date: 2011-
|
39
|
+
date: 2011-03-15 00:00:00 -07:00
|
35
40
|
default_executable:
|
36
41
|
dependencies:
|
37
42
|
- !ruby/object:Gem::Dependency
|
@@ -42,6 +47,9 @@ dependencies:
|
|
42
47
|
requirements:
|
43
48
|
- - ">="
|
44
49
|
- !ruby/object:Gem::Version
|
50
|
+
hash: 3
|
51
|
+
segments:
|
52
|
+
- 0
|
45
53
|
version: "0"
|
46
54
|
type: :runtime
|
47
55
|
version_requirements: *id001
|
@@ -53,6 +61,9 @@ dependencies:
|
|
53
61
|
requirements:
|
54
62
|
- - ">="
|
55
63
|
- !ruby/object:Gem::Version
|
64
|
+
hash: 3
|
65
|
+
segments:
|
66
|
+
- 0
|
56
67
|
version: "0"
|
57
68
|
type: :runtime
|
58
69
|
version_requirements: *id002
|
@@ -64,6 +75,9 @@ dependencies:
|
|
64
75
|
requirements:
|
65
76
|
- - ">="
|
66
77
|
- !ruby/object:Gem::Version
|
78
|
+
hash: 3
|
79
|
+
segments:
|
80
|
+
- 0
|
67
81
|
version: "0"
|
68
82
|
type: :runtime
|
69
83
|
version_requirements: *id003
|
@@ -119,12 +133,19 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
119
133
|
requirements:
|
120
134
|
- - ">="
|
121
135
|
- !ruby/object:Gem::Version
|
136
|
+
hash: 3
|
137
|
+
segments:
|
138
|
+
- 0
|
122
139
|
version: "0"
|
123
140
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
124
141
|
none: false
|
125
142
|
requirements:
|
126
143
|
- - ">="
|
127
144
|
- !ruby/object:Gem::Version
|
145
|
+
hash: 11
|
146
|
+
segments:
|
147
|
+
- 1
|
148
|
+
- 2
|
128
149
|
version: "1.2"
|
129
150
|
requirements: []
|
130
151
|
|
metadata.gz.sig
CHANGED
Binary file
|