rxfhelper 0.5.0 → 0.5.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4b9ea74eba565e4fdb40137c15d852b213d14afc
4
- data.tar.gz: 95dadb87e008726f89f7c6dd45b9a390ef6df404
3
+ metadata.gz: e624b70b870ec8bf32d48e91e759d89b987273ef
4
+ data.tar.gz: e74b5f153d2d5033e040d6b7d6b872f6528127ac
5
5
  SHA512:
6
- metadata.gz: 71c267a3cfc62f077a124b47b5d62f13be47fbd4f4dce23aaac31ea7aef3f5a0f9b2ef4a9b683d87230378478fabc63c9ccfdd79490e39eb78473b3477f7c4d1
7
- data.tar.gz: 140de327a5bbdf6555ec69b14c9a7503254f278705defdc49b64b9ed003c1f35211bc38de4d3046f14e4ef481bea78ada0b01e08111c3193ac602a63455135f5
6
+ metadata.gz: b6a4cb780b6834c0acb1e187ec4643214886b553b62b9218467d63d61ab58efc54ed79ce5dac036c32b6779e60076bd5d1bb8513c6424f703c443aa6aa06f47e
7
+ data.tar.gz: 3e5d13f8b4a613131aae22c088435082a1ebc0c250a382e5358c1097e722cba10cc810573de4709d22d2e1e6ac8aa35a3e4eaaf65cd39eb067810ca08645128b
Binary file
data.tar.gz.sig CHANGED
Binary file
@@ -89,6 +89,23 @@ class RXFHelper
89
89
  File.write(uri, s)
90
90
  end
91
91
  end
92
+
93
+ def self.writeable?(source)
94
+
95
+ return false if source.lines.length > 1
96
+
97
+ if not source =~ /:\/\// then
98
+
99
+ return true if File.exists? source
100
+
101
+ else
102
+
103
+ return true if source =~ /^dfs:/
104
+
105
+ end
106
+
107
+ return false
108
+ end
92
109
 
93
110
  def self.absolute_url(page_url, item_location)
94
111
 
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.5.0
4
+ version: 0.5.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-01-24 00:00:00.000000000 Z
34
+ date: 2018-03-17 00:00:00.000000000 Z
35
35
  dependencies:
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: gpd-request
@@ -62,7 +62,7 @@ dependencies:
62
62
  version: '0.1'
63
63
  - - ">="
64
64
  - !ruby/object:Gem::Version
65
- version: 0.1.0
65
+ version: 0.1.1
66
66
  type: :runtime
67
67
  prerelease: false
68
68
  version_requirements: !ruby/object:Gem::Requirement
@@ -72,7 +72,7 @@ dependencies:
72
72
  version: '0.1'
73
73
  - - ">="
74
74
  - !ruby/object:Gem::Version
75
- version: 0.1.0
75
+ version: 0.1.1
76
76
  description:
77
77
  email: james@jamesrobertson.eu
78
78
  executables: []
metadata.gz.sig CHANGED
Binary file