tdiary 3.2.2.20130722 → 3.2.2.20130727
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +7 -0
- data/Gemfile.lock +9 -9
- data/doc/INSTALL-cgi.md +3 -4
- data/misc/plugin/image.rb +1 -1
- data/misc/style/gfm/gfm_style.rb +3 -1
- data/spec/core/style/gfm_style_spec.rb +22 -0
- data/tdiary.gemspec +0 -7
- data/tdiary/tasks/release.rake +1 -1
- data/tdiary/version.rb +1 -1
- metadata +3 -87
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f663a79e15c1f3d077bce193bc0042754f39bac5
|
4
|
+
data.tar.gz: b19672a1aa5c7bf5ec2ef99762b0a7999dd8793f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 15411cc572a6a8f2c24062cb7618d1bf5d3d67334aa71940b6be88ad25acacacb45bb52707793065fcf05f238ae06276d9f11b0125bfd9feee0ff7addf8c840d
|
7
|
+
data.tar.gz: 0e45ac4f3f0705ebd61e7d6dfb4c2c3dc28561b2a66d39e9c4b492dfd239279023e58836bceecd5daffe8091cc4ecc232c2f6e28fa08787a73f44ebd35523584
|
data/Gemfile
CHANGED
@@ -16,6 +16,12 @@ end
|
|
16
16
|
# use edge tDiary contrib
|
17
17
|
# gem 'tdiary-contrib', :git => 'git@github.com:tdiary/tdiary-contrib.git'
|
18
18
|
|
19
|
+
gem 'rack'
|
20
|
+
gem 'sprockets'
|
21
|
+
gem 'hikidoc'
|
22
|
+
gem 'rdtool'
|
23
|
+
gem 'fastimage'
|
24
|
+
|
19
25
|
group :coffee do
|
20
26
|
gem 'coffee-script'
|
21
27
|
gem 'therubyracer'
|
@@ -49,6 +55,7 @@ end
|
|
49
55
|
group :development do
|
50
56
|
gem 'pit', :require => false
|
51
57
|
gem 'racksh', :require => false
|
58
|
+
gem 'rake'
|
52
59
|
|
53
60
|
group :test do
|
54
61
|
gem 'pry'
|
data/Gemfile.lock
CHANGED
@@ -1,14 +1,8 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
tdiary (3.2.2.
|
4
|
+
tdiary (3.2.2.20130727)
|
5
5
|
bundler (~> 1.3)
|
6
|
-
fastimage
|
7
|
-
hikidoc (>= 0.0.6)
|
8
|
-
rack (>= 1.0.0)
|
9
|
-
rake (>= 10.0.0)
|
10
|
-
rdtool (>= 0.6.0)
|
11
|
-
sprockets (>= 2.10)
|
12
6
|
thor (~> 0.18)
|
13
7
|
|
14
8
|
GEM
|
@@ -88,7 +82,7 @@ GEM
|
|
88
82
|
rspec-core (~> 2.14.0)
|
89
83
|
rspec-expectations (~> 2.14.0)
|
90
84
|
rspec-mocks (~> 2.14.0)
|
91
|
-
rspec-core (2.14.
|
85
|
+
rspec-core (2.14.4)
|
92
86
|
rspec-expectations (2.14.0)
|
93
87
|
diff-lcs (>= 1.1.3, < 2.0)
|
94
88
|
rspec-mocks (2.14.1)
|
@@ -103,7 +97,7 @@ GEM
|
|
103
97
|
multi_json (~> 1.0)
|
104
98
|
simplecov-html (~> 0.7.1)
|
105
99
|
simplecov-html (0.7.1)
|
106
|
-
slop (3.4.
|
100
|
+
slop (3.4.6)
|
107
101
|
sprockets (2.10.0)
|
108
102
|
hike (~> 1.2)
|
109
103
|
multi_json (~> 1.0)
|
@@ -140,12 +134,17 @@ DEPENDENCIES
|
|
140
134
|
coffee-script
|
141
135
|
coveralls
|
142
136
|
dalli
|
137
|
+
fastimage
|
138
|
+
hikidoc
|
143
139
|
jasmine
|
144
140
|
launchy
|
145
141
|
pit
|
146
142
|
pry
|
147
143
|
pygments.rb
|
144
|
+
rack
|
148
145
|
racksh
|
146
|
+
rake
|
147
|
+
rdtool
|
149
148
|
redcarpet
|
150
149
|
redis
|
151
150
|
redis-namespace
|
@@ -153,6 +152,7 @@ DEPENDENCIES
|
|
153
152
|
selenium-webdriver
|
154
153
|
sequel
|
155
154
|
simplecov
|
155
|
+
sprockets
|
156
156
|
sqlite3
|
157
157
|
tapp
|
158
158
|
tdiary!
|
data/doc/INSTALL-cgi.md
CHANGED
@@ -29,13 +29,12 @@ tDiaryのダウンロードサイトから、配布アーカイブを取得し
|
|
29
29
|
次に、gitコマンドでtDiaryのソースコードを取得した後に、 `bundle install` コマンドを実行して外部ライブラリをインストールします。
|
30
30
|
|
31
31
|
```
|
32
|
-
% git clone git://github.com/tdiary/tdiary-core.git
|
33
|
-
% mv tdiary-core tdiary
|
32
|
+
% git clone git://github.com/tdiary/tdiary-core.git tdiary
|
34
33
|
% cd tdiary
|
35
|
-
% bundle install --without coffee:memcached:redis:gfm:server:development
|
34
|
+
% bundle install --without coffee:memcached:redis:gfm:server:development:test
|
36
35
|
```
|
37
36
|
|
38
|
-
上記の例では tDiary を動作させるのに最低限必要なライブラリのみインストールしています。もし、memcached
|
37
|
+
上記の例では tDiary を動作させるのに最低限必要なライブラリのみインストールしています。もし、memcached にキャッシュを保存したり、GFM スタイルを使用する場合は --without オプションから該当ライブラリの文字列を削除して実行してください。
|
39
38
|
|
40
39
|
## CGIスクリプトの設定
|
41
40
|
|
data/misc/plugin/image.rb
CHANGED
@@ -180,7 +180,7 @@ if /^formplugin$/ =~ @mode then
|
|
180
180
|
images = image_list( date )
|
181
181
|
if @cgi.params['plugin_image_addimage'][0]
|
182
182
|
@cgi.params['plugin_image_file'].each do |file|
|
183
|
-
extension, = image_info( file
|
183
|
+
extension, = image_info( file )
|
184
184
|
file.rewind
|
185
185
|
|
186
186
|
if extension =~ /\A(#{image_ext})\z/i
|
data/misc/style/gfm/gfm_style.rb
CHANGED
@@ -96,7 +96,9 @@ module TDiary
|
|
96
96
|
|
97
97
|
# ignore duplicate autolink
|
98
98
|
if r =~ /<a href="<a href="/
|
99
|
-
r.gsub!(/<a href="<a href=".*?" rel="nofollow">(.*?)<\/a>">(.*?)<\/a>/)
|
99
|
+
r.gsub!(/<a href="<a href=".*?" rel="nofollow">(.*?)<\/a>"(.*?)>(.*?)<\/a>/) do
|
100
|
+
"<a href=\"#{$1}\" rel=\"nofollow\"#{$2}>#{$3}</a>"
|
101
|
+
end
|
100
102
|
end
|
101
103
|
# ignore auto imagelink
|
102
104
|
if r =~ /<img src="<a href="/
|
@@ -154,6 +154,28 @@ http://www.google.com
|
|
154
154
|
|
155
155
|
it { @diary.to_html.should eq @html }
|
156
156
|
|
157
|
+
end
|
158
|
+
|
159
|
+
describe 'auto imagelink' do
|
160
|
+
before do
|
161
|
+
source = <<-EOF
|
162
|
+
# subTitle
|
163
|
+
|
164
|
+
<a href="http://www.exaple.com" target="_blank">Anchor</a>
|
165
|
+
EOF
|
166
|
+
@diary.append(source)
|
167
|
+
@html = <<-EOF
|
168
|
+
<div class="section">
|
169
|
+
<%=section_enter_proc( Time.at( 1041346800 ) )%>
|
170
|
+
<h3><%= subtitle_proc( Time.at( 1041346800 ), "subTitle" ) %></h3>
|
171
|
+
<p><a href="http://www.exaple.com" rel="nofollow" target="_blank">Anchor</a></p>
|
172
|
+
<%=section_leave_proc( Time.at( 1041346800 ) )%>
|
173
|
+
</div>
|
174
|
+
EOF
|
175
|
+
end
|
176
|
+
|
177
|
+
it { @diary.to_html.should eq @html }
|
178
|
+
|
157
179
|
end
|
158
180
|
|
159
181
|
describe 'url syntax with code blocks' do
|
data/tdiary.gemspec
CHANGED
@@ -20,13 +20,6 @@ Gem::Specification.new do |spec|
|
|
20
20
|
|
21
21
|
spec.required_ruby_version = '>= 1.9.2'
|
22
22
|
|
23
|
-
spec.add_dependency 'rack', '>= 1.0.0'
|
24
|
-
spec.add_dependency 'sprockets', '>= 2.10'
|
25
|
-
spec.add_dependency 'rake', '>= 10.0.0'
|
26
|
-
spec.add_dependency 'hikidoc', '>= 0.0.6'
|
27
|
-
spec.add_dependency 'rdtool', '>= 0.6.0'
|
28
|
-
spec.add_dependency 'fastimage'
|
29
|
-
|
30
23
|
spec.add_dependency 'thor', '~> 0.18'
|
31
24
|
spec.add_dependency "bundler", "~> 1.3"
|
32
25
|
end
|
data/tdiary/tasks/release.rake
CHANGED
@@ -34,7 +34,7 @@ def make_tarball( repo, version = nil )
|
|
34
34
|
sh "chmod +x index.rb index.fcgi update.rb update.fcgi"
|
35
35
|
sh 'rake doc'
|
36
36
|
Bundler.with_clean_env do
|
37
|
-
sh 'bundle --path .bundle --without coffee:memcached:redis:gfm:server:development'
|
37
|
+
sh 'bundle --path .bundle --without coffee:memcached:redis:gfm:server:development:test'
|
38
38
|
end
|
39
39
|
Dir.chdir 'misc/lib' do
|
40
40
|
sh 'gem unpack bundler'
|
data/tdiary/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tdiary
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.2.2.
|
4
|
+
version: 3.2.2.20130727
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- TADA Tadashi
|
@@ -10,92 +10,8 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2013-07-
|
13
|
+
date: 2013-07-27 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
|
-
- !ruby/object:Gem::Dependency
|
16
|
-
name: rack
|
17
|
-
requirement: !ruby/object:Gem::Requirement
|
18
|
-
requirements:
|
19
|
-
- - '>='
|
20
|
-
- !ruby/object:Gem::Version
|
21
|
-
version: 1.0.0
|
22
|
-
type: :runtime
|
23
|
-
prerelease: false
|
24
|
-
version_requirements: !ruby/object:Gem::Requirement
|
25
|
-
requirements:
|
26
|
-
- - '>='
|
27
|
-
- !ruby/object:Gem::Version
|
28
|
-
version: 1.0.0
|
29
|
-
- !ruby/object:Gem::Dependency
|
30
|
-
name: sprockets
|
31
|
-
requirement: !ruby/object:Gem::Requirement
|
32
|
-
requirements:
|
33
|
-
- - '>='
|
34
|
-
- !ruby/object:Gem::Version
|
35
|
-
version: '2.10'
|
36
|
-
type: :runtime
|
37
|
-
prerelease: false
|
38
|
-
version_requirements: !ruby/object:Gem::Requirement
|
39
|
-
requirements:
|
40
|
-
- - '>='
|
41
|
-
- !ruby/object:Gem::Version
|
42
|
-
version: '2.10'
|
43
|
-
- !ruby/object:Gem::Dependency
|
44
|
-
name: rake
|
45
|
-
requirement: !ruby/object:Gem::Requirement
|
46
|
-
requirements:
|
47
|
-
- - '>='
|
48
|
-
- !ruby/object:Gem::Version
|
49
|
-
version: 10.0.0
|
50
|
-
type: :runtime
|
51
|
-
prerelease: false
|
52
|
-
version_requirements: !ruby/object:Gem::Requirement
|
53
|
-
requirements:
|
54
|
-
- - '>='
|
55
|
-
- !ruby/object:Gem::Version
|
56
|
-
version: 10.0.0
|
57
|
-
- !ruby/object:Gem::Dependency
|
58
|
-
name: hikidoc
|
59
|
-
requirement: !ruby/object:Gem::Requirement
|
60
|
-
requirements:
|
61
|
-
- - '>='
|
62
|
-
- !ruby/object:Gem::Version
|
63
|
-
version: 0.0.6
|
64
|
-
type: :runtime
|
65
|
-
prerelease: false
|
66
|
-
version_requirements: !ruby/object:Gem::Requirement
|
67
|
-
requirements:
|
68
|
-
- - '>='
|
69
|
-
- !ruby/object:Gem::Version
|
70
|
-
version: 0.0.6
|
71
|
-
- !ruby/object:Gem::Dependency
|
72
|
-
name: rdtool
|
73
|
-
requirement: !ruby/object:Gem::Requirement
|
74
|
-
requirements:
|
75
|
-
- - '>='
|
76
|
-
- !ruby/object:Gem::Version
|
77
|
-
version: 0.6.0
|
78
|
-
type: :runtime
|
79
|
-
prerelease: false
|
80
|
-
version_requirements: !ruby/object:Gem::Requirement
|
81
|
-
requirements:
|
82
|
-
- - '>='
|
83
|
-
- !ruby/object:Gem::Version
|
84
|
-
version: 0.6.0
|
85
|
-
- !ruby/object:Gem::Dependency
|
86
|
-
name: fastimage
|
87
|
-
requirement: !ruby/object:Gem::Requirement
|
88
|
-
requirements:
|
89
|
-
- - '>='
|
90
|
-
- !ruby/object:Gem::Version
|
91
|
-
version: '0'
|
92
|
-
type: :runtime
|
93
|
-
prerelease: false
|
94
|
-
version_requirements: !ruby/object:Gem::Requirement
|
95
|
-
requirements:
|
96
|
-
- - '>='
|
97
|
-
- !ruby/object:Gem::Version
|
98
|
-
version: '0'
|
99
15
|
- !ruby/object:Gem::Dependency
|
100
16
|
name: thor
|
101
17
|
requirement: !ruby/object:Gem::Requirement
|
@@ -538,7 +454,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
538
454
|
version: '0'
|
539
455
|
requirements: []
|
540
456
|
rubyforge_project:
|
541
|
-
rubygems_version: 2.0
|
457
|
+
rubygems_version: 2.1.0
|
542
458
|
signing_key:
|
543
459
|
specification_version: 4
|
544
460
|
summary: a TSUKKOMI-able Web-log
|