mysql_rewinder 0.1.0 → 0.1.1

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: 312985891d45112d6c806ae4bdd2f2b741f1150bdfe6e5884e4cc0f327ebfbcf
4
- data.tar.gz: 853345a9fba1a84b22b3f051ff1cc30f7495153ac2eb47fd559c72bf9c677ce7
3
+ metadata.gz: fc9e1df489b72666d2df9e54a9d3467e008c33729cf9a2cc674a70e258570842
4
+ data.tar.gz: d470cfd7cfb5867a21c79c0b45f40480d2d34dbdbe048b78cfcbb751b7a97222
5
5
  SHA512:
6
- metadata.gz: 8afda05e048b531c39b89dc9136e5d7e32407c01c5c672433e30a10498bdf8820fa0fa08a581b22ecf25afe0ebcf11ae6a8590977af3e4418790f7abe54837b3
7
- data.tar.gz: ae8539d8a9e068f2a451794ff967efaf86d93b5d09450172fbe4b03b09d5e2bdd6b04b82b38f043c9ce1f8e7cd3d587e405fcd30b112a661489bbe3255123883
6
+ metadata.gz: ba1ee1138a2d318fd6ebbc1376cb06cd43ea0962a3305c09b59e4e0cd82de72fa7001dc7146bb85cda1bade4fa1b82df0f11a10870e76b1ac8c867edc3ccabc2
7
+ data.tar.gz: 93c60a029034ad464c93c36ce7a3bc3fe292cca146e9fbaaad041a7c08b8ccd7093c0324edcff443b449cef197881f4f1bcbaf2375a2b925f67bfbfca6168d55
@@ -0,0 +1,23 @@
1
+ # Contributor Code of Conduct
2
+
3
+ As contributors and maintainers of this project, and in the interest of fostering an open and welcoming community, we pledge to respect all people who contribute through reporting issues, posting feature requests, updating documentation, submitting pull requests or patches, and other activities.
4
+
5
+ We are committed to making participation in this project a harassment-free experience for everyone, regardless of level of experience, gender, gender identity and expression, sexual orientation, disability, personal appearance, body size, race, ethnicity, age, religion, or nationality.
6
+
7
+ Examples of unacceptable behavior by participants include:
8
+
9
+ * The use of sexualized language or imagery
10
+ * Personal attacks
11
+ * Trolling or insulting/derogatory comments
12
+ * Public or private harassment
13
+ * Publishing other's private information, such as physical or electronic addresses, without explicit permission
14
+ * Other unethical or unprofessional conduct
15
+
16
+ Project maintainers have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct. By adopting this Code of Conduct, project maintainers commit themselves to fairly and consistently applying these principles to every aspect of managing this project. Project maintainers who do not follow or enforce the Code of Conduct may be permanently removed from the project team.
17
+
18
+ This code of conduct applies both within project spaces and in public spaces when an individual is representing the project or its community.
19
+
20
+ Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by opening an issue or contacting one or more of the project maintainers.
21
+
22
+ This Code of Conduct is adapted from the [Contributor Covenant](https://www.contributor-covenant.org), version 1.2.0, available at https://www.contributor-covenant.org/version/1/2/0/code-of-conduct.html
23
+
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- mysql_rewinder (0.1.0)
4
+ mysql_rewinder (0.1.1)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
data/LICENSE.txt CHANGED
@@ -1,6 +1,6 @@
1
1
  The MIT License (MIT)
2
2
 
3
- Copyright (c) 2023 Yusuke Sangenya
3
+ Copyright (c) 2023 DeNA
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
data/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # MysqlRewinder
1
+ # MysqlRewinder ![test](https://github.com/github/docs/actions/workflows/test.yml/badge.svg) [![Gem Version](https://badge.fury.io/rb/mysql_rewinder.svg)](https://badge.fury.io/rb/mysql_rewinder)
2
2
 
3
3
  MysqlRewinder is a simple, stable, and fast database cleaner for mysql.
4
4
 
@@ -105,6 +105,14 @@ except_tables = [
105
105
  MysqlRewinder.setup(db_configs, except_tables: except_tables)
106
106
  ```
107
107
 
108
+ ## Contributing
109
+
110
+ Bug reports and pull requests are welcome on GitHub at https://github.com/DeNA/mysql_rewinder. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [code of conduct](https://github.com/DeNA/mysql_rewinder/blob/trunk/CODE_OF_CONDUCT.md).
111
+
112
+ ## Code of Conduct
113
+
114
+ Everyone interacting in the MysqlRewinder project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/DeNA/mysql_rewinder/blob/trunk/CODE_OF_CONDUCT.md).
115
+
108
116
  ## License
109
117
 
110
118
  The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
@@ -20,6 +20,7 @@ class MysqlRewinder
20
20
  target_tables = (tables - @except_tables) & all_tables
21
21
  return if target_tables.empty?
22
22
 
23
+ @client.execute("SET FOREIGN_KEY_CHECKS = 0;")
23
24
  @client.execute(target_tables.map { |table| "DELETE FROM #{table}" }.join(';'))
24
25
  end
25
26
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  class MysqlRewinder
4
- VERSION = "0.1.0"
4
+ VERSION = "0.1.1"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mysql_rewinder
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yusuke Sangenya
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-11-12 00:00:00.000000000 Z
11
+ date: 2024-04-29 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description:
14
14
  email:
@@ -18,6 +18,7 @@ extensions: []
18
18
  extra_rdoc_files: []
19
19
  files:
20
20
  - ".rspec"
21
+ - CODE_OF_CONDUCT.md
21
22
  - Gemfile
22
23
  - Gemfile.lock
23
24
  - LICENSE.txt
@@ -62,7 +63,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
62
63
  - !ruby/object:Gem::Version
63
64
  version: '0'
64
65
  requirements: []
65
- rubygems_version: 3.4.10
66
+ rubygems_version: 3.5.3
66
67
  signing_key:
67
68
  specification_version: 4
68
69
  summary: Simple, stable, and fast database cleaner for mysql