tdiary 4.0.1 → 4.0.1.20130903
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/misc/plugin/title_tag.rb +15 -13
- data/misc/style/emptdiary/emptdiary_style.rb +95 -93
- data/misc/style/etdiary/etdiary_style.rb +364 -362
- data/misc/style/gfm/gfm_style.rb +129 -127
- data/misc/style/rd/rd_style.rb +158 -157
- data/spec/acceptance_helper.rb +2 -2
- data/spec/core/configuration_spec.rb +32 -0
- data/spec/core/style/emptdiary_style_spec.rb +2 -2
- data/spec/core/style/etdiary_style_spec.rb +2 -2
- data/spec/core/style/gfm_style_spec.rb +2 -2
- data/spec/core/style/rd_style_spec.rb +2 -2
- data/spec/core/style/tdiary_style_spec.rb +2 -2
- data/spec/core/style/wiki_style_spec.rb +2 -2
- data/tdiary.rb +7 -5
- data/tdiary/{config.rb → configuration.rb} +71 -69
- data/tdiary/io/base.rb +1 -1
- data/tdiary/io/pstore.rb +1 -1
- data/tdiary/style.rb +142 -148
- data/tdiary/style/tdiary_style.rb +149 -147
- data/tdiary/style/wiki_style.rb +167 -165
- data/tdiary/tasks/release.rake +40 -27
- data/tdiary/version.rb +1 -1
- metadata +5 -3
data/tdiary/tasks/release.rake
CHANGED
@@ -34,7 +34,20 @@ 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
|
-
|
37
|
+
sh "bundle --path .bundle --without coffee:memcached:redis:gfm:server:development:test"
|
38
|
+
end
|
39
|
+
Dir.chdir '.bundle/ruby' do
|
40
|
+
v = `ls`.chomp
|
41
|
+
case v
|
42
|
+
when '2.0.0'
|
43
|
+
FileUtils.cp_r '2.0.0', '1.9.1'
|
44
|
+
when '1.9.1'
|
45
|
+
FileUtils.cp_r '1.9.1', '2.0.0'
|
46
|
+
else
|
47
|
+
FileUtils.cp_r v, '2.0.0'
|
48
|
+
FileUtils.cp_r v, '1.9.1'
|
49
|
+
FileUtils.rm_rf v
|
50
|
+
end
|
38
51
|
end
|
39
52
|
Dir.chdir 'misc/lib' do
|
40
53
|
sh 'gem unpack bundler'
|
@@ -66,38 +79,38 @@ def make_full_package(version = nil)
|
|
66
79
|
end
|
67
80
|
end
|
68
81
|
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
end
|
82
|
+
namespace :package do
|
83
|
+
desc 'fetching all files from GitHub.'
|
84
|
+
task :fetch do
|
85
|
+
REPOS.each{|r| fetch_files(r) }
|
86
|
+
end
|
75
87
|
|
76
|
-
desc 'releasing all files'
|
77
|
-
task :release do
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
88
|
+
desc 'releasing all files'
|
89
|
+
task :release do
|
90
|
+
Dir.chdir("tmp") do
|
91
|
+
TARBALLS = Dir["*.tar.gz"] if TARBALLS.empty?
|
92
|
+
TARBALLS.each do |tgz|
|
93
|
+
sh "scp -P 443 #{tgz} www.tdiary.org:#{DEST_DIR}"
|
94
|
+
end
|
82
95
|
end
|
83
96
|
end
|
84
|
-
end
|
85
97
|
|
86
|
-
desc 'making packages of snapshot.'
|
87
|
-
task :snapshot => :fetch do
|
88
|
-
|
89
|
-
end
|
98
|
+
desc 'making packages of snapshot.'
|
99
|
+
task :snapshot => :fetch do
|
100
|
+
make_full_package
|
101
|
+
end
|
90
102
|
|
91
|
-
desc 'making packages of stable.'
|
92
|
-
task :stable => :fetch do
|
93
|
-
|
94
|
-
end
|
103
|
+
desc 'making packages of stable.'
|
104
|
+
task :stable => :fetch do
|
105
|
+
make_full_package(STABLE)
|
106
|
+
end
|
95
107
|
|
96
|
-
desc 'cleanup all files.'
|
97
|
-
task :clean do
|
98
|
-
|
99
|
-
|
100
|
-
|
108
|
+
desc 'cleanup all files.'
|
109
|
+
task :clean do
|
110
|
+
Dir.chdir("tmp") do
|
111
|
+
REPOS.each {|repo| rm_rf repo rescue true }
|
112
|
+
sh "rm *.tar.gz" rescue true
|
113
|
+
end
|
101
114
|
end
|
102
115
|
end
|
103
116
|
|
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: 4.0.1
|
4
|
+
version: 4.0.1.20130903
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- TADA Tadashi
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2013-
|
13
|
+
date: 2013-09-03 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: thor
|
@@ -320,6 +320,7 @@ files:
|
|
320
320
|
- spec/acceptance/view_referer_spec.rb
|
321
321
|
- spec/acceptance_helper.rb
|
322
322
|
- spec/core/compatible_spec.rb
|
323
|
+
- spec/core/configuration_spec.rb
|
323
324
|
- spec/core/core_ext_spec.rb
|
324
325
|
- spec/core/plugin_spec.rb
|
325
326
|
- spec/core/rack/assets/precompile_spec.rb
|
@@ -366,7 +367,7 @@ files:
|
|
366
367
|
- tdiary/comment.rb
|
367
368
|
- tdiary/comment_manager.rb
|
368
369
|
- tdiary/compatible.rb
|
369
|
-
- tdiary/
|
370
|
+
- tdiary/configuration.rb
|
370
371
|
- tdiary/core_ext.rb
|
371
372
|
- tdiary/dispatcher.rb
|
372
373
|
- tdiary/dispatcher/index_main.rb
|
@@ -479,6 +480,7 @@ test_files:
|
|
479
480
|
- spec/acceptance/view_referer_spec.rb
|
480
481
|
- spec/acceptance_helper.rb
|
481
482
|
- spec/core/compatible_spec.rb
|
483
|
+
- spec/core/configuration_spec.rb
|
482
484
|
- spec/core/core_ext_spec.rb
|
483
485
|
- spec/core/plugin_spec.rb
|
484
486
|
- spec/core/rack/assets/precompile_spec.rb
|