docomo_css 0.2.3 → 0.2.4

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/VERSION CHANGED
@@ -1 +1 @@
1
- 0.2.3
1
+ 0.2.4
data/docomo_css.gemspec CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{docomo_css}
8
- s.version = "0.2.3"
8
+ s.version = "0.2.4"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["milk1000cc", "Paul McMahon"]
@@ -13,7 +13,7 @@ module DocomoCss
13
13
  private
14
14
 
15
15
  def path_from_href(href)
16
- base_path = href.gsub("http://#{ActionController::Base.asset_host}", '').
16
+ base_path = href.gsub(ActionController::Base.asset_host, '').
17
17
  gsub(/\?\d+/, '')
18
18
  File.join(Rails.root, 'public', base_path)
19
19
  end
@@ -1,7 +1,7 @@
1
1
  require 'test/unit'
2
2
  require File.join File.dirname(__FILE__), '..', '..', 'lib', 'docomo_css', 'stylesheet'
3
3
 
4
- module ActionController; module Base; def self.asset_host; "assets.example.com"; end; end; end
4
+ module ActionController; module Base; def self.asset_host; "http://assets.example.com"; end; end; end
5
5
 
6
6
  class DocomoCss::StylesheetTest < Test::Unit::TestCase
7
7
  def test_css_path
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: docomo_css
3
3
  version: !ruby/object:Gem::Version
4
- hash: 17
4
+ hash: 31
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 2
9
- - 3
10
- version: 0.2.3
9
+ - 4
10
+ version: 0.2.4
11
11
  platform: ruby
12
12
  authors:
13
13
  - milk1000cc