tiddlywiki_cp 0.2.0 → 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
- data/History.txt +5 -0
- data/Manifest.txt +6 -0
- data/Rakefile +1 -1
- data/lib/tiddlywiki_cp/version.rb +1 -1
- data/lib/tiddlywiki_cp.rb +3 -1
- data/test/content/d/CVS +0 -0
- data/test/content/ignored# +0 -0
- data/test/content/tiddly_version_2_1.txt +1 -0
- data/test/content/tiddly_version_2_2.txt +1 -0
- data/test/test_tiddlywiki_cp.rb +2 -1
- data/website/files/ChangeLog.tiddler +143 -0
- data/website/files/ChangeLog.tiddler.div +1 -0
- metadata +10 -2
data/History.txt
CHANGED
data/Manifest.txt
CHANGED
@@ -22,10 +22,14 @@ setup.rb
|
|
22
22
|
test/content/a
|
23
23
|
test/content/a.div
|
24
24
|
test/content/b
|
25
|
+
test/content/d/CVS
|
25
26
|
test/content/e
|
26
27
|
test/content/e.div
|
27
28
|
test/content/html_entities.html
|
29
|
+
test/content/ignored#
|
28
30
|
test/content/test_fetch.html
|
31
|
+
test/content/tiddly_version_2_1.txt
|
32
|
+
test/content/tiddly_version_2_2.txt
|
29
33
|
test/content/universe.html
|
30
34
|
test/r4tw/addtag.rb
|
31
35
|
test/r4tw/all.rb
|
@@ -50,6 +54,8 @@ test/test_tiddler_css.rb
|
|
50
54
|
test/test_tiddler_html.rb
|
51
55
|
test/test_tiddler_js.rb
|
52
56
|
test/test_tiddlywiki_cp.rb
|
57
|
+
website/files/ChangeLog.tiddler
|
58
|
+
website/files/ChangeLog.tiddler.div
|
53
59
|
website/files/DefaultTiddlers.tiddler
|
54
60
|
website/files/DefaultTiddlers.tiddler.div
|
55
61
|
website/files/Introduction.tiddler
|
data/Rakefile
CHANGED
@@ -44,7 +44,7 @@ REV = nil
|
|
44
44
|
# UNCOMMENT IF REQUIRED:
|
45
45
|
# REV = `svn info`.each {|line| if line =~ /^Revision:/ then k,v = line.split(': '); break v.chomp; else next; end} rescue nil
|
46
46
|
VERS = TiddlywikiCp::VERSION::STRING + (REV ? ".#{REV}" : "")
|
47
|
-
CLEAN.include ['**/.*.sw?', '*.gem', '.config', '**/.DS_Store']
|
47
|
+
CLEAN.include ['**/.*.sw?', '*.gem', '.config', '**/.DS_Store', 'test/coverage']
|
48
48
|
RDOC_OPTS = ['--quiet', '--title', 'tiddlywiki_cp documentation',
|
49
49
|
"--opname", "index.html",
|
50
50
|
"--line-numbers",
|
data/lib/tiddlywiki_cp.rb
CHANGED
@@ -385,7 +385,9 @@ module TiddlywikiCp
|
|
385
385
|
end
|
386
386
|
|
387
387
|
def tiddlywiki?(uri) #:nodoc:
|
388
|
-
|
388
|
+
content = read_uri(uri)
|
389
|
+
return content =~ /var version = \{title: "TiddlyWiki"/ ||
|
390
|
+
content =~ /var version = \{major: 2, minor: 1, revision: 3/
|
389
391
|
end # tiddlywiki?
|
390
392
|
|
391
393
|
end # TiddlyWikiCp
|
data/test/content/d/CVS
ADDED
File without changes
|
File without changes
|
@@ -0,0 +1 @@
|
|
1
|
+
var version = {major: 2, minor: 1, revision: 3, date: new Date("Nov 3, 2006"), extensions: {}};
|
@@ -0,0 +1 @@
|
|
1
|
+
var version = {title: "TiddlyWiki", major: 2, minor: 2, revision: 0, beta: 5, date: new Date("Apr 18, 2007"), extensions: {}};
|
data/test/test_tiddlywiki_cp.rb
CHANGED
@@ -311,7 +311,8 @@ class TestTiddlywikiCp < Test::Unit::TestCase
|
|
311
311
|
|
312
312
|
def test_tiddlywiki?
|
313
313
|
t = TiddlyWikiCp.new
|
314
|
-
assert(t.tiddlywiki?("#{this_dir(__FILE__)}/content/
|
314
|
+
assert(t.tiddlywiki?("#{this_dir(__FILE__)}/content/tiddly_version_2_2.txt"))
|
315
|
+
assert(t.tiddlywiki?("#{this_dir(__FILE__)}/content/tiddly_version_2_1.txt"))
|
315
316
|
assert_equal(nil, t.tiddlywiki?("#{this_dir(__FILE__)}/content/html_entities.html"))
|
316
317
|
end
|
317
318
|
|
@@ -0,0 +1,143 @@
|
|
1
|
+
{{{
|
2
|
+
changeset: 27:4fe4a301fdfb
|
3
|
+
tag: tip
|
4
|
+
user: root@dachary.org
|
5
|
+
date: Sun Jul 22 21:18:22 2007 +0200
|
6
|
+
summary: fix major HTML escaping logic problem
|
7
|
+
|
8
|
+
changeset: 26:fdcd8116f513
|
9
|
+
user: root@dachary.org
|
10
|
+
date: Sat Jul 21 19:31:23 2007 +0200
|
11
|
+
summary: first package published
|
12
|
+
|
13
|
+
changeset: 25:6225c5fb1bf2
|
14
|
+
user: root@dachary.org
|
15
|
+
date: Sat Jul 21 18:39:21 2007 +0200
|
16
|
+
summary: Introduction
|
17
|
+
|
18
|
+
changeset: 24:ae6e7e676ca3
|
19
|
+
user: root@dachary.org
|
20
|
+
date: Sat Jul 21 18:33:02 2007 +0200
|
21
|
+
summary: stub site
|
22
|
+
|
23
|
+
changeset: 23:c20e9a96ebaa
|
24
|
+
user: root@dachary.org
|
25
|
+
date: Sat Jul 21 18:32:46 2007 +0200
|
26
|
+
summary: implement ignore backupfiles and SCM files
|
27
|
+
|
28
|
+
changeset: 22:f97c46f9b77a
|
29
|
+
user: root@dachary.org
|
30
|
+
date: Sat Jul 21 18:13:53 2007 +0200
|
31
|
+
summary: tiddler2tiddlywiki implementation and tests
|
32
|
+
|
33
|
+
changeset: 21:409f079da1eb
|
34
|
+
user: root@dachary.org
|
35
|
+
date: Sat Jul 21 18:13:37 2007 +0200
|
36
|
+
summary: tiddlywiki website
|
37
|
+
|
38
|
+
changeset: 20:a23a9405c616
|
39
|
+
user: root@dachary.org
|
40
|
+
date: Sat Jul 21 17:21:19 2007 +0200
|
41
|
+
summary: complete usage and aliases for tiddler type to file
|
42
|
+
|
43
|
+
changeset: 19:293b94b6c938
|
44
|
+
user: root@dachary.org
|
45
|
+
date: Sat Jul 21 16:22:01 2007 +0200
|
46
|
+
summary: implement --all
|
47
|
+
|
48
|
+
changeset: 18:f6063aa4247c
|
49
|
+
user: root@dachary.org
|
50
|
+
date: Sat Jul 21 16:17:38 2007 +0200
|
51
|
+
summary: implement time preservation
|
52
|
+
|
53
|
+
changeset: 17:1a95e161bde8
|
54
|
+
user: root@dachary.org
|
55
|
+
date: Sat Jul 21 15:43:46 2007 +0200
|
56
|
+
summary: do not clear the cache each time read_uri is called
|
57
|
+
|
58
|
+
changeset: 16:78cbb71abc07
|
59
|
+
user: root@dachary.org
|
60
|
+
date: Sat Jul 21 15:31:47 2007 +0200
|
61
|
+
summary: test against argv > 2 is done after expansion
|
62
|
+
|
63
|
+
changeset: 15:c4a68e334122
|
64
|
+
user: root@dachary.org
|
65
|
+
date: Sat Jul 21 15:07:23 2007 +0200
|
66
|
+
summary: use string functions to split url fragments
|
67
|
+
|
68
|
+
changeset: 14:4a67be41486a
|
69
|
+
user: root@dachary.org
|
70
|
+
date: Sat Jul 21 14:06:11 2007 +0200
|
71
|
+
summary: first implementation 100% tested
|
72
|
+
|
73
|
+
changeset: 13:36dfc330051c
|
74
|
+
user: root@dachary.org
|
75
|
+
date: Sat Jul 21 12:25:18 2007 +0200
|
76
|
+
summary: implement args2from with tests
|
77
|
+
|
78
|
+
changeset: 12:9fdd8158d09e
|
79
|
+
user: root@dachary.org
|
80
|
+
date: Sat Jul 21 11:00:14 2007 +0200
|
81
|
+
summary: test helpers are included instead of inherited
|
82
|
+
|
83
|
+
changeset: 11:3e6d6b581c56
|
84
|
+
user: root@dachary.org
|
85
|
+
date: Sat Jul 21 10:36:41 2007 +0200
|
86
|
+
summary: test helpers are included instead of inherited
|
87
|
+
|
88
|
+
changeset: 10:c34230f8508b
|
89
|
+
user: root@dachary.org
|
90
|
+
date: Sat Jul 21 02:56:45 2007 +0200
|
91
|
+
summary: 75% tests
|
92
|
+
|
93
|
+
changeset: 9:671418aee5c3
|
94
|
+
user: root@dachary.org
|
95
|
+
date: Fri Jul 20 22:59:00 2007 +0200
|
96
|
+
summary: fix to compile and run test stubs
|
97
|
+
|
98
|
+
changeset: 8:e7130c15d293
|
99
|
+
user: root@dachary.org
|
100
|
+
date: Thu Jul 19 23:06:01 2007 +0200
|
101
|
+
summary: draft implementation
|
102
|
+
|
103
|
+
changeset: 7:76bfb609451a
|
104
|
+
user: root@dachary.org
|
105
|
+
date: Thu Jul 19 11:54:58 2007 +0200
|
106
|
+
summary: test puts action
|
107
|
+
|
108
|
+
changeset: 6:7ba8ec638385
|
109
|
+
user: root@dachary.org
|
110
|
+
date: Thu Jul 19 11:35:29 2007 +0200
|
111
|
+
summary: test puts action
|
112
|
+
|
113
|
+
changeset: 5:6b2ca1329232
|
114
|
+
user: root@dachary.org
|
115
|
+
date: Thu Jul 19 10:37:28 2007 +0200
|
116
|
+
summary: upgrade to GPLv3
|
117
|
+
|
118
|
+
changeset: 4:508ab2e4b392
|
119
|
+
user: root@dachary.org
|
120
|
+
date: Thu Jul 19 01:31:17 2007 +0200
|
121
|
+
summary: options parsing and tiddlywiki predicate
|
122
|
+
|
123
|
+
changeset: 3:68dd181ffa42
|
124
|
+
user: root@dachary.org
|
125
|
+
date: Wed Jul 18 21:27:52 2007 +0200
|
126
|
+
summary: import http://simonbaird.com/r4tw/
|
127
|
+
|
128
|
+
changeset: 2:3171d10560d3
|
129
|
+
user: root@dachary.org
|
130
|
+
date: Wed Jul 18 21:27:23 2007 +0200
|
131
|
+
summary: define project tiddlywiki_cp
|
132
|
+
|
133
|
+
changeset: 1:f7bb93667109
|
134
|
+
user: root@dachary.org
|
135
|
+
date: Wed Jul 18 19:28:02 2007 +0200
|
136
|
+
summary: import http://simonbaird.com/r4tw/
|
137
|
+
|
138
|
+
changeset: 0:5bc877af0761
|
139
|
+
user: root@dachary.org
|
140
|
+
date: Wed Jul 18 18:21:06 2007 +0200
|
141
|
+
summary: ruby /var/lib/gems/1.8/gems/newgem-0.11.0/bin/newgem -t test::unit tiddlywiki_cp
|
142
|
+
|
143
|
+
}}}
|
@@ -0,0 +1 @@
|
|
1
|
+
title="ChangeLog" modifier="loic" modified="200707211647" created="200707211630" changecount="1"
|
metadata
CHANGED
@@ -3,8 +3,8 @@ rubygems_version: 0.9.0
|
|
3
3
|
specification_version: 1
|
4
4
|
name: tiddlywiki_cp
|
5
5
|
version: !ruby/object:Gem::Version
|
6
|
-
version: 0.
|
7
|
-
date: 2007-07-
|
6
|
+
version: 0.3.0
|
7
|
+
date: 2007-07-24 00:00:00 +00:00
|
8
8
|
summary: copy tiddlers to files and vice versa
|
9
9
|
require_paths:
|
10
10
|
- lib
|
@@ -53,10 +53,14 @@ files:
|
|
53
53
|
- test/content/a
|
54
54
|
- test/content/a.div
|
55
55
|
- test/content/b
|
56
|
+
- test/content/d/CVS
|
56
57
|
- test/content/e
|
57
58
|
- test/content/e.div
|
58
59
|
- test/content/html_entities.html
|
60
|
+
- test/content/ignored#
|
59
61
|
- test/content/test_fetch.html
|
62
|
+
- test/content/tiddly_version_2_1.txt
|
63
|
+
- test/content/tiddly_version_2_2.txt
|
60
64
|
- test/content/universe.html
|
61
65
|
- test/r4tw/addtag.rb
|
62
66
|
- test/r4tw/all.rb
|
@@ -81,6 +85,8 @@ files:
|
|
81
85
|
- test/test_tiddler_html.rb
|
82
86
|
- test/test_tiddler_js.rb
|
83
87
|
- test/test_tiddlywiki_cp.rb
|
88
|
+
- website/files/ChangeLog.tiddler
|
89
|
+
- website/files/ChangeLog.tiddler.div
|
84
90
|
- website/files/DefaultTiddlers.tiddler
|
85
91
|
- website/files/DefaultTiddlers.tiddler.div
|
86
92
|
- website/files/Introduction.tiddler
|
@@ -106,6 +112,8 @@ extra_rdoc_files:
|
|
106
112
|
- History.txt
|
107
113
|
- Manifest.txt
|
108
114
|
- README.txt
|
115
|
+
- test/content/tiddly_version_2_1.txt
|
116
|
+
- test/content/tiddly_version_2_2.txt
|
109
117
|
executables:
|
110
118
|
- tiddlywiki_cp
|
111
119
|
extensions: []
|