-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathgemspec.rb
More file actions
37 lines (32 loc) · 1.49 KB
/
gemspec.rb
File metadata and controls
37 lines (32 loc) · 1.49 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
require 'erb'
gemspec = <<-GEMSPEC
# -*- encoding: utf-8 -*-
$:.push File.expand_path("../lib", __FILE__)
require "version"
Gem::Specification.new do |s|
s.name = "simple_eav"
s.version = SimpleEav::VERSION
s.authors = ["Tim Linquist"]
s.email = ["tim.linquist@gmail.com"]
s.homepage = %q{http://github.com/timo3377/simple_eav}
s.summary = %q{A simple alternative to acts_as_eav_model.}
s.description = %q{A simple alternative to acts_as_eav_model that works with ActiveRecord without any monkey patching needed. Acts_as_eav_model's gives a model the ability to have any number of custom attributes. This project has the same goal. The difference being maintaining utmost compatability with ActiveRecord::Base.}
s.files = <%= `git ls-files`.split("\n") %>
s.test_files = <%= `git ls-files -- {spec,features}/*`.split("\n") %>
s.executables = <%= `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) } %>
s.extra_rdoc_files = [ "README.rdoc" ]
s.require_path = "lib"
s.add_dependency 'activerecord', '~> 3.1'
unless ENV["CI"]
if RUBY_VERSION <= '1.9.1'
s.add_development_dependency 'ruby-debug'
else
s.add_development_dependency 'ruby-debug19'
end
end
s.add_development_dependency 'sqlite3', '~> 1.3.3'
s.add_development_dependency 'rake'
s.add_development_dependency 'rspec', '~> 2.6.0'
end
GEMSPEC
File.open('./simple_eav.gemspec', truncate_zero_length='w') {|f| f.puts(ERB.new(gemspec).result) }