indoctrinatr-tools 0.14.0 → 0.15.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +0 -0
- data/.rubocop.yml +5 -0
- data/.travis.yml +11 -11
- data/CHANGELOG.md +7 -0
- data/LICENSE +1 -1
- data/features/version.feature +1 -1
- data/indoctrinatr-tools.gemspec +9 -7
- data/lib/indoctrinatr/tools/content_for_tex_files.rb +1 -1
- data/lib/indoctrinatr/tools/directory_helpers.rb +1 -1
- data/lib/indoctrinatr/tools/field_name_values.rb +1 -1
- data/lib/indoctrinatr/tools/template_pack_error_checker.rb +2 -2
- data/lib/indoctrinatr/tools/template_pack_helpers.rb +1 -1
- data/lib/indoctrinatr/tools/version.rb +1 -1
- data/spec/indoctrinatr/templates/configuration_file_spec.rb +2 -2
- data/spec/indoctrinatr/templates/tex_file_spec.rb +2 -2
- data/spec/indoctrinatr/tools/textile_support_spec.rb +1 -1
- data/spec/indoctrinatr/tools/version_spec.rb +1 -1
- data/spec/redcloth_latex_formatter_patch/patch_spec.rb +1 -5
- metadata +28 -15
- metadata.gz.sig +0 -0
- data/.rvmrc +0 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 569e7656b8197682d1109ec495b26d331f08ffe7
|
4
|
+
data.tar.gz: 6c63a429e5457f4fd3f3809417c943e72bc06952
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6b44dc06e7ed80e07cecf71dc5d0732429aaaaa3849f0cdbe8c6fecb58a86a21d68fa12251bd7d587ef0645277d9cc33822986b099afe589f0254505cb51b7c7
|
7
|
+
data.tar.gz: de94350496af62ada8b9ee9cb35487a2ca51be6d89fd840b0ec2e218065d874ab151722dbea7eb1b4d30f757f985afe4b30b678374904283f7773c754388611c
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data.tar.gz.sig
CHANGED
Binary file
|
data/.rubocop.yml
CHANGED
data/.travis.yml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
|
-
sudo:
|
1
|
+
sudo: false
|
2
2
|
language: ruby
|
3
3
|
rvm:
|
4
|
-
- '2.
|
5
|
-
- '2.
|
6
|
-
- '2.
|
7
|
-
cache:
|
8
|
-
|
9
|
-
- apt
|
4
|
+
- '2.4.1'
|
5
|
+
- '2.3.4'
|
6
|
+
- '2.2.7'
|
7
|
+
cache: bundler
|
8
|
+
|
10
9
|
before_install:
|
11
|
-
-
|
12
|
-
|
10
|
+
- gem install bundler --no-document
|
11
|
+
|
13
12
|
script:
|
14
|
-
- bundle exec
|
15
|
-
- bundle exec
|
13
|
+
- bundle exec rubocop --version
|
14
|
+
- bundle exec rubocop --display-cop-names --extra-details
|
15
|
+
- bundle exec indoctrinatr new demo
|
data/CHANGELOG.md
CHANGED
data/LICENSE
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
The MIT License (MIT)
|
2
2
|
|
3
|
-
Copyright (c) 2014 Indoctrinatr Development Team
|
3
|
+
Copyright (c) 2014-2017 Indoctrinatr Development Team, dkd Internet Service GmbH, Frankfurt am Main
|
4
4
|
|
5
5
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
6
|
of this software and associated documentation files (the "Software"), to deal
|
data/features/version.feature
CHANGED
data/indoctrinatr-tools.gemspec
CHANGED
@@ -1,9 +1,10 @@
|
|
1
1
|
# coding: utf-8
|
2
|
+
|
2
3
|
lib = File.expand_path('../lib', __FILE__)
|
3
4
|
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
5
|
require 'indoctrinatr/tools/version'
|
5
6
|
|
6
|
-
Gem::Specification.new do |spec|
|
7
|
+
Gem::Specification.new do |spec| # rubocop:disable Metrics/BlockLength
|
7
8
|
spec.name = 'indoctrinatr-tools'
|
8
9
|
spec.version = Indoctrinatr::Tools::VERSION
|
9
10
|
spec.authors = ['Nicolai Reuschling', 'Luka Lüdicke']
|
@@ -13,24 +14,25 @@ Gem::Specification.new do |spec|
|
|
13
14
|
spec.homepage = ''
|
14
15
|
spec.license = 'MIT'
|
15
16
|
|
16
|
-
spec.required_ruby_version = '~> 2.
|
17
|
+
spec.required_ruby_version = '~> 2.2'
|
17
18
|
|
18
19
|
spec.files = `git ls-files -z`.split("\x0")
|
19
20
|
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
|
20
21
|
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
21
22
|
spec.require_paths = ['lib']
|
22
23
|
|
23
|
-
spec.add_development_dependency 'bundler', '~> 1.
|
24
|
-
spec.add_development_dependency 'rake', '~>
|
24
|
+
spec.add_development_dependency 'bundler', '~> 1.14'
|
25
|
+
spec.add_development_dependency 'rake', '~> 12.0'
|
25
26
|
spec.add_development_dependency 'rspec', '~> 3.5'
|
26
27
|
spec.add_development_dependency 'cucumber', '~> 2.4'
|
27
28
|
spec.add_development_dependency 'aruba', '~> 0.14'
|
28
|
-
spec.add_development_dependency 'rubocop', '~> 0.
|
29
|
+
spec.add_development_dependency 'rubocop', '~> 0.48'
|
30
|
+
spec.add_development_dependency 'rubocop-rspec', '~> 1.15'
|
29
31
|
spec.add_development_dependency 'pry', '~> 0.10'
|
30
32
|
spec.add_development_dependency 'coveralls', '~> 0.8'
|
31
33
|
|
32
|
-
spec.add_dependency 'gli', '~> 2.
|
33
|
-
spec.add_dependency 'rubyzip', '~> 1.
|
34
|
+
spec.add_dependency 'gli', '~> 2.16'
|
35
|
+
spec.add_dependency 'rubyzip', '~> 1.2'
|
34
36
|
spec.add_dependency 'erubis', '~> 2.7'
|
35
37
|
spec.add_dependency 'to_latex', '~> 0.5'
|
36
38
|
spec.add_dependency 'RedCloth', '~> 4.3'
|
@@ -19,7 +19,7 @@ module Indoctrinatr
|
|
19
19
|
end
|
20
20
|
|
21
21
|
def customized_output_file_name
|
22
|
-
@_customized_output_file_name ||= eval('"' + @_output_file_name + '"') # rubocop:disable
|
22
|
+
@_customized_output_file_name ||= eval('"' + @_output_file_name + '"') # rubocop:disable Security/Eval
|
23
23
|
end
|
24
24
|
|
25
25
|
def template_asset_path
|
@@ -9,7 +9,7 @@ module Indoctrinatr
|
|
9
9
|
end
|
10
10
|
end
|
11
11
|
|
12
|
-
def list_files_of_type directory = '.', types = %w
|
12
|
+
def list_files_of_type directory = '.', types = %w[erb rb yaml sty tex] # default file types for template docs
|
13
13
|
# found and modified from http://stackoverflow.com/a/3504307/1796645
|
14
14
|
Dir.glob("#{directory}/**/*.{#{types.join(',')}}") # recursively list files of type in types array
|
15
15
|
end
|
@@ -5,7 +5,7 @@ module Indoctrinatr
|
|
5
5
|
# This class defines the content for a document that has the field names as content.
|
6
6
|
class FieldNameValues < ContentForTexFiles
|
7
7
|
# TODO: extensive list of possibilities
|
8
|
-
PICTURE_FILE_ENDINGS = %w
|
8
|
+
PICTURE_FILE_ENDINGS = %w[.png .jpeg .jpg .bmp .gif .pdf].freeze
|
9
9
|
def _field_names_as_values # rubocop:disable Metrics/AbcSize
|
10
10
|
@_configuration.attributes_as_hashes_in_array.each do |attribute_hash|
|
11
11
|
# Usage of \textless to avoid issues with the < > characters.
|
@@ -7,8 +7,8 @@ module Indoctrinatr
|
|
7
7
|
|
8
8
|
# class wide constants
|
9
9
|
# needs to match indoctrinatr's TemplateField model
|
10
|
-
VALID_PRESENTATIONS = %w
|
11
|
-
REQUIRES_AVAILABLE_OPTIONS = %w
|
10
|
+
VALID_PRESENTATIONS = %w[text textarea checkbox radiobutton dropdown date range file].freeze
|
11
|
+
REQUIRES_AVAILABLE_OPTIONS = %w[dropdown checkbox radiobutton].freeze
|
12
12
|
|
13
13
|
attr_accessor :template_pack_name, :config_file
|
14
14
|
def initialize template_pack_name
|
@@ -35,7 +35,7 @@ module Indoctrinatr
|
|
35
35
|
if default_values.customized_output_file_name == default_values.default_file_name
|
36
36
|
Pathname.new(Dir.pwd).join pack_documentation_examples_dir_path + default_values.customized_output_file_name
|
37
37
|
else
|
38
|
-
Pathname.new(Dir.pwd).join pack_documentation_examples_dir_path + eval('"' + default_values.output_file_name + '"') # rubocop:disable
|
38
|
+
Pathname.new(Dir.pwd).join pack_documentation_examples_dir_path + eval('"' + default_values.output_file_name + '"') # rubocop:disable Security/Eval
|
39
39
|
# usage of eval to execute the interpolation of a custom filename string with interpolation - e.g. a filename with the current date
|
40
40
|
end
|
41
41
|
end
|
@@ -1,8 +1,8 @@
|
|
1
1
|
require 'spec_helper'
|
2
2
|
require 'pathname'
|
3
3
|
|
4
|
-
|
5
|
-
it '
|
4
|
+
context 'configuration.yaml' do
|
5
|
+
it 'exists' do
|
6
6
|
configuration_file = Pathname.new(__FILE__).join '..', '..', '..', '..', 'lib', 'indoctrinatr', 'templates', 'configuration.yaml'
|
7
7
|
expect(File.exist?(configuration_file)).to eq true
|
8
8
|
end
|
@@ -1,8 +1,8 @@
|
|
1
1
|
require 'spec_helper'
|
2
2
|
require 'pathname'
|
3
3
|
|
4
|
-
|
5
|
-
it '
|
4
|
+
context 'template.tex.erb' do
|
5
|
+
it 'exists' do
|
6
6
|
template_file = Pathname.new(__FILE__).join '..', '..', '..', '..', 'lib', 'indoctrinatr', 'templates', 'template.tex.erb'
|
7
7
|
expect(File.exist?(template_file)).to eq true
|
8
8
|
end
|
@@ -2,7 +2,7 @@ require 'spec_helper'
|
|
2
2
|
require 'indoctrinatr/tools/default_values'
|
3
3
|
require 'indoctrinatr/tools/template_pack_configuration'
|
4
4
|
|
5
|
-
|
5
|
+
context "support for Textile with 'textilize' function" do
|
6
6
|
let(:configuration) do
|
7
7
|
c = Indoctrinatr::Tools::TemplatePackConfiguration.new
|
8
8
|
c.attributes_as_hashes_in_array = []
|
@@ -1,7 +1,7 @@
|
|
1
1
|
require 'spec_helper'
|
2
2
|
require 'redcloth_latex_formatter_patch/patch'
|
3
3
|
|
4
|
-
|
4
|
+
context 'patches for RedCloth::LATEX::Formatter' do
|
5
5
|
it 'tranforms a h1. headline to LaTeX chapter notation' do
|
6
6
|
text = 'h1. Headline'
|
7
7
|
expect(RedCloth.new(text).to_latex).to eq "\\chapter{Headline}\n\n"
|
@@ -31,8 +31,4 @@ describe 'patches for RedCloth::LATEX::Formatter' do
|
|
31
31
|
it 'transforms -text- to to LaTeX \st{}' do
|
32
32
|
expect(RedCloth.new('-no no no-').to_latex).to eq "\\st{no no no}\n\n"
|
33
33
|
end
|
34
|
-
|
35
|
-
it 'transforms *text* to to LaTeX \st{}' do
|
36
|
-
expect(RedCloth.new('-no no no-').to_latex).to eq "\\st{no no no}\n\n"
|
37
|
-
end
|
38
34
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: indoctrinatr-tools
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.15.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Nicolai Reuschling
|
@@ -32,7 +32,7 @@ cert_chain:
|
|
32
32
|
HOu/JTkMVu8oWst3Fhxdqaqw1a1uFYiG5VkcX0hsPUFS+ZDJhAhi1eu5Pea1dZq4
|
33
33
|
CZs=
|
34
34
|
-----END CERTIFICATE-----
|
35
|
-
date:
|
35
|
+
date: 2017-04-16 00:00:00.000000000 Z
|
36
36
|
dependencies:
|
37
37
|
- !ruby/object:Gem::Dependency
|
38
38
|
name: bundler
|
@@ -40,28 +40,28 @@ dependencies:
|
|
40
40
|
requirements:
|
41
41
|
- - "~>"
|
42
42
|
- !ruby/object:Gem::Version
|
43
|
-
version: '1.
|
43
|
+
version: '1.14'
|
44
44
|
type: :development
|
45
45
|
prerelease: false
|
46
46
|
version_requirements: !ruby/object:Gem::Requirement
|
47
47
|
requirements:
|
48
48
|
- - "~>"
|
49
49
|
- !ruby/object:Gem::Version
|
50
|
-
version: '1.
|
50
|
+
version: '1.14'
|
51
51
|
- !ruby/object:Gem::Dependency
|
52
52
|
name: rake
|
53
53
|
requirement: !ruby/object:Gem::Requirement
|
54
54
|
requirements:
|
55
55
|
- - "~>"
|
56
56
|
- !ruby/object:Gem::Version
|
57
|
-
version: '
|
57
|
+
version: '12.0'
|
58
58
|
type: :development
|
59
59
|
prerelease: false
|
60
60
|
version_requirements: !ruby/object:Gem::Requirement
|
61
61
|
requirements:
|
62
62
|
- - "~>"
|
63
63
|
- !ruby/object:Gem::Version
|
64
|
-
version: '
|
64
|
+
version: '12.0'
|
65
65
|
- !ruby/object:Gem::Dependency
|
66
66
|
name: rspec
|
67
67
|
requirement: !ruby/object:Gem::Requirement
|
@@ -110,14 +110,28 @@ dependencies:
|
|
110
110
|
requirements:
|
111
111
|
- - "~>"
|
112
112
|
- !ruby/object:Gem::Version
|
113
|
-
version: '0.
|
113
|
+
version: '0.48'
|
114
114
|
type: :development
|
115
115
|
prerelease: false
|
116
116
|
version_requirements: !ruby/object:Gem::Requirement
|
117
117
|
requirements:
|
118
118
|
- - "~>"
|
119
119
|
- !ruby/object:Gem::Version
|
120
|
-
version: '0.
|
120
|
+
version: '0.48'
|
121
|
+
- !ruby/object:Gem::Dependency
|
122
|
+
name: rubocop-rspec
|
123
|
+
requirement: !ruby/object:Gem::Requirement
|
124
|
+
requirements:
|
125
|
+
- - "~>"
|
126
|
+
- !ruby/object:Gem::Version
|
127
|
+
version: '1.15'
|
128
|
+
type: :development
|
129
|
+
prerelease: false
|
130
|
+
version_requirements: !ruby/object:Gem::Requirement
|
131
|
+
requirements:
|
132
|
+
- - "~>"
|
133
|
+
- !ruby/object:Gem::Version
|
134
|
+
version: '1.15'
|
121
135
|
- !ruby/object:Gem::Dependency
|
122
136
|
name: pry
|
123
137
|
requirement: !ruby/object:Gem::Requirement
|
@@ -152,28 +166,28 @@ dependencies:
|
|
152
166
|
requirements:
|
153
167
|
- - "~>"
|
154
168
|
- !ruby/object:Gem::Version
|
155
|
-
version: '2.
|
169
|
+
version: '2.16'
|
156
170
|
type: :runtime
|
157
171
|
prerelease: false
|
158
172
|
version_requirements: !ruby/object:Gem::Requirement
|
159
173
|
requirements:
|
160
174
|
- - "~>"
|
161
175
|
- !ruby/object:Gem::Version
|
162
|
-
version: '2.
|
176
|
+
version: '2.16'
|
163
177
|
- !ruby/object:Gem::Dependency
|
164
178
|
name: rubyzip
|
165
179
|
requirement: !ruby/object:Gem::Requirement
|
166
180
|
requirements:
|
167
181
|
- - "~>"
|
168
182
|
- !ruby/object:Gem::Version
|
169
|
-
version: '1.
|
183
|
+
version: '1.2'
|
170
184
|
type: :runtime
|
171
185
|
prerelease: false
|
172
186
|
version_requirements: !ruby/object:Gem::Requirement
|
173
187
|
requirements:
|
174
188
|
- - "~>"
|
175
189
|
- !ruby/object:Gem::Version
|
176
|
-
version: '1.
|
190
|
+
version: '1.2'
|
177
191
|
- !ruby/object:Gem::Dependency
|
178
192
|
name: erubis
|
179
193
|
requirement: !ruby/object:Gem::Requirement
|
@@ -229,7 +243,6 @@ files:
|
|
229
243
|
- ".coveralls.yml"
|
230
244
|
- ".gitignore"
|
231
245
|
- ".rubocop.yml"
|
232
|
-
- ".rvmrc"
|
233
246
|
- ".travis.yml"
|
234
247
|
- CHANGELOG.md
|
235
248
|
- Gemfile
|
@@ -308,7 +321,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
308
321
|
requirements:
|
309
322
|
- - "~>"
|
310
323
|
- !ruby/object:Gem::Version
|
311
|
-
version: '2.
|
324
|
+
version: '2.2'
|
312
325
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
313
326
|
requirements:
|
314
327
|
- - ">="
|
@@ -317,7 +330,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
317
330
|
requirements:
|
318
331
|
- LaTeX development enviroment
|
319
332
|
rubyforge_project:
|
320
|
-
rubygems_version: 2.6.
|
333
|
+
rubygems_version: 2.6.11
|
321
334
|
signing_key:
|
322
335
|
specification_version: 4
|
323
336
|
summary: indoctrinatr-tools provides a set of command line tools for Indoctrinatr
|
metadata.gz.sig
CHANGED
Binary file
|