nwiki 0.2.2 → 0.2.3

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: d1f51f0b1a79504a0d2803e3fa0f49e04329a157
4
- data.tar.gz: 8b5290ffcb10ebc03b9554b3001e9bc584d6d115
3
+ metadata.gz: 7efdc34ef2309438d9a7134aefc678b31251521d
4
+ data.tar.gz: f882584a42cde83f62dae9701342ed3351988788
5
5
  SHA512:
6
- metadata.gz: e6301713192bcdcab3d973a5645c4e09bd6bb9791f9938a104fff0afd2d23b2ceb084fde281aa2f7c4187c55511d77968d68531d710b155826786530aac4cf22
7
- data.tar.gz: bc7cb0305d7ee83ca3b9fddf3f5c232d78ea975b8f67bca6ba831f71e85eb4fc214f6722e1e54b01fe0c3269af4b8f3b6912b1ea83d9904fdb3cb0f1ad472cd3
6
+ metadata.gz: 72e43bd30ebbed50d75de9b905000e047be89c15372e075688b6b9aac335154de868b3337fbb0f69311b1640b02f388a6e935610a6041aa931d580fffe56e65c
7
+ data.tar.gz: a6a4cad07cbaed8a961fe79e6dfd3403d66af7c6b4a9172e236073408f27607840854fa456e49e50b2f425affe1a328237a893d32ab4485356364fc105133259
data/CHANGELOG.org CHANGED
@@ -1,4 +1,6 @@
1
1
  * CHANGELOG
2
+ ** 0.2.3
3
+ - [fix] Escape link url
2
4
  ** 0.2.2
3
5
  - [fix] Content-Type includes encoding (for safari issue)
4
6
  ** 0.2.1
data/Gemfile CHANGED
@@ -4,5 +4,5 @@ source 'https://rubygems.org'
4
4
  gemspec
5
5
 
6
6
  gem 'rugged', git: 'git://github.com/libgit2/rugged.git', branch: 'development', submodules: true
7
- gem 'rack-git', git: 'git@github.com:niku/rack-git.git'
7
+ gem 'rack-git', git: 'git://github.com/niku/rack-git.git'
8
8
  gem 'coveralls', require: false
data/Gemfile.lock CHANGED
@@ -7,7 +7,7 @@ GIT
7
7
  rugged (0.19.0)
8
8
 
9
9
  GIT
10
- remote: git@github.com:niku/rack-git.git
10
+ remote: git://github.com/niku/rack-git.git
11
11
  revision: e06902c573201c1860ac46f2822ab4bbd7837639
12
12
  specs:
13
13
  rack-git (0.0.2)
@@ -17,7 +17,7 @@ GIT
17
17
  PATH
18
18
  remote: .
19
19
  specs:
20
- nwiki (0.2.2)
20
+ nwiki (0.2.3)
21
21
  org-ruby
22
22
  rack
23
23
  rack-git
@@ -26,10 +26,10 @@ PATH
26
26
  GEM
27
27
  remote: https://rubygems.org/
28
28
  specs:
29
- celluloid (0.15.2)
30
- timers (~> 1.1.0)
29
+ celluloid (0.16.0)
30
+ timers (~> 4.0.0)
31
31
  coderay (1.1.0)
32
- coveralls (0.7.0)
32
+ coveralls (0.7.1)
33
33
  multi_json (~> 1.3)
34
34
  rest-client
35
35
  simplecov (>= 0.7)
@@ -48,6 +48,7 @@ GEM
48
48
  guard-rspec (4.3.1)
49
49
  guard (~> 2.1)
50
50
  rspec (>= 2.14, < 4.0)
51
+ hitimes (1.2.2)
51
52
  listen (2.7.9)
52
53
  celluloid (>= 0.15.2)
53
54
  rb-fsevent (>= 0.9.3)
@@ -57,9 +58,9 @@ GEM
57
58
  mime-types (2.3)
58
59
  multi_json (1.10.1)
59
60
  netrc (0.7.7)
60
- org-ruby (0.9.7)
61
+ org-ruby (0.9.9)
61
62
  rubypants (~> 0.2)
62
- pry (0.10.0)
63
+ pry (0.10.1)
63
64
  coderay (~> 1.1.0)
64
65
  method_source (~> 0.8.1)
65
66
  slop (~> 3.4)
@@ -74,18 +75,18 @@ GEM
74
75
  rest-client (1.7.2)
75
76
  mime-types (>= 1.16, < 3.0)
76
77
  netrc (~> 0.7)
77
- rspec (3.0.0)
78
- rspec-core (~> 3.0.0)
79
- rspec-expectations (~> 3.0.0)
80
- rspec-mocks (~> 3.0.0)
81
- rspec-core (3.0.3)
82
- rspec-support (~> 3.0.0)
83
- rspec-expectations (3.0.3)
78
+ rspec (3.1.0)
79
+ rspec-core (~> 3.1.0)
80
+ rspec-expectations (~> 3.1.0)
81
+ rspec-mocks (~> 3.1.0)
82
+ rspec-core (3.1.2)
83
+ rspec-support (~> 3.1.0)
84
+ rspec-expectations (3.1.0)
84
85
  diff-lcs (>= 1.2.0, < 2.0)
85
- rspec-support (~> 3.0.0)
86
- rspec-mocks (3.0.3)
87
- rspec-support (~> 3.0.0)
88
- rspec-support (3.0.3)
86
+ rspec-support (~> 3.1.0)
87
+ rspec-mocks (3.1.0)
88
+ rspec-support (~> 3.1.0)
89
+ rspec-support (3.1.0)
89
90
  ruby_gntp (0.3.4)
90
91
  rubypants (0.2.0)
91
92
  simplecov (0.9.0)
@@ -97,8 +98,9 @@ GEM
97
98
  term-ansicolor (1.3.0)
98
99
  tins (~> 1.0)
99
100
  thor (0.19.1)
100
- timers (1.1.0)
101
- tins (1.3.0)
101
+ timers (4.0.0)
102
+ hitimes
103
+ tins (1.3.2)
102
104
 
103
105
  PLATFORMS
104
106
  ruby
@@ -26,7 +26,7 @@ module Nwiki
26
26
  '<ul>' + @list.map { |e|
27
27
  root = './'
28
28
  root << @path if @path != '/'
29
- %Q!<li><a href="#{root}#{e}">#{e}</a></li>!
29
+ %Q!<li><a href="#{root}#{e.gsub('#', '%23')}">#{e}</a></li>!
30
30
  }.join + '</ul>'
31
31
  end
32
32
  end
@@ -68,7 +68,7 @@ EOS
68
68
  list = dirs.
69
69
  each { |d| d.force_encoding("UTF-8") }.
70
70
  map { |e| Nwiki::Utils.strip_org(e) }.
71
- map { |e| %Q!<li><a href="#{e}">#{e}</a></li>! }
71
+ map { |e| %Q!<li><a href="#{e.gsub('#', '%23')}">#{e}</a></li>! }
72
72
  html = "<ul><li><a href=\"../\">../</a></li>#{list.join}</ul>"
73
73
  template.call(wiki, page_title, html)
74
74
  end
data/lib/nwiki/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Nwiki
2
- VERSION = '0.2.2'
2
+ VERSION = '0.2.3'
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.2.2
4
+ version: 0.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - niku
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-08-09 00:00:00.000000000 Z
11
+ date: 2014-09-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rack