forked from strika/clearbooks
-
Notifications
You must be signed in to change notification settings - Fork 1
/
clearbooks.gemspec
119 lines (77 loc) · 3.71 KB
/
clearbooks.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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
# File: clearbooks.gemspec
# coding: utf-8
# Make sure lib is in Load path
lib = File.expand_path( '../lib/', __FILE__ )
$LOAD_PATH.unshift lib unless $LOAD_PATH.include?( lib )
# System includes
require 'date'
# Custom includes
require 'clearbooks/version'
Gem::Specification.new do |spec|
spec.name = 'clearbooks'
spec.description = %q(Unofficial Clear Books PLC (https://www.clearbooks.co.uk) gem handling all interactions of their SOAP API via native Ruby interface)
spec.summary = spec.description
spec.authors = [ 'Bjoern Rennhak', 'Oleg Kukareka' ]
spec.email = [ '[email protected]', '[email protected]' ]
spec.homepage = 'http://github.com/greylon/clearbooks'
spec.licenses = %w[MIT]
spec.date = DateTime.now.to_s.split( 'T' ).first
spec.version = Clearbooks::VERSION
spec.platform = Gem::Platform::RUBY
spec.metadata = {
'issue_tracker' => 'http://github.com/greylon/clearbooks/issues'
}
spec.bindir = 'bin'
spec.executables = %w[clearbooks]
spec.require_paths = %w[lib]
spec.files = %w[
AUTHORS.md
CHANGELOG.md
COPYING.md
FAQ.md
LICENSE.md
MAINTAINERS.md
Gemfile
README.md
Rakefile
Thorfile
clearbooks.gemspec
]
spec.files += Dir.glob( 'bin/**/*' )
spec.files += Dir.glob( 'lib/**/*.rb' )
spec.files += Dir.glob( 'lib/**/*.thor' )
spec.files += Dir.glob( 'spec/**/*' )
spec.files += Dir.glob( 'data/**/*' )
spec.files += Dir.glob( 'documentation/**/*' )
spec.files += Dir.glob( 'examples/**/*' )
spec.files += Dir.glob( 'base/**/*' )
spec.test_files += Dir.glob( 'test/**/*' )
spec.test_files += Dir.glob( 'spec/**/*' )
spec.test_files += Dir.glob( 'features/**/*' )
## Dependencies
# Ruby VM
spec.required_ruby_version = '>= 1.9'
# General
spec.add_runtime_dependency 'thor', '~> 0.19'
# Middlewares
spec.add_runtime_dependency 'savon', '~> 2.11'
spec.add_runtime_dependency 'andand', '~> 1.3'
spec.add_runtime_dependency 'pry', '~> 0.10'
# Post Install
spec.post_install_message = <<-EOS
____ _ _____ _ ____ ____ ___ ___ _ ______
/ ___| | | ____| / \ | _ \| __ ) / _ \ / _ \| |/ / ___|
| | | | | _| / _ \ | |_) | _ \| | | | | | | ' /\___ \
| |___| |___| |___ / ___ \| _ <| |_) | |_| | |_| | . \ ___) |
\____|_____|_____/_/ \_\_| \_\____/ \___/ \___/|_|\_\____/
(c) #{spec.date.to_s}, All rights reserved
Bjoern Rennhak, Greylon Ltd.
Don't forget to get Clearbooks API key from http://clearbooks.co.uk
and save it in ~/.clearbooks/config.yml:
$ echo "api_key: {your_api_key}" >> ~/.clearbooks/config.yml
You can also provide the API key in ENV['CLEARBOOKS_API_KEY']:
$ CLEARBOOKS_API_KEY=your_api_key clearbooks
Thanks for installing unofficial Clearbooks Gem !
EOS
end # of Gem::Specification.new do |s|
# vim:ts=2:tw=100:wm=100:syntax=ruby