nilclass-maildir 0.5.0 → 0.5.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/VERSION +1 -1
  2. data/lib/maildir/message.rb +3 -0
  3. metadata +1 -1
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.5.0
1
+ 0.5.1
@@ -118,6 +118,9 @@ class Maildir::Message
118
118
  define_method("#{key}!".to_sym) do
119
119
  add_flag(value)
120
120
  end
121
+ define_method("#{key}=".to_sym) do |v|
122
+ v ? add_flag(value) : remove_flag(value)
123
+ end
121
124
  end
122
125
 
123
126
  # Returns an array of single letter flags applied to the message
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: nilclass-maildir
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.0
4
+ version: 0.5.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Aaron Suggs