tax_generator 0.0.2 → 0.0.3

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
  SHA1:
3
- metadata.gz: cffa86514442a851ade6e7cf978ce5440755f1b6
4
- data.tar.gz: 380ad445278f3f0b4211a382053f6f6b2e10749c
3
+ metadata.gz: 8a952e173eb8049331395658dc19e40e4ee74b07
4
+ data.tar.gz: 22087f7e77f4eacc55a420c3ba17b86718114c4a
5
5
  SHA512:
6
- metadata.gz: e9afefc598b039a053c0b637c61de71b2a3070d806e7a2bee656fd0b1b467a5747f1ec25237a287736d86bf9aa03e6298f663a2889aa6e5bce8b43d965ae5b2e
7
- data.tar.gz: 414e8c80b3fdb917f57675f33ebbc527a5f31a6eabeda8dce261ebb242f1140508f1b6c0b5a2fc9b0fde815ea534ab112f91f92b4f7118f6cb3b607a61fb2b84
6
+ metadata.gz: 59b5c999f7c7a3f21c8300b87e11de631af90dbebb78c0db8d6b75e35f0859e7ed699d4028be44133c9cf9c23f4070a7ef150c31a72b3d858b0f8a29f84d8b6e
7
+ data.tar.gz: 85f08ed10cc178fdcec6073be700a7cec4f86af4191e174d4e4d3e949fcb40300d8c9015c1b1264925d3db6c8a5af6cceca0f653a699d6de8702f3ebcae08f6c
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 rake spec')
25
+ exec('bundle exec rubocop . && bundle exec inch --pedantic && bundle exec yard && bundle exec rake spec')
26
26
  end
@@ -20,7 +20,7 @@ require 'erb'
20
20
  require 'tilt'
21
21
  require 'tilt/erb'
22
22
 
23
- %w(classes helpers).each do |folder_name|
23
+ %w(classes helpers initializers).each do |folder_name|
24
24
  Gem.find_files("tax_generator/#{folder_name}/**/*.rb").each { |path| require path }
25
25
  end
26
26
  require_relative './application'
@@ -82,7 +82,8 @@ module TaxGenerator
82
82
  # @api public
83
83
  def mark_job_completed
84
84
  @processor.jobs[@job_id]['status'] = 'finished'
85
- @processor.condition.signal('completed') if @processor.alive? && @processor.all_workers_finished?
85
+ return if !@processor.alive? || !@processor.all_workers_finished?
86
+ @processor.condition.signal('completed') if @processor.condition.waiters.present?
86
87
  end
87
88
 
88
89
  # fetches the details needed to be passed to the erb template
@@ -206,8 +206,6 @@ module TaxGenerator
206
206
  # retrieves the information about the node from the tree and generates for each destination a new File
207
207
  # @see #create_file
208
208
  #
209
- # @param [TaxGenerator::TaxonomyTree] taxonomy the taxonomy tree that will be used for fetching node information
210
- #
211
209
  # @return [void]
212
210
  #
213
211
  # @api public
@@ -0,0 +1,4 @@
1
+ Celluloid::Condition.class_eval do
2
+ attr_reader :waiters
3
+
4
+ end
@@ -17,7 +17,7 @@ module TaxGenerator
17
17
  # minor release version
18
18
  MINOR = 0
19
19
  # tiny release version
20
- TINY = 2
20
+ TINY = 3
21
21
  # prelease version ( set this only if it is a prelease)
22
22
  PRE = nil
23
23
 
@@ -37,4 +37,5 @@ Gem::Specification.new do |s|
37
37
  s.add_development_dependency 'yard-rspec', '~> 0.1', '>= 0.1'
38
38
  s.add_development_dependency 'redcarpet', '~> 3.3', '>= 3.3'
39
39
  s.add_development_dependency 'github-markup', '~> 1.3', '>= 1.3.3'
40
+ s.add_development_dependency 'inch', '~> 0.6', '>= 0.6'
40
41
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tax_generator
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - bogdanRada
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-12-16 00:00:00.000000000 Z
11
+ date: 2015-12-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: nokogiri
@@ -370,6 +370,26 @@ dependencies:
370
370
  - - ">="
371
371
  - !ruby/object:Gem::Version
372
372
  version: 1.3.3
373
+ - !ruby/object:Gem::Dependency
374
+ name: inch
375
+ requirement: !ruby/object:Gem::Requirement
376
+ requirements:
377
+ - - "~>"
378
+ - !ruby/object:Gem::Version
379
+ version: '0.6'
380
+ - - ">="
381
+ - !ruby/object:Gem::Version
382
+ version: '0.6'
383
+ type: :development
384
+ prerelease: false
385
+ version_requirements: !ruby/object:Gem::Requirement
386
+ requirements:
387
+ - - "~>"
388
+ - !ruby/object:Gem::Version
389
+ version: '0.6'
390
+ - - ">="
391
+ - !ruby/object:Gem::Version
392
+ version: '0.6'
373
393
  description: Tax generator is a simple XML processor and generator of HTMl files and
374
394
  uses celluloid to generate files in asyncronous way
375
395
  email: raoul_ice@yahoo.com
@@ -402,6 +422,7 @@ files:
402
422
  - lib/tax_generator/classes/taxonomy_tree.rb
403
423
  - lib/tax_generator/cli.rb
404
424
  - lib/tax_generator/helpers/application_helper.rb
425
+ - lib/tax_generator/initializers/celluloid.rb
405
426
  - lib/tax_generator/version.rb
406
427
  - spec/lib/tax_generator/application_spec.rb
407
428
  - spec/lib/tax_generator/classes/destination_spec.rb