eco-helpers 0.6.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +1 -0
- data/.rspec +3 -0
- data/README.md +20 -0
- data/eco-helpers.gemspec +34 -0
- data/lib/eco-helpers.rb +15 -0
- data/lib/eco/api.rb +13 -0
- data/lib/eco/api/common.rb +10 -0
- data/lib/eco/api/common/people.rb +17 -0
- data/lib/eco/api/common/people/base_parser.rb +16 -0
- data/lib/eco/api/common/people/default_parsers.rb +40 -0
- data/lib/eco/api/common/people/default_parsers/boolean_parser.rb +28 -0
- data/lib/eco/api/common/people/default_parsers/date_parser.rb +33 -0
- data/lib/eco/api/common/people/default_parsers/multi_parser.rb +33 -0
- data/lib/eco/api/common/people/default_parsers/numeric_parser.rb +23 -0
- data/lib/eco/api/common/people/default_parsers/select_parser.rb +29 -0
- data/lib/eco/api/common/people/entries.rb +120 -0
- data/lib/eco/api/common/people/person_entry.rb +380 -0
- data/lib/eco/api/common/people/person_factory.rb +114 -0
- data/lib/eco/api/common/people/person_modifier.rb +62 -0
- data/lib/eco/api/common/people/person_parser.rb +140 -0
- data/lib/eco/api/common/people/types.rb +47 -0
- data/lib/eco/api/common/session.rb +15 -0
- data/lib/eco/api/common/session/base_session.rb +46 -0
- data/lib/eco/api/common/session/environment.rb +47 -0
- data/lib/eco/api/common/session/file_manager.rb +90 -0
- data/lib/eco/api/common/session/logger.rb +105 -0
- data/lib/eco/api/common/session/mailer.rb +92 -0
- data/lib/eco/api/common/session/s3_uploader.rb +110 -0
- data/lib/eco/api/common/version_patches.rb +11 -0
- data/lib/eco/api/common/version_patches/external_person.rb +11 -0
- data/lib/eco/api/eco_faker.rb +59 -0
- data/lib/eco/api/organization.rb +13 -0
- data/lib/eco/api/organization/account.rb +23 -0
- data/lib/eco/api/organization/people.rb +118 -0
- data/lib/eco/api/organization/policy_groups.rb +51 -0
- data/lib/eco/api/organization/preferences.rb +28 -0
- data/lib/eco/api/organization/preferences_reference.json +23 -0
- data/lib/eco/api/organization/presets.rb +138 -0
- data/lib/eco/api/organization/presets_backup.rb +220 -0
- data/lib/eco/api/organization/presets_values.json +10 -0
- data/lib/eco/api/organization/tag_tree.rb +134 -0
- data/lib/eco/api/organization_old.rb +73 -0
- data/lib/eco/api/session.rb +180 -0
- data/lib/eco/api/session/batch.rb +132 -0
- data/lib/eco/api/session/batch_job.rb +152 -0
- data/lib/eco/api/session/batch_jobs.rb +131 -0
- data/lib/eco/api/session/batch_status.rb +138 -0
- data/lib/eco/api/session/task.rb +92 -0
- data/lib/eco/api/session_config.rb +179 -0
- data/lib/eco/api/session_config/api.rb +47 -0
- data/lib/eco/api/session_config/apis.rb +78 -0
- data/lib/eco/api/session_config/files.rb +30 -0
- data/lib/eco/api/session_config/logger.rb +54 -0
- data/lib/eco/api/session_config/mailer.rb +65 -0
- data/lib/eco/api/session_config/people.rb +89 -0
- data/lib/eco/api/session_config/s3_bucket.rb +62 -0
- data/lib/eco/api/session_config/use_cases.rb +30 -0
- data/lib/eco/api/usecases.rb +12 -0
- data/lib/eco/api/usecases/base_case.rb +14 -0
- data/lib/eco/api/usecases/case_data.rb +13 -0
- data/lib/eco/api/usecases/default_cases.rb +53 -0
- data/lib/eco/api/usecases/default_cases/change_email_case.rb +47 -0
- data/lib/eco/api/usecases/default_cases/create_details_case.rb +29 -0
- data/lib/eco/api/usecases/default_cases/create_details_with_supervisor_case.rb +49 -0
- data/lib/eco/api/usecases/default_cases/delete_case.rb +20 -0
- data/lib/eco/api/usecases/default_cases/email_as_id_case.rb +24 -0
- data/lib/eco/api/usecases/default_cases/hris_case.rb +67 -0
- data/lib/eco/api/usecases/default_cases/new_email_case.rb +26 -0
- data/lib/eco/api/usecases/default_cases/new_id_case.rb +26 -0
- data/lib/eco/api/usecases/default_cases/refresh_presets.rb +25 -0
- data/lib/eco/api/usecases/default_cases/reinvite_case.rb +22 -0
- data/lib/eco/api/usecases/default_cases/remove_account_case.rb +36 -0
- data/lib/eco/api/usecases/default_cases/reset_landing_page_case.rb +24 -0
- data/lib/eco/api/usecases/default_cases/set_default_tag_case.rb +44 -0
- data/lib/eco/api/usecases/default_cases/set_supervisor_case.rb +39 -0
- data/lib/eco/api/usecases/default_cases/to_csv_case.rb +36 -0
- data/lib/eco/api/usecases/default_cases/update_details_case.rb +30 -0
- data/lib/eco/api/usecases/default_cases/upsert_account_case.rb +35 -0
- data/lib/eco/api/usecases/use_case.rb +177 -0
- data/lib/eco/api/usecases/use_group.rb +104 -0
- data/lib/eco/cli.rb +9 -0
- data/lib/eco/cli/input.rb +109 -0
- data/lib/eco/cli/input_multi.rb +137 -0
- data/lib/eco/cli/root.rb +8 -0
- data/lib/eco/cli/session.rb +9 -0
- data/lib/eco/cli/session/batch.rb +9 -0
- data/lib/eco/common.rb +7 -0
- data/lib/eco/common/base_cli.rb +116 -0
- data/lib/eco/common/language.rb +9 -0
- data/lib/eco/data.rb +9 -0
- data/lib/eco/data/crypto.rb +7 -0
- data/lib/eco/data/crypto/encryption.rb +318 -0
- data/lib/eco/data/files.rb +10 -0
- data/lib/eco/data/files/directory.rb +93 -0
- data/lib/eco/data/files/file_pattern.rb +32 -0
- data/lib/eco/data/files/helpers.rb +90 -0
- data/lib/eco/data/mapper.rb +54 -0
- data/lib/eco/data/random.rb +10 -0
- data/lib/eco/data/random/distribution.rb +133 -0
- data/lib/eco/data/random/fake.rb +320 -0
- data/lib/eco/data/random/values.rb +80 -0
- data/lib/eco/language.rb +12 -0
- data/lib/eco/language/curry.rb +28 -0
- data/lib/eco/language/hash_transform.rb +68 -0
- data/lib/eco/language/hash_transform_modifier.rb +114 -0
- data/lib/eco/language/match.rb +30 -0
- data/lib/eco/language/match_modifier.rb +190 -0
- data/lib/eco/language/models.rb +11 -0
- data/lib/eco/language/models/attribute_parser.rb +38 -0
- data/lib/eco/language/models/collection.rb +181 -0
- data/lib/eco/language/models/modifier.rb +68 -0
- data/lib/eco/language/models/wrap.rb +114 -0
- data/lib/eco/language/values_at.rb +159 -0
- data/lib/eco/lexic/dictionary.rb +33 -0
- data/lib/eco/lexic/dictionary/dictionary.txt +355484 -0
- data/lib/eco/lexic/dictionary/tags.json +38 -0
- data/lib/eco/scripting.rb +30 -0
- data/lib/eco/scripting/README.md +11 -0
- data/lib/eco/scripting/arguments.rb +40 -0
- data/lib/eco/tester.rb +97 -0
- data/lib/eco/version.rb +3 -0
- metadata +325 -0
@@ -0,0 +1,38 @@
|
|
1
|
+
{
|
2
|
+
"CC": "Coordinating conjunction",
|
3
|
+
"CD": "Cardinal number",
|
4
|
+
"DT": "Determiner",
|
5
|
+
"EX": "Existential there",
|
6
|
+
"FW": "Foreign word",
|
7
|
+
"IN": "Preposition or subordinating conjunction",
|
8
|
+
"JJ": "Adjective",
|
9
|
+
"JJR": "Adjective, comparative",
|
10
|
+
"JJS": "Adjective, superlative",
|
11
|
+
"LS": "List item marker",
|
12
|
+
"MD": "Modal",
|
13
|
+
"NN": "Noun, singular or mass",
|
14
|
+
"NNS": "Noun, plural",
|
15
|
+
"NNP": "Proper noun, singular",
|
16
|
+
"NNPS": "Proper noun, plural",
|
17
|
+
"PDT": "Predeterminer",
|
18
|
+
"POS": "Possessive ending",
|
19
|
+
"PRP": "Personal pronoun",
|
20
|
+
"PRP$": "Possessive pronoun",
|
21
|
+
"RB": "Adverb",
|
22
|
+
"RBR": "Adverb, comparative",
|
23
|
+
"RBS": "Adverb, superlative",
|
24
|
+
"RP": "Particle",
|
25
|
+
"SYM": "Symbol",
|
26
|
+
"TO": "to",
|
27
|
+
"UH": "Interjection",
|
28
|
+
"VB": "Verb, base form",
|
29
|
+
"VBD": "Verb, past tense",
|
30
|
+
"VBG": "Verb, gerund or present participle",
|
31
|
+
"VBN": "Verb, past participle",
|
32
|
+
"VBP": "Verb, non-3rd person singular present",
|
33
|
+
"VBZ": "Verb, 3rd person singular present",
|
34
|
+
"WDT": "Wh-determiner",
|
35
|
+
"WP": "Wh-pronoun",
|
36
|
+
"WP$": "Possessive wh-pronoun",
|
37
|
+
"WRB": "Wh-adverb"
|
38
|
+
}
|
@@ -0,0 +1,30 @@
|
|
1
|
+
require_relative './scripting/arguments'
|
2
|
+
|
3
|
+
module Eco
|
4
|
+
#TODO integrate Thor to build the CLI from bottom to top on load
|
5
|
+
class Scripting
|
6
|
+
include Scripting::Lib
|
7
|
+
|
8
|
+
def args_contain?(*values)
|
9
|
+
match?(ARGV, patterns, [:any, :or, :insensitive, :pattern])
|
10
|
+
end
|
11
|
+
|
12
|
+
def modifiers(*values)
|
13
|
+
values.select { |arg| is_modifier?(arg) }
|
14
|
+
end
|
15
|
+
|
16
|
+
def args_filter_match(*values)
|
17
|
+
modifier = Eco::Language::MatchModifier.new.any.or.insensitive
|
18
|
+
patterns = modifier.to_regex(values)
|
19
|
+
params = modifiers(*ARGV)
|
20
|
+
patterns.each_with_index.reduce([]) { |done, (pat, i) |
|
21
|
+
done.push(values[i]) if Handy.match?(params, pat, modifier)
|
22
|
+
done
|
23
|
+
}
|
24
|
+
end
|
25
|
+
|
26
|
+
end
|
27
|
+
end
|
28
|
+
|
29
|
+
|
30
|
+
SCR = Eco::Scripting.new
|
@@ -0,0 +1,11 @@
|
|
1
|
+
# API Helpers Command Line Interface
|
2
|
+
|
3
|
+
The idea is to use **[Thor](http://whatisthor.com/)**
|
4
|
+
|
5
|
+
`TODO`:
|
6
|
+
|
7
|
+
* check if the unique point access can be feed by the current loading architecture, and make it fit with *Thor*
|
8
|
+
* analyze if **subcommands** can do the trick there and how
|
9
|
+
* check of **modifiers / flags** support (is it all *via subcommands*)
|
10
|
+
* implement the architecture to easily expose specific logics of the helpers
|
11
|
+
* check if the cli pipe can be used to **thor** between commands
|
@@ -0,0 +1,40 @@
|
|
1
|
+
module Eco
|
2
|
+
class Scripting
|
3
|
+
module Lib
|
4
|
+
def is_modifier?(value)
|
5
|
+
value&.start_with?("-")
|
6
|
+
end
|
7
|
+
|
8
|
+
def get_arg(key, with_param: false, valid: true)
|
9
|
+
return nil if !ARGV.include?(key)
|
10
|
+
value = true
|
11
|
+
if with_param
|
12
|
+
next_i = ARGV.index(key) + 1
|
13
|
+
value = ARGV[next_i]
|
14
|
+
#puts "modifier argument: #{value}"
|
15
|
+
value = nil if valid && is_modifier?(value)
|
16
|
+
end
|
17
|
+
return value
|
18
|
+
end
|
19
|
+
|
20
|
+
def get_file(key, required: false, should_exist: true)
|
21
|
+
filename = get_arg(key, with_param: true)
|
22
|
+
if !filename
|
23
|
+
if required
|
24
|
+
puts "you need to specify a file '#{key} file'"
|
25
|
+
exit
|
26
|
+
end
|
27
|
+
elsif !(File.exists?(filename) || File.exists?(File.expand_path(filename)))
|
28
|
+
if should_exist && required
|
29
|
+
puts "file doesn't exist #{filename}"
|
30
|
+
exit
|
31
|
+
end
|
32
|
+
end
|
33
|
+
|
34
|
+
filename = File.expand_path(filename) if filename && should_exist
|
35
|
+
filename
|
36
|
+
end
|
37
|
+
|
38
|
+
end
|
39
|
+
end
|
40
|
+
end
|
data/lib/eco/tester.rb
ADDED
@@ -0,0 +1,97 @@
|
|
1
|
+
require 'pp'
|
2
|
+
|
3
|
+
module Eco
|
4
|
+
TEST_TIMES = 5000
|
5
|
+
RANDOM = Eco::Data::Random
|
6
|
+
class Tester
|
7
|
+
include Data
|
8
|
+
|
9
|
+
def test_normal(test_times = TEST_TIMES)
|
10
|
+
pp "########## Testing Normal Distribution ###########"
|
11
|
+
generator_config = {
|
12
|
+
"range" => (1..100),
|
13
|
+
"decimals" => 0,
|
14
|
+
"balance" => 'normal'
|
15
|
+
}
|
16
|
+
generator = RANDOM::Distribution.new(generator_config)
|
17
|
+
frequency = frequency_sample(generator, test_times)
|
18
|
+
draw_frequency(frequency)
|
19
|
+
end
|
20
|
+
|
21
|
+
def test_half_normal(test_times = TEST_TIMES)
|
22
|
+
pp "########## Testing Half-Normal Distribution ###########"
|
23
|
+
generator_config = {
|
24
|
+
"range" => (1..100),
|
25
|
+
"decimals" => 0,
|
26
|
+
"balance" => 'half-normal'
|
27
|
+
}
|
28
|
+
generator = RANDOM::Distribution.new(generator_config)
|
29
|
+
frequency = frequency_sample(generator, test_times)
|
30
|
+
draw_frequency(frequency)
|
31
|
+
end
|
32
|
+
|
33
|
+
def test_forged(test_times = TEST_TIMES)
|
34
|
+
pp "########## Testing Forged Distribution ###########"
|
35
|
+
generator_config = {
|
36
|
+
"range" => (1..100),
|
37
|
+
"decimals" => 0,
|
38
|
+
"balance" => 'forged'
|
39
|
+
}
|
40
|
+
options_weight = {"One" => 10, "Two" => 5, "Three" => 2, "Four" => 1, "Five" => 1}
|
41
|
+
options_config = {
|
42
|
+
#'generator_config' => generator_config,
|
43
|
+
'options_weight' => options_weight,
|
44
|
+
'multiple' => false,
|
45
|
+
'quantity' => 2
|
46
|
+
}
|
47
|
+
|
48
|
+
generator = RANDOM::Values.new(options_config)
|
49
|
+
frequency = frequency_sample(generator, test_times)
|
50
|
+
draw_frequency(frequency)
|
51
|
+
end
|
52
|
+
|
53
|
+
private
|
54
|
+
|
55
|
+
def frequency_sample (generator, test_times = TEST_TIMES)
|
56
|
+
frequency = Hash.new {|hash, key| hash[key]=0}
|
57
|
+
test_times.times.map {
|
58
|
+
val = generator.generate
|
59
|
+
"here a nil!!" if !val
|
60
|
+
val = val.round if val.is_a? Numeric
|
61
|
+
frequency[val] += 1 if val
|
62
|
+
}
|
63
|
+
return frequency
|
64
|
+
end
|
65
|
+
|
66
|
+
def draw_frequency(frequency, generator = nil, histogram: true)
|
67
|
+
#pp frequency
|
68
|
+
vals = frequency.values
|
69
|
+
test_times = vals.inject(0, :+)
|
70
|
+
opts = vals.length
|
71
|
+
|
72
|
+
raise "no tests to show" if !test_times || test_times < 1
|
73
|
+
dimension = Math::log10(test_times)
|
74
|
+
draw_unit = (10**(dimension - 1) / (opts * 3)).round
|
75
|
+
|
76
|
+
total = 0; sum = 0
|
77
|
+
frequency.keys.sort.each do |k|
|
78
|
+
f = frequency[k]
|
79
|
+
percent = (f * 100 / test_times ).round
|
80
|
+
puts "#{k} (#{percent}/100): #{'*' * (f / draw_unit).round}" if :historgram
|
81
|
+
#puts "#{k} (#{percent}/100): #{'*' * f}" if :historgram
|
82
|
+
puts "#{k} (#{percent}/100): #{f}" if !:historgram
|
83
|
+
total += frequency[k]
|
84
|
+
v = k
|
85
|
+
v = 1 if !k.is_a? Numeric
|
86
|
+
sum += (frequency[k] * v)
|
87
|
+
end
|
88
|
+
|
89
|
+
summary = "total: #{total}; mean: #{sum / total}"
|
90
|
+
summary += "; draw unit #{draw_unit}" if :historgram
|
91
|
+
puts summary
|
92
|
+
pp "generator weights (config): #{generator.weights}" if generator
|
93
|
+
pp "generator unique (config): #{generator.unique}" if generator
|
94
|
+
end
|
95
|
+
|
96
|
+
end
|
97
|
+
end
|
data/lib/eco/version.rb
ADDED
metadata
ADDED
@@ -0,0 +1,325 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: eco-helpers
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.6.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Oscar Segura
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2018-09-05 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: rspec
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '3'
|
20
|
+
- - ">="
|
21
|
+
- !ruby/object:Gem::Version
|
22
|
+
version: '3.8'
|
23
|
+
type: :development
|
24
|
+
prerelease: false
|
25
|
+
version_requirements: !ruby/object:Gem::Requirement
|
26
|
+
requirements:
|
27
|
+
- - "~>"
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
version: '3'
|
30
|
+
- - ">="
|
31
|
+
- !ruby/object:Gem::Version
|
32
|
+
version: '3.8'
|
33
|
+
- !ruby/object:Gem::Dependency
|
34
|
+
name: ecoportal-api
|
35
|
+
requirement: !ruby/object:Gem::Requirement
|
36
|
+
requirements:
|
37
|
+
- - "~>"
|
38
|
+
- !ruby/object:Gem::Version
|
39
|
+
version: '0.3'
|
40
|
+
- - ">="
|
41
|
+
- !ruby/object:Gem::Version
|
42
|
+
version: 0.3.6
|
43
|
+
type: :runtime
|
44
|
+
prerelease: false
|
45
|
+
version_requirements: !ruby/object:Gem::Requirement
|
46
|
+
requirements:
|
47
|
+
- - "~>"
|
48
|
+
- !ruby/object:Gem::Version
|
49
|
+
version: '0.3'
|
50
|
+
- - ">="
|
51
|
+
- !ruby/object:Gem::Version
|
52
|
+
version: 0.3.6
|
53
|
+
- !ruby/object:Gem::Dependency
|
54
|
+
name: faker
|
55
|
+
requirement: !ruby/object:Gem::Requirement
|
56
|
+
requirements:
|
57
|
+
- - "~>"
|
58
|
+
- !ruby/object:Gem::Version
|
59
|
+
version: '1'
|
60
|
+
- - ">="
|
61
|
+
- !ruby/object:Gem::Version
|
62
|
+
version: '1.9'
|
63
|
+
type: :runtime
|
64
|
+
prerelease: false
|
65
|
+
version_requirements: !ruby/object:Gem::Requirement
|
66
|
+
requirements:
|
67
|
+
- - "~>"
|
68
|
+
- !ruby/object:Gem::Version
|
69
|
+
version: '1'
|
70
|
+
- - ">="
|
71
|
+
- !ruby/object:Gem::Version
|
72
|
+
version: '1.9'
|
73
|
+
- !ruby/object:Gem::Dependency
|
74
|
+
name: distribution
|
75
|
+
requirement: !ruby/object:Gem::Requirement
|
76
|
+
requirements:
|
77
|
+
- - "~>"
|
78
|
+
- !ruby/object:Gem::Version
|
79
|
+
version: '0.7'
|
80
|
+
- - ">="
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: 0.7.3
|
83
|
+
type: :runtime
|
84
|
+
prerelease: false
|
85
|
+
version_requirements: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - "~>"
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: '0.7'
|
90
|
+
- - ">="
|
91
|
+
- !ruby/object:Gem::Version
|
92
|
+
version: 0.7.3
|
93
|
+
- !ruby/object:Gem::Dependency
|
94
|
+
name: thor
|
95
|
+
requirement: !ruby/object:Gem::Requirement
|
96
|
+
requirements:
|
97
|
+
- - "~>"
|
98
|
+
- !ruby/object:Gem::Version
|
99
|
+
version: '0'
|
100
|
+
- - ">="
|
101
|
+
- !ruby/object:Gem::Version
|
102
|
+
version: '0.20'
|
103
|
+
type: :runtime
|
104
|
+
prerelease: false
|
105
|
+
version_requirements: !ruby/object:Gem::Requirement
|
106
|
+
requirements:
|
107
|
+
- - "~>"
|
108
|
+
- !ruby/object:Gem::Version
|
109
|
+
version: '0'
|
110
|
+
- - ">="
|
111
|
+
- !ruby/object:Gem::Version
|
112
|
+
version: '0.20'
|
113
|
+
- !ruby/object:Gem::Dependency
|
114
|
+
name: aws-sdk-s3
|
115
|
+
requirement: !ruby/object:Gem::Requirement
|
116
|
+
requirements:
|
117
|
+
- - "~>"
|
118
|
+
- !ruby/object:Gem::Version
|
119
|
+
version: '1.30'
|
120
|
+
- - ">="
|
121
|
+
- !ruby/object:Gem::Version
|
122
|
+
version: 1.30.1
|
123
|
+
type: :runtime
|
124
|
+
prerelease: false
|
125
|
+
version_requirements: !ruby/object:Gem::Requirement
|
126
|
+
requirements:
|
127
|
+
- - "~>"
|
128
|
+
- !ruby/object:Gem::Version
|
129
|
+
version: '1.30'
|
130
|
+
- - ">="
|
131
|
+
- !ruby/object:Gem::Version
|
132
|
+
version: 1.30.1
|
133
|
+
- !ruby/object:Gem::Dependency
|
134
|
+
name: aws-sdk-ses
|
135
|
+
requirement: !ruby/object:Gem::Requirement
|
136
|
+
requirements:
|
137
|
+
- - "~>"
|
138
|
+
- !ruby/object:Gem::Version
|
139
|
+
version: '1.14'
|
140
|
+
- - ">="
|
141
|
+
- !ruby/object:Gem::Version
|
142
|
+
version: 1.14.0
|
143
|
+
type: :runtime
|
144
|
+
prerelease: false
|
145
|
+
version_requirements: !ruby/object:Gem::Requirement
|
146
|
+
requirements:
|
147
|
+
- - "~>"
|
148
|
+
- !ruby/object:Gem::Version
|
149
|
+
version: '1.14'
|
150
|
+
- - ">="
|
151
|
+
- !ruby/object:Gem::Version
|
152
|
+
version: 1.14.0
|
153
|
+
- !ruby/object:Gem::Dependency
|
154
|
+
name: dotenv
|
155
|
+
requirement: !ruby/object:Gem::Requirement
|
156
|
+
requirements:
|
157
|
+
- - "~>"
|
158
|
+
- !ruby/object:Gem::Version
|
159
|
+
version: '2.6'
|
160
|
+
- - ">="
|
161
|
+
- !ruby/object:Gem::Version
|
162
|
+
version: 2.6.0
|
163
|
+
type: :runtime
|
164
|
+
prerelease: false
|
165
|
+
version_requirements: !ruby/object:Gem::Requirement
|
166
|
+
requirements:
|
167
|
+
- - "~>"
|
168
|
+
- !ruby/object:Gem::Version
|
169
|
+
version: '2.6'
|
170
|
+
- - ">="
|
171
|
+
- !ruby/object:Gem::Version
|
172
|
+
version: 2.6.0
|
173
|
+
description:
|
174
|
+
email:
|
175
|
+
- oscar@ecoportal.co.nz
|
176
|
+
executables: []
|
177
|
+
extensions: []
|
178
|
+
extra_rdoc_files: []
|
179
|
+
files:
|
180
|
+
- ".gitignore"
|
181
|
+
- ".rspec"
|
182
|
+
- README.md
|
183
|
+
- eco-helpers.gemspec
|
184
|
+
- lib/eco-helpers.rb
|
185
|
+
- lib/eco/api.rb
|
186
|
+
- lib/eco/api/common.rb
|
187
|
+
- lib/eco/api/common/people.rb
|
188
|
+
- lib/eco/api/common/people/base_parser.rb
|
189
|
+
- lib/eco/api/common/people/default_parsers.rb
|
190
|
+
- lib/eco/api/common/people/default_parsers/boolean_parser.rb
|
191
|
+
- lib/eco/api/common/people/default_parsers/date_parser.rb
|
192
|
+
- lib/eco/api/common/people/default_parsers/multi_parser.rb
|
193
|
+
- lib/eco/api/common/people/default_parsers/numeric_parser.rb
|
194
|
+
- lib/eco/api/common/people/default_parsers/select_parser.rb
|
195
|
+
- lib/eco/api/common/people/entries.rb
|
196
|
+
- lib/eco/api/common/people/person_entry.rb
|
197
|
+
- lib/eco/api/common/people/person_factory.rb
|
198
|
+
- lib/eco/api/common/people/person_modifier.rb
|
199
|
+
- lib/eco/api/common/people/person_parser.rb
|
200
|
+
- lib/eco/api/common/people/types.rb
|
201
|
+
- lib/eco/api/common/session.rb
|
202
|
+
- lib/eco/api/common/session/base_session.rb
|
203
|
+
- lib/eco/api/common/session/environment.rb
|
204
|
+
- lib/eco/api/common/session/file_manager.rb
|
205
|
+
- lib/eco/api/common/session/logger.rb
|
206
|
+
- lib/eco/api/common/session/mailer.rb
|
207
|
+
- lib/eco/api/common/session/s3_uploader.rb
|
208
|
+
- lib/eco/api/common/version_patches.rb
|
209
|
+
- lib/eco/api/common/version_patches/external_person.rb
|
210
|
+
- lib/eco/api/eco_faker.rb
|
211
|
+
- lib/eco/api/organization.rb
|
212
|
+
- lib/eco/api/organization/account.rb
|
213
|
+
- lib/eco/api/organization/people.rb
|
214
|
+
- lib/eco/api/organization/policy_groups.rb
|
215
|
+
- lib/eco/api/organization/preferences.rb
|
216
|
+
- lib/eco/api/organization/preferences_reference.json
|
217
|
+
- lib/eco/api/organization/presets.rb
|
218
|
+
- lib/eco/api/organization/presets_backup.rb
|
219
|
+
- lib/eco/api/organization/presets_values.json
|
220
|
+
- lib/eco/api/organization/tag_tree.rb
|
221
|
+
- lib/eco/api/organization_old.rb
|
222
|
+
- lib/eco/api/session.rb
|
223
|
+
- lib/eco/api/session/batch.rb
|
224
|
+
- lib/eco/api/session/batch_job.rb
|
225
|
+
- lib/eco/api/session/batch_jobs.rb
|
226
|
+
- lib/eco/api/session/batch_status.rb
|
227
|
+
- lib/eco/api/session/task.rb
|
228
|
+
- lib/eco/api/session_config.rb
|
229
|
+
- lib/eco/api/session_config/api.rb
|
230
|
+
- lib/eco/api/session_config/apis.rb
|
231
|
+
- lib/eco/api/session_config/files.rb
|
232
|
+
- lib/eco/api/session_config/logger.rb
|
233
|
+
- lib/eco/api/session_config/mailer.rb
|
234
|
+
- lib/eco/api/session_config/people.rb
|
235
|
+
- lib/eco/api/session_config/s3_bucket.rb
|
236
|
+
- lib/eco/api/session_config/use_cases.rb
|
237
|
+
- lib/eco/api/usecases.rb
|
238
|
+
- lib/eco/api/usecases/base_case.rb
|
239
|
+
- lib/eco/api/usecases/case_data.rb
|
240
|
+
- lib/eco/api/usecases/default_cases.rb
|
241
|
+
- lib/eco/api/usecases/default_cases/change_email_case.rb
|
242
|
+
- lib/eco/api/usecases/default_cases/create_details_case.rb
|
243
|
+
- lib/eco/api/usecases/default_cases/create_details_with_supervisor_case.rb
|
244
|
+
- lib/eco/api/usecases/default_cases/delete_case.rb
|
245
|
+
- lib/eco/api/usecases/default_cases/email_as_id_case.rb
|
246
|
+
- lib/eco/api/usecases/default_cases/hris_case.rb
|
247
|
+
- lib/eco/api/usecases/default_cases/new_email_case.rb
|
248
|
+
- lib/eco/api/usecases/default_cases/new_id_case.rb
|
249
|
+
- lib/eco/api/usecases/default_cases/refresh_presets.rb
|
250
|
+
- lib/eco/api/usecases/default_cases/reinvite_case.rb
|
251
|
+
- lib/eco/api/usecases/default_cases/remove_account_case.rb
|
252
|
+
- lib/eco/api/usecases/default_cases/reset_landing_page_case.rb
|
253
|
+
- lib/eco/api/usecases/default_cases/set_default_tag_case.rb
|
254
|
+
- lib/eco/api/usecases/default_cases/set_supervisor_case.rb
|
255
|
+
- lib/eco/api/usecases/default_cases/to_csv_case.rb
|
256
|
+
- lib/eco/api/usecases/default_cases/update_details_case.rb
|
257
|
+
- lib/eco/api/usecases/default_cases/upsert_account_case.rb
|
258
|
+
- lib/eco/api/usecases/use_case.rb
|
259
|
+
- lib/eco/api/usecases/use_group.rb
|
260
|
+
- lib/eco/cli.rb
|
261
|
+
- lib/eco/cli/input.rb
|
262
|
+
- lib/eco/cli/input_multi.rb
|
263
|
+
- lib/eco/cli/root.rb
|
264
|
+
- lib/eco/cli/session.rb
|
265
|
+
- lib/eco/cli/session/batch.rb
|
266
|
+
- lib/eco/common.rb
|
267
|
+
- lib/eco/common/base_cli.rb
|
268
|
+
- lib/eco/common/language.rb
|
269
|
+
- lib/eco/data.rb
|
270
|
+
- lib/eco/data/crypto.rb
|
271
|
+
- lib/eco/data/crypto/encryption.rb
|
272
|
+
- lib/eco/data/files.rb
|
273
|
+
- lib/eco/data/files/directory.rb
|
274
|
+
- lib/eco/data/files/file_pattern.rb
|
275
|
+
- lib/eco/data/files/helpers.rb
|
276
|
+
- lib/eco/data/mapper.rb
|
277
|
+
- lib/eco/data/random.rb
|
278
|
+
- lib/eco/data/random/distribution.rb
|
279
|
+
- lib/eco/data/random/fake.rb
|
280
|
+
- lib/eco/data/random/values.rb
|
281
|
+
- lib/eco/language.rb
|
282
|
+
- lib/eco/language/curry.rb
|
283
|
+
- lib/eco/language/hash_transform.rb
|
284
|
+
- lib/eco/language/hash_transform_modifier.rb
|
285
|
+
- lib/eco/language/match.rb
|
286
|
+
- lib/eco/language/match_modifier.rb
|
287
|
+
- lib/eco/language/models.rb
|
288
|
+
- lib/eco/language/models/attribute_parser.rb
|
289
|
+
- lib/eco/language/models/collection.rb
|
290
|
+
- lib/eco/language/models/modifier.rb
|
291
|
+
- lib/eco/language/models/wrap.rb
|
292
|
+
- lib/eco/language/values_at.rb
|
293
|
+
- lib/eco/lexic/dictionary.rb
|
294
|
+
- lib/eco/lexic/dictionary/dictionary.txt
|
295
|
+
- lib/eco/lexic/dictionary/tags.json
|
296
|
+
- lib/eco/scripting.rb
|
297
|
+
- lib/eco/scripting/README.md
|
298
|
+
- lib/eco/scripting/arguments.rb
|
299
|
+
- lib/eco/tester.rb
|
300
|
+
- lib/eco/version.rb
|
301
|
+
homepage: https://www.ecoportal.com
|
302
|
+
licenses:
|
303
|
+
- MIT
|
304
|
+
metadata: {}
|
305
|
+
post_install_message:
|
306
|
+
rdoc_options: []
|
307
|
+
require_paths:
|
308
|
+
- lib
|
309
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
310
|
+
requirements:
|
311
|
+
- - ">="
|
312
|
+
- !ruby/object:Gem::Version
|
313
|
+
version: '0'
|
314
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
315
|
+
requirements:
|
316
|
+
- - ">="
|
317
|
+
- !ruby/object:Gem::Version
|
318
|
+
version: '0'
|
319
|
+
requirements: []
|
320
|
+
rubyforge_project:
|
321
|
+
rubygems_version: 2.6.14.1
|
322
|
+
signing_key:
|
323
|
+
specification_version: 4
|
324
|
+
summary: eco-helpers to manage people api cases
|
325
|
+
test_files: []
|