cssdryer2 0.1.1 → 0.1.2

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/History.txt CHANGED
@@ -1,3 +1,8 @@
1
1
  === 0.1 / 2009-04-17
2
2
 
3
3
  * Initial version
4
+
5
+ == 0.1.2
6
+
7
+ * helper to include files in .ncss
8
+ * critical fix in rake task template
data/README.txt CHANGED
@@ -20,11 +20,6 @@ Adjust for using in other cases.
20
20
  1)
21
21
 
22
22
  sudo gem install cssdryer2
23
-
24
- if from GitHub:
25
-
26
- sudo gem sources -a http://gems.github.com
27
- sudo gem install snitko-cssdryer2
28
23
 
29
24
  2) Put this is config/environments/development.rb:
30
25
 
data/Rakefile CHANGED
@@ -21,7 +21,7 @@ end
21
21
 
22
22
  spec = eval(generate_gemspec(:in_block => true))
23
23
 
24
- Hoe.new('cssdryer2', '0.1.1') do |s|
24
+ Hoe.new('cssdryer2', '0.1.2') do |s|
25
25
  s.rubyforge_name = 'cssdryer2'
26
26
  s.developer('Roman Snitko', 'roman@snitko.ru')
27
27
  end
@@ -1,10 +1,10 @@
1
- require 'cssdryer2'
1
+ require 'css_dryer_2'
2
2
 
3
3
  namespace(:ncss) do
4
4
 
5
5
  desc "compile ncss files into css"
6
6
  task :compile do
7
- Cssdryer2::FilesHandler.new(:force_compile => true, :settings => :rails).run
7
+ CssDryer2::FilesHandler.new(:force_compile => true, :settings => :rails).run
8
8
  end
9
9
 
10
10
  end
@@ -49,6 +49,13 @@ module StylesheetsHelper
49
49
  END
50
50
  end
51
51
 
52
+ # This actually ain't cool. It simply allows to set variables in pure ruby code
53
+ # (no ERB for now). Ideally, we would want a method,
54
+ # that includes another erb-ed ncss files.
55
+ def include_file(filename)
56
+ eval File.read("#{RAILS_ROOT}/public/stylesheets/ncss/#{filename}")
57
+ end
58
+
52
59
 
53
60
  private
54
61
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cssdryer2
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Roman Snitko
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-04-17 00:00:00 +04:00
12
+ date: 2009-04-23 00:00:00 +04:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency