nwiki 0.1.10 → 0.1.11

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: 09c977b5c351808548c965e18dde07aefc372b48
4
- data.tar.gz: 83cc87a4ea4b8ab675a816b9aa6bcec39d7e1e2a
3
+ metadata.gz: 1e8a735142fc4d1d0648d7834d8a107b10d88e7b
4
+ data.tar.gz: ea67db9c169ca414a63656479339589773d1f2f5
5
5
  SHA512:
6
- metadata.gz: b7afd137f77f0e3f41e24f7e1b8a89e039d9c82f2130bddced31f0f3b1c5e9c86de1d9e5f7dfd259c8edeaf224aae999fdabb5a245d63c7793117103aa0adffd
7
- data.tar.gz: 33ae4106079bff264ae6f9b2d33ff4a4bad81c4160d67a4cb72b2aeaac7f6ff42c93ecd37194f4a8faaeabaa764a7f4aea0272b5b1947f184824f44271e10773
6
+ metadata.gz: f41486de0cab432bd602907f7f4eae119c63740c8b7f1b62a60b8e368d56e369994a61e93cbd6f424156fda4e65b61b2d27758f322ae7955b3e8cfd42ca0ebae
7
+ data.tar.gz: 8840e56a45880585b5c9c7f2b5955db19059ba660ef5e9747405be4ad447aaf75594d83b815cde2f125ecfaf810caa7bed4070c453e1433e6a99064f80074554
data/CHANGELOG.org CHANGED
@@ -1,4 +1,6 @@
1
1
  * CHANGELOG
2
+ ** 0.1.11
3
+ - [fix] Do not print '-' if page title is empty.
2
4
  ** 0.1.10
3
5
  - [fix] Adapt interface with C
4
6
  - [improvement] Install gem to 'vendor/bundle'
data/Gemfile.lock CHANGED
@@ -1,6 +1,6 @@
1
1
  GIT
2
2
  remote: git://github.com/libgit2/rugged.git
3
- revision: 0277b7df0fea08d5f3fc7177e47527fc24d96a0e
3
+ revision: de19d5fb25fc83c6b88fab0ef5cd1e09c829e0a8
4
4
  branch: development
5
5
  submodules: true
6
6
  specs:
@@ -9,7 +9,7 @@ GIT
9
9
  PATH
10
10
  remote: .
11
11
  specs:
12
- nwiki (0.1.10)
12
+ nwiki (0.1.11)
13
13
  org-ruby
14
14
  rack
15
15
 
@@ -32,7 +32,7 @@ GEM
32
32
  docile (1.1.3)
33
33
  ffi (1.9.3)
34
34
  formatador (0.2.4)
35
- guard (2.6.0)
35
+ guard (2.6.1)
36
36
  formatador (>= 0.2.4)
37
37
  listen (~> 2.7)
38
38
  lumberjack (~> 1.0)
@@ -41,7 +41,7 @@ GEM
41
41
  guard-rspec (4.2.8)
42
42
  guard (~> 2.1)
43
43
  rspec (>= 2.14, < 4.0)
44
- listen (2.7.1)
44
+ listen (2.7.4)
45
45
  celluloid (>= 0.15.2)
46
46
  celluloid-io (>= 0.15.0)
47
47
  rb-fsevent (>= 0.9.3)
@@ -49,9 +49,9 @@ GEM
49
49
  lumberjack (1.0.5)
50
50
  method_source (0.8.2)
51
51
  mime-types (2.2)
52
- multi_json (1.9.2)
52
+ multi_json (1.10.0)
53
53
  nio4r (1.0.0)
54
- org-ruby (0.9.3)
54
+ org-ruby (0.9.6)
55
55
  rubypants (>= 0.2.0)
56
56
  pry (0.9.12.6)
57
57
  coderay (~> 1.0)
@@ -60,9 +60,9 @@ GEM
60
60
  rack (1.5.2)
61
61
  rack-test (0.6.2)
62
62
  rack (>= 1.0)
63
- rake (10.2.2)
63
+ rake (10.3.1)
64
64
  rb-fsevent (0.9.4)
65
- rb-inotify (0.9.3)
65
+ rb-inotify (0.9.4)
66
66
  ffi (>= 0.5.0)
67
67
  rest-client (1.6.7)
68
68
  mime-types (>= 1.16)
@@ -21,11 +21,12 @@ module Nwiki
21
21
  end
22
22
 
23
23
  def html page
24
+ page_title = page.title.empty? ? '' : "#{page.title} - "
24
25
  erb = ERB.new <<EOS
25
26
  <!DOCTYPE HTML>
26
27
  <html>
27
28
  <head>
28
- <title><%= page.title %> - <%= @wiki.title %></title>
29
+ <title><%= page_title %><%= @wiki.title %></title>
29
30
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
30
31
  <link rel="alternate" type="application/atom+xml" title="ATOM Feed" href="/articles.xml">
31
32
  <link rel="stylesheet" href="//netdna.bootstrapcdn.com/bootstrap/3.0.3/css/bootstrap.min.css">
data/lib/nwiki/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Nwiki
2
- VERSION = '0.1.10'
2
+ VERSION = '0.1.11'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: nwiki
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.10
4
+ version: 0.1.11
5
5
  platform: ruby
6
6
  authors:
7
7
  - niku
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-04-09 00:00:00.000000000 Z
11
+ date: 2014-05-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rack