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 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
@@ -1,7 +1,6 @@
1
1
  require "bundler/gem_tasks"
2
2
  require 'rake/testtask'
3
3
 
4
-
5
4
  task default: :test
6
5
 
7
6
  Rake::TestTask.new do |t|
@@ -1,3 +1,3 @@
1
1
  module Bitmasker
2
- VERSION = "0.2.0"
2
+ VERSION = "0.3.0"
3
3
  end
@@ -1,6 +1,6 @@
1
1
  require 'test_helper'
2
2
 
3
- class Bitmasker::BitmaskAttributesTest < MiniTest::Test
3
+ class Bitmasker::BitmaskAttributesTest < MiniTest::Unit::TestCase
4
4
 
5
5
  MockModel = Class.new do
6
6
  def self.value_to_boolean(value)
@@ -1,6 +1,6 @@
1
1
  require 'test_helper'
2
2
 
3
- class Bitmasker::BitmaskScopeTest < MiniTest::Test
3
+ class Bitmasker::BitmaskScopeTest < MiniTest::Unit::TestCase
4
4
 
5
5
  MockModel = Class.new
6
6
 
@@ -41,7 +41,7 @@ class MockModel
41
41
  end
42
42
 
43
43
 
44
- class BitmaskAttributesTest < MiniTest::Test
44
+ class BitmaskAttributesTest < MiniTest::Unit::TestCase
45
45
 
46
46
  def test_does_stuff_attribute
47
47
  mock = MockModel.new
data/test/test_helper.rb CHANGED
@@ -1,5 +1,4 @@
1
1
  require 'minitest/autorun'
2
- # require 'turn/autorun'
3
2
 
4
3
  require 'mocha/setup'
5
4
 
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.2.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: 2013-10-18 00:00:00.000000000 Z
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: ! "\n Bitmasker allows you to store many boolean values as one integer
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: 1.8.24
142
+ rubygems_version: 2.2.0
143
143
  signing_key:
144
- specification_version: 3
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: