teuton-get 0.2.3 → 0.2.6

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b783cab2c10f1a23f61fe5b8e53e108dcce79fb8b97a0ab1a717b4244a0f193c
4
- data.tar.gz: 576048fe21ce48012784d2ff48ba21198f94d63cff33f55d8091a5dc137947e4
3
+ metadata.gz: 93a50919de5a737574cac82c103c752cb63b94e3f57d7c68019b8246d5f2fe02
4
+ data.tar.gz: 4bb6f76c3a50ec7fb22f4f26d0ba10c922118ef0f864e711a444258a4632f8f8
5
5
  SHA512:
6
- metadata.gz: 93a9660d795aabc86399f2a7393175b07359ff22294d9c66487367478dd234fbf93f764a5c9310c89fb2de176876a9a7860acb74081e5a9cc1e7919d4eea4493
7
- data.tar.gz: 4bc2009d8d715113336b0970beef9d4e92b949c48689358d328238dcc851aa88747d6ee6d4efe86c54ed2a1beeb212f0d51c94670ba9604f28fef4084dc5eae1
6
+ metadata.gz: 1d4c83773f005a8e3d3e0a5a99d6733b60792055d98ee3a975e91fd373966f3cb2c5200ddc5dfc142d098e84831fcfb073c29f67ed681b04c6851c1630b438a8
7
+ data.tar.gz: 5fd57d8636cbe9958768ecfc12d450dad75db1e15ca405d97c22078fac73b7ea945fd94e5f86fe173b8c7feacada7891cd3fceab5a2035de97185597deccde18
data/README.md CHANGED
@@ -1,7 +1,9 @@
1
- [![Gem Version](https://badge.fury.io/rb/teuton-get.svg)](https://badge.fury.io/rb/teuton-get)
2
-
3
1
  # Teuton-Get
4
2
 
3
+ [![Gem Version](https://badge.fury.io/rb/teuton-get.svg)](https://badge.fury.io/rb/teuton-get)
4
+ ![GitHub](https://img.shields.io/github/license/dvarrui/teuton-get)
5
+ ![Gem](https://img.shields.io/gem/dv/teuton-get/0.2.4)
6
+
5
7
  * Find and download _Teuton Tests_ from remote or local repositories.
6
8
  * Create _Teuton Test_ repository.
7
9
 
@@ -9,21 +11,15 @@
9
11
 
10
12
  # Installation
11
13
 
12
- 1. Install Ruby on your system.
13
- 1. `gem install teuton-get`, to install **teuton-get** gem.
14
-
15
- # Use
14
+ First install Ruby, then:
16
15
 
17
- 1. `teutonget init`, at first, create config file.
18
- 1. `teutonget refresh`, to refresh repo catalog.
19
- 1. `teutonget search FILTER`. then, search tests.
20
- 1. `teutonget download REPONAME:TESTPATH`, download test files.
21
-
22
- ## Examples
16
+ ```
17
+ gem install teuton-get
18
+ ```
23
19
 
24
- **Example 1: search and download**
20
+ # Usage
25
21
 
26
- * Create config files:
22
+ * At first, **create config file**.
27
23
 
28
24
  ```
29
25
  > teutonget init
@@ -33,7 +29,7 @@
33
29
  ✔ Create file : /home/quigon/.config/teuton/repos.ini
34
30
  ```
35
31
 
36
- * Refresh repo catalog:
32
+ * **Refresh** repo catalog, from time to time:
37
33
 
38
34
  ```
39
35
  > teutonget refresh
@@ -43,14 +39,14 @@
43
39
  ✔ Repo teuton.es (4 tests)
44
40
  ```
45
41
 
46
- * Search test:
42
+ * **Search** test related with "usermin":
47
43
 
48
44
  ```
49
45
  > teutonget search usermin
50
46
  (x3) teuton.es:sistemas.3/scripting/usermin
51
47
  ```
52
48
 
53
- * Show details:
49
+ * Take a look at **test info**:
54
50
 
55
51
  ```
56
52
  > teutonget info teuton.es:sistemas.3/scripting/usermin
@@ -63,28 +59,26 @@ tags : script, usuario, crear, consultar, listar, eliminar
63
59
  files : INSTALL.md, README.md, bin/docker.run, bin/up_environ.sh, config.yaml, lib/docker/consultar.rb, lib/docker/eliminar.rb, lib/docker/help.rb, lib/docker/listar.rb, lib/docker/nuevo.rb, lib/vm/consultar.rb, lib/vm/eliminar.rb, lib/vm/help.rb, lib/vm/listar.rb, lib/vm/nuevo.rb, start.rb, tt-info.yaml, vagrant/install-software.sh, vagrant/profesor.rb, vm.rb, vm.yaml
64
60
  ```
65
61
 
66
- * Download test:
62
+ * **Download test** "teuton.es:sistemas.3/scripting/usermin":
67
63
 
68
64
  ```
69
65
  > teutonget download teuton.es:sistemas.3/scripting/usermin
70
66
 
71
67
  ==> Progress [█████████████████████] 100%
72
- ==> Download OK
68
+ ==> Download finished
73
69
  ```
74
70
 
75
- **Example 2: Locate TEST ID**
76
-
77
- Teuton test ID (TESTID) is `REPONAME:TESTPATH`.
71
+ **Example:** Locate TEST_ID for "debian" related tests.
78
72
 
79
73
  ![](docs/images/teutonget-search-debian.png)
80
74
 
81
- # Contact
82
-
83
- * **Email**: `teuton.software@protonmail.com`
84
-
85
75
  # Documentation
86
76
 
87
77
  * [Settings](docs/settings.md)
88
78
  * [Get](docs/get.md)
89
79
  * [Repository](docs/repo.md)
90
80
  * [Commands](docs/commands.md)
81
+
82
+ # Contact
83
+
84
+ * **Email**: `teuton.software@protonmail.com`
@@ -70,6 +70,6 @@ class Downloader
70
70
  out.write(URLReader.new(uri).read)
71
71
  out.close
72
72
  end
73
- @dev.writeln "==> Download OK", color: :white
73
+ @dev.writeln "==> Download finished", color: :white
74
74
  end
75
75
  end
@@ -114,7 +114,11 @@ class RepoData
114
114
 
115
115
  def get_local_database(dirpath)
116
116
  filepath = File.join(dirpath, Application::INDEXFILENAME)
117
- @reader.read(filepath)
117
+ # @reader.read(filepath) # FIXME
118
+ YAML.safe_load(
119
+ File.read(filepath),
120
+ permitted_classes: [Array, Date, Hash, Symbol]
121
+ )
118
122
  end
119
123
 
120
124
  def get_remote_database(url_repo)
@@ -1,6 +1,6 @@
1
1
  module Version
2
2
  NAME = "teuton-get"
3
3
  EXECUTABLE = "teutonget"
4
- VERSION = "0.2.3"
4
+ VERSION = "0.2.6"
5
5
  HOMEPAGE = "https://github.com/teuton-software/#{NAME}"
6
6
  end
data/lib/teuton-get.rb CHANGED
@@ -4,6 +4,7 @@ require_relative "teuton-get/repo/repo_config"
4
4
  require_relative "teuton-get/repo/repo_data"
5
5
  require_relative "teuton-get/searcher"
6
6
  require_relative "teuton-get/downloader"
7
+ require "debug"
7
8
 
8
9
  module TeutonGet
9
10
  # Create metadata for local user teuton test
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: teuton-get
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.3
4
+ version: 0.2.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Vargas Ruiz
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-11-22 00:00:00.000000000 Z
11
+ date: 2023-02-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: inifile
@@ -152,14 +152,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
152
152
  requirements:
153
153
  - - ">="
154
154
  - !ruby/object:Gem::Version
155
- version: 2.5.9
155
+ version: 3.0.4
156
156
  required_rubygems_version: !ruby/object:Gem::Requirement
157
157
  requirements:
158
158
  - - ">="
159
159
  - !ruby/object:Gem::Version
160
160
  version: '0'
161
161
  requirements: []
162
- rubygems_version: 3.3.3
162
+ rubygems_version: 3.2.33
163
163
  signing_key:
164
164
  specification_version: 4
165
165
  summary: TeutonGet (Teuton Software)