rxfhelper 0.7.0 → 0.7.1

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: 87673c4a0a96ee5aa758c10dcdd818a2846d4a8e
4
- data.tar.gz: bf717498111b850d98b715352829fd5ba8df06de
3
+ metadata.gz: ef573cc21923c6b030e8ca305635383b679b42c2
4
+ data.tar.gz: 3a27cd4abf3919e8a8564ce447fedb93145b4025
5
5
  SHA512:
6
- metadata.gz: 478cdf4efa2dd219c7467875cec879421234380f6cd6be46593c7ec033402f3c8c11778ccd63fa47724ca17196534d9b4f94c31c3882a1c1e8059a91f70dbf2b
7
- data.tar.gz: 343a0144e352df8a56a3a1923b72f689e4352af9c39c2a991befa00e2c0f5458bc5c6e9492a808747eb0cadad600079522abfa8b34c4991f30154994160555be
6
+ metadata.gz: a7d5243af01a2692287ad00e8250be1817bdda0e0569a11ebb321086486d44fd36c986c06a1fe6a96ebfdba317416fa5254ba9ee806c8661dc9883b8182331f1
7
+ data.tar.gz: f4e7dbaf8b80cdd972181505958b4310e7849858ef05fc3a88dd23f83a32962ac48f51cabc5a4134e295a17a899a4aafb7b77b75efafd83cddf66e11c281b254
checksums.yaml.gz.sig CHANGED
Binary file
data/lib/rxfhelper.rb CHANGED
@@ -120,9 +120,26 @@ class RXFHelper
120
120
  [DfsFile.read(x), :dfs]
121
121
 
122
122
  elsif x[/^rse:\/\//] then
123
+
123
124
  [RSC.new.get(x), :rse]
125
+
124
126
  elsif x[/^file:\/\//] or File.exists?(x) then
125
- [File.read(File.expand_path(x.sub(%r{^file://}, ''))), :file]
127
+
128
+ contents = File.read(File.expand_path(x.sub(%r{^file://}, '')))
129
+
130
+ obj = if contents.lines.first =~ /<?dynarex / then
131
+
132
+ dx = Dynarex.new()
133
+ dx.import contents
134
+
135
+ else
136
+
137
+ contents
138
+
139
+ end
140
+
141
+ [obj, :file]
142
+
126
143
  elsif x =~ /\s/
127
144
  [x, :text]
128
145
  else
data.tar.gz.sig CHANGED
Binary file
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rxfhelper
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.0
4
+ version: 0.7.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - James Robertson
@@ -31,7 +31,7 @@ cert_chain:
31
31
  8rLqizynNftXvmwVftEH2yQKlc6bsltIk+l2sNVht38tWANd/Zs0H6abD5zkVp2e
32
32
  h6ZEatzAI88gwQ==
33
33
  -----END CERTIFICATE-----
34
- date: 2018-05-26 00:00:00.000000000 Z
34
+ date: 2018-08-05 00:00:00.000000000 Z
35
35
  dependencies:
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: rsc
metadata.gz.sig CHANGED
Binary file