jpmobile_tizen 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +18 -18
- data/Gemfile +4 -4
- data/LICENSE.txt +22 -22
- data/README.md +29 -23
- data/Rakefile +1 -1
- data/jpmobile_tizen.gemspec +24 -24
- data/lib/jpmobile/mobile/tizen.rb +30 -9
- data/lib/jpmobile_tizen/support.rb +9 -9
- data/lib/jpmobile_tizen/version.rb +3 -3
- data/lib/jpmobile_tizen.rb +3 -4
- metadata +30 -25
- data/lib/jpmobile/mobile.rb +0 -6
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: bf13a27befb8eed5b7a85ffe95ddb028c41e0b21
|
4
|
+
data.tar.gz: 0222b7a9d8473e8c4cf5caa47331e9eb51de90ef
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 09d64b2af9bc3ebe75439e0cf48f55556ba3046dfa521d84fe4e83e869566adb8eafeb26cab6a2780bded81e060e01fd21fcbd4cda7eb902ccf31946e94dbdd5
|
7
|
+
data.tar.gz: 87f064456ab158c2c333564db1a012bda466e0be64e16df5543d416bd462738d6a284a5c9e09bae6ae762a506af4eca4127e0aed287230cd766319e1ca470614
|
data/.gitignore
CHANGED
@@ -1,18 +1,18 @@
|
|
1
|
-
.DS_Store
|
2
|
-
*.gem
|
3
|
-
*.rbc
|
4
|
-
.bundle
|
5
|
-
.config
|
6
|
-
.yardoc
|
7
|
-
Gemfile.lock
|
8
|
-
InstalledFiles
|
9
|
-
_yardoc
|
10
|
-
coverage
|
11
|
-
doc/
|
12
|
-
lib/bundler/man
|
13
|
-
pkg
|
14
|
-
rdoc
|
15
|
-
spec/reports
|
16
|
-
test/tmp
|
17
|
-
test/version_tmp
|
18
|
-
tmp
|
1
|
+
.DS_Store
|
2
|
+
*.gem
|
3
|
+
*.rbc
|
4
|
+
.bundle
|
5
|
+
.config
|
6
|
+
.yardoc
|
7
|
+
Gemfile.lock
|
8
|
+
InstalledFiles
|
9
|
+
_yardoc
|
10
|
+
coverage
|
11
|
+
doc/
|
12
|
+
lib/bundler/man
|
13
|
+
pkg
|
14
|
+
rdoc
|
15
|
+
spec/reports
|
16
|
+
test/tmp
|
17
|
+
test/version_tmp
|
18
|
+
tmp
|
data/Gemfile
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
source 'https://rubygems.org'
|
2
|
-
|
3
|
-
# Specify your gem's dependencies in jpmobile_tizen.gemspec
|
4
|
-
gemspec
|
1
|
+
source 'https://rubygems.org'
|
2
|
+
|
3
|
+
# Specify your gem's dependencies in jpmobile_tizen.gemspec
|
4
|
+
gemspec
|
data/LICENSE.txt
CHANGED
@@ -1,22 +1,22 @@
|
|
1
|
-
Copyright (c) 2013 masanao.matsubara
|
2
|
-
|
3
|
-
MIT License
|
4
|
-
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining
|
6
|
-
a copy of this software and associated documentation files (the
|
7
|
-
"Software"), to deal in the Software without restriction, including
|
8
|
-
without limitation the rights to use, copy, modify, merge, publish,
|
9
|
-
distribute, sublicense, and/or sell copies of the Software, and to
|
10
|
-
permit persons to whom the Software is furnished to do so, subject to
|
11
|
-
the following conditions:
|
12
|
-
|
13
|
-
The above copyright notice and this permission notice shall be
|
14
|
-
included in all copies or substantial portions of the Software.
|
15
|
-
|
16
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
17
|
-
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
18
|
-
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
19
|
-
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
20
|
-
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
21
|
-
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
22
|
-
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
1
|
+
Copyright (c) 2013 masanao.matsubara
|
2
|
+
|
3
|
+
MIT License
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
6
|
+
a copy of this software and associated documentation files (the
|
7
|
+
"Software"), to deal in the Software without restriction, including
|
8
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
9
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
10
|
+
permit persons to whom the Software is furnished to do so, subject to
|
11
|
+
the following conditions:
|
12
|
+
|
13
|
+
The above copyright notice and this permission notice shall be
|
14
|
+
included in all copies or substantial portions of the Software.
|
15
|
+
|
16
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
17
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
18
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
19
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
20
|
+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
21
|
+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
22
|
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/README.md
CHANGED
@@ -1,23 +1,29 @@
|
|
1
|
-
# JpmobileTizen
|
2
|
-
|
3
|
-
Rails定番の携帯端末対応gem Jpmobile に Tizen のSupport を追加する Gem です
|
4
|
-
|
5
|
-
## Installation
|
6
|
-
|
7
|
-
Gemfile に jpmobile_tizen に冠する記述を加えて、bundle installして下さい
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
1
|
+
# JpmobileTizen
|
2
|
+
|
3
|
+
Rails定番の携帯端末対応gem Jpmobile に Tizen のSupport を追加する Gem です
|
4
|
+
|
5
|
+
## Installation
|
6
|
+
|
7
|
+
Gemfile に jpmobile_tizen に冠する記述を加えて、bundle installして下さい
|
8
|
+
|
9
|
+
```ruby
|
10
|
+
gem 'jpmobile_tizen'
|
11
|
+
```
|
12
|
+
|
13
|
+
これだけで動きます。
|
14
|
+
|
15
|
+
## Trouble shooting
|
16
|
+
|
17
|
+
上記の処理までで動かない場合ですが、他のライブラリとの競合が発生しているはずなので
|
18
|
+
ApplicationCiontroller から次の書式でモジュールをインクルードして下さい
|
19
|
+
これでTizenがサポートされます
|
20
|
+
|
21
|
+
```ruby
|
22
|
+
class ApplicationController < ActionController::Base
|
23
|
+
# JpMobileにTizenのサポートを付ける
|
24
|
+
include JpmobileTizen::Support
|
25
|
+
```
|
26
|
+
|
27
|
+
## Usage
|
28
|
+
|
29
|
+
特に詳しいことを書く必要がある程のものではありませんので、説明は以上です
|
data/Rakefile
CHANGED
@@ -1 +1 @@
|
|
1
|
-
require "bundler/gem_tasks"
|
1
|
+
require "bundler/gem_tasks"
|
data/jpmobile_tizen.gemspec
CHANGED
@@ -1,24 +1,24 @@
|
|
1
|
-
# coding: utf-8
|
2
|
-
lib = File.expand_path('../lib', __FILE__)
|
3
|
-
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
-
require 'jpmobile_tizen/version'
|
5
|
-
|
6
|
-
Gem::Specification.new do |spec|
|
7
|
-
spec.name = "jpmobile_tizen"
|
8
|
-
spec.version = JpmobileTizen::VERSION
|
9
|
-
spec.authors = ["baban"]
|
10
|
-
spec.email = ["babanba.n@gmail.com"]
|
11
|
-
spec.description = %q{Tizen support add to jpmobile}
|
12
|
-
spec.summary = %q{Tizen support add to jpmobile}
|
13
|
-
spec.homepage = ""
|
14
|
-
spec.license = "MIT"
|
15
|
-
|
16
|
-
spec.files = `git ls-files`.split($/)
|
17
|
-
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
|
18
|
-
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
19
|
-
spec.require_paths = ["lib"]
|
20
|
-
|
21
|
-
spec.add_development_dependency "bundler", "~> 1.3"
|
22
|
-
spec.add_development_dependency "rake"
|
23
|
-
spec.add_development_dependency "jpmobile"
|
24
|
-
end
|
1
|
+
# coding: utf-8
|
2
|
+
lib = File.expand_path('../lib', __FILE__)
|
3
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
+
require 'jpmobile_tizen/version'
|
5
|
+
|
6
|
+
Gem::Specification.new do |spec|
|
7
|
+
spec.name = "jpmobile_tizen"
|
8
|
+
spec.version = JpmobileTizen::VERSION
|
9
|
+
spec.authors = ["baban"]
|
10
|
+
spec.email = ["babanba.n@gmail.com"]
|
11
|
+
spec.description = %q{Tizen support add to jpmobile}
|
12
|
+
spec.summary = %q{Tizen support add to jpmobile}
|
13
|
+
spec.homepage = "https://github.com/baban/jpmobile_tizen"
|
14
|
+
spec.license = "MIT"
|
15
|
+
|
16
|
+
spec.files = `git ls-files`.split($/)
|
17
|
+
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
|
18
|
+
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
19
|
+
spec.require_paths = ["lib"]
|
20
|
+
|
21
|
+
spec.add_development_dependency "bundler", "~> 1.3"
|
22
|
+
spec.add_development_dependency "rake"
|
23
|
+
spec.add_development_dependency "jpmobile"
|
24
|
+
end
|
@@ -1,9 +1,30 @@
|
|
1
|
-
# -*- coding: utf-8 -*-
|
2
|
-
# =Tizen
|
3
|
-
|
4
|
-
module Jpmobile
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
end
|
1
|
+
# -*- coding: utf-8 -*-
|
2
|
+
# =Tizen
|
3
|
+
|
4
|
+
module Jpmobile
|
5
|
+
module RequestWithMobile
|
6
|
+
def tizen?
|
7
|
+
mobile and mobile.tizen?
|
8
|
+
end
|
9
|
+
end
|
10
|
+
|
11
|
+
module Mobile
|
12
|
+
DEFAULT_CARRIERS.unshift "Tizen"
|
13
|
+
Jpmobile::Mobile.carriers = Jpmobile::Mobile::DEFAULT_CARRIERS
|
14
|
+
|
15
|
+
class AbstractMobile
|
16
|
+
def tizen?
|
17
|
+
false
|
18
|
+
end
|
19
|
+
end
|
20
|
+
|
21
|
+
class Tizen < SmartPhone
|
22
|
+
# 対応するUser-Agentの正規表現
|
23
|
+
USER_AGENT_REGEXP = /Tizen/
|
24
|
+
|
25
|
+
def tizen?
|
26
|
+
true
|
27
|
+
end
|
28
|
+
end
|
29
|
+
end
|
30
|
+
end
|
@@ -1,9 +1,9 @@
|
|
1
|
-
module JpmobileTizen::Support
|
2
|
-
def self.included(klass)
|
3
|
-
klass.before_filter :jpmobile_tizen_support
|
4
|
-
end
|
5
|
-
|
6
|
-
def jpmobile_tizen_support
|
7
|
-
Jpmobile::Mobile.carriers= Jpmobile::Mobile::
|
8
|
-
end
|
9
|
-
end
|
1
|
+
module JpmobileTizen::Support
|
2
|
+
def self.included(klass)
|
3
|
+
klass.before_filter :jpmobile_tizen_support
|
4
|
+
end
|
5
|
+
|
6
|
+
def jpmobile_tizen_support
|
7
|
+
Jpmobile::Mobile.carriers = Jpmobile::Mobile::DEFAULT_CARRIERS
|
8
|
+
end
|
9
|
+
end
|
@@ -1,3 +1,3 @@
|
|
1
|
-
module JpmobileTizen
|
2
|
-
VERSION = "0.0.
|
3
|
-
end
|
1
|
+
module JpmobileTizen
|
2
|
+
VERSION = "0.0.2"
|
3
|
+
end
|
data/lib/jpmobile_tizen.rb
CHANGED
@@ -1,4 +1,3 @@
|
|
1
|
-
require "jpmobile_tizen/version"
|
2
|
-
require "jpmobile/mobile"
|
3
|
-
require "jpmobile_tizen/support"
|
4
|
-
|
1
|
+
require "jpmobile_tizen/version"
|
2
|
+
require "jpmobile/mobile/tizen"
|
3
|
+
require "jpmobile_tizen/support"
|
metadata
CHANGED
@@ -1,49 +1,57 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jpmobile_tizen
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
5
|
-
prerelease:
|
4
|
+
version: 0.0.2
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- baban
|
9
8
|
autorequire:
|
10
9
|
bindir: bin
|
11
10
|
cert_chain: []
|
12
|
-
date:
|
11
|
+
date: 2015-06-22 00:00:00.000000000 Z
|
13
12
|
dependencies:
|
14
13
|
- !ruby/object:Gem::Dependency
|
15
14
|
name: bundler
|
16
|
-
requirement:
|
17
|
-
none: false
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
18
16
|
requirements:
|
19
|
-
- - ~>
|
17
|
+
- - "~>"
|
20
18
|
- !ruby/object:Gem::Version
|
21
19
|
version: '1.3'
|
22
20
|
type: :development
|
23
21
|
prerelease: false
|
24
|
-
version_requirements:
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '1.3'
|
25
27
|
- !ruby/object:Gem::Dependency
|
26
28
|
name: rake
|
27
|
-
requirement:
|
28
|
-
none: false
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
29
30
|
requirements:
|
30
|
-
- -
|
31
|
+
- - ">="
|
31
32
|
- !ruby/object:Gem::Version
|
32
33
|
version: '0'
|
33
34
|
type: :development
|
34
35
|
prerelease: false
|
35
|
-
version_requirements:
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - ">="
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '0'
|
36
41
|
- !ruby/object:Gem::Dependency
|
37
42
|
name: jpmobile
|
38
|
-
requirement:
|
39
|
-
none: false
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
40
44
|
requirements:
|
41
|
-
- -
|
45
|
+
- - ">="
|
42
46
|
- !ruby/object:Gem::Version
|
43
47
|
version: '0'
|
44
48
|
type: :development
|
45
49
|
prerelease: false
|
46
|
-
version_requirements:
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - ">="
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '0'
|
47
55
|
description: Tizen support add to jpmobile
|
48
56
|
email:
|
49
57
|
- babanba.n@gmail.com
|
@@ -51,41 +59,38 @@ executables: []
|
|
51
59
|
extensions: []
|
52
60
|
extra_rdoc_files: []
|
53
61
|
files:
|
54
|
-
- .gitignore
|
62
|
+
- ".gitignore"
|
55
63
|
- Gemfile
|
56
64
|
- LICENSE.txt
|
57
65
|
- README.md
|
58
66
|
- Rakefile
|
59
67
|
- jpmobile_tizen.gemspec
|
60
|
-
- lib/jpmobile/mobile.rb
|
61
68
|
- lib/jpmobile/mobile/tizen.rb
|
62
69
|
- lib/jpmobile_tizen.rb
|
63
70
|
- lib/jpmobile_tizen/support.rb
|
64
71
|
- lib/jpmobile_tizen/version.rb
|
65
|
-
homepage:
|
72
|
+
homepage: https://github.com/baban/jpmobile_tizen
|
66
73
|
licenses:
|
67
74
|
- MIT
|
75
|
+
metadata: {}
|
68
76
|
post_install_message:
|
69
77
|
rdoc_options: []
|
70
78
|
require_paths:
|
71
79
|
- lib
|
72
80
|
required_ruby_version: !ruby/object:Gem::Requirement
|
73
|
-
none: false
|
74
81
|
requirements:
|
75
|
-
- -
|
82
|
+
- - ">="
|
76
83
|
- !ruby/object:Gem::Version
|
77
84
|
version: '0'
|
78
85
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
79
|
-
none: false
|
80
86
|
requirements:
|
81
|
-
- -
|
87
|
+
- - ">="
|
82
88
|
- !ruby/object:Gem::Version
|
83
89
|
version: '0'
|
84
90
|
requirements: []
|
85
91
|
rubyforge_project:
|
86
|
-
rubygems_version:
|
92
|
+
rubygems_version: 2.2.0.rc.1
|
87
93
|
signing_key:
|
88
|
-
specification_version:
|
94
|
+
specification_version: 4
|
89
95
|
summary: Tizen support add to jpmobile
|
90
96
|
test_files: []
|
91
|
-
has_rdoc:
|