sports_db 0.0.8 → 0.0.9

Sign up to get free protection for your applications and to get access to all the features.
@@ -11,32 +11,61 @@ html,body {
11
11
  -webkit-touch-callout: none;
12
12
  background-repeat: no-repeat;
13
13
  }
14
+ body {
15
+ font-size: $default_font_size;
16
+ color: $txt_gray;
17
+ margin: 0 auto;
18
+ }
19
+ body.ios {
20
+ font-family: helvetica, sans-serif;
21
+ text-rendering: optimizeLegibility;
22
+ }
23
+ body.android {
24
+ font-family: sans-serif;
25
+ }
26
+
27
+
28
+
29
+ // Default
14
30
  html { font-size: 10px; }
31
+ // 480 wide
15
32
  @media (min-width: 460px) and (-webkit-min-device-pixel-ratio: 1.5) {
16
33
  html { font-size: 15px; }
17
34
  }
35
+ // 540 wide
18
36
  @media (min-width: 520px) and (-webkit-min-device-pixel-ratio: 1.5) {
19
- html { font-size: 16.8px; }
37
+ html { font-size: 16.875px; }
20
38
  }
39
+ // 600 wide
21
40
  @media (min-width: 580px) and (-webkit-min-device-pixel-ratio: 1.5) {
22
- html { font-size: 18.7px; }
41
+ html { font-size: 18.75px; }
23
42
  }
43
+ // 720 wide
24
44
  @media (min-width: 700px) and (-webkit-min-device-pixel-ratio: 1.5) {
25
- html { font-size: 22.4px; }
45
+ html { font-size: 22.5px; }
26
46
  }
27
- @media (min-device-width: 760px) {
28
- html { font-size: 10px; }
47
+ // Nexus 4, 768 wide
48
+ @media (min-width: 748px) and (-webkit-min-device-pixel-ratio: 1.5) {
49
+ html { font-size: 24px; }
29
50
  }
30
-
31
- body {
32
- font-size: $default_font_size;
33
- color: $txt_gray;
34
- margin: 0 auto;
51
+ // 800 wide
52
+ @media (min-width: 780px) and (-webkit-min-device-pixel-ratio: 1.5) {
53
+ html { font-size: 25px; }
35
54
  }
36
- body.ios {
37
- font-family: helvetica, sans-serif;
38
- text-rendering: optimizeLegibility;
55
+ // Nexus 7 (has a device pixel ratio of ~1.32)
56
+ @media (min-width: 780px) and (-webkit-min-device-pixel-ratio: 1.32) {
57
+ html { font-size: 25px; }
39
58
  }
40
- body.android {
41
- font-family: sans-serif;
59
+ // iPads
60
+ // The device-height is reqd in order to differenciate from 768px wide devices (Nexus 4, etc.)
61
+ @media
62
+ (device-width: 768px) and (device-height: 1024px) and (-webkit-device-pixel-ratio: 1),
63
+ (device-width: 1024px) and (device-height: 768px) and (-webkit-device-pixel-ratio: 1),
64
+ (device-width: 768px) and (device-height: 1024px) and (-webkit-device-pixel-ratio: 2),
65
+ (device-width: 1024px) and (device-height: 768px) and (-webkit-device-pixel-ratio: 2) {
66
+ html { font-size: 10px; }
67
+ }
68
+ // for bug 21664 (see base.js)
69
+ html.kindle {
70
+ font-size: 18.75px;
42
71
  }
@@ -3,7 +3,7 @@ class ApplicationController < ActionController::Base
3
3
 
4
4
  helper :all
5
5
  before_filter :translate_entity_keys
6
- layout 'application', :only => :load
6
+ layout Proc.new { |controller| controller.request.xhr? ? nil : 'application' }
7
7
 
8
8
  caches_page :load, :client_notify
9
9
 
@@ -3,7 +3,13 @@
3
3
  <head>
4
4
  <title><%= CONFIG.app_path.downcase %></title>
5
5
  <meta id="meta_viewport" name="viewport" content="user-scalable=no, initial-scale=1, target-densityDpi=device-dpi">
6
- <%= stylesheet_link_tag "application" %>
6
+ <%= stylesheet_link_tag "/#{CONFIG.app_path.downcase}/assets/application" %>
7
+ <script>
8
+ // FIXED FB#21664.
9
+ if (navigator.userAgent.match(/Kindle/i)) {
10
+ document.documentElement.className += ' ' + 'kindle';
11
+ }
12
+ </script>
7
13
  </head>
8
14
  <body>
9
15
  <%= yield %>
@@ -11,7 +17,7 @@
11
17
  <div id="flash" style="display: none;"></div>
12
18
  <div id="buffer" style="display: none;"></div>
13
19
  <div id="tmp" style="display: none;"></div>
14
- <%= javascript_include_tag "application" %>
20
+ <%= javascript_include_tag "/#{CONFIG.app_path.downcase}/assets/application" %>
15
21
  <%# Allows us to use mock on test or production without screwing up caching of page. %>
16
22
  <script>
17
23
  if (Application.params.mock) {
@@ -340,7 +340,7 @@ class SportingNewsFeedBuilder
340
340
  # tag_key - An additional field added for NFL - this is the tag that the notifs is subscribed to team or league.
341
341
  # sound (optional) - Whether or not to play a sound when the notification is sent. A value of ÔøΩtrueÔøΩ, ÔøΩ1ÔøΩ, or ÔøΩyesÔøΩ means to play the sound. Any other values will not play a sound.
342
342
  def self.send_push_notification(alert_text, tags, digest)
343
- p "--Notified! '#{alert_text[0,50]}' at #{DateTime.now.to_s}: Tag: #{tags}, Response: #{res.code} #{res.message}"
343
+ p "--Notified! '#{alert_text[0,50]}' at #{DateTime.now.to_s}: Tag: #{tags}"
344
344
 
345
345
  notifier = Zumobi::Notifier.new
346
346
  notifier.push({
@@ -1,3 +1,3 @@
1
1
  module SportsDb
2
- VERSION = "0.0.8"
2
+ VERSION = "0.0.9"
3
3
  end
metadata CHANGED
@@ -1,12 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sports_db
3
3
  version: !ruby/object:Gem::Version
4
- prerelease: false
4
+ hash: 13
5
+ prerelease:
5
6
  segments:
6
7
  - 0
7
8
  - 0
8
- - 8
9
- version: 0.0.8
9
+ - 9
10
+ version: 0.0.9
10
11
  platform: ruby
11
12
  authors:
12
13
  - Alx Dark
@@ -14,16 +15,18 @@ autorequire:
14
15
  bindir: bin
15
16
  cert_chain: []
16
17
 
17
- date: 2013-05-03 00:00:00 -07:00
18
+ date: 2013-05-16 00:00:00 -06:00
18
19
  default_executable:
19
20
  dependencies:
20
21
  - !ruby/object:Gem::Dependency
21
22
  name: rails
22
23
  prerelease: false
23
24
  requirement: &id001 !ruby/object:Gem::Requirement
25
+ none: false
24
26
  requirements:
25
27
  - - ~>
26
28
  - !ruby/object:Gem::Version
29
+ hash: 21
27
30
  segments:
28
31
  - 3
29
32
  - 2
@@ -35,9 +38,11 @@ dependencies:
35
38
  name: sqlite3
36
39
  prerelease: false
37
40
  requirement: &id002 !ruby/object:Gem::Requirement
41
+ none: false
38
42
  requirements:
39
43
  - - ">="
40
44
  - !ruby/object:Gem::Version
45
+ hash: 3
41
46
  segments:
42
47
  - 0
43
48
  version: "0"
@@ -135,6 +140,36 @@ files:
135
140
  - MIT-LICENSE
136
141
  - Rakefile
137
142
  - README.rdoc
143
+ - test/dummy/app/assets/javascripts/application.js
144
+ - test/dummy/app/assets/stylesheets/application.css
145
+ - test/dummy/app/controllers/application_controller.rb
146
+ - test/dummy/app/helpers/application_helper.rb
147
+ - test/dummy/app/views/layouts/application.html.erb
148
+ - test/dummy/config/application.rb
149
+ - test/dummy/config/boot.rb
150
+ - test/dummy/config/database.yml
151
+ - test/dummy/config/environment.rb
152
+ - test/dummy/config/environments/development.rb
153
+ - test/dummy/config/environments/production.rb
154
+ - test/dummy/config/environments/test.rb
155
+ - test/dummy/config/initializers/backtrace_silencers.rb
156
+ - test/dummy/config/initializers/inflections.rb
157
+ - test/dummy/config/initializers/mime_types.rb
158
+ - test/dummy/config/initializers/secret_token.rb
159
+ - test/dummy/config/initializers/session_store.rb
160
+ - test/dummy/config/initializers/wrap_parameters.rb
161
+ - test/dummy/config/locales/en.yml
162
+ - test/dummy/config/routes.rb
163
+ - test/dummy/config.ru
164
+ - test/dummy/public/404.html
165
+ - test/dummy/public/422.html
166
+ - test/dummy/public/500.html
167
+ - test/dummy/public/favicon.ico
168
+ - test/dummy/Rakefile
169
+ - test/dummy/README.rdoc
170
+ - test/dummy/script/rails
171
+ - test/sports_db_test.rb
172
+ - test/test_helper.rb
138
173
  has_rdoc: true
139
174
  homepage: http://www.zumobi.com/
140
175
  licenses: []
@@ -145,23 +180,27 @@ rdoc_options: []
145
180
  require_paths:
146
181
  - lib
147
182
  required_ruby_version: !ruby/object:Gem::Requirement
183
+ none: false
148
184
  requirements:
149
185
  - - ">="
150
186
  - !ruby/object:Gem::Version
187
+ hash: 3
151
188
  segments:
152
189
  - 0
153
190
  version: "0"
154
191
  required_rubygems_version: !ruby/object:Gem::Requirement
192
+ none: false
155
193
  requirements:
156
194
  - - ">="
157
195
  - !ruby/object:Gem::Version
196
+ hash: 3
158
197
  segments:
159
198
  - 0
160
199
  version: "0"
161
200
  requirements: []
162
201
 
163
202
  rubyforge_project:
164
- rubygems_version: 1.3.6
203
+ rubygems_version: 1.6.2
165
204
  signing_key:
166
205
  specification_version: 3
167
206
  summary: Shared code for the Zumobi sports applications