snapshot_archive 0.3.0 → 0.6.0

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: 39922e21c1be277d98cd3286c0e5af704208c4699f8131d37691c9f9e1c789ab
4
- data.tar.gz: 90d276037f30a35799d9e868f7ef391187d4ef1864ccec3dbb8d51a9108690c6
3
+ metadata.gz: ce054d819d2904bc09ce9745be4e7183e82865180c8dad43377618b5a2b9dc3f
4
+ data.tar.gz: b302b75328f3a33a50de9a7490177418030b599bf9cccaaacf55592a99406443
5
5
  SHA512:
6
- metadata.gz: 1a2bf6c53eb910b5f2b2843104018db8e248cda32035fd6a5658b17c1fde22bd32de5d506e8b1cfa5308e4ceb56c4dbe66136a51e3e251b75155ebff1460f377
7
- data.tar.gz: 70a956f0b31dbb41e30e72bc4bccb54fc0c6684e075637256a98306a34c54bbabe53f96c99a5041193522a80295baffea8d756c2331d1396df6c5be1e4ca3176
6
+ metadata.gz: 676aa9b24a464fc46ebaad107e5a7517a5243cf947e5d5ef49e4a941931b652339a6a0253e1097b62f1e103e441971538c0267e7300def7f11d5a53881c2fd08
7
+ data.tar.gz: d5f5c0094fb81ea474c40c951bedb4e965fe537ff35fadbd3329cd1f5232a2dc8570ea8faf82eef946e16b7c8f918f142087ba88949248bed063c9a90e4dea72
data/.ruby-version CHANGED
@@ -1 +1 @@
1
- 2.7.5
1
+ 3.2.3
data/CODE_OF_CONDUCT.md CHANGED
@@ -1,84 +1 @@
1
- # Contributor Covenant Code of Conduct
2
-
3
- ## Our Pledge
4
-
5
- We as members, contributors, and leaders pledge to make participation in our community a harassment-free experience for everyone, regardless of age, body size, visible or invisible disability, ethnicity, sex characteristics, gender identity and expression, level of experience, education, socio-economic status, nationality, personal appearance, race, religion, or sexual identity and orientation.
6
-
7
- We pledge to act and interact in ways that contribute to an open, welcoming, diverse, inclusive, and healthy community.
8
-
9
- ## Our Standards
10
-
11
- Examples of behavior that contributes to a positive environment for our community include:
12
-
13
- * Demonstrating empathy and kindness toward other people
14
- * Being respectful of differing opinions, viewpoints, and experiences
15
- * Giving and gracefully accepting constructive feedback
16
- * Accepting responsibility and apologizing to those affected by our mistakes, and learning from the experience
17
- * Focusing on what is best not just for us as individuals, but for the overall community
18
-
19
- Examples of unacceptable behavior include:
20
-
21
- * The use of sexualized language or imagery, and sexual attention or
22
- advances of any kind
23
- * Trolling, insulting or derogatory comments, and personal or political attacks
24
- * Public or private harassment
25
- * Publishing others' private information, such as a physical or email
26
- address, without their explicit permission
27
- * Other conduct which could reasonably be considered inappropriate in a
28
- professional setting
29
-
30
- ## Enforcement Responsibilities
31
-
32
- Community leaders are responsible for clarifying and enforcing our standards of acceptable behavior and will take appropriate and fair corrective action in response to any behavior that they deem inappropriate, threatening, offensive, or harmful.
33
-
34
- Community leaders 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, and will communicate reasons for moderation decisions when appropriate.
35
-
36
- ## Scope
37
-
38
- This Code of Conduct applies within all community spaces, and also applies when an individual is officially representing the community in public spaces. Examples of representing our community include using an official e-mail address, posting via an official social media account, or acting as an appointed representative at an online or offline event.
39
-
40
- ## Enforcement
41
-
42
- Instances of abusive, harassing, or otherwise unacceptable behavior may be reported to the community leaders responsible for enforcement at pete.kinnecom@appfolio.com. All complaints will be reviewed and investigated promptly and fairly.
43
-
44
- All community leaders are obligated to respect the privacy and security of the reporter of any incident.
45
-
46
- ## Enforcement Guidelines
47
-
48
- Community leaders will follow these Community Impact Guidelines in determining the consequences for any action they deem in violation of this Code of Conduct:
49
-
50
- ### 1. Correction
51
-
52
- **Community Impact**: Use of inappropriate language or other behavior deemed unprofessional or unwelcome in the community.
53
-
54
- **Consequence**: A private, written warning from community leaders, providing clarity around the nature of the violation and an explanation of why the behavior was inappropriate. A public apology may be requested.
55
-
56
- ### 2. Warning
57
-
58
- **Community Impact**: A violation through a single incident or series of actions.
59
-
60
- **Consequence**: A warning with consequences for continued behavior. No interaction with the people involved, including unsolicited interaction with those enforcing the Code of Conduct, for a specified period of time. This includes avoiding interactions in community spaces as well as external channels like social media. Violating these terms may lead to a temporary or permanent ban.
61
-
62
- ### 3. Temporary Ban
63
-
64
- **Community Impact**: A serious violation of community standards, including sustained inappropriate behavior.
65
-
66
- **Consequence**: A temporary ban from any sort of interaction or public communication with the community for a specified period of time. No public or private interaction with the people involved, including unsolicited interaction with those enforcing the Code of Conduct, is allowed during this period. Violating these terms may lead to a permanent ban.
67
-
68
- ### 4. Permanent Ban
69
-
70
- **Community Impact**: Demonstrating a pattern of violation of community standards, including sustained inappropriate behavior, harassment of an individual, or aggression toward or disparagement of classes of individuals.
71
-
72
- **Consequence**: A permanent ban from any sort of public interaction within the community.
73
-
74
- ## Attribution
75
-
76
- This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 2.0,
77
- available at https://www.contributor-covenant.org/version/2/0/code_of_conduct.html.
78
-
79
- Community Impact Guidelines were inspired by [Mozilla's code of conduct enforcement ladder](https://github.com/mozilla/diversity).
80
-
81
- [homepage]: https://www.contributor-covenant.org
82
-
83
- For answers to common questions about this code of conduct, see the FAQ at
84
- https://www.contributor-covenant.org/faq. Translations are available at https://www.contributor-covenant.org/translations.
1
+ Be excellent to each other
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- snapshot_archive (0.3.0)
4
+ snapshot_archive (0.5.0)
5
5
  commander (~> 4.5)
6
6
 
7
7
  GEM
data/README.md CHANGED
@@ -6,6 +6,9 @@ snapshot and restore it later! Build your own snapshotting behavior in a
6
6
  configuration file so that you can snapshot any stateful service you use during
7
7
  development.
8
8
 
9
+ By default will make mysql backups for any development databases for the rails
10
+ app in your CWD.
11
+
9
12
  ## Installation
10
13
 
11
14
  ```
@@ -35,7 +35,7 @@ module SnapshotArchive
35
35
  end
36
36
 
37
37
  def call
38
- metadata.fetch("stores").each do |store_metadata|
38
+ metadata.fetch("stores").reverse.each do |store_metadata|
39
39
  store = Cfg.instance.store(store_metadata.fetch("type"))
40
40
  store.restore(store_metadata)
41
41
  end
@@ -44,6 +44,7 @@ module SnapshotArchive
44
44
  :pwd,
45
45
  :repository,
46
46
  :shell,
47
+ :store,
47
48
  :stores,
48
49
  ].each do |meth|
49
50
  define_method(meth) do |*args|
@@ -42,6 +42,9 @@ module SnapshotArchive
42
42
  path: #{dir}
43
43
  ----------------------
44
44
  #{message}
45
+
46
+ Full metadata:
47
+ #{JSON.pretty_generate(metadata.dig("archive", "stores"))}
45
48
  TXT
46
49
  end
47
50
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module SnapshotArchive
4
- VERSION = "0.3.0"
4
+ VERSION = "0.6.0"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: snapshot_archive
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.6.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Pete Kinnecom
8
- autorequire:
8
+ autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-04-19 00:00:00.000000000 Z
11
+ date: 2024-03-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: commander
@@ -24,7 +24,7 @@ dependencies:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
26
  version: '4.5'
27
- description:
27
+ description:
28
28
  email:
29
29
  - git@k7u7.com
30
30
  executables:
@@ -54,7 +54,6 @@ files:
54
54
  - lib/snapshot_archive/shell.rb
55
55
  - lib/snapshot_archive/stores.rb
56
56
  - lib/snapshot_archive/version.rb
57
- - lib/template.txt
58
57
  - script/install
59
58
  - snapshot_archive.gemspec
60
59
  homepage: https://github.com/petekinnecom/snapshot_archive
@@ -64,7 +63,7 @@ metadata:
64
63
  allowed_push_host: https://rubygems.org
65
64
  homepage_uri: https://github.com/petekinnecom/snapshot_archive
66
65
  source_code_uri: https://github.com/petekinnecom/snapshot_archive
67
- post_install_message:
66
+ post_install_message:
68
67
  rdoc_options: []
69
68
  require_paths:
70
69
  - lib
@@ -79,8 +78,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
79
78
  - !ruby/object:Gem::Version
80
79
  version: '0'
81
80
  requirements: []
82
- rubygems_version: 3.3.4
83
- signing_key:
81
+ rubygems_version: 3.4.19
82
+ signing_key:
84
83
  specification_version: 4
85
84
  summary: Save and restore snapshots of stateful services to a central archive. The
86
85
  default action is to backup all databases for the current rails apps, however, custom
data/lib/template.txt DELETED
@@ -1,5 +0,0 @@
1
-
2
-
3
- # Follows same rules as a git commit message. First line is summary, followed by
4
- # more detailed info. Set `export EDITOR="..."` to use a different editor for
5
- # this message. (eg. `export EDITOR="code --wait"` to use VSCode)