This repository has been archived by the owner on Jan 31, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
/
github-services.gemspec
76 lines (57 loc) · 2.32 KB
/
github-services.gemspec
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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
lib = "github-services"
lib_file = File.expand_path("../lib/#{lib}.rb", __FILE__)
File.read(lib_file) =~ /\bVERSION\s*=\s*["'](.+?)["']/
version = $1
sha = `git rev-parse HEAD 2>/dev/null || echo unknown`
sha.chomp!
version << ".#{sha[0,7]}"
Gem::Specification.new do |spec|
spec.specification_version = 2 if spec.respond_to? :specification_version=
spec.required_rubygems_version = Gem::Requirement.new(">= 1.3.5") if spec.respond_to? :required_rubygems_version=
spec.name = lib
spec.version = version
spec.summary = "GitHub Services client code"
spec.authors = ["Rick Olson"]
spec.email = 'rick@github.com'
spec.homepage = 'https://github.com/github/github-services'
spec.licenses = ['MIT']
spec.add_dependency "addressable", "~> 2.3"
spec.add_dependency 'yajl-ruby', '>= 1.1.0'
spec.add_dependency "mash", "~> 0.1.1"
spec.add_dependency "mime-types", "~> 1.15"
spec.add_dependency "ruby-hmac", "0.4.0"
spec.add_dependency "faraday", "0.9.0"
spec.add_dependency "xmlrpc", "0.2.1"
# Basecamp Classic
spec.add_dependency "activeresource", "~> 4.0.0"
# Twitter
spec.add_dependency "oauth", "0.4.4"
# MaxCDN
spec.add_dependency "maxcdn", "~> 0.3.2"
# Campfire
spec.add_dependency "tinder", "1.10.0"
# Bamboo, Buddycloud
spec.add_dependency "xml-simple", "1.0.11"
# Email
spec.add_dependency "mail", "~>2.3"
# Jabber
spec.add_dependency "xmpp4r", "~> 0.5"
# Twilio
spec.add_dependency "twilio-ruby", "~> 3.9.0"
# MQTT
spec.add_dependency "mqtt", "0.0.8"
# Softlayer Messaging
spec.add_dependency "softlayer_messaging", "~> 1.0.2"
# Amazon SQS, AWS OpsWorks
spec.add_dependency "aws-sdk", "~> 1.64"
# AWS CodeDeploy, Amazon SNS
spec.add_dependency "aws-sdk-core", "~>2.0.8"
spec.files = %w(Gemfile LICENSE README.mkdn CONTRIBUTING.md Rakefile)
spec.files << "#{lib}.gemspec"
spec.files += Dir.glob("lib/**/*.rb")
spec.files += Dir.glob("test/**/*.rb")
spec.files += Dir.glob("script/*")
dev_null = File.exist?('/dev/null') ? '/dev/null' : 'NUL'
git_files = `git ls-files -z 2>#{dev_null}`
spec.files &= git_files.split("\0") if $?.success?
end