formalize-rails 0.0.4 → 0.0.5

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/README.md CHANGED
@@ -3,6 +3,8 @@
3
3
  This gem vendors Formalize to the asset pipeline. Therefore, this gem requires Rails 3.1 and
4
4
  greater.
5
5
 
6
+ ## Usage
7
+
6
8
  Add this gem to your gemfile:
7
9
 
8
10
  gem 'formalize-rails'
@@ -22,3 +24,7 @@ framework you are using:
22
24
  //= require yui.formalize
23
25
 
24
26
  See [formalize.me](http://formalize.me) for more information.
27
+
28
+ ## Gem development
29
+
30
+ Run `rake update` to get the latest and greatest styles from formalize.
data/Rakefile CHANGED
@@ -46,11 +46,11 @@ task :update do
46
46
  threads += css.map do |file|
47
47
  Thread.new do
48
48
  url = File.join(base_url, "css", file)
49
- path = File.join(target, "stylesheets", file)
49
+ path = File.join(target, "stylesheets", "#{file}.scss")
50
50
  File.open(path, 'w') do |t|
51
51
  open url do |f|
52
52
  f.each_line do |line|
53
- t << line.gsub(%r|url\(.+/([^/]+)\)|, "url(/assets/formalize/\\1)")
53
+ t << line.gsub(%r|url\(.+/([^/]+)\)|, "image-url('formalize/\\1')")
54
54
  end
55
55
  end
56
56
  end
@@ -1,5 +1,5 @@
1
1
  module Formalize
2
2
  module Rails
3
- VERSION = "0.0.4"
3
+ VERSION = "0.0.5"
4
4
  end
5
5
  end
@@ -107,7 +107,7 @@ input[type="button"] {
107
107
  -moz-background-clip: padding;
108
108
  -webkit-background-clip: padding;
109
109
  background-clip: padding-box;
110
- background: #ddd url(/assets/formalize/button.png) repeat-x;
110
+ background: #ddd image-url('formalize/button.png') repeat-x;
111
111
  background: -webkit-gradient(linear, left top, left bottom, color-stop(0, #fff), color-stop(1, #ddd));
112
112
  background: -moz-linear-gradient(top center, #fff 0%, #ddd 100%);
113
113
  border: 1px solid;
@@ -281,7 +281,7 @@ select[multiple] {
281
281
  /* Tweaks for Safari + Chrome. */
282
282
  @media (-webkit-min-device-pixel-ratio: 0) {
283
283
  select {
284
- background-image: url(/assets/formalize/select_arrow.gif);
284
+ background-image: image-url('formalize/select_arrow.gif');
285
285
  background-repeat: no-repeat;
286
286
  background-position: right center;
287
287
  padding-right: 20px;
@@ -356,7 +356,7 @@ optgroup {
356
356
 
357
357
  .ie6_button,
358
358
  * html button {
359
- background: #ddd url(/assets/formalize/button.png) repeat-x;
359
+ background: #ddd image-url('formalize/button.png') repeat-x;
360
360
  border: 1px solid;
361
361
  border-color: #ddd #bbb #999;
362
362
  cursor: pointer;
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: formalize-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2011-09-11 00:00:00.000000000Z
12
+ date: 2011-09-29 00:00:00.000000000Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: railties
16
- requirement: &2173464660 !ruby/object:Gem::Requirement
16
+ requirement: &2165401140 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ~>
@@ -21,7 +21,7 @@ dependencies:
21
21
  version: 3.1.0.rc1
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *2173464660
24
+ version_requirements: *2165401140
25
25
  description: This gem provides the assets for the formalize form styling, for easy
26
26
  usage with the Rails 3.1 asset pipeline.
27
27
  email:
@@ -53,7 +53,7 @@ files:
53
53
  - vendor/assets/javascripts/prototype.formalize.min.js
54
54
  - vendor/assets/javascripts/yui.formalize.js
55
55
  - vendor/assets/javascripts/yui.formalize.min.js
56
- - vendor/assets/stylesheets/formalize.css
56
+ - vendor/assets/stylesheets/formalize.css.scss
57
57
  homepage: https://github.com/iain/formalize-rails
58
58
  licenses: []
59
59
  post_install_message: