github-markup 1.7.0 → 2.0.0

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
  SHA256:
3
- metadata.gz: 75e98a420bcda4902275853fc8190048077725dc7950ad685b2061a031e9b2d0
4
- data.tar.gz: 2bdba5ce8edbd5887fa262c48e1adf41c54dc4695886daf303fcf6fa103d3c81
3
+ metadata.gz: 6423a7a97b33e1815d4d3c2ef23e4d6894976519fc11728e0bfc1af3b92211b6
4
+ data.tar.gz: 2bc8c3126dc0ea69a0f0a635e942d62c16bb74e4f7b8bbb2577066c2ff1eb594
5
5
  SHA512:
6
- metadata.gz: f70a33ad3658dc853c688f99dc75eaf7f643a6c43480a255b7fa8a00a9fa464d252867016a59e1c9281292390ed48ccc9baf86608f9bb24d681126bff7de10f0
7
- data.tar.gz: 84c0610b905918cb1ea480b281a664fc6e50da90c1fb6753c9070b03fe2e4bd8afa44a3cfd4a2bd356ea87a8141e33873526db08ea60ca793bd08d598668af1f
6
+ metadata.gz: 9d46acb68a6f40e220ad7cfc6665bfd93b135cb3ae2fd74691f24904b4ebd310c0c5537e7cf810e83aa311e86b4cb62201ed5cc7bcb10c7039931dce6b16a42c
7
+ data.tar.gz: 4579ebaf481ad05805ad07f3b6be0b1bb75bfc7d5a279a61cd36304f9a90a910e49e100319b1cd3819d0801c3e89979df50a00b0cc475f7ef7ff15b0bcf51667
data/HISTORY.md CHANGED
@@ -1,3 +1,7 @@
1
+ ## 2.0.0 - 2018-01-31
2
+
3
+ * Remove filesystem access [#1157](https://github.com/github/markup/pull/1157)
4
+
1
5
  ## 1.7.0 - 2018-01-30
2
6
 
3
7
  ### Changed
@@ -1,6 +1,6 @@
1
1
  module GitHub
2
2
  module Markup
3
- VERSION = '1.7.0'
3
+ VERSION = '2.0.0'
4
4
  Version = VERSION
5
5
  end
6
6
  end
@@ -40,10 +40,7 @@ module GitHub
40
40
  end
41
41
  end
42
42
 
43
- def render(filename, content = nil, symlink = nil)
44
- content ||= File.read(filename)
45
- symlink = (File.symlink?(filename) rescue false) if symlink.nil?
46
-
43
+ def render(filename, content, symlink = false)
47
44
  if impl = renderer(filename, content, symlink)
48
45
  impl.render(filename, content)
49
46
  else
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: github-markup
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.7.0
4
+ version: 2.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chris Wanstrath