mxit-rails 0.4.2 → 0.4.3

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.
@@ -7,7 +7,7 @@
7
7
  <%= stylesheet_link_tag "mxit_rails/emulator" %>
8
8
  <%= javascript_include_tag "mxit_rails/emulator" %>
9
9
 
10
- <link rel="icon" type="image/x-icon" href="<%= image_path("mxit_rails/favicon.ico"); %>" />
10
+ <link rel="icon" type="image/x-icon" href="<%= path_to_image("mxit_rails/favicon.ico"); %>" />
11
11
 
12
12
  <script type="text/javascript">
13
13
  MXIT_ROOT = '<%= @root_path %>';
@@ -16,12 +16,12 @@
16
16
 
17
17
  <!-- The asset image-path helper isn't working in scss files, so moving those to here. sigh. -->
18
18
  <style type="text/css">
19
- #phone { background: url(<%= image_path("mxit_rails/nokia-5310-frame.png") %>) no-repeat; }
20
- .go > .icon .image { background-image: url(<%= image_path("mxit_rails/go.png"); %>) }
21
- .in > .icon .image { background-image: url(<%= image_path("mxit_rails/in.png"); %>) }
22
- .out > .icon .image { background-image: url(<%= image_path("mxit_rails/out.png"); %>) }
23
- .refresh > .icon .image { background-image: url(<%= image_path("mxit_rails/refresh.png"); %>) }
24
- .home > .icon .image { background-image: url(<%= image_path("mxit_rails/home.png"); %>) }
19
+ #phone { background: url(<%= path_to_image("mxit_rails/nokia-5310-frame.png") %>) no-repeat; }
20
+ .go > .icon .image { background-image: url(<%= path_to_image("mxit_rails/go.png"); %>) }
21
+ .in > .icon .image { background-image: url(<%= path_to_image("mxit_rails/in.png"); %>) }
22
+ .out > .icon .image { background-image: url(<%= path_to_image("mxit_rails/out.png"); %>) }
23
+ .refresh > .icon .image { background-image: url(<%= path_to_image("mxit_rails/refresh.png"); %>) }
24
+ .home > .icon .image { background-image: url(<%= path_to_image("mxit_rails/home.png"); %>) }
25
25
  </style>
26
26
  </head>
27
27
  <body>
@@ -11,7 +11,7 @@
11
11
  <!-- Include a CSS file, but only in a browser/emulator, not on mxit -->
12
12
  <%= stylesheet_link_tag "mxit_rails/included" %>
13
13
  <style type="text/css">
14
- .emulator .emoticon { background-image: url(<%= image_path("mxit_rails/emoticons.png"); %>) }
14
+ .emulator .emoticon { background-image: url(<%= path_to_image("mxit_rails/emoticons.png"); %>) }
15
15
  a:focus { outline: none; <%= mxit_style :link_hover %> }
16
16
  </style>
17
17
  <% end %>
@@ -6,7 +6,7 @@ module MxitRails
6
6
  end
7
7
 
8
8
  def self.numeric? input
9
- input.gsub! /\s*/, ''
9
+ input.gsub!(/\s*/, '') if !input.blank?
10
10
  return !input.blank? && input.match(/^[0-9]+$/)
11
11
  end
12
12
 
@@ -1,3 +1,3 @@
1
1
  module MxitRails
2
- VERSION = "0.4.2"
2
+ VERSION = "0.4.3"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mxit-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.2
4
+ version: 0.4.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-11-22 00:00:00.000000000 Z
12
+ date: 2012-11-28 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails