bool_at 0.1.0 → 0.2.2

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
2
  SHA256:
3
- metadata.gz: 23003f8b652ba36c79cf693fe59860065b29db88afdde7472889bb9a29186088
4
- data.tar.gz: 4bfe89fae24d76255a6207fc4fe1f4e6d5f001101269bbb272d81dd31a6e0608
3
+ metadata.gz: d04bdbed8082b139ebc9f1cf325111514fa0189331cfb5fb440240c03e768121
4
+ data.tar.gz: 0caf8494426182237510a11db2cc29a74fae2e35303e1c867b238d3244660847
5
5
  SHA512:
6
- metadata.gz: e21b40ff99929d379d6ed87ae1323f1bfa09801f522564a3a1b0b3675cfb39ef92d6685b507e677110402866be3504dc63c2c2793108a09829e66ae9b3045d86
7
- data.tar.gz: 699042a0a9b39ab499e13bd47c068eaff755bd561d98834c879e887e6dd360be9674943db4d3a23a317a46a126676281fb6743b067743769198324eac918f998
6
+ metadata.gz: 9183fbea360010692ac1f2fa2b5549e5e81e7f502c52efb95af7cd8d08ade7dc4077cf79eb1c4fbce4faf30a0a32512da955626ca2a0cf499e75ac46623fe075
7
+ data.tar.gz: b5f186b30213128b8a907a1bb065e62a7d1d1c6e884fcdabb5a2bc16a5c19ec8e468bf8b9c66417535c8bfca468d6150505f1a2f26068b61c91cc177c5b60549
@@ -0,0 +1,32 @@
1
+ # Use the latest 2.1 version of CircleCI pipeline process engine.
2
+ # See: https://circleci.com/docs/2.0/configuration-reference
3
+ version: 2.1
4
+
5
+ # Orbs are reusable packages of CircleCI configuration that you may share across projects, enabling you to create encapsulated, parameterized commands, jobs, and executors that can be used across multiple projects.
6
+ # See: https://circleci.com/docs/2.0/orb-intro/
7
+ orbs:
8
+ ruby: circleci/ruby@1.4.0
9
+
10
+ # Define a job to be invoked later in a workflow.
11
+ # See: https://circleci.com/docs/2.0/configuration-reference/#jobs
12
+ jobs:
13
+ build-test:
14
+ docker:
15
+ - image: cimg/ruby:3.1.0
16
+ executor: ruby/default
17
+ steps:
18
+ - checkout
19
+ - run:
20
+ name: Which bundler?
21
+ command: bundle -v
22
+ - run: bundle install
23
+ - run: bundle exec rspec
24
+
25
+ # Invoke jobs via workflows
26
+ # See: https://circleci.com/docs/2.0/configuration-reference/#workflows
27
+ workflows:
28
+ test: # This is the name of the workflow, feel free to change it to better match your workflow.
29
+ # Inside the workflow, you define the jobs you want to run.
30
+ jobs:
31
+ - build-test
32
+
data/.gitignore CHANGED
@@ -11,3 +11,6 @@
11
11
  .rspec_status
12
12
 
13
13
  .DS_Store
14
+
15
+ .byebug_history
16
+ bool_at_test
data/Gemfile.lock CHANGED
@@ -1,120 +1,126 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- bool_at (0.1.0)
5
- activerecord (>= 4.2.0)
4
+ bool_at (0.2.1)
5
+ activerecord (>= 6)
6
6
 
7
7
  GEM
8
8
  remote: https://rubygems.org/
9
9
  specs:
10
- actionpack (5.2.0)
11
- actionview (= 5.2.0)
12
- activesupport (= 5.2.0)
13
- rack (~> 2.0)
10
+ actionpack (6.1.5)
11
+ actionview (= 6.1.5)
12
+ activesupport (= 6.1.5)
13
+ rack (~> 2.0, >= 2.0.9)
14
14
  rack-test (>= 0.6.3)
15
15
  rails-dom-testing (~> 2.0)
16
- rails-html-sanitizer (~> 1.0, >= 1.0.2)
17
- actionview (5.2.0)
18
- activesupport (= 5.2.0)
16
+ rails-html-sanitizer (~> 1.0, >= 1.2.0)
17
+ actionview (6.1.5)
18
+ activesupport (= 6.1.5)
19
19
  builder (~> 3.1)
20
20
  erubi (~> 1.4)
21
21
  rails-dom-testing (~> 2.0)
22
- rails-html-sanitizer (~> 1.0, >= 1.0.3)
23
- activemodel (5.2.0)
24
- activesupport (= 5.2.0)
25
- activerecord (5.2.0)
26
- activemodel (= 5.2.0)
27
- activesupport (= 5.2.0)
28
- arel (>= 9.0)
29
- activesupport (5.2.0)
22
+ rails-html-sanitizer (~> 1.1, >= 1.2.0)
23
+ activemodel (6.1.5)
24
+ activesupport (= 6.1.5)
25
+ activerecord (6.1.5)
26
+ activemodel (= 6.1.5)
27
+ activesupport (= 6.1.5)
28
+ activesupport (6.1.5)
30
29
  concurrent-ruby (~> 1.0, >= 1.0.2)
31
- i18n (>= 0.7, < 2)
32
- minitest (~> 5.1)
33
- tzinfo (~> 1.1)
34
- arel (9.0.0)
35
- ast (2.4.0)
36
- builder (3.2.3)
37
- coderay (1.1.2)
38
- concurrent-ruby (1.0.5)
39
- crass (1.0.4)
40
- diff-lcs (1.3)
41
- erubi (1.7.1)
42
- i18n (1.0.1)
30
+ i18n (>= 1.6, < 2)
31
+ minitest (>= 5.1)
32
+ tzinfo (~> 2.0)
33
+ zeitwerk (~> 2.3)
34
+ ast (2.4.2)
35
+ builder (3.2.4)
36
+ coderay (1.1.3)
37
+ concurrent-ruby (1.1.9)
38
+ crass (1.0.6)
39
+ diff-lcs (1.5.0)
40
+ erubi (1.10.0)
41
+ i18n (1.10.0)
43
42
  concurrent-ruby (~> 1.0)
44
- loofah (2.2.2)
43
+ loofah (2.15.0)
45
44
  crass (~> 1.0.2)
46
45
  nokogiri (>= 1.5.9)
47
- method_source (0.9.0)
48
- mini_portile2 (2.3.0)
49
- minitest (5.11.3)
50
- nokogiri (1.8.2)
51
- mini_portile2 (~> 2.3.0)
52
- parser (2.5.1.0)
53
- ast (~> 2.4.0)
54
- powerpack (0.1.2)
46
+ method_source (0.9.2)
47
+ mini_portile2 (2.8.0)
48
+ minitest (5.15.0)
49
+ nokogiri (1.13.3)
50
+ mini_portile2 (~> 2.8.0)
51
+ racc (~> 1.4)
52
+ parallel (1.21.0)
53
+ parser (3.1.0.0)
54
+ ast (~> 2.4.1)
55
55
  pry (0.11.3)
56
56
  coderay (~> 1.1.0)
57
57
  method_source (~> 0.9.0)
58
- rack (2.0.5)
59
- rack-test (1.0.0)
58
+ racc (1.6.0)
59
+ rack (2.2.3)
60
+ rack-test (1.1.0)
60
61
  rack (>= 1.0, < 3)
61
62
  rails-dom-testing (2.0.3)
62
63
  activesupport (>= 4.2.0)
63
64
  nokogiri (>= 1.6)
64
- rails-html-sanitizer (1.0.4)
65
- loofah (~> 2.2, >= 2.2.2)
66
- railties (5.2.0)
67
- actionpack (= 5.2.0)
68
- activesupport (= 5.2.0)
65
+ rails-html-sanitizer (1.4.2)
66
+ loofah (~> 2.3)
67
+ railties (6.1.5)
68
+ actionpack (= 6.1.5)
69
+ activesupport (= 6.1.5)
69
70
  method_source
70
- rake (>= 0.8.7)
71
- thor (>= 0.18.1, < 2.0)
72
- rainbow (2.2.2)
73
- rake
74
- rake (10.5.0)
75
- rspec (3.7.0)
76
- rspec-core (~> 3.7.0)
77
- rspec-expectations (~> 3.7.0)
78
- rspec-mocks (~> 3.7.0)
79
- rspec-core (3.7.1)
80
- rspec-support (~> 3.7.0)
81
- rspec-expectations (3.7.0)
71
+ rake (>= 12.2)
72
+ thor (~> 1.0)
73
+ rainbow (3.1.1)
74
+ rake (13.0.6)
75
+ regexp_parser (2.2.0)
76
+ rexml (3.2.5)
77
+ rspec (3.10.0)
78
+ rspec-core (~> 3.10.0)
79
+ rspec-expectations (~> 3.10.0)
80
+ rspec-mocks (~> 3.10.0)
81
+ rspec-core (3.10.2)
82
+ rspec-support (~> 3.10.0)
83
+ rspec-expectations (3.10.2)
82
84
  diff-lcs (>= 1.2.0, < 2.0)
83
- rspec-support (~> 3.7.0)
84
- rspec-mocks (3.7.0)
85
+ rspec-support (~> 3.10.0)
86
+ rspec-mocks (3.10.3)
85
87
  diff-lcs (>= 1.2.0, < 2.0)
86
- rspec-support (~> 3.7.0)
87
- rspec-support (3.7.1)
88
- rubocop (0.48.1)
89
- parser (>= 2.3.3.1, < 3.0)
90
- powerpack (~> 0.1)
91
- rainbow (>= 1.99.1, < 3.0)
88
+ rspec-support (~> 3.10.0)
89
+ rspec-support (3.10.3)
90
+ rubocop (1.25.0)
91
+ parallel (~> 1.10)
92
+ parser (>= 3.1.0.0)
93
+ rainbow (>= 2.2.2, < 4.0)
94
+ regexp_parser (>= 1.8, < 3.0)
95
+ rexml
96
+ rubocop-ast (>= 1.15.1, < 2.0)
92
97
  ruby-progressbar (~> 1.7)
93
- unicode-display_width (~> 1.0, >= 1.0.1)
94
- ruby-progressbar (1.9.0)
95
- sqlite3 (1.3.13)
96
- standalone_migrations (5.2.5)
97
- activerecord (>= 4.2.7, < 5.3.0)
98
- railties (>= 4.2.7, < 5.3.0)
98
+ unicode-display_width (>= 1.4.0, < 3.0)
99
+ rubocop-ast (1.15.1)
100
+ parser (>= 3.0.1.1)
101
+ ruby-progressbar (1.11.0)
102
+ sqlite3 (1.4.2)
103
+ standalone_migrations (6.1.0)
104
+ activerecord (>= 4.2.7, < 6.2.0, != 5.2.3.rc1, != 5.2.3)
105
+ railties (>= 4.2.7, < 6.2.0, != 5.2.3.rc1, != 5.2.3)
99
106
  rake (>= 10.0)
100
- thor (0.20.0)
101
- thread_safe (0.3.6)
102
- tzinfo (1.2.5)
103
- thread_safe (~> 0.1)
104
- unicode-display_width (1.4.0)
107
+ thor (1.2.1)
108
+ tzinfo (2.0.4)
109
+ concurrent-ruby (~> 1.0)
110
+ unicode-display_width (2.1.0)
111
+ zeitwerk (2.5.4)
105
112
 
106
113
  PLATFORMS
107
114
  ruby
108
115
 
109
116
  DEPENDENCIES
110
117
  bool_at!
111
- bundler (~> 1.16)
112
- pry
113
- rake (~> 10.0)
114
- rspec (~> 3.0)
115
- rubocop (~> 0.48.1)
116
- sqlite3 (= 1.3.13)
117
- standalone_migrations (~> 5.2.0)
118
+ bundler (~> 2.3.6)
119
+ pry (~> 0.11.3)
120
+ rspec (~> 3.10)
121
+ rubocop (~> 1.25.0)
122
+ sqlite3 (= 1.4.2)
123
+ standalone_migrations (>= 6)
118
124
 
119
125
  BUNDLED WITH
120
- 1.16.2
126
+ 2.3.9
data/README.md CHANGED
@@ -1,4 +1,4 @@
1
- [![Build Status](https://travis-ci.org/choonggg/bool_at.svg?branch=master)](https://travis-ci.org/choonggg/bool_at)
1
+ [![CircleCI](https://circleci.com/gh/elithecho/bool_at/tree/master.svg?style=svg)](https://circleci.com/gh/elithecho/bool_at/tree/master)
2
2
 
3
3
  ## Installation
4
4
 
@@ -33,13 +33,24 @@ These methods will be available
33
33
  ```
34
34
  post = Post.new
35
35
  post.published? #=> false
36
- post.published!
36
+
37
+ post.published = true
37
38
  post.published? #=> true
39
+ post.published_at #=> Will be set when published was assigned true
40
+ ```
41
+
42
+ It also adds scope to your Rails model.
43
+
44
+ ```
45
+ Post.published
46
+ Post.not_published
47
+ Post.order_published
48
+ Post.reverse_published
38
49
  ```
39
50
 
40
51
  ### Methods
41
52
 
42
- It adds `!` and `?` method to your timestamps without `_at` prefix
53
+ It adds and `?` method to your timestamps without `_at` prefix
43
54
 
44
55
  ## Development
45
56
 
@@ -49,7 +60,7 @@ To install this gem onto your local machine, run `bundle exec rake install`. To
49
60
 
50
61
  ## Contributing
51
62
 
52
- Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/bool_at. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
63
+ Bug reports and pull requests are welcome on GitHub at https://github.com/elithecho/bool_at. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
53
64
 
54
65
  ## License
55
66
 
@@ -57,4 +68,4 @@ The gem is available as open source under the terms of the [MIT License](https:/
57
68
 
58
69
  ## Code of Conduct
59
70
 
60
- Everyone interacting in the BoolAt project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/[USERNAME]/bool_at/blob/master/CODE_OF_CONDUCT.md).
71
+ Everyone interacting in the BoolAt project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/elithecho/bool_at/blob/master/CODE_OF_CONDUCT.md).
data/Rakefile CHANGED
@@ -1,12 +1,11 @@
1
1
  require "rubygems"
2
2
  require "bundler/gem_tasks"
3
3
  require "rspec/core/rake_task"
4
- require "rspec/core/rake_task"
5
- require "rubocop/rake_task"
4
+ # require "rubocop/rake_task"
6
5
  require "standalone_migrations"
7
6
  StandaloneMigrations::Tasks.load_tasks
8
7
 
9
8
  RSpec::Core::RakeTask.new(:spec)
10
- RuboCop::RakeTask.new
9
+ # RuboCop::RakeTask.new
11
10
 
12
- task default: %i[rubocop spec]
11
+ task default: %i[spec]
data/bool_at.gemspec CHANGED
@@ -21,14 +21,13 @@ Gem::Specification.new do |spec|
21
21
  spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
22
22
  spec.require_paths = ["lib"]
23
23
 
24
- # Not recommending old ActiveRecord version but good to support
25
- spec.add_dependency "activerecord", "~>5.2", ">= 4.2.0"
24
+ # Not recommending old ActiveRecord version
25
+ spec.add_dependency 'activerecord', '>= 6'
26
26
 
27
- spec.add_development_dependency "bundler", "~> 1.16"
27
+ spec.add_development_dependency "bundler", "~> 2.3.6"
28
28
  spec.add_development_dependency "pry", "~>0.11.3"
29
- spec.add_development_dependency "rake", "~> 10.0"
30
- spec.add_development_dependency "rspec", "~> 3.0"
31
- spec.add_development_dependency "rubocop", "~> 0.48.1"
32
- spec.add_development_dependency "sqlite3", "1.3.13"
33
- spec.add_development_dependency "standalone_migrations", "~> 5.2.0", ">= 4.2.0"
29
+ spec.add_development_dependency "rspec", "~> 3.10"
30
+ spec.add_development_dependency "rubocop", "~> 1.25.0"
31
+ spec.add_development_dependency "sqlite3", "1.4.2"
32
+ spec.add_development_dependency "standalone_migrations", ">= 6"
34
33
  end
@@ -0,0 +1,6 @@
1
+ source "https://rubygems.org"
2
+
3
+ gemspec path: "../"
4
+
5
+ gem "activerecord", "~> 6.1.4.4"
6
+ gem "activesupport", "~> 6.1.4.4"
@@ -0,0 +1,6 @@
1
+ source "https://rubygems.org"
2
+
3
+ gemspec path: "../"
4
+
5
+ gem "activerecord", "~> 7.0.1"
6
+ gem "activesupport", "~> 7.0.1"
data/lib/bool_at/macro.rb CHANGED
@@ -3,22 +3,40 @@
3
3
  module BoolAt
4
4
  module Macro
5
5
  module ClassMethods
6
- def bool_at(*keys)
7
- keys.each do |key|
8
- unless key.to_s.include?("_at")
9
- raise ArgumentError, "bool_at keys should be prefixed with `_at'"
6
+ def bool_at(*attrs)
7
+ attrs.each do |attr|
8
+ at_attribute = "#{attr}_at"
9
+ at_setter = "#{attr}_at="
10
+ setter = "#{attr}="
11
+ predicate = "#{attr}?"
12
+
13
+ attribute attr, :boolean, default: false
14
+
15
+ after_initialize do
16
+ self[attr] = send(attr)
10
17
  end
11
18
 
12
- key_attribute = key
13
- method_name = key.to_s.remove("_at")
19
+ # Changes dirty state in virtual attribute
20
+ define_method setter do |value|
21
+ super(value)
22
+ send(at_setter, self[attr] ? Time.now : nil)
23
+ end
14
24
 
15
- define_method(:"#{method_name}?") do
16
- send(key_attribute).present?
25
+ define_method attr do
26
+ send(at_attribute).present? if respond_to?(at_attribute)
17
27
  end
18
28
 
19
- define_method(:"#{method_name}!") do
20
- send(:"#{key_attribute}=", Time.zone.now)
29
+ define_method at_setter do |value|
30
+ self[attr] = value.present?
31
+ super(value)
21
32
  end
33
+
34
+ alias_method predicate, attr
35
+
36
+ scope attr, -> { where("#{table_name}.#{attr}_at IS NOT NULL") }
37
+ scope :"not_#{attr}", -> { where("#{table_name}.#{attr}_at IS NULL") }
38
+ scope :"order_#{attr}", -> { order("#{table_name}.#{attr}_at DESC") }
39
+ scope :"reverse_#{attr}", -> { order("#{table_name}.#{attr}_at ASC") }
22
40
  end
23
41
  end
24
42
  end
@@ -1,3 +1,3 @@
1
1
  module BoolAt
2
- VERSION = "0.1.0".freeze
2
+ VERSION = "0.2.2".freeze
3
3
  end
data/lib/bool_at.rb CHANGED
@@ -12,5 +12,5 @@ module BoolAt
12
12
  end
13
13
 
14
14
  ActiveSupport.on_load(:active_record) do
15
- ActiveRecord::Base.send(:include, BoolAt)
15
+ ActiveRecord::Base.include BoolAt
16
16
  end
@@ -2,7 +2,7 @@ require "spec_helper"
2
2
 
3
3
  RSpec.describe BoolAt::Macro do
4
4
  before do
5
- Post.bool_at :published_at
5
+ Post.bool_at :published
6
6
  end
7
7
 
8
8
  describe "#bool_at" do
@@ -23,16 +23,18 @@ RSpec.describe BoolAt::Macro do
23
23
  end
24
24
  end
25
25
 
26
- context "#bool! method" do
27
- it "sets published_at when banging bool_at method" do
26
+ describe "setter" do
27
+ it "sets time on current value" do
28
28
  post = Post.new
29
- expect { post.published! }.to change { post.published_at }.from(nil)
29
+ post.published = true
30
+ expect(post.published?).to be true
31
+ expect(post.published_at).to be_a(Time)
30
32
  end
31
33
 
32
- it "sets date now" do
33
- post = Post.new
34
- post.published!
35
- expect(post.published_at).to be_a(Time)
34
+ it "removes value if nil" do
35
+ post = Post.new(published_at: Time.current)
36
+ post.published = false
37
+ expect(post.published?).to be false
36
38
  end
37
39
  end
38
40
  end
data/spec/spec_helper.rb CHANGED
@@ -1,8 +1,8 @@
1
- require "bundler/setup"
1
+ # frozen_string_literal: true
2
+
2
3
  require "bool_at"
3
- require "pry"
4
4
 
5
- require "active_record/railtie"
5
+ $LOAD_PATH.unshift File.expand_path("../../lib", __FILE__)
6
6
  ActiveRecord::Base.logger = Logger.new(STDERR)
7
7
  ActiveRecord::Base.logger.level = 3
8
8
 
metadata CHANGED
@@ -1,49 +1,43 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bool_at
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chong Hui
8
- autorequire:
8
+ autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-07-06 00:00:00.000000000 Z
11
+ date: 2022-03-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activerecord
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - "~>"
18
- - !ruby/object:Gem::Version
19
- version: '5.2'
20
17
  - - ">="
21
18
  - !ruby/object:Gem::Version
22
- version: 4.2.0
19
+ version: '6'
23
20
  type: :runtime
24
21
  prerelease: false
25
22
  version_requirements: !ruby/object:Gem::Requirement
26
23
  requirements:
27
- - - "~>"
28
- - !ruby/object:Gem::Version
29
- version: '5.2'
30
24
  - - ">="
31
25
  - !ruby/object:Gem::Version
32
- version: 4.2.0
26
+ version: '6'
33
27
  - !ruby/object:Gem::Dependency
34
28
  name: bundler
35
29
  requirement: !ruby/object:Gem::Requirement
36
30
  requirements:
37
31
  - - "~>"
38
32
  - !ruby/object:Gem::Version
39
- version: '1.16'
33
+ version: 2.3.6
40
34
  type: :development
41
35
  prerelease: false
42
36
  version_requirements: !ruby/object:Gem::Requirement
43
37
  requirements:
44
38
  - - "~>"
45
39
  - !ruby/object:Gem::Version
46
- version: '1.16'
40
+ version: 2.3.6
47
41
  - !ruby/object:Gem::Dependency
48
42
  name: pry
49
43
  requirement: !ruby/object:Gem::Requirement
@@ -58,82 +52,62 @@ dependencies:
58
52
  - - "~>"
59
53
  - !ruby/object:Gem::Version
60
54
  version: 0.11.3
61
- - !ruby/object:Gem::Dependency
62
- name: rake
63
- requirement: !ruby/object:Gem::Requirement
64
- requirements:
65
- - - "~>"
66
- - !ruby/object:Gem::Version
67
- version: '10.0'
68
- type: :development
69
- prerelease: false
70
- version_requirements: !ruby/object:Gem::Requirement
71
- requirements:
72
- - - "~>"
73
- - !ruby/object:Gem::Version
74
- version: '10.0'
75
55
  - !ruby/object:Gem::Dependency
76
56
  name: rspec
77
57
  requirement: !ruby/object:Gem::Requirement
78
58
  requirements:
79
59
  - - "~>"
80
60
  - !ruby/object:Gem::Version
81
- version: '3.0'
61
+ version: '3.10'
82
62
  type: :development
83
63
  prerelease: false
84
64
  version_requirements: !ruby/object:Gem::Requirement
85
65
  requirements:
86
66
  - - "~>"
87
67
  - !ruby/object:Gem::Version
88
- version: '3.0'
68
+ version: '3.10'
89
69
  - !ruby/object:Gem::Dependency
90
70
  name: rubocop
91
71
  requirement: !ruby/object:Gem::Requirement
92
72
  requirements:
93
73
  - - "~>"
94
74
  - !ruby/object:Gem::Version
95
- version: 0.48.1
75
+ version: 1.25.0
96
76
  type: :development
97
77
  prerelease: false
98
78
  version_requirements: !ruby/object:Gem::Requirement
99
79
  requirements:
100
80
  - - "~>"
101
81
  - !ruby/object:Gem::Version
102
- version: 0.48.1
82
+ version: 1.25.0
103
83
  - !ruby/object:Gem::Dependency
104
84
  name: sqlite3
105
85
  requirement: !ruby/object:Gem::Requirement
106
86
  requirements:
107
87
  - - '='
108
88
  - !ruby/object:Gem::Version
109
- version: 1.3.13
89
+ version: 1.4.2
110
90
  type: :development
111
91
  prerelease: false
112
92
  version_requirements: !ruby/object:Gem::Requirement
113
93
  requirements:
114
94
  - - '='
115
95
  - !ruby/object:Gem::Version
116
- version: 1.3.13
96
+ version: 1.4.2
117
97
  - !ruby/object:Gem::Dependency
118
98
  name: standalone_migrations
119
99
  requirement: !ruby/object:Gem::Requirement
120
100
  requirements:
121
- - - "~>"
122
- - !ruby/object:Gem::Version
123
- version: 5.2.0
124
101
  - - ">="
125
102
  - !ruby/object:Gem::Version
126
- version: 4.2.0
103
+ version: '6'
127
104
  type: :development
128
105
  prerelease: false
129
106
  version_requirements: !ruby/object:Gem::Requirement
130
107
  requirements:
131
- - - "~>"
132
- - !ruby/object:Gem::Version
133
- version: 5.2.0
134
108
  - - ">="
135
109
  - !ruby/object:Gem::Version
136
- version: 4.2.0
110
+ version: '6'
137
111
  description: Convert datetime to boolean in ActiveRecord.
138
112
  email:
139
113
  - iamchoonggg@gmail.com
@@ -141,11 +115,10 @@ executables: []
141
115
  extensions: []
142
116
  extra_rdoc_files: []
143
117
  files:
144
- - ".byebug_history"
118
+ - ".circleci/config.yml"
145
119
  - ".gitignore"
146
120
  - ".rspec"
147
121
  - ".rubocop.yml"
148
- - ".travis.yml"
149
122
  - CODE_OF_CONDUCT.md
150
123
  - Gemfile
151
124
  - Gemfile.lock
@@ -155,11 +128,9 @@ files:
155
128
  - bin/console
156
129
  - bin/setup
157
130
  - bool_at.gemspec
158
- - bool_at_test
159
131
  - db/config.yml
160
- - gemfiles/rails_4.2.gemfile
161
- - gemfiles/rails_5.gemfile
162
- - jsonb_accessor
132
+ - gemfiles/rails_6.gemfile
133
+ - gemfiles/rails_7.gemfile
163
134
  - lib/bool_at.rb
164
135
  - lib/bool_at/macro.rb
165
136
  - lib/bool_at/version.rb
@@ -170,7 +141,7 @@ homepage: https://github.com/choonggg/bool_at
170
141
  licenses:
171
142
  - MIT
172
143
  metadata: {}
173
- post_install_message:
144
+ post_install_message:
174
145
  rdoc_options: []
175
146
  require_paths:
176
147
  - lib
@@ -185,9 +156,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
185
156
  - !ruby/object:Gem::Version
186
157
  version: '0'
187
158
  requirements: []
188
- rubyforge_project:
189
- rubygems_version: 2.7.6
190
- signing_key:
159
+ rubygems_version: 3.2.22
160
+ signing_key:
191
161
  specification_version: 4
192
162
  summary: Convert datetime to boolean in ActiveRecord
193
163
  test_files:
data/.byebug_history DELETED
@@ -1,3 +0,0 @@
1
- c
2
- keys
3
- c
data/.travis.yml DELETED
@@ -1,19 +0,0 @@
1
- sudo: false
2
- language: ruby
3
- rvm:
4
- - 2.5.1
5
- - 2.4.1
6
- - 2.3.3
7
- addons:
8
- postgresql: '10'
9
- before_install:
10
- - gem update --system
11
- - gem --version
12
- - gem install bundler
13
- before_script:
14
- - bundle exec rake db:create
15
- - bundle exec rake db:migrate
16
- cache: bundler
17
- gemfile:
18
- - gemfiles/rails_4.2.gemfile
19
- - gemfiles/rails_5.0.gemfile
data/bool_at_test DELETED
Binary file
@@ -1,5 +0,0 @@
1
- source "https://rubygems.org"
2
-
3
- gemspec path: "../"
4
-
5
- gem "activerecord", "~> 4.2.1"
@@ -1,5 +0,0 @@
1
- source "https://rubygems.org"
2
-
3
- gemspec path: "../"
4
-
5
- gem "activerecord", "~> 5.2.0"
data/jsonb_accessor DELETED
File without changes