galakei 0.7.1 → 0.7.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -29,7 +29,6 @@ class Galakei::DocomoCss::InlineStylesheet
29
29
  end
30
30
 
31
31
  def self.path(href)
32
- base_path = href.gsub(ActionController::Base.asset_host || '', '').gsub(/\?\d+/,'')
33
- File.join(Rails.root, 'public', base_path)
32
+ File.join(Rails.root, 'public', href.gsub(/\?\d+/,''))
34
33
  end
35
34
  end
@@ -1,3 +1,3 @@
1
1
  module Galakei
2
- VERSION = "0.7.1"
2
+ VERSION = "0.7.2"
3
3
  end
@@ -39,9 +39,6 @@ end
39
39
 
40
40
  feature 'inlining of css' do
41
41
  scenario 'requesting simple page for docomo', :driver => :docomo do
42
- parser = CssParser::Parser.new
43
- parser.add_block!('span { color: red}')
44
- Galakei::DocomoCss::InlineStylesheet.stub(:parser) { parser }
45
42
  visit '/docomo_css/simple'
46
43
  find("span")["style"].should == "color: red;"
47
44
  page.should_not have_xpath("//link")
@@ -0,0 +1 @@
1
+ span { color: red}
@@ -23,18 +23,13 @@ describe Galakei::DocomoCss::Stylesheet do
23
23
  doc.to_s.should == %q{<p>foo</p>}
24
24
  end
25
25
  end
26
-
26
+
27
27
  context "stylesheet with multiple styles" do
28
28
  before do
29
29
  parser = CssParser::Parser.new
30
30
  parser.add_block!(<<-EOD)
31
- div {
32
- background-color: red;
33
- }
34
-
35
- .alC {
36
- text-align: center
37
- }
31
+ div { background-color: red; }
32
+ .alC { text-align: center }
38
33
  EOD
39
34
  @stylesheet = described_class.new(parser)
40
35
  end
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: galakei
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.7.1
5
+ version: 0.7.2
6
6
  platform: ruby
7
7
  authors:
8
8
  - Paul McMahon
@@ -12,7 +12,7 @@ autorequire:
12
12
  bindir: bin
13
13
  cert_chain: []
14
14
 
15
- date: 2011-05-27 00:00:00 +09:00
15
+ date: 2011-06-03 00:00:00 +09:00
16
16
  default_executable:
17
17
  dependencies:
18
18
  - !ruby/object:Gem::Dependency
@@ -119,6 +119,7 @@ files:
119
119
  - spec/app/app/views/haml/index.html.haml
120
120
  - spec/app/app/views/layouts/application.html.haml
121
121
  - spec/app/fake.rb
122
+ - spec/app/public/stylesheets/docomo_css/simple.css
122
123
  - spec/controllers/galakei/spacer_controller_spec.rb
123
124
  - spec/galakei/docomo_css/stylesheet_spec.rb
124
125
  - spec/galakei/emoji_table_spec.rb