riakpb 0.1.4 → 0.1.5
Sign up to get free protection for your applications and to get access to all the features.
- data/README.rdoc +1 -2
- data/Rakefile +46 -13
- data/goog.csv +1439 -0
- data/lib/riak/map_reduce.rb +218 -0
- data/lib/riak.rb +1 -1
- data/load_stocks.rb +12 -0
- data/riakpb.gemspec +37 -0
- metadata +62 -39
data/README.rdoc
CHANGED
data/Rakefile
CHANGED
@@ -1,20 +1,53 @@
|
|
1
1
|
require 'rubygems'
|
2
|
-
|
3
|
-
require 'hoe'
|
2
|
+
require 'rake/gempackagetask'
|
4
3
|
require 'fileutils'
|
5
4
|
require './lib/riak'
|
6
5
|
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
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'
|