sports_db 0.1.3 → 0.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -4,10 +4,6 @@ var console = console || {
4
4
  error:function(){}
5
5
  };
6
6
 
7
- function get_px(px) {
8
- return ($.client.ios) ? px : (window.outerWidth / 320) * px;
9
- }
10
-
11
7
  // Take a query string and return and object.
12
8
  String.prototype.toParameters = function() {
13
9
  if (this.indexOf('=') == -1) {
@@ -9,7 +9,7 @@
9
9
  $.fn.resizeable = function() {
10
10
  function set(size, notify) {
11
11
  // set size
12
- $('.resizeable_text').css('font-size', get_px(size) + "px");
12
+ $('.resizeable_text').css('font-size', size + "px");
13
13
 
14
14
  // reset disabled state
15
15
  $('.resizeable').removeClass('disabled');
@@ -1,5 +1,4 @@
1
- html,body {
2
- height: 100%;
1
+ html, body {
3
2
  background-color: $page_bg;
4
3
  }
5
4
  * {
@@ -23,49 +22,3 @@ body.ios {
23
22
  body.android {
24
23
  font-family: sans-serif;
25
24
  }
26
-
27
-
28
-
29
- // Default
30
- html { font-size: 10px; }
31
- // 480 wide
32
- @media (min-width: 460px) and (-webkit-min-device-pixel-ratio: 1.5) {
33
- html { font-size: 15px; }
34
- }
35
- // 540 wide
36
- @media (min-width: 520px) and (-webkit-min-device-pixel-ratio: 1.5) {
37
- html { font-size: 16.875px; }
38
- }
39
- // 600 wide
40
- @media (min-width: 580px) and (-webkit-min-device-pixel-ratio: 1.5) {
41
- html { font-size: 18.75px; }
42
- }
43
- // 720 wide
44
- @media (min-width: 700px) and (-webkit-min-device-pixel-ratio: 1.5) {
45
- html { font-size: 22.5px; }
46
- }
47
- // Nexus 4, 768 wide
48
- @media (min-width: 748px) and (-webkit-min-device-pixel-ratio: 1.5) {
49
- html { font-size: 24px; }
50
- }
51
- // 800 wide
52
- @media (min-width: 780px) and (-webkit-min-device-pixel-ratio: 1.5) {
53
- html { font-size: 25px; }
54
- }
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; }
58
- }
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;
71
- }
@@ -1,19 +1,19 @@
1
1
  #filter {
2
2
  -webkit-appearance: button;
3
3
  display: block;
4
- width: 31rem;
5
- height: 4.8rem;
6
- -webkit-background-size: 31rem 19.2rem;
4
+ width: 310px;
5
+ height: 48px;
6
+ -webkit-background-size: 310px 192px;
7
7
  font-weight: bold;
8
8
  border: 0;
9
- padding-left: 1rem;
9
+ padding-left: 10px;
10
10
  color: #666;
11
- margin: 0 auto .5rem;
12
- font-size: 1.8rem;
11
+ margin: 0 auto 5px;
12
+ font-size: 18px;
13
13
 
14
14
  background-image: url(#{$imghost}dropdown_sprite@2x.png);
15
15
 
16
16
  &.hl {
17
- background-position: 0 -4.8rem;
17
+ background-position: 0 -48px;
18
18
  }
19
19
  }
@@ -1,9 +1,9 @@
1
1
  #flash {
2
2
  background-color: #666;
3
3
  color: #fff;
4
- line-height: 2.4rem;
5
- font-size: 1.4rem;
6
- padding: 0 1rem;
4
+ line-height: 24px;
5
+ font-size: 14px;
6
+ padding: 0 10px;
7
7
  text-align: center;
8
- height: 2.4rem;
8
+ height: 24px;
9
9
  }
@@ -11,18 +11,18 @@ loading{
11
11
  color:#fff;
12
12
  }
13
13
  loading_text{
14
- padding: .4rem 1rem;
14
+ padding: 4px 10px;
15
15
  display: inline-block;
16
- border: .1rem solid #777;
17
- margin-top: 8rem;
16
+ border: 1px solid #777;
17
+ margin-top: 80px;
18
18
  text-align: center;
19
- font-size: 1.8rem;
19
+ font-size: 18px;
20
20
  line-height: 1;
21
21
  font-family: "Helvetica Neue",Helvetica,sans-serif;
22
22
  color: #fff;
23
23
  background-color:rgba(10,10,10,.8);
24
- -webkit-border-radius: .4rem;
24
+ -webkit-border-radius: 4px;
25
25
  -webkit-background-clip: padding-box;
26
- -webkit-box-shadow: .1rem .1rem .5rem #000;
26
+ -webkit-box-shadow: 1px 1px 5px #000;
27
27
  -webkit-user-select: none;
28
28
  }
@@ -22,7 +22,7 @@
22
22
  }
23
23
  th, td {
24
24
  &.stat {
25
- width: 3rem;
25
+ width: 30px;
26
26
  }
27
27
  }
28
28
 
@@ -30,16 +30,16 @@
30
30
  background-color: #ccc !important;
31
31
  }
32
32
 
33
- td.has_logo { padding-left: .5rem; padding-right: .5rem; }
34
- td.has_logo.size_65x65 { width: 6.5rem; }
35
- td.has_logo.size_45x45 { width: 4.5rem; }
36
- td.has_logo.size_25x25 { width: 2.5rem; }
33
+ td.has_logo { padding-left: 5px; padding-right: 5px; }
34
+ td.has_logo.size_65x65 { width: 65px; }
35
+ td.has_logo.size_45x45 { width: 45px; }
36
+ td.has_logo.size_25x25 { width: 25px; }
37
37
  thead th {
38
- padding-top: .5rem !important;
39
- padding-bottom: .4rem !important;
38
+ padding-top: 5px !important;
39
+ padding-bottom: 4px !important;
40
40
  text-align: left;
41
41
  vertical-align: top;
42
- font-size: 1.2rem;
42
+ font-size: 12px;
43
43
  font-weight: bold;
44
44
  background-color: $zebra_strip_even;
45
45
  }
@@ -57,29 +57,29 @@
57
57
  tr.winning_team td { font-weight: bold; }
58
58
  tr.winning_team td[rowspan] { font-weight: normal; }
59
59
  td { vertical-align: middle; }
60
- p { margin-bottom: .4rem; }
60
+ p { margin-bottom: 4px; }
61
61
  }
62
62
  tbody td,
63
63
  thead th {
64
- padding: .7rem .2rem .7rem 0;
64
+ padding: 7px 2px 7px 0;
65
65
  }
66
66
  thead th.upcase {
67
67
  text-transform: uppercase;
68
68
  }
69
69
  tbody td:first-child,
70
70
  thead th:first-child {
71
- padding-left: .5rem;
71
+ padding-left: 5px;
72
72
  }
73
73
  td.goto {
74
74
  background: transparent url(#{$imghost}disclosureIndicator@2x.png) no-repeat center center;
75
- -webkit-background-size: .8rem 1.2rem;
76
- background-size: .8rem 1.2rem;
77
- width: 1.6rem;
78
- padding-right: 2.8rem;
75
+ -webkit-background-size: 8px 12px;
76
+ background-size: 8px 12px;
77
+ width: 16px;
78
+ padding-right: 28px;
79
79
  }
80
80
  td[rowspan] { vertical-align: middle; }
81
81
  tfoot td.spacer {
82
- height: .8rem;
82
+ height: 8px;
83
83
  line-height: 1;
84
84
  background-color: #f2f2f2;
85
85
  }
@@ -89,8 +89,8 @@
89
89
  background-color: $zebra_strip_even;
90
90
  }
91
91
  > tbody > tr > td {
92
- border: .1rem solid #DDD;
93
- border-width: .1rem 0;
92
+ border: 1px solid #DDD;
93
+ border-width: 1px 0;
94
94
  }
95
95
  }
96
96
  //.clip {
@@ -101,8 +101,8 @@
101
101
  body.android .base_table {
102
102
  tbody td,
103
103
  thead th {
104
- padding-top: 1rem;
105
- padding-bottom: 1rem;
104
+ padding-top: 10px;
105
+ padding-bottom: 10px;
106
106
  }
107
107
  }
108
108
  .base_table {
@@ -114,8 +114,8 @@ body.android .base_table {
114
114
  text-align: left;
115
115
  }
116
116
  tbody td {
117
- padding-top: .4rem;
118
- padding-bottom: .4rem;
117
+ padding-top: 4px;
118
+ padding-bottom: 4px;
119
119
  }
120
120
  }
121
121
  }
@@ -1,4 +1,4 @@
1
- $txt_shadow: .1rem .1rem 0 rgba(10, 10, 10, .2);
1
+ $txt_shadow: 1px 1px 0 rgba(10, 10, 10, .2);
2
2
 
3
3
  #mock-toolbar-container {
4
4
  -webkit-user-select: none;
@@ -13,16 +13,16 @@ $txt_shadow: .1rem .1rem 0 rgba(10, 10, 10, .2);
13
13
  background-color: #111;
14
14
  color: white !important;
15
15
  margin: 0;
16
- height: 4.4rem;
16
+ height: 44px;
17
17
  -webkit-box-sizing: border-box;
18
18
  border-collapse: collapse;
19
- border:0.1rem solid #111;
19
+ border: 1px solid #111;
20
20
  background: -webkit-gradient(linear,left top,left bottom,color-stop(0, #2a2a2a),color-stop(1, #0a0a0a));
21
21
  }
22
22
  #mock-center {
23
23
  text-align: center;
24
24
  color:#fff;
25
- font-size: 1.8rem;
25
+ font-size: 18px;
26
26
  font-weight: bold;
27
27
  line-height: 2.3;
28
28
  text-shadow: $txt_shadow;
@@ -30,23 +30,23 @@ $txt_shadow: .1rem .1rem 0 rgba(10, 10, 10, .2);
30
30
  #mock-left, #mock-right {
31
31
  display: block;
32
32
  position: absolute;
33
- top: .3rem;
33
+ top: 3px;
34
34
  }
35
35
  #mock-left {
36
- left: .8rem;
36
+ left: 8px;
37
37
  }
38
38
  #mock-right {
39
- right: .8rem;
39
+ right: 8px;
40
40
  }
41
41
  action {
42
42
  display: block;
43
43
  float: left;
44
- padding: .6rem .8rem;
44
+ padding: 6px 8px;
45
45
  cursor: pointer;
46
- border: .1rem solid #111;
46
+ border: 1px solid #111;
47
47
  border-color:#111 #222 #1a1a1a #111;
48
- -webkit-border-radius: .4rem;
49
- font-size: 1.6rem;
48
+ -webkit-border-radius: 4px;
49
+ font-size: 16px;
50
50
  background: -webkit-gradient(linear,left top,left bottom,color-stop(0, #555),color-stop(.05, #444),color-stop(1, #111));
51
51
  color: #fff;
52
52
  }
@@ -2,32 +2,27 @@
2
2
  <html>
3
3
  <head>
4
4
  <title><%= CONFIG.app_path.downcase %></title>
5
- <meta id="meta_viewport" name="viewport" content="user-scalable=no, initial-scale=1, target-densityDpi=device-dpi">
5
+ <meta id="meta_viewport" name="viewport" content="user-scalable=no, initial-scale=1">
6
6
  <%= stylesheet_link_tag "application" %>
7
- <script>
8
- // FIXED FB#21664.
9
- if (navigator.userAgent.match(/Kindle/i)) {
10
- document.documentElement.className += ' ' + 'kindle';
11
- }
12
- </script>
13
7
  </head>
14
8
  <body>
15
9
  <%= yield %>
16
- <loading id="loading" style="display: none;"><loading_text id="loading_text">Loading&hellip;</loading_text></loading>
17
- <div id="flash" style="display: none;"></div>
18
- <div id="buffer" style="display: none;"></div>
19
- <div id="tmp" style="display: none;"></div>
10
+ <loading id="loading" style="display:none"><loading_text id="loading_text">Loading&hellip;</loading_text></loading>
11
+ <div id="flash" style="display:none"></div>
12
+ <div id="buffer" style="display:none"></div>
13
+ <div id="tmp" style="display:none"></div>
20
14
  <%= javascript_include_tag "application" %>
21
15
  <%# Allows us to use mock on test or production without screwing up caching of page. %>
22
16
  <script>
23
17
  if (Application.params.mock) {
24
- document.write("<link rel='stylesheet' href='/<%= CONFIG.app_path %>/cache/<%= CONFIG.app_path %>/assets/mock.css'>");
25
- document.write("<script src='/<%= CONFIG.app_path %>/cache/<%= CONFIG.app_path %>/assets/core/Mock.js'><\/script>");
18
+ document.write("<link rel='stylesheet' href='/<%= CONFIG.app_path %>/assets/mock.css'>");
19
+ document.write("<script src='/<%= CONFIG.app_path %>/assets/core/Mock.js'><\/script>");
26
20
  }
27
21
  </script>
28
- <% if request.host == 'localhost' %>
29
- <link rel='stylesheet' href='/<%= CONFIG.app_path %>/cache/<%= CONFIG.app_path %>/assets/mock.css'>
30
- <script src='/<%= CONFIG.app_path %>/cache/<%= CONFIG.app_path %>/assets/core/Mock.js'></script>
22
+ <%# turn on mock automatically if using localhost or pow %>
23
+ <% if request.host == 'localhost' || request.host.include?(".dev") %>
24
+ <link rel='stylesheet' href='/<%= CONFIG.app_path %>/assets/mock.css'>
25
+ <script src='/<%= CONFIG.app_path %>/assets/core/Mock.js'></script>
31
26
  <% end %>
32
27
  </body>
33
28
  </html>
@@ -1,3 +1,3 @@
1
1
  module SportsDb
2
- VERSION = "0.1.3"
2
+ VERSION = "0.2"
3
3
  end
metadata CHANGED
@@ -1,58 +1,55 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: sports_db
3
- version: !ruby/object:Gem::Version
4
- prerelease: false
5
- segments:
6
- - 0
7
- - 1
8
- - 3
9
- version: 0.1.3
3
+ version: !ruby/object:Gem::Version
4
+ version: '0.2'
5
+ prerelease:
10
6
  platform: ruby
11
- authors:
7
+ authors:
12
8
  - Alx Dark
13
9
  autorequire:
14
10
  bindir: bin
15
11
  cert_chain: []
16
-
17
- date: 2013-05-29 00:00:00 -07:00
18
- default_executable:
19
- dependencies:
20
- - !ruby/object:Gem::Dependency
12
+ date: 2013-06-05 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
21
15
  name: rails
22
- prerelease: false
23
- requirement: &id001 !ruby/object:Gem::Requirement
24
- requirements:
16
+ requirement: !ruby/object:Gem::Requirement
17
+ none: false
18
+ requirements:
25
19
  - - ~>
26
- - !ruby/object:Gem::Version
27
- segments:
28
- - 3
29
- - 2
30
- - 13
20
+ - !ruby/object:Gem::Version
31
21
  version: 3.2.13
32
22
  type: :runtime
33
- version_requirements: *id001
34
- - !ruby/object:Gem::Dependency
35
- name: sqlite3
36
23
  prerelease: false
37
- requirement: &id002 !ruby/object:Gem::Requirement
38
- requirements:
39
- - - ">="
40
- - !ruby/object:Gem::Version
41
- segments:
42
- - 0
43
- version: "0"
24
+ version_requirements: !ruby/object:Gem::Requirement
25
+ none: false
26
+ requirements:
27
+ - - ~>
28
+ - !ruby/object:Gem::Version
29
+ version: 3.2.13
30
+ - !ruby/object:Gem::Dependency
31
+ name: sqlite3
32
+ requirement: !ruby/object:Gem::Requirement
33
+ none: false
34
+ requirements:
35
+ - - ! '>='
36
+ - !ruby/object:Gem::Version
37
+ version: '0'
44
38
  type: :development
45
- version_requirements: *id002
39
+ prerelease: false
40
+ version_requirements: !ruby/object:Gem::Requirement
41
+ none: false
42
+ requirements:
43
+ - - ! '>='
44
+ - !ruby/object:Gem::Version
45
+ version: '0'
46
46
  description: Shared code for the Zumobi sports applications
47
- email:
48
- - "alx.dark@zumobi.com\t"
47
+ email:
48
+ - ! "alx.dark@zumobi.com\t"
49
49
  executables: []
50
-
51
50
  extensions: []
52
-
53
51
  extra_rdoc_files: []
54
-
55
- files:
52
+ files:
56
53
  - app/assets/javascripts/clients/android/client.js
57
54
  - app/assets/javascripts/clients/ios/client.js
58
55
  - app/assets/javascripts/core/Application.js
@@ -135,37 +132,61 @@ files:
135
132
  - MIT-LICENSE
136
133
  - Rakefile
137
134
  - README.rdoc
138
- has_rdoc: true
135
+ - test/dummy/app/assets/javascripts/application.js
136
+ - test/dummy/app/assets/stylesheets/application.css
137
+ - test/dummy/app/controllers/application_controller.rb
138
+ - test/dummy/app/helpers/application_helper.rb
139
+ - test/dummy/app/views/layouts/application.html.erb
140
+ - test/dummy/config/application.rb
141
+ - test/dummy/config/boot.rb
142
+ - test/dummy/config/database.yml
143
+ - test/dummy/config/environment.rb
144
+ - test/dummy/config/environments/development.rb
145
+ - test/dummy/config/environments/production.rb
146
+ - test/dummy/config/environments/test.rb
147
+ - test/dummy/config/initializers/backtrace_silencers.rb
148
+ - test/dummy/config/initializers/inflections.rb
149
+ - test/dummy/config/initializers/mime_types.rb
150
+ - test/dummy/config/initializers/secret_token.rb
151
+ - test/dummy/config/initializers/session_store.rb
152
+ - test/dummy/config/initializers/wrap_parameters.rb
153
+ - test/dummy/config/locales/en.yml
154
+ - test/dummy/config/routes.rb
155
+ - test/dummy/config.ru
156
+ - test/dummy/public/404.html
157
+ - test/dummy/public/422.html
158
+ - test/dummy/public/500.html
159
+ - test/dummy/public/favicon.ico
160
+ - test/dummy/Rakefile
161
+ - test/dummy/README.rdoc
162
+ - test/dummy/script/rails
163
+ - test/sports_db_test.rb
164
+ - test/test_helper.rb
139
165
  homepage: http://www.zumobi.com/
140
166
  licenses: []
141
-
142
167
  post_install_message:
143
168
  rdoc_options: []
144
-
145
- require_paths:
169
+ require_paths:
146
170
  - lib
147
- required_ruby_version: !ruby/object:Gem::Requirement
148
- requirements:
149
- - - ">="
150
- - !ruby/object:Gem::Version
151
- segments:
152
- - 0
153
- version: "0"
154
- required_rubygems_version: !ruby/object:Gem::Requirement
155
- requirements:
156
- - - ">="
157
- - !ruby/object:Gem::Version
158
- segments:
159
- - 0
160
- version: "0"
171
+ required_ruby_version: !ruby/object:Gem::Requirement
172
+ none: false
173
+ requirements:
174
+ - - ! '>='
175
+ - !ruby/object:Gem::Version
176
+ version: '0'
177
+ required_rubygems_version: !ruby/object:Gem::Requirement
178
+ none: false
179
+ requirements:
180
+ - - ! '>='
181
+ - !ruby/object:Gem::Version
182
+ version: '0'
161
183
  requirements: []
162
-
163
184
  rubyforge_project:
164
- rubygems_version: 1.3.6
185
+ rubygems_version: 1.8.23
165
186
  signing_key:
166
187
  specification_version: 3
167
188
  summary: Shared code for the Zumobi sports applications
168
- test_files:
189
+ test_files:
169
190
  - test/dummy/app/assets/javascripts/application.js
170
191
  - test/dummy/app/assets/stylesheets/application.css
171
192
  - test/dummy/app/controllers/application_controller.rb