bit_settings 1.0.3 → 1.0.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 8792ede8be1fe550712aba1eca853cb7804bf0a7
4
- data.tar.gz: f647e88674d7bfd33ce56f570ff256d7f05f5d5a
2
+ SHA256:
3
+ metadata.gz: 22cd583daf1f3c6e6515394137361db2365632c24c62ac6a1527633a467badca
4
+ data.tar.gz: c076a8a41b3b4f9544e2f86dac2aea93fb5abdd6352d129c7b850c9e17c41a70
5
5
  SHA512:
6
- metadata.gz: 680ef3ec4a9c7b6c15a2698132269deb135ac7b5dae39990070b95a4e0ddcb63871083fe7a1a15200ceb258506f4b488e4c3d8f5010a379fe02389149e603214
7
- data.tar.gz: b59808d9f32e91d907ebad5f185424799f359e734c02ee4a8b0d00b94aed40a87a812a59ca2ae34aee92d2eaaaae18f467baa634d70eae1418113a1b5a4467c8
6
+ metadata.gz: a2233d4f0fc3fb9ed2a438a4f281f1c6742c125be8a0579ee21b35750456bfc5d5b550515d85710ad16edfc429331dc787531a9ef7dee67002201b6ccab79ea8
7
+ data.tar.gz: 257e99f707aecd320968bf52e60eb6295b85be6603bd1bbde0c8934d847e51b3975139a6eab186a6264f042c8fc49643a487ca711bf7dff2aab4d9a0dfb87209
data/README.md CHANGED
@@ -23,7 +23,6 @@ Or install it yourself as:
23
23
 
24
24
  First of all add a unsigned int column for your boolean settings with `rails g migration add_settings_to_users settings:integer` and then edit like follow:
25
25
 
26
-
27
26
  ```
28
27
  class AddSettingsToUsers < ActiveRecord::Migration
29
28
  def change
@@ -31,6 +30,7 @@ class AddSettingsToUsers < ActiveRecord::Migration
31
30
  end
32
31
  end
33
32
  ```
33
+
34
34
  The max unsigned integer in 4 bytes is `2^32-1 = 4294967295` so with a column you can have max 32 settings.
35
35
  If you want that the default value of your settings is 1 (true) set the default value of the column to `2^32-1`.
36
36
 
@@ -67,8 +67,9 @@ class User extends ActiveRecord::Base
67
67
  add_settings :disable_notifications, :help_tour_shown, column: :my_settings, prefix: :setting
68
68
  end
69
69
  ```
70
- * `:column` specify the name of the column to use (default is `settings`)
71
- * `:prefix` add a prefix to dynamic methods
70
+
71
+ - `:column` specify the name of the column to use (default is `settings`)
72
+ - `:prefix` add a prefix to dynamic methods
72
73
 
73
74
  ```
74
75
  user.setting_disable_notifications? # => false
@@ -85,7 +86,6 @@ To install this gem onto your local machine, run `bundle exec rake install`. To
85
86
 
86
87
  Bug reports and pull requests are welcome on GitHub at https://github.com/pioz/bit_settings.
87
88
 
88
-
89
89
  ## License
90
90
 
91
91
  The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
data/bit_settings.gemspec CHANGED
@@ -19,10 +19,10 @@ Gem::Specification.new do |spec|
19
19
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
20
20
  spec.require_paths = ["lib"]
21
21
 
22
- spec.add_development_dependency "bundler", "~> 1.16"
23
- spec.add_development_dependency "rake", "~> 12.3"
24
- spec.add_development_dependency "sqlite3", "~> 1.3"
25
- spec.add_development_dependency "minitest", "~> 5.11"
22
+ spec.add_development_dependency "bundler", ">= 2.1.0"
23
+ spec.add_development_dependency "rake", ">= 12.3"
24
+ spec.add_development_dependency "sqlite3", ">= 1.3"
25
+ spec.add_development_dependency "minitest", ">= 5.11"
26
26
 
27
27
  spec.add_dependency "activesupport", ">= 4.2.0"
28
28
  spec.add_dependency "activemodel", ">= 4.2.0"
@@ -1,3 +1,3 @@
1
1
  module BitSettings
2
- VERSION = '1.0.3'
2
+ VERSION = '1.0.4'
3
3
  end
metadata CHANGED
@@ -1,69 +1,69 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bit_settings
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.3
4
+ version: 1.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - pioz
8
- autorequire:
8
+ autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-03-02 00:00:00.000000000 Z
11
+ date: 2021-10-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - "~>"
17
+ - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: '1.16'
19
+ version: 2.1.0
20
20
  type: :development
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - "~>"
24
+ - - ">="
25
25
  - !ruby/object:Gem::Version
26
- version: '1.16'
26
+ version: 2.1.0
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rake
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - "~>"
31
+ - - ">="
32
32
  - !ruby/object:Gem::Version
33
33
  version: '12.3'
34
34
  type: :development
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - "~>"
38
+ - - ">="
39
39
  - !ruby/object:Gem::Version
40
40
  version: '12.3'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: sqlite3
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - "~>"
45
+ - - ">="
46
46
  - !ruby/object:Gem::Version
47
47
  version: '1.3'
48
48
  type: :development
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - "~>"
52
+ - - ">="
53
53
  - !ruby/object:Gem::Version
54
54
  version: '1.3'
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: minitest
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
- - - "~>"
59
+ - - ">="
60
60
  - !ruby/object:Gem::Version
61
61
  version: '5.11'
62
62
  type: :development
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
- - - "~>"
66
+ - - ">="
67
67
  - !ruby/object:Gem::Version
68
68
  version: '5.11'
69
69
  - !ruby/object:Gem::Dependency
@@ -129,7 +129,7 @@ homepage: https://github.com/pioz/bit_settings
129
129
  licenses:
130
130
  - MIT
131
131
  metadata: {}
132
- post_install_message:
132
+ post_install_message:
133
133
  rdoc_options: []
134
134
  require_paths:
135
135
  - lib
@@ -144,9 +144,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
144
144
  - !ruby/object:Gem::Version
145
145
  version: '0'
146
146
  requirements: []
147
- rubyforge_project:
148
- rubygems_version: 2.6.14
149
- signing_key:
147
+ rubygems_version: 3.2.29
148
+ signing_key:
150
149
  specification_version: 4
151
150
  summary: BitSettings is a plugin for ActiveRecord that transform a column of your
152
151
  model in a set of boolean settings.