riakpb 0.1.4 → 0.1.5

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.
data/README.rdoc CHANGED
@@ -143,8 +143,7 @@ I'm working on ways to simplify M/R requests. It works the same as in ripple.
143
143
 
144
144
  * Rspec >= 2.0.0.beta.9
145
145
  * ActiveSupport >= 3.0.0.beta3
146
- * [Rakefile] hoe >= 2.1.0
147
- * [Rakefile] newgem
146
+ * Protobuf >= 0.4.4
148
147
 
149
148
  == INSTALL:
150
149
 
data/Rakefile CHANGED
@@ -1,20 +1,53 @@
1
1
  require 'rubygems'
2
- gem 'hoe', '>= 2.1.0'
3
- require 'hoe'
2
+ require 'rake/gempackagetask'
4
3
  require 'fileutils'
5
4
  require './lib/riak'
6
5
 
7
- Hoe.plugin :newgem
8
- # Hoe.plugin :website
9
- # Hoe.plugin :cucumberfeatures
10
-
11
- # Generate all the Rake tasks
12
- # Run 'rake -T' to see list of generated tasks (from gem root directory)
13
- $hoe = Hoe.spec 'riakpb' do
14
- self.developer 'Scott Gonyea', 'me@sgonyea.com'
15
- self.rubyforge_name = self.name
16
- self.summary = 'riak-pbclient is a protocol buffer client for Riak--the distributed database by Basho.'
17
- self.url = 'http://github.com/aitrus/riak-pbclient'
6
+ gemspec = Gem::Specification.new do |gem|
7
+ gem.name = "riakpb"
8
+ gem.summary = %Q{riakpb is a protocol buffer client for Riak--the distributed database by Basho.}
9
+ gem.description = %Q{riakpb is a protocol buffer client for Riak--the distributed database by Basho. Connects via Protocol Buffers instead of REST.}
10
+ gem.version = Riak::VERSION
11
+ gem.email = "me@inherentlylame.com"
12
+ gem.homepage = "http://github.com/aitrus/riak-pbclient"
13
+ gem.authors = ["Scott Gonyea"]
14
+ gem.add_development_dependency "rspec", "~>2.0.0.beta.9"
15
+ gem.add_dependency "activesupport", ">= 2.3.5"
16
+ gem.add_dependency "ruby_protobuf", ">=0.4.4"
17
+
18
+ files = FileList["**/*"]
19
+ files.exclude /\.DS_Store/
20
+ files.exclude /\#/
21
+ files.exclude /~/
22
+ files.exclude /\.swp/
23
+ files.exclude '**/._*'
24
+ files.exclude '**/*.orig'
25
+ files.exclude '**/*.rej'
26
+ files.exclude /^pkg/
27
+ files.exclude 'riak-client.gemspec'
28
+
29
+ gem.files = files.to_a
30
+
31
+ gem.test_files = FileList["spec/**/*.rb"].to_a
32
+ end
33
+
34
+ # Gem packaging tasks
35
+ Rake::GemPackageTask.new(gemspec) do |pkg|
36
+ pkg.need_zip = false
37
+ pkg.need_tar = false
38
+ end
39
+
40
+ task :gem => :gemspec
41
+
42
+ desc %{Build the gemspec file.}
43
+ task :gemspec do
44
+ gemspec.validate
45
+ File.open("#{gemspec.name}.gemspec", 'w'){|f| f.write gemspec.to_ruby }
46
+ end
47
+
48
+ desc %{Release the gem to RubyGems.org}
49
+ task :release => :gem do
50
+ "gem push pkg/#{gemspec.name}-#{gemspec.version}.gem"
18
51
  end
19
52
 
20
53
  require 'rspec/core'