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
@@ -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
- VERSION = '0.0.15'
24
+ VERSION = '0.0.16'
5
25
  end
@@ -0,0 +1,16 @@
1
+ # encoding: UTF-8
2
+ #
3
+ # Copyright (c) 2010-2015 GoodData Corporation. All rights reserved.
4
+ # This source code is licensed under the BSD-style license found in the
5
+ # LICENSE file in the root directory of this source tree.
6
+
7
+ require 'jetel/helpers/general_helper'
8
+
9
+ describe Jetel::Helper do
10
+ describe '#sanitize' do
11
+ it 'Sanitizes spaces' do
12
+ res = Jetel::Helper.sanitize('hello world')
13
+ expect(res).to eql('hello_world')
14
+ end
15
+ end
16
+ end
File without changes
File without changes
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jetel
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.15
4
+ version: 0.0.16
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tomas Korcak
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-11-18 00:00:00.000000000 Z
11
+ date: 2015-11-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -380,8 +380,8 @@ files:
380
380
  - ".idea/vcs.xml"
381
381
  - ".rspec"
382
382
  - ".rubocop.yml"
383
+ - ".travis.yml"
383
384
  - Gemfile
384
- - Gemfile.lock
385
385
  - LICENSE
386
386
  - LICENSE.txt
387
387
  - README.md
@@ -433,9 +433,12 @@ files:
433
433
  - lib/jetel/modules/modules.rb
434
434
  - lib/jetel/modules/nga/nga.rb
435
435
  - lib/jetel/modules/sfpd/sfpd.rb
436
+ - lib/jetel/modules/tiger/tiger.rb
436
437
  - lib/jetel/modules/wifileaks/wifileaks.rb
437
438
  - lib/jetel/version.rb
438
- - test/spec_helper.rb
439
+ - spec/helpers/general_helper_spec.rb
440
+ - spec/modules/alexa_spec.rb
441
+ - spec/spec_helper.rb
439
442
  homepage: https://github.com/korczis/jetel
440
443
  licenses:
441
444
  - MIT
@@ -461,4 +464,6 @@ signing_key:
461
464
  specification_version: 4
462
465
  summary: Jetel
463
466
  test_files:
464
- - test/spec_helper.rb
467
+ - spec/helpers/general_helper_spec.rb
468
+ - spec/modules/alexa_spec.rb
469
+ - spec/spec_helper.rb
@@ -1,156 +0,0 @@
1
- PATH
2
- remote: .
3
- specs:
4
- jetel (0.0.15)
5
- activesupport
6
- aws-sdk (~> 2)
7
- couchbase (~> 1.3, >= 1.3.14)
8
- csv2psql (~> 0.0.19)
9
- elasticsearch (~> 1.0, >= 1.0.14)
10
- gli
11
- i18n
12
- json_pure (~> 1.8, >= 1.8.3)
13
- multi_json
14
- nokogiri
15
- pg
16
- pmap
17
- rest_client (~> 1.8, >= 1.8.3)
18
- rubyzip
19
- terminal-table
20
- yajl-ruby (~> 1.2, >= 1.2.1)
21
- zip
22
-
23
- GEM
24
- remote: https://rubygems.org/
25
- specs:
26
- activesupport (4.2.4)
27
- i18n (~> 0.7)
28
- json (~> 1.7, >= 1.7.7)
29
- minitest (~> 5.1)
30
- thread_safe (~> 0.3, >= 0.3.4)
31
- tzinfo (~> 1.1)
32
- ast (2.1.0)
33
- astrolabe (1.3.1)
34
- parser (~> 2.2)
35
- aws-sdk (2.1.35)
36
- aws-sdk-resources (= 2.1.35)
37
- aws-sdk-core (2.1.35)
38
- jmespath (~> 1.0)
39
- aws-sdk-resources (2.1.35)
40
- aws-sdk-core (= 2.1.35)
41
- connection_pool (2.2.0)
42
- couchbase (1.3.14)
43
- connection_pool (>= 1.0.0, <= 3.0.0)
44
- multi_json (~> 1.0)
45
- yaji (~> 0.3, >= 0.3.2)
46
- coveralls (0.8.3)
47
- json (~> 1.8)
48
- rest-client (>= 1.6.8, < 2)
49
- simplecov (~> 0.10.0)
50
- term-ansicolor (~> 1.3)
51
- thor (~> 0.19.1)
52
- csv2psql (0.0.19)
53
- gli (~> 2.13, >= 2.13.2)
54
- json_pure (~> 1.8, >= 1.8.3)
55
- lru (~> 0.1, >= 0.1.0)
56
- multi_json (~> 1.11, >= 1.11.2)
57
- rake (~> 10.4, >= 10.4.2)
58
- terminal-table (~> 1.5, >= 1.5.2)
59
- diff-lcs (1.2.5)
60
- docile (1.1.5)
61
- domain_name (0.5.25)
62
- unf (>= 0.0.5, < 1.0.0)
63
- elasticsearch (1.0.14)
64
- elasticsearch-api (= 1.0.14)
65
- elasticsearch-transport (= 1.0.14)
66
- elasticsearch-api (1.0.14)
67
- multi_json
68
- elasticsearch-transport (1.0.14)
69
- faraday
70
- multi_json
71
- faraday (0.9.2)
72
- multipart-post (>= 1.2, < 3)
73
- gli (2.13.2)
74
- http-cookie (1.0.2)
75
- domain_name (~> 0.5)
76
- i18n (0.7.0)
77
- jmespath (1.1.3)
78
- json (1.8.3)
79
- json_pure (1.8.3)
80
- lru (0.1.0)
81
- mime-types (2.6.2)
82
- mini_portile (0.6.2)
83
- minitest (5.8.2)
84
- multi_json (1.11.2)
85
- multipart-post (2.0.0)
86
- netrc (0.7.9)
87
- nokogiri (1.6.6.3)
88
- mini_portile (~> 0.6.0)
89
- parser (2.2.3.0)
90
- ast (>= 1.1, < 3.0)
91
- pg (0.18.3)
92
- pmap (1.0.2)
93
- powerpack (0.1.1)
94
- rainbow (2.0.0)
95
- rake (10.4.2)
96
- rest-client (1.8.0)
97
- http-cookie (>= 1.0.2, < 2.0)
98
- mime-types (>= 1.16, < 3.0)
99
- netrc (~> 0.7)
100
- rest_client (1.8.3)
101
- netrc (~> 0.7.7)
102
- rspec (3.3.0)
103
- rspec-core (~> 3.3.0)
104
- rspec-expectations (~> 3.3.0)
105
- rspec-mocks (~> 3.3.0)
106
- rspec-core (3.3.2)
107
- rspec-support (~> 3.3.0)
108
- rspec-expectations (3.3.1)
109
- diff-lcs (>= 1.2.0, < 2.0)
110
- rspec-support (~> 3.3.0)
111
- rspec-mocks (3.3.2)
112
- diff-lcs (>= 1.2.0, < 2.0)
113
- rspec-support (~> 3.3.0)
114
- rspec-support (3.3.0)
115
- rubocop (0.35.0)
116
- astrolabe (~> 1.3)
117
- parser (>= 2.2.3.0, < 3.0)
118
- powerpack (~> 0.1)
119
- rainbow (>= 1.99.1, < 3.0)
120
- ruby-progressbar (~> 1.7)
121
- ruby-progressbar (1.7.5)
122
- rubyzip (1.1.7)
123
- simplecov (0.10.0)
124
- docile (~> 1.1.0)
125
- json (~> 1.8)
126
- simplecov-html (~> 0.10.0)
127
- simplecov-html (0.10.0)
128
- term-ansicolor (1.3.2)
129
- tins (~> 1.0)
130
- terminal-table (1.5.2)
131
- thor (0.19.1)
132
- thread_safe (0.3.5)
133
- tins (1.6.0)
134
- tzinfo (1.2.2)
135
- thread_safe (~> 0.1)
136
- unf (0.1.4)
137
- unf_ext
138
- unf_ext (0.0.7.1)
139
- yaji (0.3.5)
140
- yajl-ruby (1.2.1)
141
- zip (2.0.2)
142
-
143
- PLATFORMS
144
- ruby
145
-
146
- DEPENDENCIES
147
- bundler (~> 1.5)
148
- coveralls
149
- jetel!
150
- rake
151
- rspec
152
- rubocop (~> 0.35, >= 0.35.0)
153
- simplecov
154
-
155
- BUNDLED WITH
156
- 1.10.6