climatic 0.2.26
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +14 -0
- data/.rspec +2 -0
- data/.travis.yml +5 -0
- data/CODE_OF_CONDUCT.md +74 -0
- data/Gemfile +4 -0
- data/LICENSE.txt +21 -0
- data/README.md +52 -0
- data/Rakefile +6 -0
- data/bin/console +14 -0
- data/bin/setup +8 -0
- data/climatic.gemspec +28 -0
- data/example/simple_app/.gitignore +12 -0
- data/example/simple_app/.rspec +2 -0
- data/example/simple_app/.ruby-version +1 -0
- data/example/simple_app/.travis.yml +5 -0
- data/example/simple_app/CODE_OF_CONDUCT.md +74 -0
- data/example/simple_app/Gemfile +6 -0
- data/example/simple_app/LICENSE.txt +21 -0
- data/example/simple_app/README.md +43 -0
- data/example/simple_app/Rakefile +6 -0
- data/example/simple_app/bin/console +14 -0
- data/example/simple_app/bin/setup +8 -0
- data/example/simple_app/etc/command_line.yml +52 -0
- data/example/simple_app/exe/user +57 -0
- data/example/simple_app/lib/tst_climatic/version.rb +3 -0
- data/example/simple_app/lib/tst_climatic.rb +5 -0
- data/example/simple_app/spec/spec_helper.rb +14 -0
- data/example/simple_app/spec/tst_climatic_spec.rb +11 -0
- data/example/simple_app/tst_climatic.gemspec +39 -0
- data/lib/climatic/config_layers/command_line_layer.rb +46 -0
- data/lib/climatic/config_layers/command_line_manager_binder.rb +84 -0
- data/lib/climatic/config_layers/env_layer.rb +41 -0
- data/lib/climatic/config_layers/executable_gem_layer.rb +45 -0
- data/lib/climatic/config_layers/gem_layer.rb +50 -0
- data/lib/climatic/config_layers/generic_layer.rb +62 -0
- data/lib/climatic/config_layers/global_layer.rb +28 -0
- data/lib/climatic/config_layers/program_description_helper.rb +94 -0
- data/lib/climatic/config_layers/project_layer.rb +61 -0
- data/lib/climatic/config_layers/provided_config_file_layer.rb +26 -0
- data/lib/climatic/config_layers/source_helper.rb +48 -0
- data/lib/climatic/config_layers/system_layer.rb +37 -0
- data/lib/climatic/config_layers/user_layer.rb +40 -0
- data/lib/climatic/initializer.rb +87 -0
- data/lib/climatic/layers_manager.rb +81 -0
- data/lib/climatic/logger/accumulator.rb +49 -0
- data/lib/climatic/logger/manager.rb +50 -0
- data/lib/climatic/logger/wrapper.rb +12 -0
- data/lib/climatic/processes/base.rb +51 -0
- data/lib/climatic/processes/command.rb +15 -0
- data/lib/climatic/processes/synchronous.rb +51 -0
- data/lib/climatic/processes/time_management.rb +21 -0
- data/lib/climatic/proxy.rb +27 -0
- data/lib/climatic/script/base.rb +65 -0
- data/lib/climatic/script/simple.rb +31 -0
- data/lib/climatic/script/unimplemented_processor.rb +19 -0
- data/lib/climatic/script.rb +4 -0
- data/lib/climatic/utils/error.rb +5 -0
- data/lib/climatic/utils/input.rb +65 -0
- data/lib/climatic/utils/safe_exec.rb +28 -0
- data/lib/climatic/utils/script_helper.rb +18 -0
- data/lib/climatic/version.rb +3 -0
- data/lib/climatic.rb +45 -0
- metadata +162 -0
data/lib/climatic.rb
ADDED
@@ -0,0 +1,45 @@
|
|
1
|
+
require 'climatic/version'
|
2
|
+
|
3
|
+
require 'super_stack'
|
4
|
+
require 'ultra_command_line'
|
5
|
+
|
6
|
+
require 'climatic/logger/accumulator'
|
7
|
+
require 'climatic/logger/wrapper'
|
8
|
+
require 'climatic/logger/manager'
|
9
|
+
|
10
|
+
require 'climatic/utils/error'
|
11
|
+
require 'climatic/utils/safe_exec'
|
12
|
+
require 'climatic/utils/script_helper'
|
13
|
+
require 'climatic/utils/input'
|
14
|
+
require 'climatic/config_layers/source_helper'
|
15
|
+
require 'climatic/config_layers/generic_layer'
|
16
|
+
require 'climatic/config_layers/system_layer'
|
17
|
+
require 'climatic/config_layers/executable_gem_layer'
|
18
|
+
require 'climatic/config_layers/gem_layer'
|
19
|
+
require 'climatic/config_layers/global_layer'
|
20
|
+
require 'climatic/config_layers/user_layer'
|
21
|
+
require 'climatic/config_layers/env_layer'
|
22
|
+
require 'climatic/config_layers/provided_config_file_layer'
|
23
|
+
require 'climatic/config_layers/project_layer'
|
24
|
+
require 'climatic/config_layers/command_line_layer'
|
25
|
+
require 'climatic/config_layers/program_description_helper'
|
26
|
+
|
27
|
+
require 'climatic/processes/time_management'
|
28
|
+
require 'climatic/processes/synchronous'
|
29
|
+
require 'climatic/processes/command'
|
30
|
+
require 'climatic/processes/base'
|
31
|
+
|
32
|
+
require 'climatic/layers_manager'
|
33
|
+
|
34
|
+
|
35
|
+
require 'climatic/initializer'
|
36
|
+
require 'climatic/proxy'
|
37
|
+
|
38
|
+
module Climatic
|
39
|
+
extend Climatic::Logger::Manager
|
40
|
+
extend Climatic::Utils::SafeExec
|
41
|
+
extend Climatic::Initializer
|
42
|
+
end
|
43
|
+
|
44
|
+
# Let's kick off
|
45
|
+
Climatic.bootstrap unless $DO_NOT_AUTOSTART_CLIMATIC
|
metadata
ADDED
@@ -0,0 +1,162 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: climatic
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.2.26
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Laurent B.
|
8
|
+
autorequire:
|
9
|
+
bindir: exe
|
10
|
+
cert_chain: []
|
11
|
+
date: 2019-08-25 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: bundler
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '2.0'
|
20
|
+
type: :development
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '2.0'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: rake
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '10.0'
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '10.0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: rspec
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - "~>"
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '3.0'
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - "~>"
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '3.0'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: ultra_command_line
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - "~>"
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '0.4'
|
62
|
+
type: :runtime
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - "~>"
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '0.4'
|
69
|
+
description: A CLI framework to ease command-line tools creation.
|
70
|
+
email:
|
71
|
+
- lbnetid+gh@gmail.com
|
72
|
+
executables: []
|
73
|
+
extensions: []
|
74
|
+
extra_rdoc_files: []
|
75
|
+
files:
|
76
|
+
- ".gitignore"
|
77
|
+
- ".rspec"
|
78
|
+
- ".travis.yml"
|
79
|
+
- CODE_OF_CONDUCT.md
|
80
|
+
- Gemfile
|
81
|
+
- LICENSE.txt
|
82
|
+
- README.md
|
83
|
+
- Rakefile
|
84
|
+
- bin/console
|
85
|
+
- bin/setup
|
86
|
+
- climatic.gemspec
|
87
|
+
- example/simple_app/.gitignore
|
88
|
+
- example/simple_app/.rspec
|
89
|
+
- example/simple_app/.ruby-version
|
90
|
+
- example/simple_app/.travis.yml
|
91
|
+
- example/simple_app/CODE_OF_CONDUCT.md
|
92
|
+
- example/simple_app/Gemfile
|
93
|
+
- example/simple_app/LICENSE.txt
|
94
|
+
- example/simple_app/README.md
|
95
|
+
- example/simple_app/Rakefile
|
96
|
+
- example/simple_app/bin/console
|
97
|
+
- example/simple_app/bin/setup
|
98
|
+
- example/simple_app/etc/command_line.yml
|
99
|
+
- example/simple_app/exe/user
|
100
|
+
- example/simple_app/lib/tst_climatic.rb
|
101
|
+
- example/simple_app/lib/tst_climatic/version.rb
|
102
|
+
- example/simple_app/spec/spec_helper.rb
|
103
|
+
- example/simple_app/spec/tst_climatic_spec.rb
|
104
|
+
- example/simple_app/tst_climatic.gemspec
|
105
|
+
- lib/climatic.rb
|
106
|
+
- lib/climatic/config_layers/command_line_layer.rb
|
107
|
+
- lib/climatic/config_layers/command_line_manager_binder.rb
|
108
|
+
- lib/climatic/config_layers/env_layer.rb
|
109
|
+
- lib/climatic/config_layers/executable_gem_layer.rb
|
110
|
+
- lib/climatic/config_layers/gem_layer.rb
|
111
|
+
- lib/climatic/config_layers/generic_layer.rb
|
112
|
+
- lib/climatic/config_layers/global_layer.rb
|
113
|
+
- lib/climatic/config_layers/program_description_helper.rb
|
114
|
+
- lib/climatic/config_layers/project_layer.rb
|
115
|
+
- lib/climatic/config_layers/provided_config_file_layer.rb
|
116
|
+
- lib/climatic/config_layers/source_helper.rb
|
117
|
+
- lib/climatic/config_layers/system_layer.rb
|
118
|
+
- lib/climatic/config_layers/user_layer.rb
|
119
|
+
- lib/climatic/initializer.rb
|
120
|
+
- lib/climatic/layers_manager.rb
|
121
|
+
- lib/climatic/logger/accumulator.rb
|
122
|
+
- lib/climatic/logger/manager.rb
|
123
|
+
- lib/climatic/logger/wrapper.rb
|
124
|
+
- lib/climatic/processes/base.rb
|
125
|
+
- lib/climatic/processes/command.rb
|
126
|
+
- lib/climatic/processes/synchronous.rb
|
127
|
+
- lib/climatic/processes/time_management.rb
|
128
|
+
- lib/climatic/proxy.rb
|
129
|
+
- lib/climatic/script.rb
|
130
|
+
- lib/climatic/script/base.rb
|
131
|
+
- lib/climatic/script/simple.rb
|
132
|
+
- lib/climatic/script/unimplemented_processor.rb
|
133
|
+
- lib/climatic/utils/error.rb
|
134
|
+
- lib/climatic/utils/input.rb
|
135
|
+
- lib/climatic/utils/safe_exec.rb
|
136
|
+
- lib/climatic/utils/script_helper.rb
|
137
|
+
- lib/climatic/version.rb
|
138
|
+
homepage:
|
139
|
+
licenses:
|
140
|
+
- MIT
|
141
|
+
metadata: {}
|
142
|
+
post_install_message:
|
143
|
+
rdoc_options: []
|
144
|
+
require_paths:
|
145
|
+
- lib
|
146
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
147
|
+
requirements:
|
148
|
+
- - ">="
|
149
|
+
- !ruby/object:Gem::Version
|
150
|
+
version: '0'
|
151
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
152
|
+
requirements:
|
153
|
+
- - ">="
|
154
|
+
- !ruby/object:Gem::Version
|
155
|
+
version: '0'
|
156
|
+
requirements: []
|
157
|
+
rubyforge_project:
|
158
|
+
rubygems_version: 2.5.1
|
159
|
+
signing_key:
|
160
|
+
specification_version: 4
|
161
|
+
summary: A CLI framework to ease command-line tools creation.
|
162
|
+
test_files: []
|