purecss-rails 0.0.9 → 0.0.10

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5f736bad7cdcb937f6d18a0dbf7f86fc1f525d31
4
- data.tar.gz: d2586b49e4b03d16ffb4729b4e6bf240287f60e7
3
+ metadata.gz: 26042eccc7b0bd3da1433b07473c1c47b495419d
4
+ data.tar.gz: 572bce9c079da6e006092998f63fc34b02efb3c2
5
5
  SHA512:
6
- metadata.gz: 16e00cac78ea80787d44e35e87796d688bfc59b9a2ad6dbb8ca934b041fdac2495b6aae99ad3ee0a4dde2786ae6b14fc5e76321a1a5bd40f889ef9920690e4d4
7
- data.tar.gz: 7f3252977c179d1a785aadf7e6c5e3433d887981825fa1f1474334752544fb282aa80f61a53fc78c91f5ddabe31f07769897e6d5803e682198957ea3b90bc95f
6
+ metadata.gz: 8ec659fff2a5e24687d167dce6f702a4239b16b67132616d329dce785aa646b786c671edeea7f704adce9f98dfdd8e2a618714df87c768fd0adf6ac0cdcac30e
7
+ data.tar.gz: d876f615f3c32e06c4892e223bfac69c83d9387eb7128016cea9145c04a134f4044f733c63ffb7a0d7f743eeba0a79ca0c84a45d05781238cf18d477206db5d3
@@ -8,7 +8,7 @@ module Purecss
8
8
 
9
9
 
10
10
  def add_purecss
11
- copy_file layout_type(stylesheets_type), "app/assets/stylesheets/purecss.css"
11
+ verify_and_copy_correct_stylesheet(stylesheets_type)
12
12
 
13
13
  css_manifest = 'app/assets/stylesheets/application.css'
14
14
  if File.exist?(css_manifest)
@@ -20,9 +20,9 @@ module Purecss
20
20
  end
21
21
 
22
22
  private
23
- def layout_type(type)
23
+ def verify_and_copy_correct_stylesheet(type)
24
24
  if type == 'responsive' or type == 'nonresponsive'
25
- "#{stylesheets_type}.css"
25
+ copy_file "#{stylesheets_type}.css", "app/assets/stylesheets/purecss.css"
26
26
  else
27
27
  raise "'#{stylesheets_type}'' is not recognized, use either 'responsive' or 'nonresponsive'"
28
28
  end
@@ -3,5 +3,6 @@
3
3
  * and any sub-directories. You're free to add application-wide styles to this file and they'll appear at
4
4
  * the top of the compiled file, but it's generally better to create a new file per style scope.
5
5
  *= require_self
6
+ *= require purecss
6
7
  *= require_tree .
7
8
  */
@@ -1,3 +1,3 @@
1
1
  module Purecss
2
- VERSION = "0.0.9"
2
+ VERSION = "0.0.10"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: purecss-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.9
4
+ version: 0.0.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Bruno Henrique - Garu
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-06-03 00:00:00.000000000 Z
11
+ date: 2013-06-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: railties