indoctrinatr-tools 0.14.0 → 0.15.0

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: 923491cbe8509bb21143005247215859e4e73737
4
- data.tar.gz: a8aea4ea08b8e26d9ff8a0976d6a422118c68d15
3
+ metadata.gz: 569e7656b8197682d1109ec495b26d331f08ffe7
4
+ data.tar.gz: 6c63a429e5457f4fd3f3809417c943e72bc06952
5
5
  SHA512:
6
- metadata.gz: c3ba8d6b1a48719d8b5cc7b1164fb4ed0968b0d2766da255d4ff15a8eb300a70a4420a9773adc991fc7f314d2e0f25f08200f45b70e2558ebd3dd7996dd82aa6
7
- data.tar.gz: 5033351326b87a4d00c2e69a5c2b08a5ca0bbda75c39b0e8de02255884cf08318fca112cf6d3e9c5f7d8de7f8de45632250dbeee2ca8b0a96e0feaa31bdbd3ac
6
+ metadata.gz: 6b44dc06e7ed80e07cecf71dc5d0732429aaaaa3849f0cdbe8c6fecb58a86a21d68fa12251bd7d587ef0645277d9cc33822986b099afe589f0254505cb51b7c7
7
+ data.tar.gz: de94350496af62ada8b9ee9cb35487a2ca51be6d89fd840b0ec2e218065d874ab151722dbea7eb1b4d30f757f985afe4b30b678374904283f7773c754388611c
Binary file
data.tar.gz.sig CHANGED
Binary file
@@ -1,6 +1,11 @@
1
+ require: rubocop-rspec
2
+
1
3
  AllCops:
4
+ AllCops:
5
+ TargetRubyVersion: 2.2
2
6
  Exclude:
3
7
  - tmp/**/*
8
+ - vendor/**/*
4
9
  Metrics/LineLength:
5
10
  Max: 240
6
11
  Style/MethodDefParentheses:
@@ -1,15 +1,15 @@
1
- sudo: true
1
+ sudo: false
2
2
  language: ruby
3
3
  rvm:
4
- - '2.3'
5
- - '2.2'
6
- - '2.1'
7
- cache:
8
- - bundler
9
- - apt
4
+ - '2.4.1'
5
+ - '2.3.4'
6
+ - '2.2.7'
7
+ cache: bundler
8
+
10
9
  before_install:
11
- - sudo apt-get update && sudo wget https://github.com/scottkosty/install-tl-ubuntu/raw/master/install-tl-ubuntu && sudo chmod +x ./install-tl-ubuntu && sudo ./install-tl-ubuntu
12
- - gem install bundler -v 1.10.6
10
+ - gem install bundler --no-document
11
+
13
12
  script:
14
- - bundle exec indoctrinatr demo
15
- - bundle exec rake test_with_coveralls
13
+ - bundle exec rubocop --version
14
+ - bundle exec rubocop --display-cop-names --extra-details
15
+ - bundle exec indoctrinatr new demo
@@ -1,5 +1,12 @@
1
1
  # indoctrinatr-tools
2
2
 
3
+ ## v0.15.0 (2017-04-16)
4
+
5
+ ### changes
6
+
7
+ * updated dependencies
8
+ * removed support for Ruby v2.1
9
+
3
10
  ## v0.14.0 (2016-09-14)
4
11
 
5
12
  ### changes
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
@@ -2,4 +2,4 @@ Feature: Running the "version" command
2
2
 
3
3
  Scenario:
4
4
  When I successfully run `indoctrinatr version`
5
- Then the output should contain "0.13.0"
5
+ Then the output should contain "0.15.0"
@@ -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.0'
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.13'
24
- spec.add_development_dependency 'rake', '~> 11.2'
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.42'
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.12'
33
- spec.add_dependency 'rubyzip', '~> 1.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 Lint/Eval
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(erb rb yaml sty tex) # default file types for template docs
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(.png .jpeg .jpg .bmp .gif .pdf).freeze
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(text textarea checkbox radiobutton dropdown date range file).freeze
11
- REQUIRES_AVAILABLE_OPTIONS = %w(dropdown checkbox radiobutton).freeze
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 Lint/Eval
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,5 +1,5 @@
1
1
  module Indoctrinatr
2
2
  module Tools
3
- VERSION = '0.14.0'.freeze
3
+ VERSION = '0.15.0'.freeze
4
4
  end
5
5
  end
@@ -1,8 +1,8 @@
1
1
  require 'spec_helper'
2
2
  require 'pathname'
3
3
 
4
- describe 'configuration.yaml' do
5
- it 'should exist' do
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
- describe 'template.tex.erb' do
5
- it 'should exist' do
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
- describe "support for Textile with 'textilize' function" do
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 = []
@@ -3,6 +3,6 @@ require 'indoctrinatr/tools/version'
3
3
 
4
4
  describe Indoctrinatr::Tools do
5
5
  it 'defines a VERSION constant' do
6
- expect(Indoctrinatr::Tools::VERSION).to eq '0.13.0'
6
+ expect(Indoctrinatr::Tools::VERSION).to eq '0.15.0'
7
7
  end
8
8
  end
@@ -1,7 +1,7 @@
1
1
  require 'spec_helper'
2
2
  require 'redcloth_latex_formatter_patch/patch'
3
3
 
4
- describe 'patches for RedCloth::LATEX::Formatter' do
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.14.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: 2016-09-14 00:00:00.000000000 Z
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.13'
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.13'
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: '11.2'
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: '11.2'
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.42'
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.42'
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.12'
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.12'
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.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.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.0'
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.4
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
data/.rvmrc DELETED
@@ -1,5 +0,0 @@
1
- rvm use 2.1.9
2
-
3
- alias brake='bundle exec'
4
- alias rubocop='bundle exec rubocop'
5
- alias cucumber='brake cucumber'