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 +4 -4
- data/Rakefile +1 -1
- data/lib/tax_generator/all.rb +1 -1
- data/lib/tax_generator/classes/file_creator.rb +2 -1
- data/lib/tax_generator/classes/processor.rb +0 -2
- data/lib/tax_generator/initializers/celluloid.rb +4 -0
- data/lib/tax_generator/version.rb +1 -1
- data/tax_generator.gemspec +1 -0
- metadata +23 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8a952e173eb8049331395658dc19e40e4ee74b07
|
4
|
+
data.tar.gz: 22087f7e77f4eacc55a420c3ba17b86718114c4a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 59b5c999f7c7a3f21c8300b87e11de631af90dbebb78c0db8d6b75e35f0859e7ed699d4028be44133c9cf9c23f4070a7ef150c31a72b3d858b0f8a29f84d8b6e
|
7
|
+
data.tar.gz: 85f08ed10cc178fdcec6073be700a7cec4f86af4191e174d4e4d3e949fcb40300d8c9015c1b1264925d3db6c8a5af6cceca0f653a699d6de8702f3ebcae08f6c
|
data/Rakefile
CHANGED
data/lib/tax_generator/all.rb
CHANGED
@@ -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
|
-
|
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
|
data/tax_generator.gemspec
CHANGED
@@ -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.
|
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-
|
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
|