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 +4 -4
- data/lib/jpmobile/filter.rb +1 -1
- data/lib/jpmobile/resolver.rb +3 -2
- data/lib/jpmobile/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9e7afdd073603c4cd21bb29179a79d69ae6c510b
|
4
|
+
data.tar.gz: 019c1675536713dbd71faeb3f9e6ee51e1bb0325
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0ffd252eb6afb2a17ea2c4b516a0d783c2d097c8aa2a73f1512f030f1a6587afaa3255f679c5122e97e793da3299d9ce25b02b38ad04aafbbc8c016cca29c786
|
7
|
+
data.tar.gz: 9057c72035500a9e822a61f633039cc1a75c93bbe2b09534028866329a149bfe204d7254448cda8c04d73c298b4419a05952276d0277908cc1f2d840b3333f63
|
data/lib/jpmobile/filter.rb
CHANGED
data/lib/jpmobile/resolver.rb
CHANGED
@@ -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)
|
data/lib/jpmobile/version.rb
CHANGED
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.
|
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-
|
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.
|
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
|