nwiki 0.1.9 → 0.1.10
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.bundle/config +3 -0
- data/.gitignore +1 -0
- data/CHANGELOG.org +3 -0
- data/Gemfile.lock +16 -16
- data/lib/nwiki/core/git_access.rb +5 -5
- data/lib/nwiki/version.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 09c977b5c351808548c965e18dde07aefc372b48
|
4
|
+
data.tar.gz: 83cc87a4ea4b8ab675a816b9aa6bcec39d7e1e2a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b7afd137f77f0e3f41e24f7e1b8a89e039d9c82f2130bddced31f0f3b1c5e9c86de1d9e5f7dfd259c8edeaf224aae999fdabb5a245d63c7793117103aa0adffd
|
7
|
+
data.tar.gz: 33ae4106079bff264ae6f9b2d33ff4a4bad81c4160d67a4cb72b2aeaac7f6ff42c93ecd37194f4a8faaeabaa764a7f4aea0272b5b1947f184824f44271e10773
|
data/.bundle/config
ADDED
data/.gitignore
CHANGED
data/CHANGELOG.org
CHANGED
data/Gemfile.lock
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
GIT
|
2
2
|
remote: git://github.com/libgit2/rugged.git
|
3
|
-
revision:
|
3
|
+
revision: 0277b7df0fea08d5f3fc7177e47527fc24d96a0e
|
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.
|
12
|
+
nwiki (0.1.10)
|
13
13
|
org-ruby
|
14
14
|
rack
|
15
15
|
|
@@ -32,26 +32,26 @@ GEM
|
|
32
32
|
docile (1.1.3)
|
33
33
|
ffi (1.9.3)
|
34
34
|
formatador (0.2.4)
|
35
|
-
guard (2.
|
35
|
+
guard (2.6.0)
|
36
36
|
formatador (>= 0.2.4)
|
37
|
-
listen (~> 2.
|
37
|
+
listen (~> 2.7)
|
38
38
|
lumberjack (~> 1.0)
|
39
39
|
pry (>= 0.9.12)
|
40
40
|
thor (>= 0.18.1)
|
41
|
-
guard-rspec (4.2.
|
41
|
+
guard-rspec (4.2.8)
|
42
42
|
guard (~> 2.1)
|
43
43
|
rspec (>= 2.14, < 4.0)
|
44
|
-
listen (2.
|
44
|
+
listen (2.7.1)
|
45
45
|
celluloid (>= 0.15.2)
|
46
46
|
celluloid-io (>= 0.15.0)
|
47
47
|
rb-fsevent (>= 0.9.3)
|
48
48
|
rb-inotify (>= 0.9)
|
49
|
-
lumberjack (1.0.
|
49
|
+
lumberjack (1.0.5)
|
50
50
|
method_source (0.8.2)
|
51
|
-
mime-types (2.
|
52
|
-
multi_json (1.
|
51
|
+
mime-types (2.2)
|
52
|
+
multi_json (1.9.2)
|
53
53
|
nio4r (1.0.0)
|
54
|
-
org-ruby (0.9.
|
54
|
+
org-ruby (0.9.3)
|
55
55
|
rubypants (>= 0.2.0)
|
56
56
|
pry (0.9.12.6)
|
57
57
|
coderay (~> 1.0)
|
@@ -60,7 +60,7 @@ GEM
|
|
60
60
|
rack (1.5.2)
|
61
61
|
rack-test (0.6.2)
|
62
62
|
rack (>= 1.0)
|
63
|
-
rake (10.
|
63
|
+
rake (10.2.2)
|
64
64
|
rb-fsevent (0.9.4)
|
65
65
|
rb-inotify (0.9.3)
|
66
66
|
ffi (>= 0.5.0)
|
@@ -70,10 +70,10 @@ GEM
|
|
70
70
|
rspec-core (~> 2.14.0)
|
71
71
|
rspec-expectations (~> 2.14.0)
|
72
72
|
rspec-mocks (~> 2.14.0)
|
73
|
-
rspec-core (2.14.
|
73
|
+
rspec-core (2.14.8)
|
74
74
|
rspec-expectations (2.14.5)
|
75
75
|
diff-lcs (>= 1.1.3, < 2.0)
|
76
|
-
rspec-mocks (2.14.
|
76
|
+
rspec-mocks (2.14.6)
|
77
77
|
ruby_gntp (0.3.4)
|
78
78
|
rubypants (0.2.0)
|
79
79
|
simplecov (0.8.2)
|
@@ -81,12 +81,12 @@ GEM
|
|
81
81
|
multi_json
|
82
82
|
simplecov-html (~> 0.8.0)
|
83
83
|
simplecov-html (0.8.0)
|
84
|
-
slop (3.
|
84
|
+
slop (3.5.0)
|
85
85
|
term-ansicolor (1.3.0)
|
86
86
|
tins (~> 1.0)
|
87
|
-
thor (0.
|
87
|
+
thor (0.19.1)
|
88
88
|
timers (1.1.0)
|
89
|
-
tins (1.
|
89
|
+
tins (1.1.0)
|
90
90
|
|
91
91
|
PLATFORMS
|
92
92
|
ruby
|
@@ -39,30 +39,30 @@ module Nwiki
|
|
39
39
|
end
|
40
40
|
|
41
41
|
def config
|
42
|
-
|
42
|
+
@repo.branches['config']
|
43
43
|
end
|
44
44
|
|
45
45
|
def title
|
46
|
-
title_entry = config.
|
46
|
+
title_entry = config.target.tree.get_entry('title')
|
47
47
|
title_blob = @repo.lookup(title_entry[:oid])
|
48
48
|
title_blob.text.chomp.force_encoding('UTF-8')
|
49
49
|
end
|
50
50
|
|
51
51
|
def subtitle
|
52
|
-
subtitle_entry = config.
|
52
|
+
subtitle_entry = config.target.tree.get_entry('subtitle')
|
53
53
|
subtitle_blob = @repo.lookup(subtitle_entry[:oid])
|
54
54
|
subtitle_blob.text.chomp.force_encoding('UTF-8')
|
55
55
|
end
|
56
56
|
|
57
57
|
def author
|
58
|
-
author_entry = config.
|
58
|
+
author_entry = config.target.tree.get_entry('author')
|
59
59
|
author_blob = @repo.lookup(author_entry[:oid])
|
60
60
|
author_blob.text.chomp.force_encoding('UTF-8')
|
61
61
|
end
|
62
62
|
|
63
63
|
def find_file
|
64
64
|
target = @repo.head.target
|
65
|
-
|
65
|
+
target.tree.walk_blobs do |path, object|
|
66
66
|
fullpath = path + object[:name]
|
67
67
|
if yield(fullpath)
|
68
68
|
return Entry.new(fullpath, @repo.lookup(object[:oid]))
|
data/lib/nwiki/version.rb
CHANGED
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.
|
4
|
+
version: 0.1.10
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- niku
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-04-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rack
|
@@ -129,6 +129,7 @@ executables: []
|
|
129
129
|
extensions: []
|
130
130
|
extra_rdoc_files: []
|
131
131
|
files:
|
132
|
+
- ".bundle/config"
|
132
133
|
- ".coveralls.yml"
|
133
134
|
- ".gitignore"
|
134
135
|
- ".rspec"
|