slimdown 1.0.1 → 1.0.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 821906b4f1541b173b0f19354d5bdebd2eb50b1e
4
- data.tar.gz: f0d15a6d6242c5b6c6d25a1eb544fdba74cfa308
3
+ metadata.gz: a18c7d342957dba4bfd26086316993977ec27652
4
+ data.tar.gz: 81116d6930839e2829ce713aed894106a975baed
5
5
  SHA512:
6
- metadata.gz: f1c986b659811c0da2f8505d9de29154da51d2d684d6bab002ece6a4d7fa58ff8424459137d5ae4d0824724a60a04c5076b11c46dc118e0e2fcee78f129993f8
7
- data.tar.gz: 107ce9126d1a2fd9817af239dc7c803ecf05c9df3203ea6c7ba469743a1d7003fe244cdfd5ba98eb9bfa024f27e9535013c3949a4bc868529e51ab10ecc20ddd
6
+ metadata.gz: 035581363772bb4b85085721940d462538955d6d8b295be8f306b196bd68a537d60c660ad035c98d12ec6a911410237de4d9691d566197441ce947381ece0917
7
+ data.tar.gz: 526d795675fc88661767adb10a6c107c8237a02aa7714a73adb62b82a476fc7a42180c3ddf72cbc822c59b4bc6251f39c38f8bd79cab98e8c04a4ab0d4e34fe6
data/.travis.yml CHANGED
@@ -1,10 +1,9 @@
1
1
  language: ruby
2
2
  cache: bundler
3
3
  rvm:
4
- - 1.9.3
5
- - 2.1.5
6
- - 2.2.2
7
- - jruby
4
+ - 2.2.3
5
+ - 2.3.1
6
+ # - jruby
8
7
  before_install:
9
8
  - gem update --system
10
9
  - gem --version
data/README.md CHANGED
@@ -53,7 +53,7 @@ Then add a view for the show action.
53
53
  </ul>
54
54
 
55
55
  Add a route to direct all unhandled requests to your controller. Make sure that
56
- it is at the end of your routes.rb so it doesn't superseed other routes.
56
+ it is at the end of your routes.rb so it doesn't supersede other routes.
57
57
 
58
58
  get '/*slug', to: 'slimdown#show'
59
59
 
@@ -1,5 +1,6 @@
1
1
  module Slimdown
2
2
  # Exception class for Slimdown errors.
3
+ # TODO: On a major SemVer change, migrate to PageNotFoundException.
3
4
  class Exception < StandardError
4
5
  end
5
6
  end
data/lib/slimdown/page.rb CHANGED
@@ -6,6 +6,8 @@ module Slimdown
6
6
  attr_reader :title
7
7
  # The template from the document headers
8
8
  attr_reader :template
9
+ # All the document headers
10
+ attr_reader :headers
9
11
 
10
12
  # Get new page object
11
13
  #
@@ -80,9 +82,9 @@ module Slimdown
80
82
  private
81
83
 
82
84
  def load_headers
83
- headers = @parsed_page.headers
84
- @title = headers['title']
85
- @template = headers['template']
85
+ @headers = @parsed_page.headers
86
+ @title = @headers['title']
87
+ @template = @headers['template']
86
88
  end
87
89
  end
88
90
  end
@@ -1,4 +1,4 @@
1
1
  module Slimdown
2
2
  # The slimdown version
3
- VERSION = '1.0.1'
3
+ VERSION = '1.0.2'
4
4
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: slimdown
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - William Johnston
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2015-07-07 00:00:00.000000000 Z
11
+ date: 2017-03-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: kramdown
@@ -154,9 +154,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
154
154
  version: '0'
155
155
  requirements: []
156
156
  rubyforge_project:
157
- rubygems_version: 2.4.8
157
+ rubygems_version: 2.5.1
158
158
  signing_key:
159
159
  specification_version: 4
160
160
  summary: A system for using static Markdown for pages.
161
161
  test_files: []
162
- has_rdoc: