jpmobile 4.2.2 → 4.2.3

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: d559c8f75810a80e68c245935600a6b9fb3f0a27
4
- data.tar.gz: a377261199556a4f6dde70aaa6bf7ee68aaa0a20
3
+ metadata.gz: 9e7afdd073603c4cd21bb29179a79d69ae6c510b
4
+ data.tar.gz: 019c1675536713dbd71faeb3f9e6ee51e1bb0325
5
5
  SHA512:
6
- metadata.gz: 120a61643a0843bd9794e9c418581b1189ba0db7237b7734c4bf73c27c8b264f3c4049b31f27af632db8f2bae1d272ba8325b6488797c2763bf15e90c92ca815
7
- data.tar.gz: b584e9e56dceeeff99b650b670db0d023037824f026f8fde12848fc052a32432e11f6e86819fbc02356264d29e71011c378e89e0702fea26441b5930e5e338d9
6
+ metadata.gz: 0ffd252eb6afb2a17ea2c4b516a0d783c2d097c8aa2a73f1512f030f1a6587afaa3255f679c5122e97e793da3299d9ce25b02b38ad04aafbbc8c016cca29c786
7
+ data.tar.gz: 9057c72035500a9e822a61f633039cc1a75c93bbe2b09534028866329a149bfe204d7254448cda8c04d73c298b4419a05952276d0277908cc1f2d840b3333f63
@@ -128,7 +128,7 @@ module Jpmobile
128
128
  end
129
129
 
130
130
  def filter(method, str)
131
- str = str.clone
131
+ str = str.dup
132
132
 
133
133
  # 一度UTF-8に変換
134
134
  before_encoding = nil
@@ -1,7 +1,7 @@
1
1
  module Jpmobile
2
2
  class Resolver < ActionView::FileSystemResolver
3
3
  EXTENSIONS = [:locale, :formats, :handlers, :mobile]
4
- DEFAULT_PATTERN = ":prefix/:action{_:mobile,}{.:locale,}{.:formats,}{.:handlers,}"
4
+ DEFAULT_PATTERN = ":prefix/:action{_:mobile,}{.:locale,}{.:formats,}{+:variants,}{.:handlers,}"
5
5
 
6
6
  def initialize(path, pattern=nil)
7
7
  raise ArgumentError, "path already is a Resolver class" if path.is_a?(Resolver)
@@ -11,11 +11,12 @@ module Jpmobile
11
11
 
12
12
  private
13
13
 
14
- def query(path, details, formats, _)
14
+ def query(path, details, formats, outside_app_allowed)
15
15
  query = build_query(path, details)
16
16
 
17
17
  begin
18
18
  template_paths = find_template_paths query
19
+ template_paths = reject_files_external_to_app(template_paths) unless outside_app_allowed
19
20
  rescue NoMethodError
20
21
  self.class_eval do
21
22
  def find_template_paths(query)
@@ -1,3 +1,3 @@
1
1
  module Jpmobile
2
- VERSION = "4.2.2"
2
+ VERSION = "4.2.3"
3
3
  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: 4.2.2
4
+ version: 4.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Shin-ichiro OGAWA
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2016-01-26 00:00:00.000000000 Z
12
+ date: 2016-02-25 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails
@@ -434,7 +434,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
434
434
  version: '0'
435
435
  requirements: []
436
436
  rubyforge_project:
437
- rubygems_version: 2.4.5.1
437
+ rubygems_version: 2.5.1
438
438
  signing_key:
439
439
  specification_version: 4
440
440
  summary: A Rails plugin for mobile devices in Japan