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.
@@ -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
- sh 'bundle --path .bundle --without coffee:memcached:redis:gfm:server:development:test'
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
- task :default => :snapshot
70
-
71
- desc 'fetching all files from GitHub.'
72
- task :fetch do
73
- REPOS.each{|r| fetch_files(r) }
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
- Dir.chdir("tmp") do
79
- TARBALLS = Dir["*.tar.gz"] if TARBALLS.empty?
80
- TARBALLS.each do |tgz|
81
- sh "scp -P 443 #{tgz} www.tdiary.org:#{DEST_DIR}"
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
- make_full_package
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
- make_full_package(STABLE)
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
- Dir.chdir("tmp") do
99
- REPOS.each {|repo| rm_rf repo rescue true }
100
- sh "rm *.tar.gz" rescue true
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
 
@@ -1,3 +1,3 @@
1
1
  module TDiary
2
- VERSION = '4.0.1'
2
+ VERSION = '4.0.1.20130903'
3
3
  end
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-08-29 00:00:00.000000000 Z
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/config.rb
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