tdiary 3.2.2.20130614 → 3.2.2.20130617

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: eca5541a6d02354e337c5d41dc2bd36fb8ea5fe0
4
- data.tar.gz: d5b7f5622d0edaae1391032d2f16e599e93a8133
3
+ metadata.gz: 8a6bd345a66f7d2db907e1625749a750ed236392
4
+ data.tar.gz: 32a98bf9b15d6ea973669a09fd20b903a2ba1f75
5
5
  SHA512:
6
- metadata.gz: 46f8edaf87b103a50c2f4ef339cdc2dc3e202f8486dfb361d58af145019f0e3fe41ad4717fca13d1fa4e021b39235d57ae284761ea2c5735230ac2032062af32
7
- data.tar.gz: aed17e747b8f90391fd534bb86feb12532b8b25c51a6652f2951b7bb9aef9b98c4e94188e508232356bcdacc3acfcf8a24073604cbdc17a09d12951a9d7fe972
6
+ metadata.gz: f393adf1156f339c0920be89f52c72f0f7ab5c5415c11367e2aefbd6a7f229e31d9783607d777520ba5fbcbfd13255cf0b158ed21484e1792aaf09b77d27a8f6
7
+ data.tar.gz: 1edfe539d32b123e32b14f8fa69c05a0190fa07ca95b6bb8da509dae4c1b5f1a49f67321a5d809e5895889a61a24bdb407de741a9ec3586ad2cf17dcfae93c20
data/Gemfile CHANGED
@@ -18,10 +18,6 @@ end
18
18
 
19
19
  gem 'coffee-script', :group => [:development, :test]
20
20
 
21
- gem 'omniauth'
22
- gem 'omniauth-twitter'
23
- gem 'omniauth-github'
24
-
25
21
  gem 'dalli'
26
22
  gem 'redis'
27
23
  gem 'redis-namespace'
data/Gemfile.cgi ADDED
@@ -0,0 +1,5 @@
1
+ source 'https://rubygems.org'
2
+
3
+ gem 'hikidoc', '>= 0.0.6'
4
+ gem 'rdtool', '>= 0.6.0'
5
+ gem 'imagesize', '>= 0.1.0'
data/Gemfile.cgi.lock ADDED
@@ -0,0 +1,14 @@
1
+ GEM
2
+ remote: https://rubygems.org/
3
+ specs:
4
+ hikidoc (0.0.6)
5
+ imagesize (0.1.1)
6
+ rdtool (0.6.38)
7
+
8
+ PLATFORMS
9
+ ruby
10
+
11
+ DEPENDENCIES
12
+ hikidoc (>= 0.0.6)
13
+ imagesize (>= 0.1.0)
14
+ rdtool (>= 0.6.0)
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- tdiary (3.2.2.20130614)
4
+ tdiary (3.2.2.20130617)
5
5
  bundler (~> 1.3)
6
6
  hikidoc (>= 0.0.6)
7
7
  imagesize (>= 0.1.0)
@@ -41,13 +41,9 @@ GEM
41
41
  eventmachine (1.0.3)
42
42
  execjs (1.4.0)
43
43
  multi_json (~> 1.0)
44
- faraday (0.8.7)
45
- multipart-post (~> 1.1)
46
44
  ffi (1.9.0)
47
- hashie (2.0.5)
48
45
  hike (1.2.3)
49
46
  hikidoc (0.0.6)
50
- httpauth (0.2.0)
51
47
  imagesize (0.1.1)
52
48
  jasmine (1.3.2)
53
49
  jasmine-core (~> 1.3.1)
@@ -55,39 +51,14 @@ GEM
55
51
  rspec (>= 1.3.1)
56
52
  selenium-webdriver (>= 0.1.3)
57
53
  jasmine-core (1.3.1)
58
- jwt (0.1.8)
59
- multi_json (>= 1.5)
60
54
  launchy (2.3.0)
61
55
  addressable (~> 2.3)
62
56
  method_source (0.8.1)
63
57
  mime-types (1.23)
64
58
  mini_portile (0.5.0)
65
- multi_json (1.7.6)
66
- multipart-post (1.2.0)
59
+ multi_json (1.7.7)
67
60
  nokogiri (1.6.0)
68
61
  mini_portile (~> 0.5.0)
69
- oauth (0.4.7)
70
- oauth2 (0.8.1)
71
- faraday (~> 0.8)
72
- httpauth (~> 0.1)
73
- jwt (~> 0.1.4)
74
- multi_json (~> 1.0)
75
- rack (~> 1.2)
76
- omniauth (1.1.4)
77
- hashie (>= 1.2, < 3)
78
- rack
79
- omniauth-github (1.1.0)
80
- omniauth (~> 1.0)
81
- omniauth-oauth2 (~> 1.1)
82
- omniauth-oauth (1.0.1)
83
- oauth
84
- omniauth (~> 1.0)
85
- omniauth-oauth2 (1.1.1)
86
- oauth2 (~> 0.8.0)
87
- omniauth (~> 1.0)
88
- omniauth-twitter (0.0.16)
89
- multi_json (~> 1.3)
90
- omniauth-oauth (~> 1.0)
91
62
  pit (0.0.7)
92
63
  posix-spawn (0.3.6)
93
64
  pry (0.9.12.2)
@@ -166,9 +137,6 @@ DEPENDENCIES
166
137
  dalli
167
138
  jasmine
168
139
  launchy
169
- omniauth
170
- omniauth-github
171
- omniauth-twitter
172
140
  pit
173
141
  pry
174
142
  pygments.rb
data/index.rb CHANGED
@@ -8,6 +8,8 @@
8
8
  #
9
9
  BEGIN { $stdout.binmode }
10
10
 
11
+ ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../Gemfile.cgi', __FILE__)
12
+
11
13
  begin
12
14
  if FileTest::symlink?( __FILE__ ) then
13
15
  org_path = File::dirname( File::readlink( __FILE__ ) ).untaint
@@ -18,5 +18,10 @@ describe TDiary::Rack::Static do
18
18
  get '/index.rb'
19
19
  last_response.status.should be 500
20
20
  end
21
+
22
+ it 'should run the app when post method' do
23
+ post '/index.rb'
24
+ last_response.status.should be 500
25
+ end
21
26
  end
22
27
  end
data/tdiary/cli.rb CHANGED
@@ -55,6 +55,21 @@ module TDiary
55
55
  say 'update finished', :green
56
56
  end
57
57
 
58
+ desc "assets_copy", "copy assets files"
59
+ def assets_copy
60
+ require 'tdiary/environment'
61
+ assets_path = File.join(TDiary.server_root, 'public/assets')
62
+ TDiary::Application.config.assets_paths.each do |path|
63
+ Dir.glob(File.join(path, '*')).each do |entity|
64
+ if File.directory?(entity)
65
+ directory entity, File.join(assets_path, File.basename(entity))
66
+ else
67
+ copy_file entity, File.join(assets_path, File.basename(entity))
68
+ end
69
+ end
70
+ end
71
+ end
72
+
58
73
  desc "test", "Create test server and run tDiary test"
59
74
  def test
60
75
  target = File.join(Dir.pwd, 'tmp/test')
@@ -81,7 +96,7 @@ module TDiary
81
96
  method_option "port", :aliases => "p", :type => :numeric, :default => 19292, :banner =>
82
97
  "use PORT"
83
98
  def server
84
- require 'tdiary'
99
+ require 'tdiary/environment'
85
100
 
86
101
  if options[:cgi]
87
102
  opts = {
@@ -105,7 +120,7 @@ module TDiary
105
120
  :AccessLog => $stderr,
106
121
  :config => File.expand_path("config.ru")
107
122
  }
108
- Rack::Server.start( opts )
123
+ ::Rack::Server.start( opts )
109
124
  end
110
125
  end
111
126
 
@@ -11,7 +11,7 @@ module TDiary
11
11
 
12
12
  def call( env )
13
13
  result = @file.call( env )
14
- if result[0].to_i == 404
14
+ if result[0].to_i >= 400 && result[0].to_i < 500
15
15
  @app.call( env )
16
16
  else
17
17
  result
data/tdiary/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module TDiary
2
- VERSION = '3.2.2.20130614'
2
+ VERSION = '3.2.2.20130617'
3
3
  end
data/update.rb CHANGED
@@ -8,6 +8,8 @@
8
8
  #
9
9
  BEGIN { $stdout.binmode }
10
10
 
11
+ ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../Gemfile.cgi', __FILE__)
12
+
11
13
  begin
12
14
  if FileTest::symlink?( __FILE__ ) then
13
15
  org_path = File::dirname( File::readlink( __FILE__ ) ).untaint
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.20130614
4
+ version: 3.2.2.20130617
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-06-15 00:00:00.000000000 Z
13
+ date: 2013-06-17 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: rack
@@ -137,6 +137,8 @@ files:
137
137
  - .travis.yml
138
138
  - ChangeLog
139
139
  - Gemfile
140
+ - Gemfile.cgi
141
+ - Gemfile.cgi.lock
140
142
  - Gemfile.lock
141
143
  - LICENSE
142
144
  - Procfile