jpmobile 0.1.0.pre.3 → 0.1.0.pre.4

Sign up to get free protection for your applications and to get access to all the features.
data/.gitignore CHANGED
@@ -1,3 +1,5 @@
1
1
  doc
2
2
  tmp
3
3
  pkg
4
+ .bundle/
5
+ Gemfile.lock
data/VERSION.yml CHANGED
@@ -1,5 +1,5 @@
1
- ---
1
+ ---
2
2
  :major: 0
3
3
  :minor: 1
4
4
  :patch: 0
5
- :build: pre.3
5
+ :build: pre.4
data/jpmobile.gemspec CHANGED
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{jpmobile}
8
- s.version = "0.1.0.pre.3"
8
+ s.version = "0.1.0.pre.4"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new("> 1.3.1") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Yoji Shidara", "Shin-ichiro OGAWA"]
12
- s.date = %q{2010-07-29}
12
+ s.date = %q{2010-08-24}
13
13
  s.description = %q{A Rails plugin for Japanese mobile-phones}
14
14
  s.email = %q{dara@shidara.net}
15
15
  s.extra_rdoc_files = [
@@ -167,59 +167,59 @@ Gem::Specification.new do |s|
167
167
  s.rubygems_version = %q{1.3.7}
168
168
  s.summary = %q{A Rails plugin for Japanese mobile-phones}
169
169
  s.test_files = [
170
- "spec/rack/jpmobile/android_spec.rb",
170
+ "spec/rack/jpmobile/emoticon_spec.rb",
171
171
  "spec/rack/jpmobile/au_spec.rb",
172
+ "spec/rack/jpmobile/willcom_spec.rb",
173
+ "spec/rack/jpmobile/params_filter_spec.rb",
172
174
  "spec/rack/jpmobile/docomo_spec.rb",
173
- "spec/rack/jpmobile/emoticon_spec.rb",
174
175
  "spec/rack/jpmobile/filter_spec.rb",
175
- "spec/rack/jpmobile/iphone_spec.rb",
176
+ "spec/rack/jpmobile/windows_phone.rb",
176
177
  "spec/rack/jpmobile/mobile_by_ua_spec.rb",
177
- "spec/rack/jpmobile/params_filter_spec.rb",
178
+ "spec/rack/jpmobile/iphone_spec.rb",
178
179
  "spec/rack/jpmobile/softbank_spec.rb",
179
- "spec/rack/jpmobile/willcom_spec.rb",
180
- "spec/rack/jpmobile/windows_phone.rb",
181
- "spec/rack_helper.rb",
182
- "spec/spec_helper.rb",
180
+ "spec/rack/jpmobile/android_spec.rb",
183
181
  "spec/unit/detect_by_email_spec.rb",
184
- "spec/unit/is_carrier_spec.rb",
185
182
  "spec/unit/spec_helper.rb",
186
- "spec/unit/util_spec.rb",
187
183
  "spec/unit/valid_ip_spec.rb",
184
+ "spec/unit/util_spec.rb",
185
+ "spec/unit/is_carrier_spec.rb",
186
+ "spec/spec_helper.rb",
187
+ "spec/rack_helper.rb",
188
188
  "test/legacy/autoload_test.rb",
189
189
  "test/legacy/emoticon_test.rb",
190
190
  "test/legacy/helper.rb",
191
- "test/rails/overrides/app/controllers/application_controller.rb",
192
- "test/rails/overrides/app/controllers/docomo_guid_always_controller.rb",
193
- "test/rails/overrides/app/controllers/docomo_guid_base_controller.rb",
194
- "test/rails/overrides/app/controllers/docomo_guid_docomo_controller.rb",
195
- "test/rails/overrides/app/controllers/filter_controller.rb",
196
- "test/rails/overrides/app/controllers/filter_controller_base.rb",
197
- "test/rails/overrides/app/controllers/hankaku_filter_controller.rb",
198
- "test/rails/overrides/app/controllers/links_controller.rb",
199
- "test/rails/overrides/app/controllers/mobile_spec_controller.rb",
200
- "test/rails/overrides/app/controllers/template_path_controller.rb",
201
- "test/rails/overrides/app/controllers/trans_sid_always_and_session_off_controller.rb",
202
- "test/rails/overrides/app/controllers/trans_sid_always_controller.rb",
203
- "test/rails/overrides/app/controllers/trans_sid_base_controller.rb",
204
- "test/rails/overrides/app/controllers/trans_sid_mobile_controller.rb",
205
- "test/rails/overrides/app/controllers/trans_sid_none_controller.rb",
206
- "test/rails/overrides/autotest/discover.rb",
207
- "test/rails/overrides/config/initializers/jpmobile_generator.rb",
208
- "test/rails/overrides/config/routes.rb",
209
- "test/rails/overrides/db/migrate/001_add_sessions_table.rb",
191
+ "test/sinatra/guestbook.rb",
192
+ "test/sinatra/test/filter_test.rb",
210
193
  "test/rails/overrides/spec/helpers/helpers_spec.rb",
211
- "test/rails/overrides/spec/requests/docomo_guid_spec.rb",
194
+ "test/rails/overrides/spec/requests/softbank_emulator_spec.rb",
212
195
  "test/rails/overrides/spec/requests/docomo_spec.rb",
213
- "test/rails/overrides/spec/requests/emobile_spec.rb",
214
- "test/rails/overrides/spec/requests/filter_spec.rb",
215
196
  "test/rails/overrides/spec/requests/helpers_spec.rb",
216
- "test/rails/overrides/spec/requests/pc_spec.rb",
217
- "test/rails/overrides/spec/requests/softbank_emulator_spec.rb",
218
- "test/rails/overrides/spec/requests/template_path_spec.rb",
197
+ "test/rails/overrides/spec/requests/docomo_guid_spec.rb",
219
198
  "test/rails/overrides/spec/requests/trans_sid_spec.rb",
199
+ "test/rails/overrides/spec/requests/template_path_spec.rb",
200
+ "test/rails/overrides/spec/requests/filter_spec.rb",
201
+ "test/rails/overrides/spec/requests/pc_spec.rb",
202
+ "test/rails/overrides/spec/requests/emobile_spec.rb",
220
203
  "test/rails/overrides/spec/spec_helper.rb",
221
- "test/sinatra/guestbook.rb",
222
- "test/sinatra/test/filter_test.rb"
204
+ "test/rails/overrides/autotest/discover.rb",
205
+ "test/rails/overrides/app/controllers/trans_sid_always_controller.rb",
206
+ "test/rails/overrides/app/controllers/hankaku_filter_controller.rb",
207
+ "test/rails/overrides/app/controllers/filter_controller_base.rb",
208
+ "test/rails/overrides/app/controllers/links_controller.rb",
209
+ "test/rails/overrides/app/controllers/trans_sid_base_controller.rb",
210
+ "test/rails/overrides/app/controllers/trans_sid_none_controller.rb",
211
+ "test/rails/overrides/app/controllers/trans_sid_always_and_session_off_controller.rb",
212
+ "test/rails/overrides/app/controllers/template_path_controller.rb",
213
+ "test/rails/overrides/app/controllers/docomo_guid_docomo_controller.rb",
214
+ "test/rails/overrides/app/controllers/filter_controller.rb",
215
+ "test/rails/overrides/app/controllers/mobile_spec_controller.rb",
216
+ "test/rails/overrides/app/controllers/trans_sid_mobile_controller.rb",
217
+ "test/rails/overrides/app/controllers/application_controller.rb",
218
+ "test/rails/overrides/app/controllers/docomo_guid_always_controller.rb",
219
+ "test/rails/overrides/app/controllers/docomo_guid_base_controller.rb",
220
+ "test/rails/overrides/db/migrate/001_add_sessions_table.rb",
221
+ "test/rails/overrides/config/routes.rb",
222
+ "test/rails/overrides/config/initializers/jpmobile_generator.rb"
223
223
  ]
224
224
 
225
225
  if s.respond_to? :specification_version then
@@ -12,8 +12,10 @@ module Jpmobile
12
12
 
13
13
  # for reverse proxy.
14
14
  def remote_addr
15
- if respond_to? :remote_ip
16
- return __send__(:remote_ip)
15
+ if respond_to?(:remote_ip)
16
+ return __send__(:remote_ip) # for Rails
17
+ elsif respond_to?(:ip)
18
+ return __send__(:ip) # for Rack
17
19
  else
18
20
  return ( env["HTTP_X_FORWARDED_FOR"] ? env["HTTP_X_FORWARDED_FOR"].split(',').pop : env["REMOTE_ADDR"] )
19
21
  end
@@ -1,6 +1,6 @@
1
1
  source 'http://rubygems.org'
2
2
 
3
- gem 'rails', '3.0.0.rc'
3
+ gem 'rails', '3.0.0.rc2'
4
4
 
5
5
  # Bundle edge Rails instead:
6
6
  # gem 'rails', :git => 'git://github.com/rails/rails.git'
metadata CHANGED
@@ -1,14 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jpmobile
3
3
  version: !ruby/object:Gem::Version
4
+ hash: 1923831985
4
5
  prerelease: true
5
6
  segments:
6
7
  - 0
7
8
  - 1
8
9
  - 0
9
10
  - pre
10
- - 3
11
- version: 0.1.0.pre.3
11
+ - 4
12
+ version: 0.1.0.pre.4
12
13
  platform: ruby
13
14
  authors:
14
15
  - Yoji Shidara
@@ -17,7 +18,7 @@ autorequire:
17
18
  bindir: bin
18
19
  cert_chain: []
19
20
 
20
- date: 2010-07-29 00:00:00 +09:00
21
+ date: 2010-08-24 00:00:00 +09:00
21
22
  default_executable:
22
23
  dependencies:
23
24
  - !ruby/object:Gem::Dependency
@@ -28,6 +29,7 @@ dependencies:
28
29
  requirements:
29
30
  - - ">="
30
31
  - !ruby/object:Gem::Version
32
+ hash: 27
31
33
  segments:
32
34
  - 1
33
35
  - 3
@@ -43,6 +45,7 @@ dependencies:
43
45
  requirements:
44
46
  - - ">="
45
47
  - !ruby/object:Gem::Version
48
+ hash: 31
46
49
  segments:
47
50
  - 1
48
51
  - 3
@@ -58,6 +61,7 @@ dependencies:
58
61
  requirements:
59
62
  - - ">="
60
63
  - !ruby/object:Gem::Version
64
+ hash: 27
61
65
  segments:
62
66
  - 0
63
67
  - 0
@@ -73,6 +77,7 @@ dependencies:
73
77
  requirements:
74
78
  - - ">="
75
79
  - !ruby/object:Gem::Version
80
+ hash: 7
76
81
  segments:
77
82
  - 1
78
83
  - 4
@@ -247,6 +252,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
247
252
  requirements:
248
253
  - - ">="
249
254
  - !ruby/object:Gem::Version
255
+ hash: 3
250
256
  segments:
251
257
  - 0
252
258
  version: "0"
@@ -255,6 +261,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
255
261
  requirements:
256
262
  - - ">"
257
263
  - !ruby/object:Gem::Version
264
+ hash: 25
258
265
  segments:
259
266
  - 1
260
267
  - 3
@@ -268,56 +275,56 @@ signing_key:
268
275
  specification_version: 3
269
276
  summary: A Rails plugin for Japanese mobile-phones
270
277
  test_files:
271
- - spec/rack/jpmobile/android_spec.rb
278
+ - spec/rack/jpmobile/emoticon_spec.rb
272
279
  - spec/rack/jpmobile/au_spec.rb
280
+ - spec/rack/jpmobile/willcom_spec.rb
281
+ - spec/rack/jpmobile/params_filter_spec.rb
273
282
  - spec/rack/jpmobile/docomo_spec.rb
274
- - spec/rack/jpmobile/emoticon_spec.rb
275
283
  - spec/rack/jpmobile/filter_spec.rb
276
- - spec/rack/jpmobile/iphone_spec.rb
284
+ - spec/rack/jpmobile/windows_phone.rb
277
285
  - spec/rack/jpmobile/mobile_by_ua_spec.rb
278
- - spec/rack/jpmobile/params_filter_spec.rb
286
+ - spec/rack/jpmobile/iphone_spec.rb
279
287
  - spec/rack/jpmobile/softbank_spec.rb
280
- - spec/rack/jpmobile/willcom_spec.rb
281
- - spec/rack/jpmobile/windows_phone.rb
282
- - spec/rack_helper.rb
283
- - spec/spec_helper.rb
288
+ - spec/rack/jpmobile/android_spec.rb
284
289
  - spec/unit/detect_by_email_spec.rb
285
- - spec/unit/is_carrier_spec.rb
286
290
  - spec/unit/spec_helper.rb
287
- - spec/unit/util_spec.rb
288
291
  - spec/unit/valid_ip_spec.rb
292
+ - spec/unit/util_spec.rb
293
+ - spec/unit/is_carrier_spec.rb
294
+ - spec/spec_helper.rb
295
+ - spec/rack_helper.rb
289
296
  - test/legacy/autoload_test.rb
290
297
  - test/legacy/emoticon_test.rb
291
298
  - test/legacy/helper.rb
292
- - test/rails/overrides/app/controllers/application_controller.rb
293
- - test/rails/overrides/app/controllers/docomo_guid_always_controller.rb
294
- - test/rails/overrides/app/controllers/docomo_guid_base_controller.rb
295
- - test/rails/overrides/app/controllers/docomo_guid_docomo_controller.rb
296
- - test/rails/overrides/app/controllers/filter_controller.rb
297
- - test/rails/overrides/app/controllers/filter_controller_base.rb
298
- - test/rails/overrides/app/controllers/hankaku_filter_controller.rb
299
- - test/rails/overrides/app/controllers/links_controller.rb
300
- - test/rails/overrides/app/controllers/mobile_spec_controller.rb
301
- - test/rails/overrides/app/controllers/template_path_controller.rb
302
- - test/rails/overrides/app/controllers/trans_sid_always_and_session_off_controller.rb
303
- - test/rails/overrides/app/controllers/trans_sid_always_controller.rb
304
- - test/rails/overrides/app/controllers/trans_sid_base_controller.rb
305
- - test/rails/overrides/app/controllers/trans_sid_mobile_controller.rb
306
- - test/rails/overrides/app/controllers/trans_sid_none_controller.rb
307
- - test/rails/overrides/autotest/discover.rb
308
- - test/rails/overrides/config/initializers/jpmobile_generator.rb
309
- - test/rails/overrides/config/routes.rb
310
- - test/rails/overrides/db/migrate/001_add_sessions_table.rb
299
+ - test/sinatra/guestbook.rb
300
+ - test/sinatra/test/filter_test.rb
311
301
  - test/rails/overrides/spec/helpers/helpers_spec.rb
312
- - test/rails/overrides/spec/requests/docomo_guid_spec.rb
302
+ - test/rails/overrides/spec/requests/softbank_emulator_spec.rb
313
303
  - test/rails/overrides/spec/requests/docomo_spec.rb
314
- - test/rails/overrides/spec/requests/emobile_spec.rb
315
- - test/rails/overrides/spec/requests/filter_spec.rb
316
304
  - test/rails/overrides/spec/requests/helpers_spec.rb
317
- - test/rails/overrides/spec/requests/pc_spec.rb
318
- - test/rails/overrides/spec/requests/softbank_emulator_spec.rb
319
- - test/rails/overrides/spec/requests/template_path_spec.rb
305
+ - test/rails/overrides/spec/requests/docomo_guid_spec.rb
320
306
  - test/rails/overrides/spec/requests/trans_sid_spec.rb
307
+ - test/rails/overrides/spec/requests/template_path_spec.rb
308
+ - test/rails/overrides/spec/requests/filter_spec.rb
309
+ - test/rails/overrides/spec/requests/pc_spec.rb
310
+ - test/rails/overrides/spec/requests/emobile_spec.rb
321
311
  - test/rails/overrides/spec/spec_helper.rb
322
- - test/sinatra/guestbook.rb
323
- - test/sinatra/test/filter_test.rb
312
+ - test/rails/overrides/autotest/discover.rb
313
+ - test/rails/overrides/app/controllers/trans_sid_always_controller.rb
314
+ - test/rails/overrides/app/controllers/hankaku_filter_controller.rb
315
+ - test/rails/overrides/app/controllers/filter_controller_base.rb
316
+ - test/rails/overrides/app/controllers/links_controller.rb
317
+ - test/rails/overrides/app/controllers/trans_sid_base_controller.rb
318
+ - test/rails/overrides/app/controllers/trans_sid_none_controller.rb
319
+ - test/rails/overrides/app/controllers/trans_sid_always_and_session_off_controller.rb
320
+ - test/rails/overrides/app/controllers/template_path_controller.rb
321
+ - test/rails/overrides/app/controllers/docomo_guid_docomo_controller.rb
322
+ - test/rails/overrides/app/controllers/filter_controller.rb
323
+ - test/rails/overrides/app/controllers/mobile_spec_controller.rb
324
+ - test/rails/overrides/app/controllers/trans_sid_mobile_controller.rb
325
+ - test/rails/overrides/app/controllers/application_controller.rb
326
+ - test/rails/overrides/app/controllers/docomo_guid_always_controller.rb
327
+ - test/rails/overrides/app/controllers/docomo_guid_base_controller.rb
328
+ - test/rails/overrides/db/migrate/001_add_sessions_table.rb
329
+ - test/rails/overrides/config/routes.rb
330
+ - test/rails/overrides/config/initializers/jpmobile_generator.rb