jpmobile 3.0.1 → 3.0.2

Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile CHANGED
@@ -2,7 +2,7 @@ source 'http://rubygems.org'
2
2
 
3
3
  group :development, :test do
4
4
  gem 'jeweler'
5
- gem 'rails', '~> 3.2.0'
5
+ gem 'rails', '~> 3.2.1'
6
6
  gem 'rspec'
7
7
  gem 'rspec-rails'
8
8
  gem 'webrat'
data/README.rdoc CHANGED
@@ -177,7 +177,7 @@ Rails のみ半角・全角の自動変換フィルターが用意されてい
177
177
  hankaku_filter
178
178
  end
179
179
 
180
- と指定する。またtextareaやhidden/text/passwordのinputタグで半角に変換したくない場合は :input => true を指定する。
180
+ と指定する。またtextareaやhidden/text/passwordのinputタグで半角に変換したくない場合は :input => true を指定する。このときNokogiriが必要となるため、Gemfileに追記してインストールする必要がある。
181
181
  class MyController
182
182
  hankaku_filter :input => true
183
183
  end
data/VERSION.yml CHANGED
@@ -1,5 +1,5 @@
1
1
  ---
2
2
  :major: 3
3
3
  :minor: 0
4
- :patch: 1
4
+ :patch: 2
5
5
  :build:
@@ -115,10 +115,10 @@ module Jpmobile::TransSid #:nodoc:
115
115
  protected
116
116
  # URLにsession_idを追加する。
117
117
  def default_url_options
118
- result = super || {}
118
+ result = super || {}.with_indifferent_access
119
119
  return result unless request # for test process
120
120
  return result unless apply_trans_sid?
121
- return result.merge({session_key => jpmobile_session_id})
121
+ return result.merge({session_key.to_sym => jpmobile_session_id})
122
122
  end
123
123
 
124
124
  private
@@ -1,6 +1,6 @@
1
1
  source 'http://rubygems.org'
2
2
 
3
- gem 'rails', '~> 3.2.0'
3
+ gem 'rails', '~> 3.2.1'
4
4
 
5
5
  gem 'sqlite3-ruby', :require => 'sqlite3'
6
6
 
@@ -37,4 +37,8 @@ class TransSidBaseController < ApplicationController
37
37
  def redirect_path_admin
38
38
  redirect_to [:admin, @user]
39
39
  end
40
+
41
+ def redirect_action
42
+ redirect_to :action => "form"
43
+ end
40
44
  end
@@ -0,0 +1,11 @@
1
+ # -*- coding: utf-8 -*-
2
+ require File.expand_path(File.join(File.dirname(__FILE__), '/../spec_helper'))
3
+
4
+ describe TransSidAlwaysController do
5
+ describe "GET 'redirect_action'" do
6
+ it "redirects 'form'" do
7
+ get :redirect_action
8
+ response.should redirect_to(:action => 'form')
9
+ end
10
+ end
11
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jpmobile
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.1
4
+ version: 3.0.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -10,11 +10,11 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2012-01-25 00:00:00.000000000 Z
13
+ date: 2012-03-13 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: jeweler
17
- requirement: &13059620 !ruby/object:Gem::Requirement
17
+ requirement: &23136360 !ruby/object:Gem::Requirement
18
18
  none: false
19
19
  requirements:
20
20
  - - ! '>='
@@ -22,21 +22,21 @@ dependencies:
22
22
  version: '0'
23
23
  type: :development
24
24
  prerelease: false
25
- version_requirements: *13059620
25
+ version_requirements: *23136360
26
26
  - !ruby/object:Gem::Dependency
27
27
  name: rails
28
- requirement: &13059120 !ruby/object:Gem::Requirement
28
+ requirement: &23135360 !ruby/object:Gem::Requirement
29
29
  none: false
30
30
  requirements:
31
31
  - - ~>
32
32
  - !ruby/object:Gem::Version
33
- version: 3.2.0
33
+ version: 3.2.1
34
34
  type: :development
35
35
  prerelease: false
36
- version_requirements: *13059120
36
+ version_requirements: *23135360
37
37
  - !ruby/object:Gem::Dependency
38
38
  name: rspec
39
- requirement: &13058460 !ruby/object:Gem::Requirement
39
+ requirement: &23134360 !ruby/object:Gem::Requirement
40
40
  none: false
41
41
  requirements:
42
42
  - - ! '>='
@@ -44,10 +44,10 @@ dependencies:
44
44
  version: '0'
45
45
  type: :development
46
46
  prerelease: false
47
- version_requirements: *13058460
47
+ version_requirements: *23134360
48
48
  - !ruby/object:Gem::Dependency
49
49
  name: rspec-rails
50
- requirement: &13057840 !ruby/object:Gem::Requirement
50
+ requirement: &23192600 !ruby/object:Gem::Requirement
51
51
  none: false
52
52
  requirements:
53
53
  - - ! '>='
@@ -55,10 +55,10 @@ dependencies:
55
55
  version: '0'
56
56
  type: :development
57
57
  prerelease: false
58
- version_requirements: *13057840
58
+ version_requirements: *23192600
59
59
  - !ruby/object:Gem::Dependency
60
60
  name: webrat
61
- requirement: &13057040 !ruby/object:Gem::Requirement
61
+ requirement: &23191360 !ruby/object:Gem::Requirement
62
62
  none: false
63
63
  requirements:
64
64
  - - ! '>='
@@ -66,10 +66,10 @@ dependencies:
66
66
  version: '0'
67
67
  type: :development
68
68
  prerelease: false
69
- version_requirements: *13057040
69
+ version_requirements: *23191360
70
70
  - !ruby/object:Gem::Dependency
71
71
  name: geokit
72
- requirement: &13056520 !ruby/object:Gem::Requirement
72
+ requirement: &23190320 !ruby/object:Gem::Requirement
73
73
  none: false
74
74
  requirements:
75
75
  - - ! '>='
@@ -77,10 +77,10 @@ dependencies:
77
77
  version: '0'
78
78
  type: :development
79
79
  prerelease: false
80
- version_requirements: *13056520
80
+ version_requirements: *23190320
81
81
  - !ruby/object:Gem::Dependency
82
82
  name: sqlite3-ruby
83
- requirement: &13056040 !ruby/object:Gem::Requirement
83
+ requirement: &23189320 !ruby/object:Gem::Requirement
84
84
  none: false
85
85
  requirements:
86
86
  - - ! '>='
@@ -88,10 +88,10 @@ dependencies:
88
88
  version: '0'
89
89
  type: :development
90
90
  prerelease: false
91
- version_requirements: *13056040
91
+ version_requirements: *23189320
92
92
  - !ruby/object:Gem::Dependency
93
93
  name: hpricot
94
- requirement: &13055360 !ruby/object:Gem::Requirement
94
+ requirement: &23188420 !ruby/object:Gem::Requirement
95
95
  none: false
96
96
  requirements:
97
97
  - - ! '>='
@@ -99,10 +99,10 @@ dependencies:
99
99
  version: '0'
100
100
  type: :development
101
101
  prerelease: false
102
- version_requirements: *13055360
102
+ version_requirements: *23188420
103
103
  - !ruby/object:Gem::Dependency
104
104
  name: rails
105
- requirement: &13054880 !ruby/object:Gem::Requirement
105
+ requirement: &23187500 !ruby/object:Gem::Requirement
106
106
  none: false
107
107
  requirements:
108
108
  - - ! '>='
@@ -110,10 +110,10 @@ dependencies:
110
110
  version: 3.2.0
111
111
  type: :development
112
112
  prerelease: false
113
- version_requirements: *13054880
113
+ version_requirements: *23187500
114
114
  - !ruby/object:Gem::Dependency
115
115
  name: jeweler
116
- requirement: &13070780 !ruby/object:Gem::Requirement
116
+ requirement: &23185580 !ruby/object:Gem::Requirement
117
117
  none: false
118
118
  requirements:
119
119
  - - ! '>='
@@ -121,10 +121,10 @@ dependencies:
121
121
  version: 1.5.1
122
122
  type: :development
123
123
  prerelease: false
124
- version_requirements: *13070780
124
+ version_requirements: *23185580
125
125
  - !ruby/object:Gem::Dependency
126
126
  name: rspec
127
- requirement: &13070300 !ruby/object:Gem::Requirement
127
+ requirement: &23291240 !ruby/object:Gem::Requirement
128
128
  none: false
129
129
  requirements:
130
130
  - - ! '>='
@@ -132,10 +132,10 @@ dependencies:
132
132
  version: 2.6.0
133
133
  type: :development
134
134
  prerelease: false
135
- version_requirements: *13070300
135
+ version_requirements: *23291240
136
136
  - !ruby/object:Gem::Dependency
137
137
  name: rspec-rails
138
- requirement: &13069820 !ruby/object:Gem::Requirement
138
+ requirement: &23290400 !ruby/object:Gem::Requirement
139
139
  none: false
140
140
  requirements:
141
141
  - - ! '>='
@@ -143,10 +143,10 @@ dependencies:
143
143
  version: 2.6.0
144
144
  type: :development
145
145
  prerelease: false
146
- version_requirements: *13069820
146
+ version_requirements: *23290400
147
147
  - !ruby/object:Gem::Dependency
148
148
  name: webrat
149
- requirement: &13069240 !ruby/object:Gem::Requirement
149
+ requirement: &23289620 !ruby/object:Gem::Requirement
150
150
  none: false
151
151
  requirements:
152
152
  - - ! '>='
@@ -154,10 +154,10 @@ dependencies:
154
154
  version: 0.7.2
155
155
  type: :development
156
156
  prerelease: false
157
- version_requirements: *13069240
157
+ version_requirements: *23289620
158
158
  - !ruby/object:Gem::Dependency
159
159
  name: geokit
160
- requirement: &13068720 !ruby/object:Gem::Requirement
160
+ requirement: &23288680 !ruby/object:Gem::Requirement
161
161
  none: false
162
162
  requirements:
163
163
  - - ! '>='
@@ -165,10 +165,10 @@ dependencies:
165
165
  version: 1.5.0
166
166
  type: :development
167
167
  prerelease: false
168
- version_requirements: *13068720
168
+ version_requirements: *23288680
169
169
  - !ruby/object:Gem::Dependency
170
170
  name: sqlite3-ruby
171
- requirement: &13067960 !ruby/object:Gem::Requirement
171
+ requirement: &23287860 !ruby/object:Gem::Requirement
172
172
  none: false
173
173
  requirements:
174
174
  - - ! '>='
@@ -176,10 +176,10 @@ dependencies:
176
176
  version: 1.3.2
177
177
  type: :development
178
178
  prerelease: false
179
- version_requirements: *13067960
179
+ version_requirements: *23287860
180
180
  - !ruby/object:Gem::Dependency
181
181
  name: hpricot
182
- requirement: &13067300 !ruby/object:Gem::Requirement
182
+ requirement: &23286840 !ruby/object:Gem::Requirement
183
183
  none: false
184
184
  requirements:
185
185
  - - ! '>='
@@ -187,10 +187,10 @@ dependencies:
187
187
  version: 0.8.3
188
188
  type: :development
189
189
  prerelease: false
190
- version_requirements: *13067300
190
+ version_requirements: *23286840
191
191
  - !ruby/object:Gem::Dependency
192
192
  name: git
193
- requirement: &13066620 !ruby/object:Gem::Requirement
193
+ requirement: &23285160 !ruby/object:Gem::Requirement
194
194
  none: false
195
195
  requirements:
196
196
  - - ! '>='
@@ -198,7 +198,7 @@ dependencies:
198
198
  version: 1.2.5
199
199
  type: :development
200
200
  prerelease: false
201
- version_requirements: *13066620
201
+ version_requirements: *23285160
202
202
  description: A Rails plugin for Japanese mobile-phones
203
203
  email: dara@shidara.net
204
204
  executables: []
@@ -379,6 +379,7 @@ files:
379
379
  - test/rails/overrides/db/migrate/001_add_sessions_table.rb
380
380
  - test/rails/overrides/db/migrate/20100824062306_create_users.rb
381
381
  - test/rails/overrides/spec/controllers/mobile_spec_controller_spec.rb
382
+ - test/rails/overrides/spec/controllers/trans_sid_controller_spec.rb
382
383
  - test/rails/overrides/spec/fixtures/mobile_mailer/au-attached.eml
383
384
  - test/rails/overrides/spec/fixtures/mobile_mailer/au-decomail.eml
384
385
  - test/rails/overrides/spec/fixtures/mobile_mailer/au-emoji.eml
@@ -441,7 +442,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
441
442
  version: '0'
442
443
  requirements: []
443
444
  rubyforge_project:
444
- rubygems_version: 1.8.15
445
+ rubygems_version: 1.8.17
445
446
  signing_key:
446
447
  specification_version: 3
447
448
  summary: A Rails plugin for Japanese mobile-phones