forked from IBM/aspera-cli
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathaspera-cli.gemspec
56 lines (55 loc) · 3.17 KB
/
aspera-cli.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
# frozen_string_literal: true
require_relative 'lib/aspera/cli/version'
require_relative 'lib/aspera/cli/info'
# expected extension of gemspec file
GEMSPEC_EXT='.gemspec'
Gem::Specification.new do |spec|
# get location of this file (shall be in project root)
gemspec_file=File.expand_path(__FILE__)
raise "Error: this file extension must be '#{GEMSPEC_EXT}'" unless gemspec_file.end_with?(GEMSPEC_EXT)
raise "This file shall be named: #{Aspera::Cli::GEM_NAME}#{GEMSPEC_EXT}" unless Aspera::Cli::GEM_NAME.eql?(File.basename(gemspec_file,GEMSPEC_EXT).downcase)
# the base name of this file shall be the gem name
spec.name = Aspera::Cli::GEM_NAME
spec.version = Aspera::Cli::VERSION
spec.authors = ['Laurent Martin']
spec.email = ['[email protected]']
spec.summary = 'Execute actions using command line on IBM Aspera Server products: Aspera on Cloud, Faspex, Shares, Node, Console, Orchestrator, High Speed Transfer Server'
spec.description = 'Command line interface for IBM Aspera products'
spec.homepage = Aspera::Cli::SRC_URL
spec.license = 'Apache-2.0'
spec.requirements << 'Read the manual for any requirement'
raise 'RubyGems 2.0 or newer is required' unless spec.respond_to?(:metadata)
spec.metadata['allowed_push_host'] = 'https://rubygems.org' # push only to rubygems.org
spec.metadata['homepage_uri'] = spec.homepage
spec.metadata['source_code_uri'] = spec.homepage
spec.metadata['changelog_uri'] = spec.homepage
spec.metadata['rubygems_uri'] = Aspera::Cli::GEM_URL
spec.metadata['documentation_uri'] = Aspera::Cli::DOC_URL
spec.require_paths = ['lib']
spec.bindir = 'bin'
# list git files from specified location in root folder of project (this gemspec is in project root folder)
spec.files=Dir.chdir(File.dirname(gemspec_file)){%x(git ls-files -z lib bin examples README.md docs/*.conf).split("\x0")}
# specify executable names: must be after lines defining: spec.bindir and spec.files
spec.executables = spec.files.grep(%r{^#{spec.bindir}}){|f|File.basename(f)}
spec.required_ruby_version = '>= 2.4'
spec.add_runtime_dependency('execjs', '~> 2.0')
spec.add_runtime_dependency('grpc', '~> 1.0')
spec.add_runtime_dependency('jwt', '~> 2.0')
spec.add_runtime_dependency('mimemagic', '~> 0.3')
spec.add_runtime_dependency('net-smtp', '>=0.1', '<0.4')
spec.add_runtime_dependency('net-ssh', '~> 6.0')
spec.add_runtime_dependency('ruby-progressbar', '~> 1.0')
spec.add_runtime_dependency('rubyzip', '~> 2.0')
spec.add_runtime_dependency('security', '~> 0.0')
spec.add_runtime_dependency('terminal-table', '~> 1.8')
spec.add_runtime_dependency('tty-spinner', '~> 0.9')
spec.add_runtime_dependency('webrick', '~> 1.7')
spec.add_runtime_dependency('websocket', '~> 1.2')
spec.add_runtime_dependency('websocket-client-simple', '~> 0.3')
spec.add_runtime_dependency('xml-simple', '~> 1.0')
spec.add_development_dependency('bundler', '~> 2.0')
spec.add_development_dependency('rake', '~> 13.0')
spec.add_development_dependency('rspec', '~> 3.0')
spec.add_development_dependency('rubocop', '~> 1.12')
spec.add_development_dependency('rubocop-ast', '~> 1.4')
end