mado 0.2.0 → 0.2.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4c329e0374481522fcf73e06b26b5a20144583db
4
- data.tar.gz: aa212634cdf08ca9c0a1ad249d83368a7a79cbec
3
+ metadata.gz: 3249150fd56c05385e3dc120c590b90fe689c200
4
+ data.tar.gz: b10a78015318873dcc4ed74f581b072346680a7d
5
5
  SHA512:
6
- metadata.gz: 2c654a8ae96f074800b91f49a2b8f01f0fb261ff2861b0093062968beb85fc46e2af0e1b1f9027fe6e8b62d0ba95b1a3512c0224cf7389729260511171c62880
7
- data.tar.gz: 0276d4a49b280d25bd77c043fcde074e9d2263046628c465ebfd50b5e1de908b87fab071ed73cc7d120e5b548253854b9626c13519e44c31f785fcc6ed992093
6
+ metadata.gz: 7b3519d110e62ff42f8c49807d7363b331a9d4de417bc307a6dffcc8954e2b0a939bc1a1a2a85ae0e6869c815ad5f1e753c6974ef1640c2d2dc3b8d0c918a607
7
+ data.tar.gz: df79e377e44ff8377025181c1e803e8a7b429636d48b290df326431fd095d221270f82570fec74109d90552495ef7043afb7e6dc1e29cd227220d3f1d23b1b1c
@@ -1,3 +1,6 @@
1
+ ## 0.2.1
2
+ * Show Markdown file name at page title
3
+
1
4
  ## 0.2.0
2
5
  * Render Emoji :octocat:
3
6
  * Render GitHub-like tasklist
@@ -2,6 +2,7 @@ doctype html
2
2
  html
3
3
  head
4
4
  meta charset="utf-8"
5
+ title #{@page_title}
5
6
  link href="/css/github.css" rel="stylesheet"
6
7
  link href="/css/application.css" rel="stylesheet"
7
8
  style type="text/css"
@@ -15,6 +15,7 @@ module Mado
15
15
  end
16
16
 
17
17
  get '/' do
18
+ @page_title = File.basename(settings.markdown_path)
18
19
  slim :index
19
20
  end
20
21
 
@@ -1,3 +1,3 @@
1
1
  module Mado
2
- VERSION = "0.2.0"
2
+ VERSION = "0.2.1"
3
3
  end
@@ -10,10 +10,19 @@ module Mado
10
10
  end
11
11
 
12
12
  describe "GET /" do
13
+ before do
14
+ app.set :markdown_path, fixture_path("test.md")
15
+ end
16
+
13
17
  it "should show the root page" do
14
18
  get "/"
15
19
  expect(last_response).to be_ok
16
20
  end
21
+
22
+ it "should contain markdown name as page title" do
23
+ get "/"
24
+ expect(last_response.body).to match(%r(<title>test\.md<\/title>))
25
+ end
17
26
  end
18
27
 
19
28
  describe "GET /<image>" do
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mado
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - dtan4
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-02-11 00:00:00.000000000 Z
11
+ date: 2015-04-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: coffee-script