forked from nylas/nylas-ruby
-
Notifications
You must be signed in to change notification settings - Fork 0
/
gem_config.rb
58 lines (52 loc) · 1.67 KB
/
gem_config.rb
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
53
54
55
56
57
58
# frozen_string_literal: true
require "./lib/nylas/version"
# Consistently apply nylas' standard gem data across gems
module GemConfig
def self.apply(gem, name)
gem.name = name
gem.files = Dir.glob("lib/{#{name}.rb,#{name}/**/*.rb}")
gem.license = "MIT"
gem.version = Nylas::VERSION
gem.platform = "ruby"
gem.required_ruby_version = ">= 2.3"
append_nylas_data(gem)
dev_dependencies.each do |dependency|
gem.add_development_dependency(*dependency)
end
end
def self.append_nylas_data(gem)
gem.metadata = metadata
gem.email = "[email protected]"
gem.authors = ["Nylas, Inc."]
end
def self.metadata
{
"bug_tracker_uri" => "https://github.com/nylas/nylas-ruby/issues",
"changelog_uri" => "https://github.com/nylas/nylas-ruby/blob/master/CHANGELOG.md",
"documentation_uri" => "http://www.rubydoc.info/gems/nylas",
"homepage_uri" => "https://www.nylas.com",
"source_code_uri" => "https://github.com/nylas/nylas-ruby",
"wiki_uri" => "https://github.com/nylas/nylas-ruby/wiki"
}
end
def self.dev_dependencies
[["bundler", ">= 1.3.0"],
["jeweler", "~> 2.1"],
["yard", "~> 0.9.0"],
["awesome_print", "~> 1.0"],
["rubocop", "~> 0.52.0"],
["rubocop-rspec", "~> 1.20.1"],
["overcommit", "~> 0.41"]] + testing_and_debugging_dependencies
end
def self.testing_and_debugging_dependencies
[["pry", "~> 0.10.4"],
["pry-nav", "~> 0.2.4"],
["pry-stack_explorer", "~> 0.4.9"],
["rspec", "~> 3.7"],
["rspec-json_matcher", "~> 0.1"],
["webmock", "~> 3.0"],
["faker", "~> 1.8"],
["informed", "~> 1.0"],
["simplecov", "~> 0.15"]]
end
end