bitmasker 0.2.0 → 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/README.md +1 -0
- data/Rakefile +0 -1
- data/lib/bitmasker/version.rb +1 -1
- data/test/bitmasker/bitmask_attributes_test.rb +1 -1
- data/test/bitmasker/bitmask_scope_test.rb +1 -1
- data/test/integration_test.rb +1 -1
- data/test/test_helper.rb +0 -1
- metadata +40 -40
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 0b9d86b80ada949fbfe10b5b0facfeeaa252dc4d
|
4
|
+
data.tar.gz: 2ad25ab9c0b786d7a337eaecdd44803395e3fc9c
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 10d0d57a118c30a543ddb867ea057268db5fa9cc090ea17e9c3db339b6da8e7e97d9c5dfd9e4eb94e6fa49aede0c4ef3f457745d3187e88ab3c332095422bc1b
|
7
|
+
data.tar.gz: 612d47def7e725abb1e3a38f18c58973b4639fc4f1f79673df2b697cdc548d9870b51c0d5e9b09a0fba427c9e68a7368ec1ced80ee87e264a1999b86bf0313bd
|
data/README.md
CHANGED
@@ -32,6 +32,7 @@ Examples
|
|
32
32
|
has_bitmask_attributes :notifications do |config|
|
33
33
|
config.attribute :send_weekly_newsletter, 0b0001
|
34
34
|
config.attribute :send_monthly_newsletter, 0b0010, true
|
35
|
+
config.attribute :send_daily_update, 0b0100
|
35
36
|
config.accessible
|
36
37
|
# config.field_name :notifications_mask # <- default functionality
|
37
38
|
end
|
data/Rakefile
CHANGED
data/lib/bitmasker/version.rb
CHANGED
data/test/integration_test.rb
CHANGED
data/test/test_helper.rb
CHANGED
metadata
CHANGED
@@ -1,97 +1,104 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bitmasker
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
5
|
-
prerelease:
|
4
|
+
version: 0.3.0
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- Amiel Martin
|
9
8
|
autorequire:
|
10
9
|
bindir: bin
|
11
10
|
cert_chain: []
|
12
|
-
date:
|
11
|
+
date: 2014-09-25 00:00:00.000000000 Z
|
13
12
|
dependencies:
|
14
13
|
- !ruby/object:Gem::Dependency
|
15
14
|
name: bitmask
|
16
15
|
requirement: !ruby/object:Gem::Requirement
|
17
|
-
none: false
|
18
16
|
requirements:
|
19
|
-
- - ~>
|
17
|
+
- - "~>"
|
20
18
|
- !ruby/object:Gem::Version
|
21
19
|
version: 0.1.0
|
22
20
|
type: :runtime
|
23
21
|
prerelease: false
|
24
22
|
version_requirements: !ruby/object:Gem::Requirement
|
25
|
-
none: false
|
26
23
|
requirements:
|
27
|
-
- - ~>
|
24
|
+
- - "~>"
|
28
25
|
- !ruby/object:Gem::Version
|
29
26
|
version: 0.1.0
|
30
27
|
- !ruby/object:Gem::Dependency
|
31
28
|
name: activerecord
|
32
29
|
requirement: !ruby/object:Gem::Requirement
|
33
|
-
none: false
|
34
30
|
requirements:
|
35
|
-
- -
|
31
|
+
- - ">="
|
36
32
|
- !ruby/object:Gem::Version
|
37
33
|
version: '3.0'
|
34
|
+
- - "<"
|
35
|
+
- !ruby/object:Gem::Version
|
36
|
+
version: '5.0'
|
38
37
|
type: :development
|
39
38
|
prerelease: false
|
40
39
|
version_requirements: !ruby/object:Gem::Requirement
|
41
|
-
none: false
|
42
40
|
requirements:
|
43
|
-
- -
|
41
|
+
- - ">="
|
44
42
|
- !ruby/object:Gem::Version
|
45
43
|
version: '3.0'
|
44
|
+
- - "<"
|
45
|
+
- !ruby/object:Gem::Version
|
46
|
+
version: '5.0'
|
46
47
|
- !ruby/object:Gem::Dependency
|
47
48
|
name: activesupport
|
48
49
|
requirement: !ruby/object:Gem::Requirement
|
49
|
-
none: false
|
50
50
|
requirements:
|
51
|
-
- -
|
51
|
+
- - ">="
|
52
52
|
- !ruby/object:Gem::Version
|
53
53
|
version: '3.0'
|
54
|
+
- - "<"
|
55
|
+
- !ruby/object:Gem::Version
|
56
|
+
version: '5.0'
|
54
57
|
type: :runtime
|
55
58
|
prerelease: false
|
56
59
|
version_requirements: !ruby/object:Gem::Requirement
|
57
|
-
none: false
|
58
60
|
requirements:
|
59
|
-
- -
|
61
|
+
- - ">="
|
60
62
|
- !ruby/object:Gem::Version
|
61
63
|
version: '3.0'
|
64
|
+
- - "<"
|
65
|
+
- !ruby/object:Gem::Version
|
66
|
+
version: '5.0'
|
62
67
|
- !ruby/object:Gem::Dependency
|
63
68
|
name: activemodel
|
64
69
|
requirement: !ruby/object:Gem::Requirement
|
65
|
-
none: false
|
66
70
|
requirements:
|
67
|
-
- -
|
71
|
+
- - ">="
|
68
72
|
- !ruby/object:Gem::Version
|
69
73
|
version: '3.0'
|
74
|
+
- - "<"
|
75
|
+
- !ruby/object:Gem::Version
|
76
|
+
version: '5.0'
|
70
77
|
type: :runtime
|
71
78
|
prerelease: false
|
72
79
|
version_requirements: !ruby/object:Gem::Requirement
|
73
|
-
none: false
|
74
80
|
requirements:
|
75
|
-
- -
|
81
|
+
- - ">="
|
76
82
|
- !ruby/object:Gem::Version
|
77
83
|
version: '3.0'
|
84
|
+
- - "<"
|
85
|
+
- !ruby/object:Gem::Version
|
86
|
+
version: '5.0'
|
78
87
|
- !ruby/object:Gem::Dependency
|
79
88
|
name: i18n
|
80
89
|
requirement: !ruby/object:Gem::Requirement
|
81
|
-
none: false
|
82
90
|
requirements:
|
83
|
-
- -
|
91
|
+
- - ">="
|
84
92
|
- !ruby/object:Gem::Version
|
85
93
|
version: '0'
|
86
94
|
type: :runtime
|
87
95
|
prerelease: false
|
88
96
|
version_requirements: !ruby/object:Gem::Requirement
|
89
|
-
none: false
|
90
97
|
requirements:
|
91
|
-
- -
|
98
|
+
- - ">="
|
92
99
|
- !ruby/object:Gem::Version
|
93
100
|
version: '0'
|
94
|
-
description:
|
101
|
+
description: "\n Bitmasker allows you to store many boolean values as one integer
|
95
102
|
field in the database.\n "
|
96
103
|
email:
|
97
104
|
- amiel@carnesmedia.com
|
@@ -99,49 +106,42 @@ executables: []
|
|
99
106
|
extensions: []
|
100
107
|
extra_rdoc_files: []
|
101
108
|
files:
|
109
|
+
- MIT-LICENSE
|
110
|
+
- README.md
|
111
|
+
- Rakefile
|
112
|
+
- lib/bitmasker.rb
|
102
113
|
- lib/bitmasker/bitmask_attributes.rb
|
103
114
|
- lib/bitmasker/bitmask_scope.rb
|
104
115
|
- lib/bitmasker/generator.rb
|
105
116
|
- lib/bitmasker/model.rb
|
106
117
|
- lib/bitmasker/rails.rb
|
107
118
|
- lib/bitmasker/version.rb
|
108
|
-
- lib/bitmasker.rb
|
109
|
-
- MIT-LICENSE
|
110
|
-
- Rakefile
|
111
|
-
- README.md
|
112
119
|
- test/bitmasker/bitmask_attributes_test.rb
|
113
120
|
- test/bitmasker/bitmask_scope_test.rb
|
114
121
|
- test/integration_test.rb
|
115
122
|
- test/test_helper.rb
|
116
123
|
homepage: https://github.com/amiel/bitmasker
|
117
124
|
licenses: []
|
125
|
+
metadata: {}
|
118
126
|
post_install_message:
|
119
127
|
rdoc_options: []
|
120
128
|
require_paths:
|
121
129
|
- lib
|
122
130
|
required_ruby_version: !ruby/object:Gem::Requirement
|
123
|
-
none: false
|
124
131
|
requirements:
|
125
|
-
- -
|
132
|
+
- - ">="
|
126
133
|
- !ruby/object:Gem::Version
|
127
134
|
version: '0'
|
128
|
-
segments:
|
129
|
-
- 0
|
130
|
-
hash: -2321849182877328955
|
131
135
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
132
|
-
none: false
|
133
136
|
requirements:
|
134
|
-
- -
|
137
|
+
- - ">="
|
135
138
|
- !ruby/object:Gem::Version
|
136
139
|
version: '0'
|
137
|
-
segments:
|
138
|
-
- 0
|
139
|
-
hash: -2321849182877328955
|
140
140
|
requirements: []
|
141
141
|
rubyforge_project:
|
142
|
-
rubygems_version:
|
142
|
+
rubygems_version: 2.2.0
|
143
143
|
signing_key:
|
144
|
-
specification_version:
|
144
|
+
specification_version: 4
|
145
145
|
summary: Bitmasker allows you to store many boolean values as one integer field in
|
146
146
|
the database.
|
147
147
|
test_files:
|