hammock 0.2.17 → 0.2.18

Sign up to get free protection for your applications and to get access to all the features.
data/History.txt CHANGED
@@ -1,3 +1,7 @@
1
+ == 0.2.18 2009-04-21
2
+ Fixed grey escape code offset in String::Colorizer.
3
+
4
+
1
5
  == 0.2.17 2009-04-17
2
6
  Refactored the logic from #update into #assign_and_save_record, and the #assign_attributes_for_save helper.
3
7
 
data/hammock.gemspec CHANGED
@@ -2,11 +2,11 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{hammock}
5
- s.version = "0.2.17"
5
+ s.version = "0.2.18"
6
6
 
7
7
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
8
8
  s.authors = ["Ben Hoskings"]
9
- s.date = %q{2009-04-17}
9
+ s.date = %q{2009-04-21}
10
10
  s.description = %q{Hammock is a Rails plugin that eliminates redundant code in a very RESTful manner. It does this in lots in lots of different places, but in one manner: it encourages specification in place of implementation.
11
11
 
12
12
 
data/lib/hammock.rb CHANGED
@@ -4,7 +4,7 @@ require 'ambition'
4
4
  require 'ambition/adapters/active_record'
5
5
 
6
6
  module Hammock
7
- VERSION = '0.2.17'
7
+ VERSION = '0.2.18'
8
8
 
9
9
  def self.included base # :nodoc:
10
10
  puts "Loading Hammock from #{loaded_from_gem? ? 'gem' : 'plugin'}"
@@ -157,9 +157,9 @@ module Hammock
157
157
  LightRegex = /^light_/
158
158
  ColorRegex = /^(light_)?none|gr[ae]y|red|green|yellow|blue|pink|cyan|white$/
159
159
  CtrlRegex = /^bold|underlined?|blink(ing)?|reversed?$/
160
- ColorOffsets = {
160
+ ColorOffsets = { # relative to HomeOffset
161
161
  'none' => 0,
162
- 'gray' => 1, 'grey' => 1,
162
+ 'gray' => 61, 'grey' => 61,
163
163
  'red' => 2,
164
164
  'green' => 3,
165
165
  'yellow' => 4,
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hammock
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.17
4
+ version: 0.2.18
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ben Hoskings
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-04-17 00:00:00 +10:00
12
+ date: 2009-04-21 00:00:00 +10:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency