cloudhead-less 0.5.0 → 0.5.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/Rakefile CHANGED
@@ -1,26 +1,3 @@
1
- # Je::Specification.new do |s|
2
- # s.name = "less"
3
- # s.version = "0.1"
4
- # s.date = Time.today.strftime("%Y-%m-%d")
5
- # s.authors = ["cloudhead"]
6
- # s.email = "alexis@cloudhead.net"
7
- # s.summary = "LESS compiler"
8
- # s.homepage = "http://www.lesscss.org"
9
- # s.description = "Compiles LESS files into CSS"
10
- # s.files = [
11
- # "README",
12
- # "bin/lessc",
13
- # "lib/less.rb",
14
- # "lib/less/command.rb",
15
- # "lib/less/engine.rb",
16
- # "lib/less/tree.rb"
17
- # ]
18
- #
19
- # s.bindir = "bin"
20
- # s.default_executable = "lessc"
21
- # s.executables = "lessc"
22
- # end
23
-
24
1
  begin
25
2
  require 'jeweler'
26
3
  Jeweler::Tasks.new do |s|
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.5.0
1
+ 0.5.2
data/less.gemspec CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{less}
5
- s.version = "0.5.0"
5
+ s.version = "0.5.2"
6
6
 
7
7
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
8
8
  s.authors = ["cloudhead"]
data/lib/less/command.rb CHANGED
@@ -7,24 +7,24 @@ module Less
7
7
  def watch?() @options[:watch] end
8
8
  def compress?() @options[:compress] end
9
9
 
10
- def run!
11
- # little function which allows us to Ctrl-C exit inside the passed block
12
- watch = lambda do |&block|
13
- begin
14
- block.call
15
- rescue Interrupt
16
- puts
17
- exit 0
18
- end
10
+ # little function which allows us to Ctrl-C exit inside the passed block
11
+ def watch &block
12
+ begin
13
+ block.call
14
+ rescue Interrupt
15
+ puts
16
+ exit 0
19
17
  end
20
-
18
+ end
19
+
20
+ def run!
21
21
  if watch?
22
22
  log "Watching for changes in #@source ...Ctrl-C to abort.\n"
23
23
  #
24
24
  # Main watch loop
25
25
  #
26
26
  loop do
27
- watch.call { sleep 1 }
27
+ watch { sleep 1 }
28
28
 
29
29
  # File has changed
30
30
  if File.stat( @source ).mtime > File.stat( @destination ).mtime
@@ -39,7 +39,7 @@ module Less
39
39
  error = $!.message.split("\n")[1..-1].collect {|e| e.gsub(/\(eval\)\:\d+\:\s/, '') } * "\n"
40
40
  log " errors were found in the .less file! \n#{error}\n"
41
41
  log "Press [enter] to continue..."
42
- watch.call do
42
+ watch do
43
43
  $stdin.gets
44
44
  print "} "
45
45
  end
data/spec/spec.less CHANGED
@@ -39,14 +39,14 @@
39
39
  @some-color: blue;
40
40
  #header {
41
41
  .foo;
42
- font-size: * 2;
42
+ font-size: #ffffff * 2;
43
43
  }
44
44
  #main-page {
45
45
  #content > .small;
46
46
  }
47
47
  .small {
48
48
  color: @base-color;
49
- font-size: / 2;
49
+ font-size: 12 / 2;
50
50
  .hover_controls {
51
51
  line-height: 16px;
52
52
  display: none;
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cloudhead-less
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.0
4
+ version: 0.5.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - cloudhead