azebiki 0.0.4 → 0.0.5

Sign up to get free protection for your applications and to get access to all the features.
@@ -69,6 +69,7 @@ module Azebiki
69
69
  attribute_conditions = []
70
70
 
71
71
  @options.each do |key, value|
72
+ next if key == :failure_message
72
73
  next if key == :content unless @expected == "meta"
73
74
  next if key == :count
74
75
  if value.is_a?(Hash)
@@ -169,6 +170,8 @@ module Azebiki
169
170
  id_and_classes = id_and_classes.split('.')
170
171
  tag[:id] = id_and_classes.shift
171
172
  tag[:class] = id_and_classes
173
+ elsif id_or_class =~ /^\./
174
+ tag[:class] = id_or_class.split(".").reject {|cls| cls == "" }
172
175
  end
173
176
 
174
177
  elsif args.first.is_a?(::Hash)
@@ -1,3 +1,3 @@
1
1
  module Azebiki
2
- VERSION = "0.0.4"
2
+ VERSION = "0.0.5"
3
3
  end
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: azebiki
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.0.4
5
+ version: 0.0.5
6
6
  platform: ruby
7
7
  authors:
8
8
  - Eric Allam