-
Notifications
You must be signed in to change notification settings - Fork 0
/
Rakefile
33 lines (28 loc) · 1.02 KB
/
Rakefile
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
# frozen_string_literal: true
require 'bundler/gem_tasks'
require_relative 'lib/dyny/version'
task :gemspec do
specification = Gem::Specification.new do |s|
s.name = 'dyny'
s.version = Dyny::Version::LABEL
s.author = ['Sandro Kalbermatter']
s.summary = 'A tiny framework for writing dynamic Rails views directly in Ruby'
s.files = `git ls-files`.split($INPUT_RECORD_SEPARATOR)
s.executables = []
s.require_paths = ['lib']
s.required_ruby_version = '>= 3.0.0'
s.license = 'LGPL-3.0-or-later'
s.homepage = 'https://github.com/kalsan/dyny'
s.metadata = {
'source_code_uri' => 'https://github.com/kalsan/dyny',
'documentation_uri' => 'https://github.com/kalsan/dyny'
}
# Dependencies
s.add_runtime_dependency 'rails' # Tested with Rails 7, but olders may work. TBD.
end
File.open('dyny.gemspec', 'w') do |f|
f.puts('# DO NOT EDIT')
f.puts("# This file is auto-generated via: 'rake gemspec'.\n\n")
f.write(specification.to_ruby.strip)
end
end