clean-bitmask-attribute 2.0.1 → 2.0.3
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/clean-bitmask-attribute.gemspec +23 -25
- data/lib/bitmask_attribute.rb +1 -1
- metadata +6 -7
- data/.gitignore +0 -7
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
2.0.
|
1
|
+
2.0.3
|
@@ -1,50 +1,48 @@
|
|
1
1
|
# Generated by jeweler
|
2
2
|
# DO NOT EDIT THIS FILE DIRECTLY
|
3
|
-
# Instead, edit Jeweler::Tasks in Rakefile, and run
|
3
|
+
# Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
|
4
4
|
# -*- encoding: utf-8 -*-
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{clean-bitmask-attribute}
|
8
|
-
s.version = "2.0.
|
8
|
+
s.version = "2.0.3"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Pavel Chipiga", "Bruce Williams"]
|
12
|
-
s.date = %q{2010-
|
12
|
+
s.date = %q{2010-12-16}
|
13
13
|
s.email = %q{pavel.chipiga@gmail.com}
|
14
14
|
s.extra_rdoc_files = [
|
15
15
|
"LICENSE",
|
16
|
-
|
16
|
+
"README.markdown"
|
17
17
|
]
|
18
18
|
s.files = [
|
19
19
|
".document",
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
"test/test_helper.rb"
|
20
|
+
"LICENSE",
|
21
|
+
"README.markdown",
|
22
|
+
"Rakefile",
|
23
|
+
"VERSION",
|
24
|
+
"clean-bitmask-attribute.gemspec",
|
25
|
+
"lib/bitmask-attribute.rb",
|
26
|
+
"lib/bitmask_attribute.rb",
|
27
|
+
"lib/bitmask_attribute/attribute.rb",
|
28
|
+
"lib/bitmask_attribute/core_ext/blank.rb",
|
29
|
+
"lib/bitmask_attribute/core_ext/hash_with_indifferent_access.rb",
|
30
|
+
"lib/bitmask_attribute/value_proxy.rb",
|
31
|
+
"rails/init.rb",
|
32
|
+
"test/bitmask_attribute_test.rb",
|
33
|
+
"test/clean_bitmask_attribute_test.rb",
|
34
|
+
"test/clean_test_helper.rb",
|
35
|
+
"test/test_helper.rb"
|
37
36
|
]
|
38
37
|
s.homepage = %q{http://github.com/chipiga/bitmask-attribute/tree/clean}
|
39
|
-
s.rdoc_options = ["--charset=UTF-8"]
|
40
38
|
s.require_paths = ["lib"]
|
41
39
|
s.rubygems_version = %q{1.3.7}
|
42
40
|
s.summary = %q{Simple bitmask attribute support for any class}
|
43
41
|
s.test_files = [
|
44
42
|
"test/bitmask_attribute_test.rb",
|
45
|
-
|
46
|
-
|
47
|
-
|
43
|
+
"test/clean_bitmask_attribute_test.rb",
|
44
|
+
"test/clean_test_helper.rb",
|
45
|
+
"test/test_helper.rb"
|
48
46
|
]
|
49
47
|
|
50
48
|
if s.respond_to? :specification_version then
|
data/lib/bitmask_attribute.rb
CHANGED
@@ -28,7 +28,7 @@ module BitmaskAttribute
|
|
28
28
|
#######
|
29
29
|
|
30
30
|
def validate_for(model)
|
31
|
-
unless (model.columns.detect { |col| col.name == attribute.to_s } rescue true)
|
31
|
+
unless (File.basename($0) == "rake" || model.columns.detect { |col| col.name == attribute.to_s } rescue true)
|
32
32
|
raise ArgumentError, "`#{attribute}' is not an attribute of `#{model}'"
|
33
33
|
end
|
34
34
|
end
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: clean-bitmask-attribute
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 9
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 2
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 2.0.
|
9
|
+
- 3
|
10
|
+
version: 2.0.3
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Pavel Chipiga
|
@@ -16,7 +16,7 @@ autorequire:
|
|
16
16
|
bindir: bin
|
17
17
|
cert_chain: []
|
18
18
|
|
19
|
-
date: 2010-
|
19
|
+
date: 2010-12-16 00:00:00 +02:00
|
20
20
|
default_executable:
|
21
21
|
dependencies:
|
22
22
|
- !ruby/object:Gem::Dependency
|
@@ -72,7 +72,6 @@ extra_rdoc_files:
|
|
72
72
|
- README.markdown
|
73
73
|
files:
|
74
74
|
- .document
|
75
|
-
- .gitignore
|
76
75
|
- LICENSE
|
77
76
|
- README.markdown
|
78
77
|
- Rakefile
|
@@ -94,8 +93,8 @@ homepage: http://github.com/chipiga/bitmask-attribute/tree/clean
|
|
94
93
|
licenses: []
|
95
94
|
|
96
95
|
post_install_message:
|
97
|
-
rdoc_options:
|
98
|
-
|
96
|
+
rdoc_options: []
|
97
|
+
|
99
98
|
require_paths:
|
100
99
|
- lib
|
101
100
|
required_ruby_version: !ruby/object:Gem::Requirement
|