rancher-api-beta 0.8.0.pre.beta
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/.gitignore +26 -0
- data/.gitlab-ci.yml +37 -0
- data/.rspec +2 -0
- data/.rubocop.yml +78 -0
- data/.ruby-gemset +1 -0
- data/.ruby-version +1 -0
- data/.simplecov +3 -0
- data/.travis.yml +4 -0
- data/CHANGELOG.md +51 -0
- data/Gemfile +4 -0
- data/Gemfile.lock +156 -0
- data/Guardfile +18 -0
- data/LICENSE +22 -0
- data/LICENSE.txt +21 -0
- data/README.md +206 -0
- data/Rakefile +8 -0
- data/bin/console +18 -0
- data/bin/setup +7 -0
- data/circle.yml +7 -0
- data/examples/create_docker_host.rb +64 -0
- data/lib/rancher/api.rb +53 -0
- data/lib/rancher/api/configuration.rb +18 -0
- data/lib/rancher/api/helpers/model.rb +62 -0
- data/lib/rancher/api/logger.rb +19 -0
- data/lib/rancher/api/middlewares.rb +3 -0
- data/lib/rancher/api/middlewares/json_parser_middleware.rb +46 -0
- data/lib/rancher/api/models.rb +14 -0
- data/lib/rancher/api/models/environment.rb +14 -0
- data/lib/rancher/api/models/host.rb +14 -0
- data/lib/rancher/api/models/instance.rb +76 -0
- data/lib/rancher/api/models/instance/action.rb +52 -0
- data/lib/rancher/api/models/ipaddress.rb +12 -0
- data/lib/rancher/api/models/machine.rb +47 -0
- data/lib/rancher/api/models/machine/driver_config.rb +11 -0
- data/lib/rancher/api/models/project.rb +23 -0
- data/lib/rancher/api/models/registry.rb +12 -0
- data/lib/rancher/api/models/registrycredential.rb +12 -0
- data/lib/rancher/api/models/service.rb +13 -0
- data/lib/rancher/api/version.rb +7 -0
- data/rancher-api-beta.gemspec +46 -0
- metadata +298 -0
checksums.yaml
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
---
|
|
2
|
+
SHA1:
|
|
3
|
+
metadata.gz: 2a35a422b4acaf8f72ed29a370bbbc8206304140
|
|
4
|
+
data.tar.gz: 2da0b3bd37eb354edf17178cf99cb14ffb0d162a
|
|
5
|
+
SHA512:
|
|
6
|
+
metadata.gz: d3dc170d9b4bffc6affeaba9762797f7f3b17a324dd916d8a107c6e6033336edd613d3cd502fe0ab582ef2f53c46158365c48f4c91d09c9f445d9e21911072b1
|
|
7
|
+
data.tar.gz: bfa93aed2c6344272a38b18a70d0ae354110f7f7e4f38a535a86863fab5f97afdaca4ba11b62cb7e73ab7d5253f0ffc4c7062977381c2cf09301e0c22f072df3
|
data/.gitignore
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
*.gem
|
|
2
|
+
*.rbc
|
|
3
|
+
/.config
|
|
4
|
+
/coverage/
|
|
5
|
+
/InstalledFiles
|
|
6
|
+
/pkg/
|
|
7
|
+
/spec/reports/
|
|
8
|
+
/test/tmp/
|
|
9
|
+
/test/version_tmp/
|
|
10
|
+
/tmp/
|
|
11
|
+
|
|
12
|
+
## Specific to RubyMotion:
|
|
13
|
+
.dat*
|
|
14
|
+
.repl_history
|
|
15
|
+
build/
|
|
16
|
+
|
|
17
|
+
## Documentation cache and generated files:
|
|
18
|
+
/.yardoc/
|
|
19
|
+
/_yardoc/
|
|
20
|
+
/doc/
|
|
21
|
+
/rdoc/
|
|
22
|
+
|
|
23
|
+
## Environment normalisation:
|
|
24
|
+
/.bundle/
|
|
25
|
+
/vendor/bundle
|
|
26
|
+
/lib/bundler/man/
|
data/.gitlab-ci.yml
ADDED
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
cache:
|
|
2
|
+
paths:
|
|
3
|
+
- .bundler/
|
|
4
|
+
image: ruby:2.4
|
|
5
|
+
|
|
6
|
+
stages:
|
|
7
|
+
- publish
|
|
8
|
+
- tests
|
|
9
|
+
|
|
10
|
+
rubocop:
|
|
11
|
+
stage: tests
|
|
12
|
+
before_script:
|
|
13
|
+
- gem install rubocop -v '0.48.1'
|
|
14
|
+
script:
|
|
15
|
+
- rubocop
|
|
16
|
+
|
|
17
|
+
rspec:
|
|
18
|
+
stage: tests
|
|
19
|
+
before_script:
|
|
20
|
+
- ruby -v
|
|
21
|
+
- which ruby
|
|
22
|
+
- gem install bundler --no-ri --no-rdoc
|
|
23
|
+
- bundle install --jobs $(nproc) "${FLAGS[@]}" --path=.bundler
|
|
24
|
+
script:
|
|
25
|
+
- bundle exec rspec
|
|
26
|
+
|
|
27
|
+
publish_gem:
|
|
28
|
+
stage: publish
|
|
29
|
+
before_script:
|
|
30
|
+
- "echo \":rubygems_api_key: '${RUBYGEMS_API_KEY}'\" > ~/.gem/credentials"
|
|
31
|
+
- chmod 0600 ~/.gem/credentials
|
|
32
|
+
script:
|
|
33
|
+
- gem build rancher-api-beta
|
|
34
|
+
- gem push *.gem
|
|
35
|
+
only:
|
|
36
|
+
- master
|
|
37
|
+
#when: manual
|
data/.rspec
ADDED
data/.rubocop.yml
ADDED
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
AllCops:
|
|
2
|
+
TargetRubyVersion: 2.4
|
|
3
|
+
Exclude:
|
|
4
|
+
- '*.gemspec'
|
|
5
|
+
- 'Gemfile*'
|
|
6
|
+
|
|
7
|
+
Metrics/AbcSize:
|
|
8
|
+
Max: 23
|
|
9
|
+
|
|
10
|
+
Metrics/BlockLength:
|
|
11
|
+
Exclude:
|
|
12
|
+
- 'spec/**/*'
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
Metrics/ModuleLength:
|
|
16
|
+
Max: 108
|
|
17
|
+
Exclude:
|
|
18
|
+
- 'spec/lib/**/*'
|
|
19
|
+
|
|
20
|
+
# Offense count: 33
|
|
21
|
+
# Configuration parameters: AllowHeredoc, AllowURI, URISchemes.
|
|
22
|
+
# URISchemes: http, https
|
|
23
|
+
Metrics/LineLength:
|
|
24
|
+
Max: 120
|
|
25
|
+
|
|
26
|
+
# Offense count: 6
|
|
27
|
+
# Configuration parameters: CountComments.
|
|
28
|
+
Metrics/MethodLength:
|
|
29
|
+
Max: 20
|
|
30
|
+
|
|
31
|
+
# Offense count: 1
|
|
32
|
+
# Cop supports --auto-correct.
|
|
33
|
+
# Configuration parameters: EnforcedStyle, SupportedStyles.
|
|
34
|
+
# SupportedStyles: with_first_parameter, with_fixed_indentation
|
|
35
|
+
Style/AlignParameters:
|
|
36
|
+
Exclude:
|
|
37
|
+
- 'bin/rspec'
|
|
38
|
+
|
|
39
|
+
# Offense count: 2
|
|
40
|
+
# Cop supports --auto-correct.
|
|
41
|
+
# Configuration parameters: EnforcedStyle, SupportedStyles.
|
|
42
|
+
# SupportedStyles: always, conditionals
|
|
43
|
+
Style/AndOr:
|
|
44
|
+
Exclude:
|
|
45
|
+
- 'bin/setup'
|
|
46
|
+
- 'bin/update'
|
|
47
|
+
|
|
48
|
+
# Offense count: 17
|
|
49
|
+
Style/Documentation:
|
|
50
|
+
Enabled: false
|
|
51
|
+
|
|
52
|
+
# Offense count: 6
|
|
53
|
+
# Cop supports --auto-correct.
|
|
54
|
+
# Configuration parameters: EnforcedStyle, SupportedStyles, UseHashRocketsWithSymbolValues.
|
|
55
|
+
# SupportedStyles: ruby19, ruby19_no_mixed_keys, hash_rockets
|
|
56
|
+
Style/HashSyntax:
|
|
57
|
+
Enabled: false
|
|
58
|
+
|
|
59
|
+
# Offense count: 3
|
|
60
|
+
# Cop supports --auto-correct.
|
|
61
|
+
# Configuration parameters: SupportedStyles.
|
|
62
|
+
# SupportedStyles: call, braces
|
|
63
|
+
Style/LambdaCall:
|
|
64
|
+
EnforcedStyle: braces
|
|
65
|
+
|
|
66
|
+
# Offense count: 2
|
|
67
|
+
# Cop supports --auto-correct.
|
|
68
|
+
# Configuration parameters: EnforcedStyle, SupportedStyles, IndentationWidth.
|
|
69
|
+
# SupportedStyles: aligned, indented
|
|
70
|
+
Style/MultilineMethodCallIndentation:
|
|
71
|
+
Enabled: false
|
|
72
|
+
|
|
73
|
+
# Offense count: 1
|
|
74
|
+
# Cop supports --auto-correct.
|
|
75
|
+
# Configuration parameters: EnforcedStyle, SupportedStyles, EnforcedStyleForEmptyBraces, SpaceBeforeBlockParameters.
|
|
76
|
+
# SupportedStyles: space, no_space
|
|
77
|
+
Style/SpaceInsideBlockBraces:
|
|
78
|
+
Enabled: false
|
data/.ruby-gemset
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
rancher-api-beta
|
data/.ruby-version
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
2.4
|
data/.simplecov
ADDED
data/.travis.yml
ADDED
data/CHANGELOG.md
ADDED
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
# Change Log
|
|
2
|
+
All notable changes to this project will be documented in this file.
|
|
3
|
+
This project adheres to [Semantic Versioning](http://semver.org/).
|
|
4
|
+
|
|
5
|
+
## [0.7.0] - 2016-12-15
|
|
6
|
+
|
|
7
|
+
### Changed
|
|
8
|
+
|
|
9
|
+
- environment variable `RANCHER_URL` now must be set to environment url, i.e. `http://<rancher host>/v1/projects/1a9`
|
|
10
|
+
|
|
11
|
+
## [0.6.0] - 2016-12-14
|
|
12
|
+
|
|
13
|
+
### Changed
|
|
14
|
+
|
|
15
|
+
- update `Rancher::Api::Machine` model to use collection path that has `project_id` as part of url, i.e. `/v1/projects/1a5/machines/1ph1` instead of `/v1/machines/1ph1`. It seems like Rancher 1.2 forces you to use full path instead of supplying `project_id` as parameter
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
## [0.5.2] - 2016-08-22
|
|
19
|
+
|
|
20
|
+
- adding models for registry and registrycredentials
|
|
21
|
+
|
|
22
|
+
## [0.5.1] - 2016-08-16
|
|
23
|
+
|
|
24
|
+
- bugfix in model helpers #handle_response when handling collections
|
|
25
|
+
|
|
26
|
+
## [0.5.0] - 2016-08-10
|
|
27
|
+
|
|
28
|
+
- added few helpers:
|
|
29
|
+
- #wait_for_state - waiting (EM looping) until a desired state is reached
|
|
30
|
+
- #reload - reloading of resources
|
|
31
|
+
- #run - run actions (custom posts)
|
|
32
|
+
|
|
33
|
+
## [0.4.0] - 2016-07-14
|
|
34
|
+
|
|
35
|
+
- update dependencies to work with Rails 5
|
|
36
|
+
- update README.md
|
|
37
|
+
|
|
38
|
+
## [0.3.8] - 2016-03-15
|
|
39
|
+
|
|
40
|
+
- add Ipaddress class and association to Host class
|
|
41
|
+
|
|
42
|
+
## [0.3.7] - 2016-03-15
|
|
43
|
+
|
|
44
|
+
- fix an issue with RANCHER_URL env variable (append `/v1/` to the RANCHER_URL env variable if it exists). This way RANCHER_URL becomes truly `rancher-compose`-compatible.
|
|
45
|
+
|
|
46
|
+
## [0.3.6] - 2016-03-15
|
|
47
|
+
### Added
|
|
48
|
+
|
|
49
|
+
- VMware vSphere driver support
|
|
50
|
+
- abillity to configure Rancher::Api using `rancher-compose`-compatible environment variables
|
|
51
|
+
|
data/Gemfile
ADDED
data/Gemfile.lock
ADDED
|
@@ -0,0 +1,156 @@
|
|
|
1
|
+
PATH
|
|
2
|
+
remote: .
|
|
3
|
+
specs:
|
|
4
|
+
rancher-api-beta (0.8.0.pre.beta)
|
|
5
|
+
faraday_middleware
|
|
6
|
+
faye-websocket
|
|
7
|
+
her (~> 0.8.6)
|
|
8
|
+
|
|
9
|
+
GEM
|
|
10
|
+
remote: https://rubygems.org/
|
|
11
|
+
specs:
|
|
12
|
+
activemodel (5.1.0)
|
|
13
|
+
activesupport (= 5.1.0)
|
|
14
|
+
activesupport (5.1.0)
|
|
15
|
+
concurrent-ruby (~> 1.0, >= 1.0.2)
|
|
16
|
+
i18n (~> 0.7)
|
|
17
|
+
minitest (~> 5.1)
|
|
18
|
+
tzinfo (~> 1.1)
|
|
19
|
+
addressable (2.5.1)
|
|
20
|
+
public_suffix (~> 2.0, >= 2.0.2)
|
|
21
|
+
ast (2.3.0)
|
|
22
|
+
awesome_print (1.7.0)
|
|
23
|
+
byebug (9.0.6)
|
|
24
|
+
coderay (1.1.1)
|
|
25
|
+
colorize (0.8.1)
|
|
26
|
+
concurrent-ruby (1.0.5)
|
|
27
|
+
crack (0.4.3)
|
|
28
|
+
safe_yaml (~> 1.0.0)
|
|
29
|
+
diff-lcs (1.3)
|
|
30
|
+
docile (1.1.5)
|
|
31
|
+
eventmachine (1.2.3)
|
|
32
|
+
faraday (0.12.1)
|
|
33
|
+
multipart-post (>= 1.2, < 3)
|
|
34
|
+
faraday_middleware (0.11.0.1)
|
|
35
|
+
faraday (>= 0.7.4, < 1.0)
|
|
36
|
+
faye-websocket (0.10.7)
|
|
37
|
+
eventmachine (>= 0.12.0)
|
|
38
|
+
websocket-driver (>= 0.5.1)
|
|
39
|
+
ffi (1.9.18)
|
|
40
|
+
formatador (0.2.5)
|
|
41
|
+
guard (2.14.1)
|
|
42
|
+
formatador (>= 0.2.4)
|
|
43
|
+
listen (>= 2.7, < 4.0)
|
|
44
|
+
lumberjack (~> 1.0)
|
|
45
|
+
nenv (~> 0.1)
|
|
46
|
+
notiffany (~> 0.0)
|
|
47
|
+
pry (>= 0.9.12)
|
|
48
|
+
shellany (~> 0.0)
|
|
49
|
+
thor (>= 0.18.1)
|
|
50
|
+
guard-compat (1.2.1)
|
|
51
|
+
guard-rspec (4.7.3)
|
|
52
|
+
guard (~> 2.1)
|
|
53
|
+
guard-compat (~> 1.1)
|
|
54
|
+
rspec (>= 2.99.0, < 4.0)
|
|
55
|
+
hashdiff (0.3.4)
|
|
56
|
+
her (0.8.6)
|
|
57
|
+
activemodel (>= 3.0.0, <= 6.0.0)
|
|
58
|
+
activesupport (>= 3.0.0, <= 6.0.0)
|
|
59
|
+
faraday (>= 0.8, < 1.0)
|
|
60
|
+
multi_json (~> 1.7)
|
|
61
|
+
httplog (0.99.3)
|
|
62
|
+
colorize
|
|
63
|
+
rack
|
|
64
|
+
i18n (0.8.1)
|
|
65
|
+
json (2.1.0)
|
|
66
|
+
listen (3.1.5)
|
|
67
|
+
rb-fsevent (~> 0.9, >= 0.9.4)
|
|
68
|
+
rb-inotify (~> 0.9, >= 0.9.7)
|
|
69
|
+
ruby_dep (~> 1.2)
|
|
70
|
+
lumberjack (1.0.12)
|
|
71
|
+
method_source (0.8.2)
|
|
72
|
+
minitest (5.10.2)
|
|
73
|
+
multi_json (1.12.1)
|
|
74
|
+
multipart-post (2.0.0)
|
|
75
|
+
nenv (0.3.0)
|
|
76
|
+
notiffany (0.1.1)
|
|
77
|
+
nenv (~> 0.1)
|
|
78
|
+
shellany (~> 0.0)
|
|
79
|
+
parser (2.4.0.0)
|
|
80
|
+
ast (~> 2.2)
|
|
81
|
+
powerpack (0.1.1)
|
|
82
|
+
pry (0.10.4)
|
|
83
|
+
coderay (~> 1.1.0)
|
|
84
|
+
method_source (~> 0.8.1)
|
|
85
|
+
slop (~> 3.4)
|
|
86
|
+
public_suffix (2.0.5)
|
|
87
|
+
rack (2.0.2)
|
|
88
|
+
rainbow (2.2.2)
|
|
89
|
+
rake
|
|
90
|
+
rake (12.0.0)
|
|
91
|
+
rb-fsevent (0.9.8)
|
|
92
|
+
rb-inotify (0.9.8)
|
|
93
|
+
ffi (>= 0.5.0)
|
|
94
|
+
rspec (3.6.0)
|
|
95
|
+
rspec-core (~> 3.6.0)
|
|
96
|
+
rspec-expectations (~> 3.6.0)
|
|
97
|
+
rspec-mocks (~> 3.6.0)
|
|
98
|
+
rspec-core (3.6.0)
|
|
99
|
+
rspec-support (~> 3.6.0)
|
|
100
|
+
rspec-expectations (3.6.0)
|
|
101
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
|
102
|
+
rspec-support (~> 3.6.0)
|
|
103
|
+
rspec-mocks (3.6.0)
|
|
104
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
|
105
|
+
rspec-support (~> 3.6.0)
|
|
106
|
+
rspec-support (3.6.0)
|
|
107
|
+
rubocop (0.48.1)
|
|
108
|
+
parser (>= 2.3.3.1, < 3.0)
|
|
109
|
+
powerpack (~> 0.1)
|
|
110
|
+
rainbow (>= 1.99.1, < 3.0)
|
|
111
|
+
ruby-progressbar (~> 1.7)
|
|
112
|
+
unicode-display_width (~> 1.0, >= 1.0.1)
|
|
113
|
+
ruby-progressbar (1.8.1)
|
|
114
|
+
ruby_dep (1.5.0)
|
|
115
|
+
safe_yaml (1.0.4)
|
|
116
|
+
shellany (0.0.1)
|
|
117
|
+
simplecov (0.14.1)
|
|
118
|
+
docile (~> 1.1.0)
|
|
119
|
+
json (>= 1.8, < 3)
|
|
120
|
+
simplecov-html (~> 0.10.0)
|
|
121
|
+
simplecov-html (0.10.0)
|
|
122
|
+
slop (3.6.0)
|
|
123
|
+
thor (0.19.4)
|
|
124
|
+
thread_safe (0.3.6)
|
|
125
|
+
tzinfo (1.2.3)
|
|
126
|
+
thread_safe (~> 0.1)
|
|
127
|
+
unicode-display_width (1.2.1)
|
|
128
|
+
vcr (3.0.3)
|
|
129
|
+
webmock (3.0.1)
|
|
130
|
+
addressable (>= 2.3.6)
|
|
131
|
+
crack (>= 0.3.2)
|
|
132
|
+
hashdiff
|
|
133
|
+
websocket-driver (0.6.5)
|
|
134
|
+
websocket-extensions (>= 0.1.0)
|
|
135
|
+
websocket-extensions (0.1.2)
|
|
136
|
+
|
|
137
|
+
PLATFORMS
|
|
138
|
+
ruby
|
|
139
|
+
|
|
140
|
+
DEPENDENCIES
|
|
141
|
+
awesome_print
|
|
142
|
+
bundler (~> 1.14.5)
|
|
143
|
+
byebug
|
|
144
|
+
guard-rspec
|
|
145
|
+
httplog
|
|
146
|
+
pry
|
|
147
|
+
rake (~> 12.0)
|
|
148
|
+
rancher-api-beta!
|
|
149
|
+
rspec (~> 3.6.0)
|
|
150
|
+
rubocop
|
|
151
|
+
simplecov
|
|
152
|
+
vcr (~> 3.0.3)
|
|
153
|
+
webmock (~> 3.0.1)
|
|
154
|
+
|
|
155
|
+
BUNDLED WITH
|
|
156
|
+
1.14.6
|
data/Guardfile
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
guard :rspec, cmd: 'bundle exec rspec' do
|
|
4
|
+
require 'guard/rspec/dsl'
|
|
5
|
+
dsl = Guard::RSpec::Dsl.new(self)
|
|
6
|
+
|
|
7
|
+
# Feel free to open issues for suggestions and improvements
|
|
8
|
+
|
|
9
|
+
# RSpec files
|
|
10
|
+
rspec = dsl.rspec
|
|
11
|
+
watch(rspec.spec_helper) { rspec.spec_dir }
|
|
12
|
+
watch(rspec.spec_support) { rspec.spec_dir }
|
|
13
|
+
watch(rspec.spec_files)
|
|
14
|
+
|
|
15
|
+
# Ruby files
|
|
16
|
+
ruby = dsl.ruby
|
|
17
|
+
dsl.watch_spec_files_for(ruby.lib_files)
|
|
18
|
+
end
|
data/LICENSE
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
The MIT License (MIT)
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2015 Alex Kurkin
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
22
|
+
|
data/LICENSE.txt
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
The MIT License (MIT)
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2015 Alex Kurkin
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in
|
|
13
|
+
all copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
21
|
+
THE SOFTWARE.
|