slimdown 0.1.0 → 0.1.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 +4 -4
- data/.travis.yml +1 -0
- data/README.md +0 -5
- data/lib/slimdown/page.rb +2 -5
- data/lib/slimdown/version.rb +1 -1
- data/ruby-slimdown.gemspec +2 -0
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 07d34522a5007104f1fa3da5a30afec3b1f58113
|
|
4
|
+
data.tar.gz: 48c43d480d7806ce54f07310bc1be5cdd0f87132
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 8a12d40fbc61c3d5ce08ce32e87192907d669351152f572cd75042c0453ff49adfc16bd0d8180801854424f8dc2a4161011cbff1ea8a372c1b5ebdebfa83c5e6
|
|
7
|
+
data.tar.gz: 150c0c72d8f75fd73c4ecd8578e9844a227ba22480a718a108ce253222319b674935b0f1c1d27cd9d09bcc1df49c5f9cc990db1a3c3dcc5a134797920f5a6357
|
data/.travis.yml
CHANGED
data/README.md
CHANGED
|
@@ -71,11 +71,6 @@ The use case for us is that we have a distinct repo containing the markdown (and
|
|
|
71
71
|
some other files) which is editable by producers. This is autodeployed to a
|
|
72
72
|
location on our servers which is accessible from our Rails app.
|
|
73
73
|
|
|
74
|
-
The actual pages live in `[location]/pages`. It is assumed that you will have
|
|
75
|
-
other files in there as well. In our use case, we have `/files` as well, which
|
|
76
|
-
is aliased as an asset store of sorts. We also have `/_deploy` with Capistrano
|
|
77
|
-
deployment code.
|
|
78
|
-
|
|
79
74
|
|
|
80
75
|
## Development
|
|
81
76
|
|
data/lib/slimdown/page.rb
CHANGED
|
@@ -2,9 +2,6 @@ module Slimdown
|
|
|
2
2
|
# The model representing a page
|
|
3
3
|
class Page
|
|
4
4
|
|
|
5
|
-
# The subdirectory of the slimdown folder containing the markdown documents
|
|
6
|
-
PAGES_PATH_NAME = 'pages'
|
|
7
|
-
|
|
8
5
|
# The title from the document headers
|
|
9
6
|
attr_reader :title
|
|
10
7
|
# The template from the document headers
|
|
@@ -35,7 +32,7 @@ module Slimdown
|
|
|
35
32
|
config = Slimdown.config
|
|
36
33
|
loc = config.location
|
|
37
34
|
|
|
38
|
-
self.new("#{loc}/#{
|
|
35
|
+
self.new("#{loc}/#{path}.md")
|
|
39
36
|
end
|
|
40
37
|
|
|
41
38
|
# Get the parsed body
|
|
@@ -74,7 +71,7 @@ module Slimdown
|
|
|
74
71
|
def path
|
|
75
72
|
loc = Slimdown.config.location
|
|
76
73
|
relative = @absolute_path
|
|
77
|
-
relative.slice! "#{loc}
|
|
74
|
+
relative.slice! "#{loc}/"
|
|
78
75
|
relative.slice! '.md'
|
|
79
76
|
|
|
80
77
|
relative
|
data/lib/slimdown/version.rb
CHANGED
data/ruby-slimdown.gemspec
CHANGED
|
@@ -19,6 +19,8 @@ Gem::Specification.new do |spec|
|
|
|
19
19
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
|
20
20
|
spec.require_paths = ["lib"]
|
|
21
21
|
|
|
22
|
+
spec.required_ruby_version = '>= 1.9.3'
|
|
23
|
+
|
|
22
24
|
spec.add_runtime_dependency 'kramdown', '~> 1.7'
|
|
23
25
|
|
|
24
26
|
spec.add_development_dependency "bundler", "~> 1.9"
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: slimdown
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- William Johnston
|
|
@@ -146,7 +146,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
146
146
|
requirements:
|
|
147
147
|
- - ">="
|
|
148
148
|
- !ruby/object:Gem::Version
|
|
149
|
-
version:
|
|
149
|
+
version: 1.9.3
|
|
150
150
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
151
151
|
requirements:
|
|
152
152
|
- - ">="
|