fedux_org-stdlib 0.6.44 → 0.6.45

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: 3ab9eab77447837bb0124400b28bd0a9f62d1bda
4
- data.tar.gz: f853c8bc629d5468badaf9414036b7b30bbcd513
3
+ metadata.gz: f0b710df8eb8a0bdb8422a96b6328d5d1d1d38b0
4
+ data.tar.gz: 3d3e641290c629d40d94e0e6aa6ae6244f8bbf3c
5
5
  SHA512:
6
- metadata.gz: 0d1370737ae977ff394cb50521d8f3d63da9216cc669cdc36796c67dc28813fedb9dd8dabca9481a0bcff0d3c90d54ab9122c1a67094732dd8cd798c793bba32
7
- data.tar.gz: 4dea91fa7b5937e1a17f7529bd31dde86eed1c526237baa9673b6f8ff9637b516af8cd9c886cda22b320dd27485a5fd0c279409ee2457018adf442d625186365
6
+ metadata.gz: f693b5182a544a069a4b2a6598b051c6b9cbcc0448aae16f0be2e0ba27f3e85f6f2b74fb63d94145924bd9d0b8703e36cc5c89fe2053d6321dcde00d985da73d
7
+ data.tar.gz: b473d0686fcd13a36a7763b8cd29663364e0e4125bdeed224d102bd03d7fa1484230c410cd88759eb1f6c340aaac10b913d1aff9ad96b6164fdf4ffd921ae560
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- fedux_org-stdlib (0.6.43)
4
+ fedux_org-stdlib (0.6.44)
5
5
  activesupport
6
6
 
7
7
  GEM
@@ -53,7 +53,7 @@ module FeduxOrgStdlib
53
53
  # option1: 'data2'
54
54
  class FileTemplate
55
55
 
56
- attr_reader :working_directory, :logger, :file, :content
56
+ attr_reader :working_directory, :output_directory, :logger, :file, :content
57
57
 
58
58
  # Create a new instance of template
59
59
  #
@@ -73,10 +73,12 @@ module FeduxOrgStdlib
73
73
  def initialize(
74
74
  file: nil,
75
75
  logger: FeduxOrgStdlib::Logging::Logger.new,
76
- working_directory: Dir.getwd
76
+ working_directory: Dir.getwd,
77
+ output_directory: nil
77
78
  )
78
79
  @logger = logger
79
80
  @working_directory = working_directory
81
+ @output_directory = output_directory || working_directory
80
82
 
81
83
  @file ||= available_template_file
82
84
 
@@ -212,7 +214,7 @@ module FeduxOrgStdlib
212
214
  public
213
215
 
214
216
  def proposed_file
215
- File.join working_directory, proposed_file_name
217
+ File.join output_directory, proposed_file_name
216
218
  end
217
219
 
218
220
  def proposed_extname
@@ -1,5 +1,5 @@
1
1
  # encoding: utf-8
2
2
  # FeduxOrgStdlib
3
3
  module FeduxOrgStdlib
4
- VERSION = '0.6.44'
4
+ VERSION = '0.6.45'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fedux_org-stdlib
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.44
4
+ version: 0.6.45
5
5
  platform: ruby
6
6
  authors:
7
7
  - Max Meyer