Skip to content

Commit 5422af6

Browse files
authored
Merge pull request #295 from grosser/grosser/spec
simplify gemspec and make gem much lighter by only shipping what end …
2 parents 810c340 + b1b3a71 commit 5422af6

1 file changed

Lines changed: 3 additions & 41 deletions

File tree

riak-client.gemspec

Lines changed: 3 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
1-
$:.push File.expand_path("../lib", __FILE__)
2-
require 'riak/version'
1+
require './lib/riak/version'
32

43
Gem::Specification.new do |gem|
54
# Meta
65
gem.name = "riak-client"
76
gem.version = Riak::VERSION
87
gem.summary = %Q{riak-client is a rich client for Riak, the distributed database by Basho.}
9-
gem.description = %Q{riak-client is a rich client for Riak, the distributed database by Basho. It supports the full HTTP and Protocol Buffers interfaces including storage operations, bucket configuration, link-walking, secondary indexes and map-reduce.}
8+
gem.description = %Q{#{gem.summary} It supports the full HTTP and Protocol Buffers interfaces including storage operations, bucket configuration, link-walking, secondary indexes and map-reduce.}
109
gem.email = ['lbakken@basho.com']
1110
gem.homepage = "http://github.com/basho/riak-ruby-client"
1211
gem.authors = ['Bryce Kerley', 'Luke Bakken']
@@ -30,42 +29,5 @@ Gem::Specification.new do |gem|
3029
gem.add_runtime_dependency 'innertube', '~> 1.0'
3130
gem.add_runtime_dependency 'multi_json', '~> 1.0'
3231

33-
# Files
34-
35-
# NOTE: This section must be manually kept in sync with the
36-
# .gitignore file, but should not normally need to be modified
37-
# unless new top-level files or directory trees are being added.
38-
includes = %W{
39-
lib/**/*
40-
spec/**/*
41-
Gemfile
42-
Rakefile
43-
Guardfile
44-
LICENSE*
45-
RELNOTES*
46-
README*
47-
erl_src/*
48-
.gitignore
49-
.document
50-
.rspec
51-
riak-client.gemspec
52-
}
53-
54-
excludes = %W{
55-
**/*.swp
56-
**/#*
57-
**/.#*
58-
**/*~
59-
**/*.rbc
60-
**/.DS_Store
61-
spec/support/test_server.yml
62-
.ruby-version
63-
}
64-
65-
files = includes.map {|glob| Dir[glob] }.flatten.select {|f| File.file?(f) }.sort
66-
files.reject! {|f| excludes.any? {|e| File.fnmatch?(e, f) } }
67-
68-
gem.files = files
69-
gem.test_files = files.grep(/^spec/)
70-
gem.require_paths = ['lib']
32+
gem.files = `git ls-files lib LICENSE.md README.md RELNOTES.md`.split($/)
7133
end

0 commit comments

Comments
 (0)