jetel 0.0.15 → 0.0.16

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.
Files changed (50) hide show
  1. checksums.yaml +4 -4
  2. data/.travis.yml +34 -0
  3. data/README.md +14 -7
  4. data/Rakefile +11 -0
  5. data/bin/jetel +20 -0
  6. data/lib/jetel.rb +20 -0
  7. data/lib/jetel/cli/app.rb +20 -0
  8. data/lib/jetel/cli/cli.rb +20 -0
  9. data/lib/jetel/cli/cmd/config_cmd.rb +20 -0
  10. data/lib/jetel/cli/cmd/downloaders_cmd.rb +20 -0
  11. data/lib/jetel/cli/cmd/loaders_cmd.rb +20 -0
  12. data/lib/jetel/cli/cmd/modules_cmd.rb +31 -0
  13. data/lib/jetel/cli/cmd/version_cmd.rb +20 -0
  14. data/lib/jetel/cli/shared.rb +20 -0
  15. data/lib/jetel/config/config.rb +20 -0
  16. data/lib/jetel/downloaders/base_downloader.rb +20 -0
  17. data/lib/jetel/downloaders/downloader.rb +20 -0
  18. data/lib/jetel/downloaders/downloaders.rb +22 -0
  19. data/lib/jetel/helpers/general_helper.rb +20 -0
  20. data/lib/jetel/helpers/helpers.rb +19 -3
  21. data/lib/jetel/helpers/os_helper.rb +22 -0
  22. data/lib/jetel/lib.rb +20 -0
  23. data/lib/jetel/loaders/couchbase/couchbase.rb +42 -4
  24. data/lib/jetel/loaders/elasticsearch/elasticsearch.rb +22 -0
  25. data/lib/jetel/loaders/loader.rb +22 -0
  26. data/lib/jetel/loaders/loaders.rb +22 -0
  27. data/lib/jetel/loaders/pg/pg.rb +22 -0
  28. data/lib/jetel/loaders/pg/sql/copy.sql.erb +20 -0
  29. data/lib/jetel/loaders/pg/sql/create_table.sql.erb +20 -0
  30. data/lib/jetel/loaders/pg/sql/drop_table.sql.erb +20 -0
  31. data/lib/jetel/loaders/pg/sql/header.sql.erb +20 -0
  32. data/lib/jetel/loaders/pg/sql/schema.sql.erb +20 -0
  33. data/lib/jetel/loaders/pg/sql/truncate_table.sql.erb +20 -0
  34. data/lib/jetel/modules/alexa/alexa.rb +19 -0
  35. data/lib/jetel/modules/gadm/gadm.rb +5 -1
  36. data/lib/jetel/modules/geolite/geolite.rb +19 -0
  37. data/lib/jetel/modules/ip/ip.rb +20 -0
  38. data/lib/jetel/modules/iso3166/iso3166.rb +20 -0
  39. data/lib/jetel/modules/module.rb +46 -4
  40. data/lib/jetel/modules/modules.rb +22 -0
  41. data/lib/jetel/modules/nga/nga.rb +20 -0
  42. data/lib/jetel/modules/sfpd/sfpd.rb +20 -0
  43. data/lib/jetel/modules/tiger/tiger.rb +113 -0
  44. data/lib/jetel/modules/wifileaks/wifileaks.rb +21 -1
  45. data/lib/jetel/version.rb +21 -1
  46. data/spec/helpers/general_helper_spec.rb +16 -0
  47. data/spec/modules/alexa_spec.rb +0 -0
  48. data/{test → spec}/spec_helper.rb +0 -0
  49. metadata +10 -5
  50. data/Gemfile.lock +0 -156
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 08a134a7446127a80ff17bc70f7ee1312db161e0
4
- data.tar.gz: 6c6b65b87afd99a4f05672d421eb33619b100420
3
+ metadata.gz: 131c4c8fa85496e86fc0e816ed63df75fe62fe3d
4
+ data.tar.gz: 9c37132b9057ba03c060e8e2894ec001641d1a75
5
5
  SHA512:
6
- metadata.gz: fa616721b387cbf35f0f586e9bac07dd2119e6f1133a7ee0a9574ab82efa2f285e3e16dc12dccda643e77ada5e7fa59b38c2f215d3737908200bc4ef19db1183
7
- data.tar.gz: 4009e9ca9867ce8d2eb9ca2d6322cd5254b73334e729d283a4d1d81231bc34c982114a7b2926ba66e005578e1d3a014786bc23b02b76c64d0327e030290f4c73
6
+ metadata.gz: 2317296c5d291510f302478f6ee67f2daaea54e1b8880ea23da1fb4d755140dd4998885f4b6045b7d7889fe12d4aaa621a4e8df574df2da0bab1795f89e69677
7
+ data.tar.gz: 30e15cad5553dabb8fd1147508c84ed31b0741b16c10a94bd6df368bc39085a2a4f9fb731634366ef71fc6af1f1306da5ce4b8c56ded99100141a1f41667590d
@@ -0,0 +1,34 @@
1
+ language: ruby
2
+
3
+ # sudo: true
4
+
5
+ compiler:
6
+ - clang
7
+ - gcc
8
+
9
+ before_install:
10
+ - sudo apt-get -y install python-software-properties
11
+ - sudo add-apt-repository -y ppa:mnunberg/cmake
12
+ - sudo apt-get update
13
+ - sudo apt-get -y install libgtest-dev libssl-dev libev-dev libevent-dev cmake
14
+
15
+ #addons:
16
+ # apt:
17
+ # packages:
18
+ # - python-software-properties
19
+ # - cmake
20
+ # - libcouchbase
21
+ # - libcouchbase-dev
22
+ # - libgtest-dev
23
+ # - libssl-dev
24
+ # - libev-dev
25
+ # - libevent-dev
26
+ # - libcouchbase
27
+ # - libcouchbase-dev
28
+
29
+ rvm:
30
+ - 2.2
31
+ - 2.1
32
+ - 2.0.0
33
+ - 1.9.3
34
+
data/README.md CHANGED
@@ -2,6 +2,7 @@
2
2
 
3
3
  ## Status
4
4
 
5
+ [![Build Status](https://travis-ci.org/korczis/jetel.svg)](https://travis-ci.org/korczis/jetel)
5
6
  [![Gem Version](https://badge.fury.io/rb/jetel.svg)](http://badge.fury.io/rb/jetel)
6
7
  [![Downloads](http://img.shields.io/gem/dt/jetel.svg)](http://rubygems.org/gems/jetel)
7
8
  [![Dependency Status](https://gemnasium.com/korczis/jetel.svg)](https://gemnasium.com/korczis/jetel)
@@ -11,7 +12,8 @@
11
12
  Run `jetel`
12
13
 
13
14
  ```
14
- jetel
15
+ $ jetel
16
+
15
17
  NAME
16
18
  jetel - Simple custom made tool for data download and basic ETL
17
19
 
@@ -19,7 +21,7 @@ SYNOPSIS
19
21
  jetel [global options] command [command options] [arguments...]
20
22
 
21
23
  VERSION
22
- 0.0.9
24
+ 0.0.15
23
25
 
24
26
  GLOBAL OPTIONS
25
27
  -d, --download_dir=download-dir - Download directory (default: data)
@@ -31,6 +33,8 @@ GLOBAL OPTIONS
31
33
  COMMANDS
32
34
  alexa, Alexa - Module alexa
33
35
  config - Show config
36
+ downloaders - Print downloaders info
37
+ gadm, Gadm - Module gadm
34
38
  geolite, Geolite - Module geolite
35
39
  help - Shows a list of commands or help for one command
36
40
  ip, Ip - Module ip
@@ -39,6 +43,7 @@ COMMANDS
39
43
  modules - Print modules info
40
44
  nga, Nga - Module nga
41
45
  sfpd, Sfpd - Module sfpd
46
+ tiger, Tiger - Module tiger
42
47
  version - Print version info
43
48
  wifileaks, Wifileaks - Module wifileaks
44
49
  ```
@@ -78,16 +83,18 @@ SYNOPSIS
78
83
  ### Show modules/sources
79
84
 
80
85
  ```
81
- jetel modules
86
+ $ jetel modules
82
87
  +-----------+---------------------------+
83
88
  | Name | Class |
84
89
  +-----------+---------------------------+
85
90
  | alexa | Jetel::Modules::Alexa |
91
+ | gadm | Jetel::Modules::Gadm |
86
92
  | geolite | Jetel::Modules::Geolite |
87
93
  | ip | Jetel::Modules::Ip |
88
94
  | iso3166 | Jetel::Modules::Iso3166 |
89
95
  | nga | Jetel::Modules::Nga |
90
96
  | sfpd | Jetel::Modules::Sfpd |
97
+ | tiger | Jetel::Modules::Tiger |
91
98
  | wifileaks | Jetel::Modules::Wifileaks |
92
99
  +-----------+---------------------------+
93
100
  ```
@@ -233,8 +240,8 @@ COPY "geolite"
233
240
 
234
241
  ```
235
242
  $ rake -T
236
- rake gem:build # Build jetel-0.0.8.gem into the pkg directory
237
- rake gem:install # Build and install jetel-0.0.8.gem into system gems
238
- rake gem:install:local # Build and install jetel-0.0.8.gem into system gems without network access
239
- rake gem:release # Create tag v0.0.8 and build and push jetel-0.0.8.gem to Rubygems
243
+ rake gem:build # Build jetel-0.0.15.gem into the pkg directory
244
+ rake gem:install # Build and install jetel-0.0.15.gem into system gems
245
+ rake gem:install:local # Build and install jetel-0.0.15.gem into system gems without network access
246
+ rake gem:release # Create tag v0.0.15 and build and push jetel-0.0.15.gem to Rubygems
240
247
  ```
data/Rakefile CHANGED
@@ -2,3 +2,14 @@ namespace :gem do
2
2
  require 'bundler/gem_tasks'
3
3
  end
4
4
 
5
+ begin
6
+ require 'rspec/core/rake_task'
7
+
8
+ RSpec::Core::RakeTask.new(:spec)
9
+
10
+ task :default => :spec
11
+ rescue LoadError
12
+ # no rspec available
13
+ end
14
+
15
+ task :default => [:spec]
data/bin/jetel CHANGED
@@ -1,3 +1,23 @@
1
1
  #! /usr/bin/env ruby
2
2
 
3
+ # Copyright (c) 2015, Tomas Korcak <korczis@gmail.com>
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.
22
+
3
23
  require_relative '../lib/jetel/cli/cli'
@@ -1,3 +1,23 @@
1
1
  # encoding: utf-8
2
2
 
3
+ # Copyright (c) 2015, Tomas Korcak <korczis@gmail.com>
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.
22
+
3
23
  require_relative 'jetel/lib'
@@ -1,5 +1,25 @@
1
1
  # encoding: utf-8
2
2
 
3
+ # Copyright (c) 2015, Tomas Korcak <korczis@gmail.com>
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.
22
+
3
23
  require 'gli'
4
24
  require 'pathname'
5
25
  require 'pp'
@@ -1,3 +1,23 @@
1
1
  # encoding: UTF-8
2
2
 
3
+ # Copyright (c) 2015, Tomas Korcak <korczis@gmail.com>
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.
22
+
3
23
  require_relative 'app'
@@ -1,5 +1,25 @@
1
1
  # encoding: utf-8
2
2
 
3
+ # Copyright (c) 2015, Tomas Korcak <korczis@gmail.com>
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.
22
+
3
23
  require 'pp'
4
24
 
5
25
  require_relative '../../config/config'
@@ -1,5 +1,25 @@
1
1
  # encoding: utf-8
2
2
 
3
+ # Copyright (c) 2015, Tomas Korcak <korczis@gmail.com>
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.
22
+
3
23
  require 'terminal-table'
4
24
 
5
25
  require_relative '../../downloaders/downloaders'
@@ -1,5 +1,25 @@
1
1
  # encoding: utf-8
2
2
 
3
+ # Copyright (c) 2015, Tomas Korcak <korczis@gmail.com>
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.
22
+
3
23
  require 'terminal-table'
4
24
 
5
25
  require_relative '../../loaders/loaders'
@@ -1,5 +1,26 @@
1
1
  # encoding: utf-8
2
2
 
3
+ # Copyright (c) 2015, Tomas Korcak <korczis@gmail.com>
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.
22
+
23
+
3
24
  require 'terminal-table'
4
25
 
5
26
  require_relative '../../modules/modules'
@@ -7,6 +28,16 @@ require_relative '../../modules/modules'
7
28
  MODULES = Jetel::Modules.modules
8
29
 
9
30
  MODULES_ACTIONS = {
31
+ sources: {
32
+ params: [
33
+ {
34
+ desc: 'Format',
35
+ default_value: nil,
36
+ arg_name: 'format=format',
37
+ flag: [:format]
38
+ }
39
+ ]
40
+ },
10
41
  download: nil,
11
42
  extract: nil,
12
43
  transform: nil,
@@ -1,5 +1,25 @@
1
1
  # encoding: utf-8
2
2
 
3
+ # Copyright (c) 2015, Tomas Korcak <korczis@gmail.com>
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.
22
+
3
23
  require_relative '../../version'
4
24
 
5
25
  require_relative '../shared'
@@ -1,5 +1,25 @@
1
1
  # encoding: UTF-8
2
2
 
3
+ # Copyright (c) 2015, Tomas Korcak <korczis@gmail.com>
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.
22
+
3
23
  require 'gli'
4
24
  require 'pathname'
5
25
 
@@ -1,5 +1,25 @@
1
1
  # encoding: utf-8
2
2
 
3
+ # Copyright (c) 2015, Tomas Korcak <korczis@gmail.com>
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.
22
+
3
23
  module Jetel
4
24
  Config = {
5
25
  DATA_DIRECTORY: File.absolute_path(File.join(File.dirname(__FILE__), '..', '..', '..', 'data'))
@@ -1,5 +1,25 @@
1
1
  # encoding: utf-8
2
2
 
3
+ # Copyright (c) 2015, Tomas Korcak <korczis@gmail.com>
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.
22
+
3
23
  require 'fileutils'
4
24
  require_relative '../config/config'
5
25