forked from github/github-services
-
Notifications
You must be signed in to change notification settings - Fork 1
/
github-services.gemspec
74 lines (56 loc) · 2.28 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
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.2.7"
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.8.7"
# Basecamp Classic
spec.add_dependency "activeresource", "~> 3.0.0"
# Twitter
spec.add_dependency "oauth", "0.4.4"
# Campfire
spec.add_dependency "tinder", "1.8.0.github"
# Bamboo, Buddycloud
spec.add_dependency "xml-simple", "1.0.11"
# Email
spec.add_dependency "mail", "~>2.3"
# Jabber
spec.add_dependency "xmpp4r-simple-19", "~> 1.0.0"
# Twilio
spec.add_dependency "twilio-ruby", "~> 3.9.0"
# Amazon SQS
spec.add_dependency "right_aws", "3.0.3"
spec.add_dependency "right_http_connection", "1.3.0"
# MQTT
spec.add_dependency "mqtt", "0.0.8"
# Softlayer Messaging
spec.add_dependency "softlayer_messaging", "~> 1.0.2"
# Amazon SNS
spec.add_dependency "aws-sdk", "~> 1.8.0"
spec.add_dependency "httparty", "0.7.4"
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