engineyard-serverside-adapter 1.3.4 → 1.3.5
Sign up to get free protection for your applications and to get access to all the features.
- data/Rakefile +33 -3
- data/lib/engineyard-serverside-adapter/version.rb +5 -5
- metadata +4 -4
data/Rakefile
CHANGED
@@ -1,9 +1,39 @@
|
|
1
|
-
require 'bundler'
|
2
|
-
Bundler::GemHelper.install_tasks
|
3
|
-
|
4
1
|
require 'spec/rake/spectask'
|
5
2
|
Spec::Rake::SpecTask.new(:spec) do |spec|
|
6
3
|
spec.libs << 'lib' << 'spec'
|
7
4
|
spec.spec_files = FileList['spec/**/*_spec.rb']
|
8
5
|
end
|
9
6
|
task :default => :spec
|
7
|
+
|
8
|
+
task :release do
|
9
|
+
new_version = bump_to_latest_serverside
|
10
|
+
(system("git add lib/engineyard-serverside-adapter/version.rb") &&
|
11
|
+
system("git commit -am 'Bump to engineyard-serverside version #{new_version}'") &&
|
12
|
+
system("git tag v#{new_version}") &&
|
13
|
+
system("gem build engineyard-serverside-adapter.gemspec"))
|
14
|
+
end
|
15
|
+
|
16
|
+
def bump_to_latest_serverside
|
17
|
+
serverside_version_file =<<-EOT
|
18
|
+
module EY
|
19
|
+
module Serverside
|
20
|
+
class Adapter
|
21
|
+
VERSION = "_VERSION_GOES_HERE_"
|
22
|
+
end
|
23
|
+
end
|
24
|
+
end
|
25
|
+
EOT
|
26
|
+
|
27
|
+
new_version = `gem search -r engineyard-serverside`.
|
28
|
+
grep(/^engineyard-serverside /).
|
29
|
+
first.
|
30
|
+
match(/\((.*?)\)/).
|
31
|
+
captures.
|
32
|
+
first
|
33
|
+
|
34
|
+
puts "Using engineyard-serverside version #{new_version}"
|
35
|
+
File.open('lib/engineyard-serverside-adapter/version.rb', 'w') do |f|
|
36
|
+
f.write serverside_version_file.gsub(/_VERSION_GOES_HERE_/, new_version)
|
37
|
+
end
|
38
|
+
new_version
|
39
|
+
end
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: engineyard-serverside-adapter
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 17
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 1
|
8
8
|
- 3
|
9
|
-
-
|
10
|
-
version: 1.3.
|
9
|
+
- 5
|
10
|
+
version: 1.3.5
|
11
11
|
platform: ruby
|
12
12
|
authors: []
|
13
13
|
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2010-
|
18
|
+
date: 2010-10-15 00:00:00 -07:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|