uzuuzu-core 0.0.6 → 0.0.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/VERSION +1 -1
- data/lib/uzuuzu/helper/route.rb +9 -0
- data/lib/uzuuzu/helper/xhtml.rb +2 -2
- data/lib/uzuuzu/wrapper/environments.rb +2 -2
- data/lib/uzuuzu/wrapper/lang/ja.yaml +0 -9
- data/lib/uzuuzu/wrapper/tilt.rb +1 -1
- data/uzuuzu-core.gemspec +2 -2
- metadata +3 -3
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.0.
|
1
|
+
0.0.7
|
data/lib/uzuuzu/helper/route.rb
CHANGED
@@ -40,6 +40,15 @@ module UzuUzu
|
|
40
40
|
route_string
|
41
41
|
end
|
42
42
|
alias :r :url_for
|
43
|
+
|
44
|
+
def root_uri
|
45
|
+
abs_uri = "#{request.scheme}://#{request.host}"
|
46
|
+
if request.scheme == 'https' && request.port != 443 ||
|
47
|
+
request.scheme == 'http' && request.port != 80
|
48
|
+
abs_uri << ":#{request.port}"
|
49
|
+
end
|
50
|
+
abs_uri
|
51
|
+
end
|
43
52
|
end
|
44
53
|
end
|
45
54
|
end
|
data/lib/uzuuzu/helper/xhtml.rb
CHANGED
@@ -18,7 +18,7 @@ module UzuUzu
|
|
18
18
|
#
|
19
19
|
#
|
20
20
|
def css_for(*args)
|
21
|
-
args.map{|arg| css(
|
21
|
+
args.map{|arg| css(arg) }.join("\n")
|
22
22
|
end
|
23
23
|
|
24
24
|
#
|
@@ -36,7 +36,7 @@ module UzuUzu
|
|
36
36
|
#
|
37
37
|
#
|
38
38
|
def js_for(*args)
|
39
|
-
args.map{|arg| js(
|
39
|
+
args.map{|arg| js(arg) }.join("\n")
|
40
40
|
end
|
41
41
|
|
42
42
|
end
|
@@ -66,12 +66,12 @@ module UzuUzu
|
|
66
66
|
def load_localize
|
67
67
|
@localize = {}
|
68
68
|
if ::File.file?("./lang/#{@lang}.yaml")
|
69
|
-
File.open("./lang/#{@lang}.yaml", :encoding => "UTF-8") do |f|
|
69
|
+
::File.open("./lang/#{@lang}.yaml", :encoding => "UTF-8") do |f|
|
70
70
|
@localize.merge!(::YAML.load(f))
|
71
71
|
end
|
72
72
|
end
|
73
73
|
if ::File.file?(__DIR__("lang/#{@lang}.yaml"))
|
74
|
-
File.open(__DIR__("lang/#{@lang}.yaml"), :encoding => "UTF-8") do |f|
|
74
|
+
::File.open(__DIR__("lang/#{@lang}.yaml"), :encoding => "UTF-8") do |f|
|
75
75
|
@localize.merge!(::YAML.load(f))
|
76
76
|
end
|
77
77
|
end
|
@@ -6,19 +6,10 @@ entry: 登録
|
|
6
6
|
update: 更新
|
7
7
|
delete: 削除
|
8
8
|
|
9
|
-
login: ログイン
|
10
9
|
|
11
10
|
# error
|
12
11
|
not_found: お探しのページが見つかりません。
|
13
12
|
server_error: エラーが発生しました。
|
14
13
|
|
15
|
-
# openid
|
16
|
-
openid_messege: ログイン方法を選択してください
|
17
|
-
openid_url: その他OpenId
|
18
|
-
|
19
|
-
# user entry
|
20
|
-
user_entry: ユーザー情報を登録してください
|
21
|
-
user_entry_name: 表示するユーザー名
|
22
|
-
|
23
14
|
|
24
15
|
|
data/lib/uzuuzu/wrapper/tilt.rb
CHANGED
@@ -9,7 +9,7 @@ module UzuUzu
|
|
9
9
|
#
|
10
10
|
#
|
11
11
|
def self.render_engine(instance, view_string, engine=::UzuUzu.engine, options={}, locals={}, &block)
|
12
|
-
template = ::Tilt[engine].new { |t| view_string.force_encoding('UTF-8') }
|
12
|
+
template = ::Tilt[engine.to_s].new { |t| view_string.force_encoding('UTF-8') }
|
13
13
|
contents = template.render(instance, locals, &block)
|
14
14
|
unless options.blank?
|
15
15
|
layout = options.delete(:layout)
|
data/uzuuzu-core.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{uzuuzu-core}
|
8
|
-
s.version = "0.0.
|
8
|
+
s.version = "0.0.7"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Takuya Kondo"]
|
12
|
-
s.date = %q{2011-08-
|
12
|
+
s.date = %q{2011-08-23}
|
13
13
|
s.description = %q{uzuuzu core library}
|
14
14
|
s.email = %q{takuya.v3v@gmail.com}
|
15
15
|
s.extra_rdoc_files = [
|
metadata
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
name: uzuuzu-core
|
3
3
|
version: !ruby/object:Gem::Version
|
4
4
|
prerelease:
|
5
|
-
version: 0.0.
|
5
|
+
version: 0.0.7
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- Takuya Kondo
|
@@ -10,7 +10,7 @@ autorequire:
|
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
12
|
|
13
|
-
date: 2011-08-
|
13
|
+
date: 2011-08-23 00:00:00 +09:00
|
14
14
|
default_executable:
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
@@ -173,7 +173,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
173
173
|
requirements:
|
174
174
|
- - ">="
|
175
175
|
- !ruby/object:Gem::Version
|
176
|
-
hash: -
|
176
|
+
hash: -2144235226275281033
|
177
177
|
segments:
|
178
178
|
- 0
|
179
179
|
version: "0"
|