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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 11ecd53f76f3f7e0f02682fdf0650331db9fbfd6
4
- data.tar.gz: 9fd4b4d8546c45a16882d83721ed445f16aedef9
3
+ metadata.gz: 07d34522a5007104f1fa3da5a30afec3b1f58113
4
+ data.tar.gz: 48c43d480d7806ce54f07310bc1be5cdd0f87132
5
5
  SHA512:
6
- metadata.gz: e0defd1b01855570217e8bbc630f41a547c7c1436a22c8343ece1538bc50894efc13461424d03e725a7b457fc59485f5e540ff46abddb7ac7e6d365b06eb908f
7
- data.tar.gz: 6fe35a719ca17a0a741a91ca9ba511e1bdc81e9d255ab537699e923cf668873777e00aa4aa8b93b00af333b455daaae2eb85d4480a258789dad7da0be1afe699
6
+ metadata.gz: 8a12d40fbc61c3d5ce08ce32e87192907d669351152f572cd75042c0453ff49adfc16bd0d8180801854424f8dc2a4161011cbff1ea8a372c1b5ebdebfa83c5e6
7
+ data.tar.gz: 150c0c72d8f75fd73c4ecd8578e9844a227ba22480a718a108ce253222319b674935b0f1c1d27cd9d09bcc1df49c5f9cc990db1a3c3dcc5a134797920f5a6357
data/.travis.yml CHANGED
@@ -1,6 +1,7 @@
1
1
  language: ruby
2
2
  cache: bundler
3
3
  rvm:
4
+ - 1.9.3
4
5
  - 2.1.5
5
6
  - 2.2.2
6
7
  - jruby
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}/#{PAGES_PATH_NAME}/#{path}.md")
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}/#{PAGES_PATH_NAME}/"
74
+ relative.slice! "#{loc}/"
78
75
  relative.slice! '.md'
79
76
 
80
77
  relative
@@ -1,4 +1,4 @@
1
1
  module Slimdown
2
2
  # The slimdown version
3
- VERSION = '0.1.0'
3
+ VERSION = '0.1.1'
4
4
  end
@@ -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.0
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: '0'
149
+ version: 1.9.3
150
150
  required_rubygems_version: !ruby/object:Gem::Requirement
151
151
  requirements:
152
152
  - - ">="