-
Notifications
You must be signed in to change notification settings - Fork 0
/
Rakefile
54 lines (40 loc) · 1.33 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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
# coding: utf-8
require 'rubygems/package_task'
require 'rspec/core/rake_task'
RSpec::Core::RakeTask.new do |t|
t.pattern = 'spec/**/*_spec.rb'
end
task :deault => [ :spec, :gem ]
gem_spec = Gem::Specification.new do |s|
s.name = "div_by_3"
s.version = "1.0.4"
s.platform = Gem::Platform::RUBY
s.authors = ["Fredrik Svärd"]
s.licenses = ['MIT']
s.date = %q{2018-05-20}
s.email = ["nfredrik@hotmail.com"]
s.homepage = "http://github.com/nfredrik/div_by_3"
s.summary = "check if number could by divided by 3"
s.description = "Howdy folks"
s.required_rubygems_version = ">= 0.2.1"
# lol - required for validation
s.rubyforge_project = "div_by_3"
# If you have other dependencies, add them here
# s.add_dependency "another", "~> 1.2"
# If you need to check in files that aren't .rb files, add them here
s.files = Dir["{lib}/**/*.rb", "bin/*", "LICENSE", "*.md"]
s.require_path = 'lib'
# If you need an executable, add it here
# s.executables = ["div_by_3"]
# If you have C extensions, uncomment this line
# s.extensions = "ext/extconf.rb"
end
Gem::PackageTask.new(gem_spec) do | t |
t_need_zip = true
end
task :push => :gem do | t |
sh "gem push pkg/#{gem_spec.name}-#{gem_spec.version}.gem"
end
task :compile do
sh "protoc --version"
end