thumblemonks-inquisition 0.1.4 → 0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. data/LICENSE +1 -1
  2. data/lib/inquisition.rb +5 -5
  3. data/test/models.rb +1 -1
  4. metadata +2 -2
data/LICENSE CHANGED
@@ -1,4 +1,4 @@
1
- Copyright (c) 2009 toothrot
1
+ Copyright (c) 2009 Alexander Rakoczy
2
2
 
3
3
  Permission is hereby granted, free of charge, to any person obtaining
4
4
  a copy of this software and associated documentation files (the
data/lib/inquisition.rb CHANGED
@@ -11,12 +11,12 @@ module Inquisition
11
11
  end
12
12
 
13
13
  module ClassMethods
14
- def cleanse_attr(*attributes)
15
- cleanse_attr_reader(*attributes)
16
- cleanse_attr_writer(*attributes)
14
+ def sanitize_attribute(*attributes)
15
+ sanitize_attribute_reader(*attributes)
16
+ sanitize_attribute_writer(*attributes)
17
17
  end
18
18
 
19
- def cleanse_attr_reader(*attributes)
19
+ def sanitize_attribute_reader(*attributes)
20
20
  write_inheritable_attribute(:cleansed_attr_readers, attributes)
21
21
  class_inheritable_reader(:cleansed_attr_readers)
22
22
 
@@ -33,7 +33,7 @@ module Inquisition
33
33
  attributes.each { |attr| define_method(attr.to_sym) { read_attribute(attr.to_sym) } }
34
34
  end
35
35
 
36
- def cleanse_attr_writer(*attributes)
36
+ def sanitize_attribute_writer(*attributes)
37
37
  write_inheritable_attribute(:cleansed_attr_writers, attributes)
38
38
  class_inheritable_reader(:cleansed_attr_writers)
39
39
 
data/test/models.rb CHANGED
@@ -21,7 +21,7 @@ class Animal < ActiveRecord::Base
21
21
  end
22
22
 
23
23
  class Whisky < ActiveRecord::Base
24
- cleanse_attr :name, :description
24
+ sanitize_attribute :name, :description
25
25
 
26
26
  def drink
27
27
  "You quaffed #{description}"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: thumblemonks-inquisition
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.4
4
+ version: "0.2"
5
5
  platform: ruby
6
6
  authors:
7
7
  - toothrot
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-03-31 00:00:00 -07:00
12
+ date: 2009-07-06 00:00:00 -07:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency