guide 0.3.1 → 0.3.2
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 +4 -4
- data/lib/guide/configuration.rb +0 -2
- data/lib/guide/version.rb +1 -1
- metadata +4 -33
- data/README.rdoc +0 -3
- data/config/initializers/markdown.rb +0 -15
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 05f8dc1c5a10f5db5ac53ae01566b5286cfee65a
|
|
4
|
+
data.tar.gz: 061709b13d06de7d5e93a7e8779e3a6ae14db9c3
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 374bdd0e11bd950c4dfdea7060d9e718b6a5da7c1495277b95b12355d40f2a37a4b363b98ed44f30b24006d8410467e9796d61c4eb734b0e3509cdc2e1a3a2c3
|
|
7
|
+
data.tar.gz: 255cff843ba6ef460df8a894ef37f55626b57dc7dea2941cb98a7193d38706a7df6474903c2d10053fa69e1428275235bdb687e76ae4a4bb421d9a461fad1274
|
data/lib/guide/configuration.rb
CHANGED
|
@@ -10,7 +10,6 @@ class Guide::Configuration
|
|
|
10
10
|
:guide_name,
|
|
11
11
|
:helper_module_to_globally_include,
|
|
12
12
|
:local_variable_for_view_model,
|
|
13
|
-
:markdown_wrapper_class,
|
|
14
13
|
:supported_locales
|
|
15
14
|
|
|
16
15
|
def initialize
|
|
@@ -25,7 +24,6 @@ class Guide::Configuration
|
|
|
25
24
|
@guide_name = 'Your Awesome Guide'
|
|
26
25
|
@helper_module_to_globally_include = 'Guide::ApplicationHelper::DefaultInclude'
|
|
27
26
|
@local_variable_for_view_model = :view
|
|
28
|
-
@markdown_wrapper_class = 'markdown'
|
|
29
27
|
@supported_locales = { "English" => "en" }
|
|
30
28
|
end
|
|
31
29
|
end
|
data/lib/guide/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: guide
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.3.
|
|
4
|
+
version: 0.3.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Luke Arndt
|
|
@@ -10,7 +10,7 @@ authors:
|
|
|
10
10
|
autorequire:
|
|
11
11
|
bindir: bin
|
|
12
12
|
cert_chain: []
|
|
13
|
-
date: 2017-
|
|
13
|
+
date: 2017-03-26 00:00:00.000000000 Z
|
|
14
14
|
dependencies:
|
|
15
15
|
- !ruby/object:Gem::Dependency
|
|
16
16
|
name: rails
|
|
@@ -32,34 +32,6 @@ dependencies:
|
|
|
32
32
|
- - "<"
|
|
33
33
|
- !ruby/object:Gem::Version
|
|
34
34
|
version: '5'
|
|
35
|
-
- !ruby/object:Gem::Dependency
|
|
36
|
-
name: github-markup
|
|
37
|
-
requirement: !ruby/object:Gem::Requirement
|
|
38
|
-
requirements:
|
|
39
|
-
- - ">="
|
|
40
|
-
- !ruby/object:Gem::Version
|
|
41
|
-
version: '0'
|
|
42
|
-
type: :runtime
|
|
43
|
-
prerelease: false
|
|
44
|
-
version_requirements: !ruby/object:Gem::Requirement
|
|
45
|
-
requirements:
|
|
46
|
-
- - ">="
|
|
47
|
-
- !ruby/object:Gem::Version
|
|
48
|
-
version: '0'
|
|
49
|
-
- !ruby/object:Gem::Dependency
|
|
50
|
-
name: rdiscount
|
|
51
|
-
requirement: !ruby/object:Gem::Requirement
|
|
52
|
-
requirements:
|
|
53
|
-
- - ">="
|
|
54
|
-
- !ruby/object:Gem::Version
|
|
55
|
-
version: '0'
|
|
56
|
-
type: :runtime
|
|
57
|
-
prerelease: false
|
|
58
|
-
version_requirements: !ruby/object:Gem::Requirement
|
|
59
|
-
requirements:
|
|
60
|
-
- - ">="
|
|
61
|
-
- !ruby/object:Gem::Version
|
|
62
|
-
version: '0'
|
|
63
35
|
- !ruby/object:Gem::Dependency
|
|
64
36
|
name: sass-rails
|
|
65
37
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -126,7 +98,6 @@ extensions: []
|
|
|
126
98
|
extra_rdoc_files: []
|
|
127
99
|
files:
|
|
128
100
|
- LICENSE
|
|
129
|
-
- README.rdoc
|
|
130
101
|
- Rakefile
|
|
131
102
|
- app/assets/javascripts/guide/application.js
|
|
132
103
|
- app/assets/javascripts/guide/scenario.js
|
|
@@ -194,7 +165,6 @@ files:
|
|
|
194
165
|
- app/views/layouts/guide/scenario/default.html.erb
|
|
195
166
|
- app/views/layouts/guide/scenario/default.text.erb
|
|
196
167
|
- config/initializers/assets.rb
|
|
197
|
-
- config/initializers/markdown.rb
|
|
198
168
|
- config/locales/models/guide/monkey.en.yml
|
|
199
169
|
- config/locales/views/guide/nodes/_structure.en.yml
|
|
200
170
|
- config/routes.rb
|
|
@@ -225,8 +195,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
225
195
|
version: '0'
|
|
226
196
|
requirements: []
|
|
227
197
|
rubyforge_project:
|
|
228
|
-
rubygems_version: 2.5.1
|
|
198
|
+
rubygems_version: 2.4.5.1
|
|
229
199
|
signing_key:
|
|
230
200
|
specification_version: 4
|
|
231
201
|
summary: Living documentation for your Rails application
|
|
232
202
|
test_files: []
|
|
203
|
+
has_rdoc:
|
data/README.rdoc
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
require 'github/markup'
|
|
2
|
-
require 'rdiscount'
|
|
3
|
-
|
|
4
|
-
class ActionView::Template
|
|
5
|
-
module Handlers
|
|
6
|
-
class Markdown
|
|
7
|
-
def self.call(template)
|
|
8
|
-
markdown = GitHub::Markup.render('README.markdown', template.source)
|
|
9
|
-
"%{<div class='#{Guide.configuration.markdown_wrapper_class}'>#{markdown}</div>}.html_safe"
|
|
10
|
-
end
|
|
11
|
-
end
|
|
12
|
-
end
|
|
13
|
-
|
|
14
|
-
register_template_handler :md, Handlers::Markdown
|
|
15
|
-
end
|