dyndoc-ruby-core 1.0.7 → 1.0.8

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: 4e66d49579f153530f3b48817ff7c728dd3127b0
4
- data.tar.gz: 618ac071970774e605a0ffba92acd85ca939d000
3
+ metadata.gz: 9b458bd7c16ef26b9361c0b2e6e0a28bfd8467d9
4
+ data.tar.gz: 5263964be35e96beefa1a4acd2ecd18a41e7f93c
5
5
  SHA512:
6
- metadata.gz: 586938eebbeab9668817b29dbb6625ae5e48564d65c6ac7c519cbedd7eb498495b07a382a78ce68a65e9d8ae03b7dc39460094b7b740b8a11541e6f8394f960f
7
- data.tar.gz: 5f1404493348b211bc780b838fb4ac37fed53c5cc4c322133be7a16255ff8b9e2ff0d031d44bfe0ad6ef578ca0d78274c9fb851d69e478126940fdab0b8a07b2
6
+ metadata.gz: 57adc2f421d5c32fa08a898f43e7d58e8a0c76a93fabf4490a91e18b5f7b83fd6c46ae36001b7f88a926fd8f34efe28d3b22958ac771c06453adf984859fef73
7
+ data.tar.gz: 42cb61b354ee200d68a4c102a89992b24c4605471b89ec021ee0ed81c981a1874345d01a624930045fde99bc5737a7313207a26ddb554c4fe6b2c8ddc4d30911
@@ -43,9 +43,16 @@ module Dyndoc
43
43
 
44
44
  # Maybe better located inside server.rb
45
45
  def TemplateManager.initR
46
+ ## THIS IS JUST IMPOSSIBLE SINCE RUBY USES HOME TO EXPAND PATH
47
+ ## NEEDS TO FIND AN ALTERNATIVE SOLUTION: R_LIBS_USER
46
48
  # For windows! R now change HOME variable by appending "/Documents" at the end. Ruby does not do that!
47
- if RUBY_PLATFORM =~ /mingw/ and !(File.exist? File.join(ENV["HOME"],"R","win-library"))
48
- ENV["HOME"] += "/Documents"
49
+ if RUBY_PLATFORM =~ /mingw/ and !(File.exist? File.join(ENV["HOME"],"R","win-library")) and (File.exist? File.join(ENV["HOME"],"Documents","R","win-library"))
50
+ ##ENV["HOME"] += "/Documents"
51
+ if ENV["R_LIBS_USER"]
52
+ puts "Warning (dyndoc): R_LIBS_USER already in use by dyndoc. Fix that by calling inside dyndoc .libPaths(\"#{ENV['R_LIBS_USER']}\")")
53
+ end
54
+ ENV["R_LIBS_USER"]=Dir[File.join(ENV["HOME"],"Documents","R","win-library","*")][-1]
55
+ ## RMK: if R_LIBS_USER already exist then the second solution
49
56
  end
50
57
 
51
58
  first=require "R4rb" #save if it the first initialization!
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dyndoc-ruby-core
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.7
4
+ version: 1.0.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - CQLS
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-02-25 00:00:00.000000000 Z
11
+ date: 2016-03-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: configliere