tax_generator 0.0.5 → 0.0.6
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.
- checksums.yaml +4 -4
- data/.codeclimate.yml +26 -0
- data/Rakefile +1 -1
- data/lib/tax_generator/classes/processor.rb +2 -2
- data/lib/tax_generator/version.rb +1 -1
- metadata +2 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: be51279849d660421f0372979e25820cd47addaf
|
4
|
+
data.tar.gz: e766df14198f96a20e6531f5b6c8074efa93ab12
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f2c28741d3c03190d064d771f83e6b89e831581d28693902b224416e06ce755583c3f799d5eee7be62baba83d8f70015f4396afd523f82d5ae568dd1f4177455
|
7
|
+
data.tar.gz: db926270f7f0a75b7b1f9bc7d0d753ba0161fc2a3b219a425eeea8f3a2f89750e54120fa472ffa3a0771247615570f1c153a77cac59bb40a9a23c95eb582e9ef
|
data/.codeclimate.yml
ADDED
@@ -0,0 +1,26 @@
|
|
1
|
+
---
|
2
|
+
engines:
|
3
|
+
bundler-audit:
|
4
|
+
enabled: false
|
5
|
+
csslint:
|
6
|
+
enabled: true
|
7
|
+
eslint:
|
8
|
+
enabled: true
|
9
|
+
fixme:
|
10
|
+
enabled: true
|
11
|
+
rubocop:
|
12
|
+
enabled: true
|
13
|
+
ratings:
|
14
|
+
paths:
|
15
|
+
- Gemfile.lock
|
16
|
+
- "**.css"
|
17
|
+
- "**.js"
|
18
|
+
- "**.jsx"
|
19
|
+
- "**.rb"
|
20
|
+
exclude_paths:
|
21
|
+
- spec/**/*
|
22
|
+
- "**.css"
|
23
|
+
- test/**/*
|
24
|
+
- vendor/**/*
|
25
|
+
- bin/**/*
|
26
|
+
- .codeclimate.yml
|
data/Rakefile
CHANGED
@@ -22,5 +22,5 @@ task default: [:all]
|
|
22
22
|
|
23
23
|
desc 'Test the plugin under all supported Rails versions.'
|
24
24
|
task :all do |_t|
|
25
|
-
|
25
|
+
exec('bundle exec rubocop . && bundle exec inch --pedantic && bundle exec yard && bundle exec rake spec')
|
26
26
|
end
|
@@ -51,6 +51,7 @@ module TaxGenerator
|
|
51
51
|
@jobs = {}
|
52
52
|
@job_to_worker = {}
|
53
53
|
@worker_to_job = {}
|
54
|
+
@condition = Celluloid::Condition.new
|
54
55
|
end
|
55
56
|
|
56
57
|
# returns the input folder from the options list
|
@@ -197,10 +198,8 @@ module TaxGenerator
|
|
197
198
|
#
|
198
199
|
# @api public
|
199
200
|
def generate_files
|
200
|
-
@condition = Celluloid::Condition.new
|
201
201
|
jobs = fetch_file_jobs
|
202
202
|
delegate_job(*jobs)
|
203
|
-
wait_jobs_termination
|
204
203
|
end
|
205
204
|
|
206
205
|
# retrieves the information about the node from the tree and generates for each destination a new File
|
@@ -246,6 +245,7 @@ module TaxGenerator
|
|
246
245
|
@taxonomy = TaxGenerator::TaxonomyTree.new(taxonomy_file_path)
|
247
246
|
@taxonomy.print_tree
|
248
247
|
generate_files
|
248
|
+
async.wait_jobs_termination
|
249
249
|
else
|
250
250
|
log_message('Please provide valid options', log_method: 'fatal')
|
251
251
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tax_generator
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- bogdanRada
|
@@ -398,6 +398,7 @@ executables:
|
|
398
398
|
extensions: []
|
399
399
|
extra_rdoc_files: []
|
400
400
|
files:
|
401
|
+
- ".codeclimate.yml"
|
401
402
|
- ".gitignore"
|
402
403
|
- ".inch.yml"
|
403
404
|
- ".reek"
|