doc_generation_wrapper 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.coveralls.yml +1 -0
- data/.gitignore +22 -0
- data/.rspec +3 -0
- data/.ruby-gemset +1 -0
- data/.ruby-version +1 -0
- data/.travis.yml +3 -0
- data/CHANGELOG.md +19 -0
- data/Gemfile +8 -0
- data/LICENSE.txt +22 -0
- data/README.md +50 -0
- data/Rakefile +13 -0
- data/doc_generation_wrapper.gemspec +26 -0
- data/lib/doc_generation_wrapper/adapters/abstract.rb +15 -0
- data/lib/doc_generation_wrapper/adapters/base.rb +24 -0
- data/lib/doc_generation_wrapper/adapters/doc_raptor_adapter.rb +21 -0
- data/lib/doc_generation_wrapper/adapters/doc_raptor_service/command.rb +16 -0
- data/lib/doc_generation_wrapper/adapters/doc_raptor_service/proxy.rb +32 -0
- data/lib/doc_generation_wrapper/adapters/doc_raptor_service/query.rb +14 -0
- data/lib/doc_generation_wrapper/adapters/prince_xml_adapter.rb +20 -0
- data/lib/doc_generation_wrapper/adapters/prince_xml_service/command.rb +24 -0
- data/lib/doc_generation_wrapper/adapters/prince_xml_service/query.rb +24 -0
- data/lib/doc_generation_wrapper/configuration.rb +10 -0
- data/lib/doc_generation_wrapper/version.rb +3 -0
- data/lib/doc_generation_wrapper.rb +39 -0
- data/spec/doc_generation_wrapper/configuration_spec.rb +21 -0
- data/spec/doc_generation_wrapper_spec.rb +40 -0
- data/spec/spec_helper.rb +16 -0
- metadata +145 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 47b79894b631a05f7be60adf2840b44836dc09c1
|
4
|
+
data.tar.gz: a7f9bc06b60667a92b80903e87922d07376d40b9
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 316001e37e7ed1c034e13606574289b6953cd06a8f131dd8dc105fd98f6c2a2222043ec4095dbb55c15b0289d417916d23310b600b910b03af8a2243c24ea57e
|
7
|
+
data.tar.gz: bad10be0447cf0b48f0c37b903af827589f89b9df60c43ba918d513695f810634a2eba194a4eaac8732ec76cbf3150b3113149f0640b1bb0335556240faa34a5
|
data/.coveralls.yml
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
service_name: travis-ci
|
data/.gitignore
ADDED
@@ -0,0 +1,22 @@
|
|
1
|
+
*.gem
|
2
|
+
*.rbc
|
3
|
+
.bundle
|
4
|
+
.config
|
5
|
+
.yardoc
|
6
|
+
Gemfile.lock
|
7
|
+
InstalledFiles
|
8
|
+
_yardoc
|
9
|
+
coverage
|
10
|
+
doc/
|
11
|
+
lib/bundler/man
|
12
|
+
pkg
|
13
|
+
rdoc
|
14
|
+
spec/reports
|
15
|
+
test/tmp
|
16
|
+
test/version_tmp
|
17
|
+
tmp
|
18
|
+
*.bundle
|
19
|
+
*.so
|
20
|
+
*.o
|
21
|
+
*.a
|
22
|
+
mkmf.log
|
data/.rspec
ADDED
data/.ruby-gemset
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
doc_generation_wrapper
|
data/.ruby-version
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
2.1.2
|
data/.travis.yml
ADDED
data/CHANGELOG.md
ADDED
data/Gemfile
ADDED
data/LICENSE.txt
ADDED
@@ -0,0 +1,22 @@
|
|
1
|
+
Copyright (c) 2014 Joel AZEMAR
|
2
|
+
|
3
|
+
MIT License
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
6
|
+
a copy of this software and associated documentation files (the
|
7
|
+
"Software"), to deal in the Software without restriction, including
|
8
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
9
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
10
|
+
permit persons to whom the Software is furnished to do so, subject to
|
11
|
+
the following conditions:
|
12
|
+
|
13
|
+
The above copyright notice and this permission notice shall be
|
14
|
+
included in all copies or substantial portions of the Software.
|
15
|
+
|
16
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
17
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
18
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
19
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
20
|
+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
21
|
+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
22
|
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,50 @@
|
|
1
|
+
# DocGenerationWrapper
|
2
|
+
|
3
|
+
DocGenerationWrapper is a library permit to abstract call for document generation, when you use DocRaptor for generate docuementation from HTML to PDF or XLS, but you want make generation faster on local machine, don't call DocRaptor service every time you develop, this library permit to switch on local generation and keep DocRaptor behavior on production.
|
4
|
+
|
5
|
+
This library is simple adapter pattern for switching on local generation document service, you can install and run the service https://github.com/FinalCAD/doc_generation_service for locale use.
|
6
|
+
|
7
|
+
## Installation
|
8
|
+
|
9
|
+
Add this line to your application's Gemfile:
|
10
|
+
|
11
|
+
gem 'doc_generation_wrapper'
|
12
|
+
|
13
|
+
And then execute:
|
14
|
+
|
15
|
+
$ bundle
|
16
|
+
|
17
|
+
Or install it yourself as:
|
18
|
+
|
19
|
+
$ gem install doc_generation_wrapper
|
20
|
+
|
21
|
+
## Usage
|
22
|
+
|
23
|
+
## Rails
|
24
|
+
|
25
|
+
You can add file on app/config/initializers/doc_generation_wrapper.rb
|
26
|
+
|
27
|
+
locale use with PrinceXML Service
|
28
|
+
|
29
|
+
```
|
30
|
+
DocGenerationWrapper.configure do |config|
|
31
|
+
config.adapter = :prince_xml
|
32
|
+
config.service_host = 'http://0.0.0.0:5000'
|
33
|
+
end
|
34
|
+
```
|
35
|
+
|
36
|
+
Production use with DocRaptor
|
37
|
+
|
38
|
+
```
|
39
|
+
DocGenerationWrapper.configure do |config|
|
40
|
+
config.adapter = :doc_raptor
|
41
|
+
end
|
42
|
+
```
|
43
|
+
|
44
|
+
## Contributing
|
45
|
+
|
46
|
+
1. Fork it ( https://github.com/[my-github-username]/doc_generation_wrapper/fork )
|
47
|
+
2. Create your feature branch (`git checkout -b my-new-feature`)
|
48
|
+
3. Commit your changes (`git commit -am 'Add some feature'`)
|
49
|
+
4. Push to the branch (`git push origin my-new-feature`)
|
50
|
+
5. Create a new Pull Request
|
data/Rakefile
ADDED
@@ -0,0 +1,13 @@
|
|
1
|
+
require 'rubygems'
|
2
|
+
require 'bundler/setup'
|
3
|
+
|
4
|
+
require 'bundler/gem_tasks'
|
5
|
+
|
6
|
+
require 'rake'
|
7
|
+
require 'rspec'
|
8
|
+
|
9
|
+
require_relative 'lib/doc_generation_wrapper'
|
10
|
+
|
11
|
+
require 'rspec/core/rake_task'
|
12
|
+
RSpec::Core::RakeTask.new('spec')
|
13
|
+
task default: :spec
|
@@ -0,0 +1,26 @@
|
|
1
|
+
require_relative 'lib/doc_generation_wrapper/version'
|
2
|
+
|
3
|
+
Gem::Specification.new do |spec|
|
4
|
+
spec.name = 'doc_generation_wrapper'
|
5
|
+
spec.version = DocGenerationWrapper::VERSION
|
6
|
+
spec.authors = ['Joel AZEMAR']
|
7
|
+
spec.email = ['joel.azemar@gmail.com']
|
8
|
+
spec.summary = %q{Wrapper for DocRaptor or Local PrinceXML generation}
|
9
|
+
spec.description = %q{Wrapper for DocRaptor or Local PrinceXML generation of document, purpose is help to develop quickly}
|
10
|
+
spec.homepage = 'https://github.com/FinalCAD/doc_generation_wrapper'
|
11
|
+
spec.license = 'MIT'
|
12
|
+
|
13
|
+
spec.files = `git ls-files -z`.split("\x0")
|
14
|
+
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
|
15
|
+
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
16
|
+
spec.require_paths = ['lib']
|
17
|
+
|
18
|
+
spec.add_development_dependency 'bundler', '~> 1.6'
|
19
|
+
spec.add_development_dependency 'rake', '~> 10.3'
|
20
|
+
spec.add_development_dependency 'rspec', '~> 2.14'
|
21
|
+
|
22
|
+
spec.add_dependency 'doc_raptor', '~> 0.3.2'
|
23
|
+
spec.add_dependency 'json', '~> 1.8'
|
24
|
+
|
25
|
+
spec.required_ruby_version = '~> 2.1'
|
26
|
+
end
|
@@ -0,0 +1,24 @@
|
|
1
|
+
module DocGenerationWrapper
|
2
|
+
module Adapter
|
3
|
+
class Base
|
4
|
+
|
5
|
+
class UnsupportedAdapter < StandardError ; end
|
6
|
+
|
7
|
+
def self.create adapter_name
|
8
|
+
load "doc_generation_wrapper/adapters/#{adapter_name}_adapter.rb"
|
9
|
+
DocGenerationWrapper::Adapter.const_get(klass_adapter(adapter_name)).new
|
10
|
+
end
|
11
|
+
|
12
|
+
private
|
13
|
+
|
14
|
+
def self.klass_adapter adapter_symbol
|
15
|
+
case adapter_symbol
|
16
|
+
when :doc_raptor then :DocRaptorAdapter
|
17
|
+
when :prince_xml then :PrinceXmlAdapter
|
18
|
+
else raise UnsupportedAdapter.new
|
19
|
+
end
|
20
|
+
end
|
21
|
+
|
22
|
+
end
|
23
|
+
end
|
24
|
+
end
|
@@ -0,0 +1,21 @@
|
|
1
|
+
require_relative 'abstract'
|
2
|
+
|
3
|
+
require_relative 'doc_raptor_service/proxy'
|
4
|
+
require_relative 'doc_raptor_service/command'
|
5
|
+
require_relative 'doc_raptor_service/query'
|
6
|
+
|
7
|
+
module DocGenerationWrapper
|
8
|
+
module Adapter
|
9
|
+
class DocRaptorAdapter < Abstract
|
10
|
+
|
11
|
+
def create! options, &respond_callback
|
12
|
+
DocRaptorService::Command.new.create! options, &respond_callback
|
13
|
+
end
|
14
|
+
|
15
|
+
def status status_id
|
16
|
+
DocRaptorService::Query.new.status status_id
|
17
|
+
end
|
18
|
+
|
19
|
+
end
|
20
|
+
end
|
21
|
+
end
|
@@ -0,0 +1,16 @@
|
|
1
|
+
module DocGenerationWrapper
|
2
|
+
module Adapter
|
3
|
+
module DocRaptorService
|
4
|
+
|
5
|
+
class Command
|
6
|
+
|
7
|
+
def create! options, &respond_callback
|
8
|
+
Proxy.create! options
|
9
|
+
respond_callback.call Proxy.status_id if block_given?
|
10
|
+
nil
|
11
|
+
end
|
12
|
+
|
13
|
+
end
|
14
|
+
end
|
15
|
+
end
|
16
|
+
end
|
@@ -0,0 +1,32 @@
|
|
1
|
+
require 'doc_raptor'
|
2
|
+
|
3
|
+
module DocGenerationWrapper
|
4
|
+
module Adapter
|
5
|
+
module DocRaptorService
|
6
|
+
module Proxy
|
7
|
+
extend self
|
8
|
+
|
9
|
+
def method_missing method, *args
|
10
|
+
tries = 0
|
11
|
+
begin
|
12
|
+
DocRaptor.send method, *args
|
13
|
+
rescue Errno::ETIMEDOUT, Errno::ENOENT, Errno::ECONNRESET, Timeout::Error
|
14
|
+
(tries += 1) < 3 ? retry : raise
|
15
|
+
rescue DocRaptorException::DocumentCreationFailure => exception
|
16
|
+
if exception.message.match(/Too many simultaneous document requests/) && (tries+=1) < 5
|
17
|
+
wait_before_retrying && retry
|
18
|
+
else
|
19
|
+
raise
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|
23
|
+
|
24
|
+
def wait_before_retrying
|
25
|
+
Rails.logger.error '[DocGen] Docraptor can\'t accept more than 5 concurrent requests (auto-retry)'
|
26
|
+
sleep 5
|
27
|
+
end
|
28
|
+
|
29
|
+
end
|
30
|
+
end
|
31
|
+
end
|
32
|
+
end
|
@@ -0,0 +1,20 @@
|
|
1
|
+
require_relative 'abstract'
|
2
|
+
|
3
|
+
require_relative 'prince_xml_service/command'
|
4
|
+
require_relative 'prince_xml_service/query'
|
5
|
+
|
6
|
+
module DocGenerationWrapper
|
7
|
+
module Adapter
|
8
|
+
class PrinceXmlAdapter < Abstract
|
9
|
+
|
10
|
+
def create! options, &respond_callback
|
11
|
+
PrinceXmlService::Command.new.create! options, &respond_callback
|
12
|
+
end
|
13
|
+
|
14
|
+
def status status_id
|
15
|
+
PrinceXmlService::Query.new.status status_id
|
16
|
+
end
|
17
|
+
|
18
|
+
end
|
19
|
+
end
|
20
|
+
end
|
@@ -0,0 +1,24 @@
|
|
1
|
+
require 'rest-client'
|
2
|
+
|
3
|
+
module DocGenerationWrapper
|
4
|
+
module Adapter
|
5
|
+
module PrinceXmlService
|
6
|
+
|
7
|
+
class Command
|
8
|
+
|
9
|
+
def create! options, &respond_callback
|
10
|
+
headers = {}
|
11
|
+
host = DocGenerationWrapper.configuration.service_host
|
12
|
+
url = host + '/docs'
|
13
|
+
|
14
|
+
request = RestClient::Request.new(method: :post, url: url, payload: options, headers: headers)
|
15
|
+
response = request.execute
|
16
|
+
respond_callback.call response.body
|
17
|
+
|
18
|
+
nil
|
19
|
+
end
|
20
|
+
|
21
|
+
end
|
22
|
+
end
|
23
|
+
end
|
24
|
+
end
|
@@ -0,0 +1,24 @@
|
|
1
|
+
require 'rest-client'
|
2
|
+
|
3
|
+
module DocGenerationWrapper
|
4
|
+
module Adapter
|
5
|
+
module PrinceXmlService
|
6
|
+
|
7
|
+
class Query
|
8
|
+
|
9
|
+
def status status_id
|
10
|
+
data = { id: JSON.parse(status_id)['status_id'] }
|
11
|
+
headers = {}
|
12
|
+
host = DocGenerationWrapper.configuration.service_host
|
13
|
+
url = host + '/status'
|
14
|
+
|
15
|
+
request = RestClient::Request.new(method: :get, url: url, payload: data, headers: headers)
|
16
|
+
response = request.execute
|
17
|
+
|
18
|
+
JSON.parse(response)
|
19
|
+
end
|
20
|
+
|
21
|
+
end
|
22
|
+
end
|
23
|
+
end
|
24
|
+
end
|
@@ -0,0 +1,39 @@
|
|
1
|
+
require_relative 'doc_generation_wrapper/version'
|
2
|
+
require_relative 'doc_generation_wrapper/configuration'
|
3
|
+
require_relative 'doc_generation_wrapper/adapters/base'
|
4
|
+
|
5
|
+
begin
|
6
|
+
require 'pry'
|
7
|
+
rescue LoadError
|
8
|
+
end
|
9
|
+
|
10
|
+
require 'forwardable'
|
11
|
+
|
12
|
+
module DocGenerationWrapper
|
13
|
+
class << self
|
14
|
+
attr_writer :configuration
|
15
|
+
|
16
|
+
def configuration
|
17
|
+
@configuration ||= Configuration.new
|
18
|
+
end
|
19
|
+
|
20
|
+
def reset
|
21
|
+
@configuration = Configuration.new
|
22
|
+
end
|
23
|
+
|
24
|
+
def configure
|
25
|
+
yield(configuration)
|
26
|
+
end
|
27
|
+
end
|
28
|
+
|
29
|
+
class Wrapper
|
30
|
+
extend Forwardable
|
31
|
+
|
32
|
+
def_delegators :adapter, :create!, :status
|
33
|
+
attr_reader :adapter
|
34
|
+
|
35
|
+
def initialize
|
36
|
+
@adapter = Adapter::Base.create(DocGenerationWrapper.configuration.adapter)
|
37
|
+
end
|
38
|
+
end
|
39
|
+
end
|
@@ -0,0 +1,21 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
module DocGenerationWrapper
|
4
|
+
describe Configuration do
|
5
|
+
let(:configuration) { Configuration.new }
|
6
|
+
|
7
|
+
describe 'default config' do
|
8
|
+
let(:adapter) { :doc_raptor }
|
9
|
+
let(:service_host) { 'http://0.0.0.0:5000' }
|
10
|
+
|
11
|
+
it 'adapter is doc_raptor' do
|
12
|
+
expect(configuration.adapter).to eq(adapter)
|
13
|
+
end
|
14
|
+
|
15
|
+
it 'service host is local sinatra hosting' do
|
16
|
+
expect(configuration.service_host).to eq(service_host)
|
17
|
+
end
|
18
|
+
end
|
19
|
+
|
20
|
+
end
|
21
|
+
end
|
@@ -0,0 +1,40 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
require 'doc_raptor'
|
3
|
+
|
4
|
+
module DocGenerationWrapper
|
5
|
+
|
6
|
+
describe Wrapper do
|
7
|
+
let(:wrapper) { Wrapper.new }
|
8
|
+
let(:adapter) { :doc_raptor }
|
9
|
+
|
10
|
+
before do
|
11
|
+
DocGenerationWrapper.configure do |config|
|
12
|
+
config.adapter = adapter
|
13
|
+
end
|
14
|
+
end
|
15
|
+
|
16
|
+
describe '#create!' do
|
17
|
+
let(:options) {{}}
|
18
|
+
|
19
|
+
before do
|
20
|
+
expect(DocRaptor).to receive(:create!).with(options)
|
21
|
+
end
|
22
|
+
|
23
|
+
specify do
|
24
|
+
wrapper.create! options
|
25
|
+
end
|
26
|
+
end
|
27
|
+
|
28
|
+
describe '#status' do
|
29
|
+
let(:id) { :id }
|
30
|
+
|
31
|
+
before do
|
32
|
+
expect(DocRaptor).to receive(:status).with(id)
|
33
|
+
end
|
34
|
+
|
35
|
+
specify do
|
36
|
+
wrapper.status id
|
37
|
+
end
|
38
|
+
end
|
39
|
+
end
|
40
|
+
end
|
data/spec/spec_helper.rb
ADDED
@@ -0,0 +1,16 @@
|
|
1
|
+
require 'rubygems'
|
2
|
+
require 'bundler/setup'
|
3
|
+
|
4
|
+
begin
|
5
|
+
require 'pry'
|
6
|
+
rescue LoadError
|
7
|
+
end
|
8
|
+
|
9
|
+
require_relative '../lib/doc_generation_wrapper'
|
10
|
+
|
11
|
+
RSpec.configure do |config|
|
12
|
+
# config.filter_run focused: true
|
13
|
+
config.run_all_when_everything_filtered = true
|
14
|
+
# config.before { }
|
15
|
+
# config.after { }
|
16
|
+
end
|
metadata
ADDED
@@ -0,0 +1,145 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: doc_generation_wrapper
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.1
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Joel AZEMAR
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2014-06-11 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: bundler
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '1.6'
|
20
|
+
type: :development
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '1.6'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: rake
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '10.3'
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '10.3'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: rspec
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - "~>"
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '2.14'
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - "~>"
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '2.14'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: doc_raptor
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - "~>"
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: 0.3.2
|
62
|
+
type: :runtime
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - "~>"
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: 0.3.2
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: json
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - "~>"
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '1.8'
|
76
|
+
type: :runtime
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - "~>"
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '1.8'
|
83
|
+
description: Wrapper for DocRaptor or Local PrinceXML generation of document, purpose
|
84
|
+
is help to develop quickly
|
85
|
+
email:
|
86
|
+
- joel.azemar@gmail.com
|
87
|
+
executables: []
|
88
|
+
extensions: []
|
89
|
+
extra_rdoc_files: []
|
90
|
+
files:
|
91
|
+
- ".coveralls.yml"
|
92
|
+
- ".gitignore"
|
93
|
+
- ".rspec"
|
94
|
+
- ".ruby-gemset"
|
95
|
+
- ".ruby-version"
|
96
|
+
- ".travis.yml"
|
97
|
+
- CHANGELOG.md
|
98
|
+
- Gemfile
|
99
|
+
- LICENSE.txt
|
100
|
+
- README.md
|
101
|
+
- Rakefile
|
102
|
+
- doc_generation_wrapper.gemspec
|
103
|
+
- lib/doc_generation_wrapper.rb
|
104
|
+
- lib/doc_generation_wrapper/adapters/abstract.rb
|
105
|
+
- lib/doc_generation_wrapper/adapters/base.rb
|
106
|
+
- lib/doc_generation_wrapper/adapters/doc_raptor_adapter.rb
|
107
|
+
- lib/doc_generation_wrapper/adapters/doc_raptor_service/command.rb
|
108
|
+
- lib/doc_generation_wrapper/adapters/doc_raptor_service/proxy.rb
|
109
|
+
- lib/doc_generation_wrapper/adapters/doc_raptor_service/query.rb
|
110
|
+
- lib/doc_generation_wrapper/adapters/prince_xml_adapter.rb
|
111
|
+
- lib/doc_generation_wrapper/adapters/prince_xml_service/command.rb
|
112
|
+
- lib/doc_generation_wrapper/adapters/prince_xml_service/query.rb
|
113
|
+
- lib/doc_generation_wrapper/configuration.rb
|
114
|
+
- lib/doc_generation_wrapper/version.rb
|
115
|
+
- spec/doc_generation_wrapper/configuration_spec.rb
|
116
|
+
- spec/doc_generation_wrapper_spec.rb
|
117
|
+
- spec/spec_helper.rb
|
118
|
+
homepage: https://github.com/FinalCAD/doc_generation_wrapper
|
119
|
+
licenses:
|
120
|
+
- MIT
|
121
|
+
metadata: {}
|
122
|
+
post_install_message:
|
123
|
+
rdoc_options: []
|
124
|
+
require_paths:
|
125
|
+
- lib
|
126
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
127
|
+
requirements:
|
128
|
+
- - "~>"
|
129
|
+
- !ruby/object:Gem::Version
|
130
|
+
version: '2.1'
|
131
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
132
|
+
requirements:
|
133
|
+
- - ">="
|
134
|
+
- !ruby/object:Gem::Version
|
135
|
+
version: '0'
|
136
|
+
requirements: []
|
137
|
+
rubyforge_project:
|
138
|
+
rubygems_version: 2.2.2
|
139
|
+
signing_key:
|
140
|
+
specification_version: 4
|
141
|
+
summary: Wrapper for DocRaptor or Local PrinceXML generation
|
142
|
+
test_files:
|
143
|
+
- spec/doc_generation_wrapper/configuration_spec.rb
|
144
|
+
- spec/doc_generation_wrapper_spec.rb
|
145
|
+
- spec/spec_helper.rb
|