nwiki 0.0.2 → 0.0.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.
data/CHANGELOG.org CHANGED
@@ -1,3 +1,5 @@
1
1
  * CHANGELOG
2
+ ** 0.0.3
3
+ - Nothing to change
2
4
  ** 0.0.2
3
5
  - [feature] be able to handle raw file (raw file means besides org file)
data/lib/nwiki/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Nwiki
2
- VERSION = '0.0.2'
2
+ VERSION = '0.0.3'
3
3
  end
@@ -7,6 +7,11 @@ module Nwiki
7
7
  let(:path) { 'spec/examples/sample.git' }
8
8
  subject { described_class.new(path) }
9
9
 
10
+ describe '.canonicalize_path' do
11
+ it { described_class.canonicalize_path('/foo').should eq 'foo' }
12
+ it { described_class.canonicalize_path('/日本語').should eq '日本語' }
13
+ end
14
+
10
15
  describe '#find' do
11
16
  it { subject.find('/foo').should eq Page.new("Foo", "* Foo\n** Bar\n[[icon.png]]\n", Wiki.parser) }
12
17
  it { subject.find('/icon.png').should be_kind_of File }
@@ -18,10 +18,10 @@ module Nwiki
18
18
  let(:path) { '/' }
19
19
 
20
20
  pending do 'not implement yet'
21
- it { subject.should be_ok }
22
- it { subject.should match %r!\bfoo\b! }
23
- it { subject.should match %r!\b1\b! }
24
- it { subject.should match %r!\b日本語ディレクトリ\b! }
21
+ it { subject.should be_ok }
22
+ it { subject.should match %r!\bfoo\b! }
23
+ it { subject.should match %r!\b1\b! }
24
+ it { subject.should match %r!\b日本語ディレクトリ\b! }
25
25
  end
26
26
  end
27
27
 
@@ -29,9 +29,9 @@ module Nwiki
29
29
  let(:path) { '/foo' }
30
30
 
31
31
  pending do 'not implement yet'
32
- it { subject.should be_ok }
33
- it { subject.should match %r!<h2[^>]*>Foo</h2>! }
34
- it { subject.should match %r!<h3[^>]*>Bar</h3>! }
32
+ it { subject.should be_ok }
33
+ it { subject.should match %r!<h2[^>]*>Foo</h2>! }
34
+ it { subject.should match %r!<h3[^>]*>Bar</h3>! }
35
35
  end
36
36
  end
37
37
 
@@ -45,9 +45,9 @@ module Nwiki
45
45
  let(:path) { '/1/2/' }
46
46
 
47
47
  pending do 'not implement yet'
48
- it { subject.should be_ok }
49
- it { subject.should match %r!\ba\b! }
50
- it { subject.should match %r!\bb\b! }
48
+ it { subject.should be_ok }
49
+ it { subject.should match %r!\ba\b! }
50
+ it { subject.should match %r!\bb\b! }
51
51
  end
52
52
  end
53
53
 
@@ -55,8 +55,8 @@ module Nwiki
55
55
  let(:path) { URI.encode '/日本語ディレクトリ/' }
56
56
 
57
57
  pending do 'not implement yet'
58
- it { subject.should be_ok }
59
- it { subject.should match %r!<h2[^>]*>わたしだ</h2>! }
58
+ it { subject.should be_ok }
59
+ it { subject.should match %r!<h2[^>]*>わたしだ</h2>! }
60
60
  end
61
61
  end
62
62
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: nwiki
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-08-09 00:00:00.000000000 Z
12
+ date: 2012-09-09 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: gollum
@@ -271,18 +271,12 @@ required_ruby_version: !ruby/object:Gem::Requirement
271
271
  - - ! '>='
272
272
  - !ruby/object:Gem::Version
273
273
  version: '0'
274
- segments:
275
- - 0
276
- hash: -191900216460912049
277
274
  required_rubygems_version: !ruby/object:Gem::Requirement
278
275
  none: false
279
276
  requirements:
280
277
  - - ! '>='
281
278
  - !ruby/object:Gem::Version
282
279
  version: '0'
283
- segments:
284
- - 0
285
- hash: -191900216460912049
286
280
  requirements: []
287
281
  rubyforge_project:
288
282
  rubygems_version: 1.8.23