iphone_helpers 2.0.2 → 3.0.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,3 +1,3 @@
1
1
  module IphoneHelpers
2
- VERSION = '2.0.2'
2
+ VERSION = '3.0.0'
3
3
  end
@@ -0,0 +1,56 @@
1
+ require 'dummy_helper'
2
+
3
+ class WelcomeControllerTest < ActionController::TestCase
4
+ def test_apple_mobile_web_app_capable
5
+ assert_tag :meta, name: 'apple-mobile-web-app-capable', content: 'yes'
6
+ end
7
+
8
+ def test_apple_mobile_web_app_status_bar_style
9
+ assert_tag :meta, name: 'apple-mobile-web-app-status-bar-style', content: 'default'
10
+ end
11
+
12
+ def test_apple_mobile_web_app_status_bar_style_black
13
+ assert_tag :meta, name: 'apple-mobile-web-app-status-bar-style', content: 'black'
14
+ end
15
+
16
+ def test_apple_mobile_web_app_status_bar_style_black_translucent
17
+ assert_tag :meta, name: 'apple-mobile-web-app-status-bar-style', content: 'black-translucent'
18
+ end
19
+
20
+ def test_apple_touch_icon
21
+ assert_tag :link, rel: 'apple-touch-icon', href: '/assets/iphone.png'
22
+ end
23
+
24
+ def test_apple_touch_icon_precomposed
25
+ assert_tag :link, rel: 'apple-touch-icon-precomposed', href: '/assets/iphone.png'
26
+ end
27
+
28
+ def test_apple_touch_startup_image
29
+ assert_tag :link, rel: 'apple-touch-startup-image', href: '/assets/splash.png'
30
+ end
31
+
32
+ def test_format_detection_disable_telephone
33
+ assert_tag :meta, name: 'format-detection', content: 'telephone=no'
34
+ end
35
+
36
+ def test_format_detection_enable_telephone
37
+ assert_tag :meta, name: 'format-detection', content: 'telephone=yes'
38
+ end
39
+
40
+ def test_viewport
41
+ assert_tag :meta, name: 'viewport', content: 'initial-scale=1, maximum-scale=1, width=device-width'
42
+ end
43
+
44
+ def test_viewport_with_custom_attributes
45
+ assert_tag :meta, name: 'viewport', content: 'height=480, initial-scale=2.5, maximum-scale=3, minimum-scale=0.5, user-scalable=no, width=320'
46
+ end
47
+
48
+ protected
49
+
50
+ def body
51
+ @body ||= begin
52
+ get :index
53
+ @response.body
54
+ end
55
+ end
56
+ end
@@ -15,7 +15,7 @@ class IphoneHelpersTest < MiniTest::Unit::TestCase
15
15
 
16
16
  def test_apple_mobile_web_app_status_bar_style_black_translucent
17
17
  assert_tag iphone(:status_bar, color: 'black-translucent'), :meta, name: 'apple-mobile-web-app-status-bar-style', content: 'black-translucent'
18
- end
18
+ end
19
19
 
20
20
  def test_apple_touch_icon
21
21
  assert_tag iphone(:icon, href: '/assets/iphone.png'), :link, rel: 'apple-touch-icon', href: '/assets/iphone.png'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: iphone_helpers
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.2
4
+ version: 3.0.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,22 +9,27 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-01-09 00:00:00.000000000 Z
12
+ date: 2013-06-27 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: actionpack
16
- requirement: &70344551723560 !ruby/object:Gem::Requirement
16
+ requirement: !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ~>
20
20
  - !ruby/object:Gem::Version
21
- version: 3.2.0
21
+ version: 4.0.0
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *70344551723560
24
+ version_requirements: !ruby/object:Gem::Requirement
25
+ none: false
26
+ requirements:
27
+ - - ~>
28
+ - !ruby/object:Gem::Version
29
+ version: 4.0.0
25
30
  - !ruby/object:Gem::Dependency
26
31
  name: awesome_print
27
- requirement: &70344551806640 !ruby/object:Gem::Requirement
32
+ requirement: !ruby/object:Gem::Requirement
28
33
  none: false
29
34
  requirements:
30
35
  - - ~>
@@ -32,10 +37,31 @@ dependencies:
32
37
  version: 1.1.0
33
38
  type: :development
34
39
  prerelease: false
35
- version_requirements: *70344551806640
40
+ version_requirements: !ruby/object:Gem::Requirement
41
+ none: false
42
+ requirements:
43
+ - - ~>
44
+ - !ruby/object:Gem::Version
45
+ version: 1.1.0
46
+ - !ruby/object:Gem::Dependency
47
+ name: coveralls
48
+ requirement: !ruby/object:Gem::Requirement
49
+ none: false
50
+ requirements:
51
+ - - ~>
52
+ - !ruby/object:Gem::Version
53
+ version: 0.6.0
54
+ type: :development
55
+ prerelease: false
56
+ version_requirements: !ruby/object:Gem::Requirement
57
+ none: false
58
+ requirements:
59
+ - - ~>
60
+ - !ruby/object:Gem::Version
61
+ version: 0.6.0
36
62
  - !ruby/object:Gem::Dependency
37
63
  name: minitest
38
- requirement: &70344551805720 !ruby/object:Gem::Requirement
64
+ requirement: !ruby/object:Gem::Requirement
39
65
  none: false
40
66
  requirements:
41
67
  - - ~>
@@ -43,10 +69,31 @@ dependencies:
43
69
  version: 4.4.0
44
70
  type: :development
45
71
  prerelease: false
46
- version_requirements: *70344551805720
72
+ version_requirements: !ruby/object:Gem::Requirement
73
+ none: false
74
+ requirements:
75
+ - - ~>
76
+ - !ruby/object:Gem::Version
77
+ version: 4.4.0
78
+ - !ruby/object:Gem::Dependency
79
+ name: rails
80
+ requirement: !ruby/object:Gem::Requirement
81
+ none: false
82
+ requirements:
83
+ - - ~>
84
+ - !ruby/object:Gem::Version
85
+ version: 4.0.0
86
+ type: :development
87
+ prerelease: false
88
+ version_requirements: !ruby/object:Gem::Requirement
89
+ none: false
90
+ requirements:
91
+ - - ~>
92
+ - !ruby/object:Gem::Version
93
+ version: 4.0.0
47
94
  - !ruby/object:Gem::Dependency
48
95
  name: rake
49
- requirement: &70344551804620 !ruby/object:Gem::Requirement
96
+ requirement: !ruby/object:Gem::Requirement
50
97
  none: false
51
98
  requirements:
52
99
  - - ~>
@@ -54,7 +101,12 @@ dependencies:
54
101
  version: 10.0.0
55
102
  type: :development
56
103
  prerelease: false
57
- version_requirements: *70344551804620
104
+ version_requirements: !ruby/object:Gem::Requirement
105
+ none: false
106
+ requirements:
107
+ - - ~>
108
+ - !ruby/object:Gem::Version
109
+ version: 10.0.0
58
110
  description: iPhone specific HTML tags helper
59
111
  email:
60
112
  - anton@qvister.se
@@ -64,6 +116,7 @@ extra_rdoc_files: []
64
116
  files:
65
117
  - lib/iphone_helpers/version.rb
66
118
  - lib/iphone_helpers.rb
119
+ - test/functional/welcome_controller_test.rb
67
120
  - test/iphone_helpers_test.rb
68
121
  homepage: http://github.com/mptre/rails-iphone-helpers
69
122
  licenses: []
@@ -77,19 +130,25 @@ required_ruby_version: !ruby/object:Gem::Requirement
77
130
  - - ! '>='
78
131
  - !ruby/object:Gem::Version
79
132
  version: '0'
133
+ segments:
134
+ - 0
135
+ hash: -2377823890793549688
80
136
  required_rubygems_version: !ruby/object:Gem::Requirement
81
137
  none: false
82
138
  requirements:
83
139
  - - ! '>='
84
140
  - !ruby/object:Gem::Version
85
141
  version: '0'
142
+ segments:
143
+ - 0
144
+ hash: -2377823890793549688
86
145
  requirements: []
87
146
  rubyforge_project:
88
- rubygems_version: 1.8.6
147
+ rubygems_version: 1.8.25
89
148
  signing_key:
90
149
  specification_version: 3
91
150
  summary: Tailor made gem for Ruby on Rails providing helpers used to generate iPhone
92
151
  specific HTML tags.
93
152
  test_files:
153
+ - test/functional/welcome_controller_test.rb
94
154
  - test/iphone_helpers_test.rb
95
- has_rdoc: