-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathcocoapods-search.gemspec
54 lines (45 loc) · 1.97 KB
/
cocoapods-search.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
# coding: utf-8
lib = File.expand_path('../lib', __FILE__)
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
require 'cocoapods/search/version'
def install_message
s = ''
s << "\xf0\x9f\x8d\xba " if or_over_mac_os_lion?
s << 'Thanks for installing!'
end
def or_over_mac_os_lion?
return false unless RUBY_PLATFORM =~ /darwin/
macos_full_version = `/usr/bin/sw_vers -productVersion`.chomp
macos_version = macos_full_version[/10\.\d+/]
macos_version >= '10.7' # 10.7 is lion
end
Gem::Specification.new do |spec|
spec.name = 'cocoapods-search'
spec.version = Cocoapods::Search::VERSION
spec.authors = ['rochefort']
spec.email = ['[email protected]']
spec.summary = 'search cocopods while sorting by github score'
spec.description = spec.summary
spec.homepage = 'https://github.com/rochefort/cocoapods-search'
spec.license = 'MIT'
spec.files = `git ls-files -z`.split("\x0")
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
spec.require_paths = ['lib']
spec.post_install_message = install_message
spec.add_dependency 'mechanize', '~> 2.7.3'
spec.add_dependency 'thor', '~> 0.19.1'
spec.add_dependency 'cocoapods'
spec.add_development_dependency 'bundler'
spec.add_development_dependency 'rake'
spec.add_development_dependency 'rspec', '~> 3.2.0'
spec.add_development_dependency 'rspec-its', '~> 1.2.0'
spec.add_development_dependency 'simplecov', '~> 0.10.0'
spec.add_development_dependency 'guard', '~> 2.6.0'
spec.add_development_dependency 'guard-rspec', '~> 4.2.8'
spec.add_development_dependency 'webmock', '~> 1.17.4'
spec.add_development_dependency 'pry', '~> 0.10.0'
spec.add_development_dependency 'pry-byebug', '~> 1.3.3'
spec.add_development_dependency 'safe_yaml', '~> 1.0.4' # for Ruby2.2.0
spec.add_development_dependency 'coveralls'
end