story-gen 0.0.3 → 0.0.4

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.
Files changed (2) hide show
  1. data/yardopts_extra.rb +17 -0
  2. metadata +3 -2
data/yardopts_extra.rb ADDED
@@ -0,0 +1,17 @@
1
+ # encoding: UTF-8
2
+
3
+ # register ".sdl" extension using "pre" markup
4
+ YARD::Templates::Helpers::MarkupHelper::MARKUP_EXTENSIONS[:pre] = ['sdl']
5
+
6
+ # fix bug with extra files, when YARD generates invalid URLs
7
+ class YARD::Serializers::FileSystemSerializer
8
+ def encode_path_components(*components)
9
+ components.map! do |p|
10
+ p.gsub(/[^\wа-яёА-ЯЁ\.-]/) do |x|
11
+ encoded = '_'
12
+ x.each_byte { |b| encoded << ("%X" % b) }
13
+ encoded
14
+ end
15
+ end
16
+ end
17
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: story-gen
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2016-01-31 00:00:00.000000000 Z
12
+ date: 2016-02-02 00:00:00.000000000 Z
13
13
  dependencies: []
14
14
  description: Generate stories from descriptions based on Facts!
15
15
  email: various.furriness@gmail.com
@@ -42,6 +42,7 @@ files:
42
42
  - lib/object/to_rb.rb
43
43
  - README.md
44
44
  - .yardopts
45
+ - yardopts_extra.rb
45
46
  - sample/fight_club.sdl
46
47
  - sample/университет.sdl
47
48
  - sample/бойцовский_клуб.sdl