active_text 0.0.7 → 0.0.8

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.7
1
+ 0.0.8
data/active_text.gemspec CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{active_text}
8
- s.version = "0.0.7"
8
+ s.version = "0.0.8"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Ramon Tayag"]
@@ -66,7 +66,8 @@ module ActiveText
66
66
  variable.value
67
67
  end
68
68
  else
69
- raise NoMethodError, "Variable does not exist"
69
+ Rails.logger.debug("Could not find #{method_name} among these variables: #{@variables.inspect}")
70
+ raise NoMethodError, %Q(Method "#{method_name}" does not exist)
70
71
  end
71
72
  end
72
73
 
@@ -105,19 +105,15 @@ $mbc: #555;}
105
105
  // @description Background image.
106
106
  $mbc2: "http://someurl.com/image.jpg";
107
107
 
108
- // @name Masthead BG Color
108
+ // @name Dark color
109
109
  // @kind color
110
- // @description Background color.
111
- $mbc: #555;}
110
+ // @description This is the dark color all throughout the site.
111
+ $blue_gray: #5f7081;
112
+ }
112
113
  @s = ActiveText::Base.new(text)
113
- @s.update_attributes(:mbc2 => %Q("Another URL"), :mbc => nil)
114
+ @s.update_attributes(:mbc2 => %Q("Another URL"), "blue_gray" => "#444")
114
115
  @s.mbc2.should == %Q("Another URL")
115
- @s.mbc.should == "#555"
116
- # even after reinstantiation
117
- @s = ActiveText::Base.new(text)
118
- @s.update_attributes({"mbc" => "#444"})
119
- @s.mbc2.should == %Q("http://someurl.com/image.jpg")
120
- @s.mbc.should == "#444"
116
+ @s.blue_gray.should == "#444"
121
117
  end
122
118
 
123
119
  it "should have setter method for variables" do
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: active_text
3
3
  version: !ruby/object:Gem::Version
4
- hash: 17
4
+ hash: 15
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 7
10
- version: 0.0.7
9
+ - 8
10
+ version: 0.0.8
11
11
  platform: ruby
12
12
  authors:
13
13
  - Ramon Tayag