jpmobile_tizen 0.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/.gitignore ADDED
@@ -0,0 +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
data/Gemfile ADDED
@@ -0,0 +1,4 @@
1
+ source 'https://rubygems.org'
2
+
3
+ # Specify your gem's dependencies in jpmobile_tizen.gemspec
4
+ gemspec
data/LICENSE.txt ADDED
@@ -0,0 +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.
data/README.md ADDED
@@ -0,0 +1,23 @@
1
+ # JpmobileTizen
2
+
3
+ Rails定番の携帯端末対応gem Jpmobile に Tizen のSupport を追加する Gem です
4
+
5
+ ## Installation
6
+
7
+ Gemfile に jpmobile_tizen に冠する記述を加えて、bundle installして下さい
8
+
9
+ gem 'jpmobile_tizen'
10
+
11
+ $ bundle intall
12
+
13
+ 最後にApplicationCiontroller からモジュールをインクルードして下さい
14
+ これでTizenがサポートされます
15
+
16
+ class ApplicationController < ActionController::Base
17
+ # JpMobileにTizenのサポートを付ける
18
+ include JpmobileTizen::Support
19
+
20
+ ## Usage
21
+
22
+ 特に詳しいことを書く必要がある程のものではありませんので、説明は以上です
23
+
data/Rakefile ADDED
@@ -0,0 +1 @@
1
+ require "bundler/gem_tasks"
@@ -0,0 +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
@@ -0,0 +1,9 @@
1
+ # -*- coding: utf-8 -*-
2
+ # =Tizen
3
+
4
+ module Jpmobile::Mobile
5
+ class Tizen < Jpmobile::Mobile::SmartPhone
6
+ # 対応するUser-Agentの正規表現
7
+ USER_AGENT_REGEXP = /Tizen/
8
+ end
9
+ end
@@ -0,0 +1,6 @@
1
+ module Jpmobile
2
+ module Mobile
3
+ autoload :Tizen, 'jpmobile/mobile/tizen'
4
+ DEFAULT_CARRIERS_WITH_TIZEN = %w(Docomo Au Softbank Vodafone Emobile Willcom Ddipocket Iphone Android WindowsPhone Tizen)
5
+ end
6
+ end
@@ -0,0 +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::DEFAULT_CARRIERS_WITH_TIZEN
8
+ end
9
+ end
@@ -0,0 +1,3 @@
1
+ module JpmobileTizen
2
+ VERSION = "0.0.1"
3
+ end
@@ -0,0 +1,4 @@
1
+ require "jpmobile_tizen/version"
2
+ require "jpmobile/mobile"
3
+ require "jpmobile_tizen/support"
4
+
metadata ADDED
@@ -0,0 +1,91 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: jpmobile_tizen
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ prerelease:
6
+ platform: ruby
7
+ authors:
8
+ - baban
9
+ autorequire:
10
+ bindir: bin
11
+ cert_chain: []
12
+ date: 2013-06-14 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
15
+ name: bundler
16
+ requirement: &70300056168460 !ruby/object:Gem::Requirement
17
+ none: false
18
+ requirements:
19
+ - - ~>
20
+ - !ruby/object:Gem::Version
21
+ version: '1.3'
22
+ type: :development
23
+ prerelease: false
24
+ version_requirements: *70300056168460
25
+ - !ruby/object:Gem::Dependency
26
+ name: rake
27
+ requirement: &70300056168040 !ruby/object:Gem::Requirement
28
+ none: false
29
+ requirements:
30
+ - - ! '>='
31
+ - !ruby/object:Gem::Version
32
+ version: '0'
33
+ type: :development
34
+ prerelease: false
35
+ version_requirements: *70300056168040
36
+ - !ruby/object:Gem::Dependency
37
+ name: jpmobile
38
+ requirement: &70300056167580 !ruby/object:Gem::Requirement
39
+ none: false
40
+ requirements:
41
+ - - ! '>='
42
+ - !ruby/object:Gem::Version
43
+ version: '0'
44
+ type: :development
45
+ prerelease: false
46
+ version_requirements: *70300056167580
47
+ description: Tizen support add to jpmobile
48
+ email:
49
+ - babanba.n@gmail.com
50
+ executables: []
51
+ extensions: []
52
+ extra_rdoc_files: []
53
+ files:
54
+ - .gitignore
55
+ - Gemfile
56
+ - LICENSE.txt
57
+ - README.md
58
+ - Rakefile
59
+ - jpmobile_tizen.gemspec
60
+ - lib/jpmobile/mobile.rb
61
+ - lib/jpmobile/mobile/tizen.rb
62
+ - lib/jpmobile_tizen.rb
63
+ - lib/jpmobile_tizen/support.rb
64
+ - lib/jpmobile_tizen/version.rb
65
+ homepage: ''
66
+ licenses:
67
+ - MIT
68
+ post_install_message:
69
+ rdoc_options: []
70
+ require_paths:
71
+ - lib
72
+ required_ruby_version: !ruby/object:Gem::Requirement
73
+ none: false
74
+ requirements:
75
+ - - ! '>='
76
+ - !ruby/object:Gem::Version
77
+ version: '0'
78
+ required_rubygems_version: !ruby/object:Gem::Requirement
79
+ none: false
80
+ requirements:
81
+ - - ! '>='
82
+ - !ruby/object:Gem::Version
83
+ version: '0'
84
+ requirements: []
85
+ rubyforge_project:
86
+ rubygems_version: 1.8.10
87
+ signing_key:
88
+ specification_version: 3
89
+ summary: Tizen support add to jpmobile
90
+ test_files: []
91
+ has_rdoc: