Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 32 lines (27 sloc) 1.174 kb
31e9a07 @look add gemspec file so I can install this git repo as a gem using Bundler
look authored
1 # -*- encoding: utf-8 -*-
b1e78b3 @winton Gems not getting any files (oops)
authored
2 root = File.expand_path('../', __FILE__)
1b3ee7b @winton Gems not getting any files (oops)
authored
3 lib = "#{root}/lib"
a94936f @winton No longer need Gems.config.testing option, making gemspec so it can b…
authored
4 $:.unshift lib unless $:.include?(lib)
5
6bdf054 @winton Fixing gem_template merge
authored
6 require 'acts_as_archive/gems'
a7fd57c @winton Merge branch 'rails' of github.com:winton/gem_template
authored
7 ActsAsArchive::Gems.gemset ||= ENV['GEMSET'] || :default
a94936f @winton No longer need Gems.config.testing option, making gemspec so it can b…
authored
8
e9cd7b6 @winton Merge branch 'rails' of github.com:winton/gem_template
authored
9 Gem::Specification.new do |s|
2f25892 @winton Merge branch 'rails' of github.com:winton/gem_template
authored
10 ActsAsArchive::Gems.gemspec.hash.each do |key, value|
a7fd57c @winton Merge branch 'rails' of github.com:winton/gem_template
authored
11 if key == 'name' && ActsAsArchive::Gems.gemset != :default
12 s.name = "#{value}-#{ActsAsArchive::Gems.gemset}"
13 elsif key == 'summary' && ActsAsArchive::Gems.gemset == :solo
14 s.summary = value + " (no dependencies)"
15 elsif !%w(dependencies development_dependencies).include?(key)
eca33a4 @winton New system for specifying gem versions, gemspec info, activating gems
authored
16 s.send "#{key}=", value
17 end
18 end
31e9a07 @look add gemspec file so I can install this git repo as a gem using Bundler
look authored
19
a7fd57c @winton Merge branch 'rails' of github.com:winton/gem_template
authored
20 ActsAsArchive::Gems.dependencies.each do |g|
2f25892 @winton Merge branch 'rails' of github.com:winton/gem_template
authored
21 s.add_dependency g.to_s, ActsAsArchive::Gems.versions[g]
31e9a07 @look add gemspec file so I can install this git repo as a gem using Bundler
look authored
22 end
e9cd7b6 @winton Merge branch 'rails' of github.com:winton/gem_template
authored
23
a7fd57c @winton Merge branch 'rails' of github.com:winton/gem_template
authored
24 ActsAsArchive::Gems.development_dependencies.each do |g|
2f25892 @winton Merge branch 'rails' of github.com:winton/gem_template
authored
25 s.add_development_dependency g.to_s, ActsAsArchive::Gems.versions[g]
e9cd7b6 @winton Merge branch 'rails' of github.com:winton/gem_template
authored
26 end
27
1b3ee7b @winton Gems not getting any files (oops)
authored
28 s.executables = `cd #{root} && git ls-files -- {bin}/*`.split("\n").collect { |f| File.basename(f) }
b1e78b3 @winton Gems not getting any files (oops)
authored
29 s.files = `cd #{root} && git ls-files`.split("\n")
eca33a4 @winton New system for specifying gem versions, gemspec info, activating gems
authored
30 s.require_paths = %w(lib)
b1e78b3 @winton Gems not getting any files (oops)
authored
31 s.test_files = `cd #{root} && git ls-files -- {features,test,spec}/*`.split("\n")
e9cd7b6 @winton Merge branch 'rails' of github.com:winton/gem_template
authored
32 end
Something went wrong with that request. Please try again.