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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c69edc821562f045beda80e1fa90b94c8b9233fc
4
- data.tar.gz: 88ae9c47cb2ad46991ca7bf2893d3d835fd2dbc9
3
+ metadata.gz: be51279849d660421f0372979e25820cd47addaf
4
+ data.tar.gz: e766df14198f96a20e6531f5b6c8074efa93ab12
5
5
  SHA512:
6
- metadata.gz: ec7b13f29a6f87d944125fead6034e87af8375b459b23a4a229a3a9dc3404709df4d9563132ad1aa4b2ebb560c8a0501ec0165580c34617275dc62518cad47ea
7
- data.tar.gz: 83f00a0ccdb4a0030451476bc0e6996ac5ef5a80a1fcaa47c6a15a13f18d94477728b2439c0b19a3a6348362e53209200aea9874d008bcc097bfa917a6e6238a
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
- exec('bundle exec rubocop . && bundle exec inch --pedantic && bundle exec yard && bundle exec rake spec')
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
@@ -17,7 +17,7 @@ module TaxGenerator
17
17
  # minor release version
18
18
  MINOR = 0
19
19
  # tiny release version
20
- TINY = 5
20
+ TINY = 6
21
21
  # prelease version ( set this only if it is a prelease)
22
22
  PRE = nil
23
23
 
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.5
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"