webtranslateit-safe 0.4.1 → 0.4.3

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: c13d43a1bc2191ed6bb313c95e8d69021d884aa4cdfc5a9eebfcd8b2b0b59df8
4
- data.tar.gz: 678ca253610a852b47717c6e711d2873cfca7337a16923a478025cb752e219fe
3
+ metadata.gz: 43afe3f6fffb6bb4178cfd6c6181767f67f7995f2e836d35c9d5c66556b567fb
4
+ data.tar.gz: 3fe840117d0c799b65edcafc92b57f73e7ba928297fe53bc1f8262059404e5fe
5
5
  SHA512:
6
- metadata.gz: dc5f35b12c75f7b7ae027b6285d22fc97affad20d5df71c16a94cda45acaa28aa114a640c6dca33c6c428dfecb0f1749c6d1f6c90ab23136e45486e83e891b7b
7
- data.tar.gz: edd8a9b5fe34ce7eac0ad3ec9fcaeac92d3864db78c164b7d21f6b7593dc0b46064dd7a5024c7104ca26c911d0d63ca5745af68d74178c0a0bc8ed35c02b216c
6
+ metadata.gz: 1ad57b335c7585cea8621bbd6007fcd1f2d10e6fe7ba9fa0b1381ce00ce96eb38eb11925912185e06ab3ba2e69ebec165b2fa9a268c0cbeeb0b765e43b166b6f
7
+ data.tar.gz: c51e5399dc02aa3fe4b0d0bfb99ed6397c9abdbc16ebf5dc8994d056151fcee9d340f0b8085d52f333d00b3eb8d1c0bbbd5b60c28afdde36b7065ed0a821492d
data/CHANGELOG CHANGED
@@ -1,3 +1,12 @@
1
+ 0.4.3
2
+
3
+ * Bug fix on builder.
4
+ * Move version number to gemspec file.
5
+
6
+ 0.4.2
7
+
8
+ * Bug fix on executable
9
+
1
10
  0.4.1
2
11
 
3
12
  * Add ruby 3.2 compantibility
@@ -2,9 +2,9 @@
2
2
 
3
3
  require 'rubygems'
4
4
 
5
- require 'astrails/safe'
5
+ require 'webtranslateit/safe'
6
6
 
7
- include Astrails::Safe
7
+ include WebTranslateIt::Safe
8
8
 
9
9
  def die(msg)
10
10
  puts "ERROR: #{msg}"
@@ -13,7 +13,7 @@ end
13
13
 
14
14
  def usage
15
15
  puts <<-END
16
- Usage: astrails-safe [OPTIONS] CONFIG_FILE
16
+ Usage: webtranslateit-safe [OPTIONS] CONFIG_FILE
17
17
  Options:
18
18
  -h, --help This help screen
19
19
  -v, --verbose be verbose, duh!
@@ -47,7 +47,7 @@ def main
47
47
  unless File.exist?(config_file)
48
48
  die 'Missing configuration file. NOT CREATED! Rerun w/o the -n argument to create a template configuration file.' if is_dry
49
49
 
50
- FileUtils.cp File.join(Astrails::Safe::ROOT, 'templates', 'script.rb'), config_file
50
+ FileUtils.cp File.join(WebTranslateIt::Safe::ROOT, 'templates', 'script.rb'), config_file
51
51
 
52
52
  die "Created default #{config_file}. Please edit and run again."
53
53
  end
@@ -70,9 +70,8 @@ module WebTranslateIt
70
70
  :options, :user, :host, :port, :password, :key, :secret, :bucket,
71
71
  :api_key, :container, :socket, :service_net, :repo_path
72
72
  multi_value :skip_tables, :exclude, :files
73
- hash_value :mysqldump, :tar, :gpg, :keep, :pgdump, :tar, :svndump,
74
- :sftp, :ftp, :mongodump
75
- mixed_value :s3, :local, :cloudfiles
73
+ mixed_value :s3, :local, :cloudfiles, :sftp, :mysqldump, :tar, :gpg, :keep, :pgdump, :tar, :svndump,
74
+ :ftp, :mongodump
76
75
  collection :database, :archive, :repo
77
76
 
78
77
  private
@@ -1,5 +1,3 @@
1
- require 'webtranslateit/safe/version'
2
-
3
1
  require 'aws/s3'
4
2
  require 'cloudfiles'
5
3
  require 'net/sftp'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: webtranslateit-safe
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.1
4
+ version: 0.4.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Edouard Briere
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2023-05-20 00:00:00.000000000 Z
12
+ date: 2023-06-29 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: aws-s3
@@ -64,23 +64,8 @@ executables:
64
64
  extensions: []
65
65
  extra_rdoc_files: []
66
66
  files:
67
- - ".autotest"
68
- - ".document"
69
- - ".github/dependabot.yml"
70
- - ".github/release-drafter.yml"
71
- - ".github/workflows/ci.yml"
72
- - ".github/workflows/release-drafter.yml"
73
- - ".gitignore"
74
- - ".rspec"
75
- - ".rubocop.yml"
76
- - ".rubocop_todo.yml"
77
67
  - CHANGELOG
78
- - Gemfile
79
- - Gemfile.lock
80
- - LICENSE.txt
81
68
  - README.markdown
82
- - Rakefile
83
- - TODO
84
69
  - bin/webtranslateit-safe
85
70
  - lib/extensions/mktmpdir.rb
86
71
  - lib/webtranslateit/safe.rb
@@ -104,23 +89,6 @@ files:
104
89
  - lib/webtranslateit/safe/stream.rb
105
90
  - lib/webtranslateit/safe/svndump.rb
106
91
  - lib/webtranslateit/safe/tmp_file.rb
107
- - lib/webtranslateit/safe/version.rb
108
- - spec/integration/archive_integration_spec.rb
109
- - spec/integration/cleanup_spec.rb
110
- - spec/spec_helper.rb
111
- - spec/webtranslateit/safe/archive_spec.rb
112
- - spec/webtranslateit/safe/cloudfiles_spec.rb
113
- - spec/webtranslateit/safe/config_spec.rb
114
- - spec/webtranslateit/safe/gpg_spec.rb
115
- - spec/webtranslateit/safe/gzip_spec.rb
116
- - spec/webtranslateit/safe/local_spec.rb
117
- - spec/webtranslateit/safe/mongodump_spec.rb
118
- - spec/webtranslateit/safe/mysqldump_spec.rb
119
- - spec/webtranslateit/safe/pgdump_spec.rb
120
- - spec/webtranslateit/safe/s3_spec.rb
121
- - spec/webtranslateit/safe/svndump_spec.rb
122
- - templates/script.rb
123
- - webtranslateit-safe.gemspec
124
92
  homepage: http://github.com/webtranslateit/safe
125
93
  licenses:
126
94
  - MIT
@@ -141,7 +109,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
141
109
  - !ruby/object:Gem::Version
142
110
  version: '0'
143
111
  requirements: []
144
- rubygems_version: 3.4.13
112
+ rubygems_version: 3.4.14
145
113
  signing_key:
146
114
  specification_version: 4
147
115
  summary: Backup filesystem and databases (MySQL and PostgreSQL) locally or to a remote
data/.autotest DELETED
@@ -1,3 +0,0 @@
1
- Autotest.add_hook(:initialize) do |at|
2
- at.add_mapping(%r{lib/webtranslateit/safe/config/.*\.rb$}, true) {'spec/webtranslateit/safe/config_spec.rb'}
3
- end
data/.document DELETED
@@ -1,5 +0,0 @@
1
- README.rdoc
2
- lib/**/*.rb
3
- bin/*
4
- features/**/*.feature
5
- LICENSE
@@ -1,26 +0,0 @@
1
- # Please see the documentation for all configuration options:
2
- # https://help.github.com/github/administering-a-repository/configuration-options-for-dependency-updates
3
-
4
- version: 2
5
- updates:
6
- - package-ecosystem: "bundler"
7
- directory: "/"
8
- schedule:
9
- interval: "weekly"
10
- day: "monday"
11
- time: "04:00"
12
- reviewers:
13
- - edouard
14
- assignees:
15
- - edouard
16
-
17
- - package-ecosystem: github-actions
18
- directory: "/"
19
- schedule:
20
- interval: weekly
21
- day: monday
22
- time: "04:00"
23
- reviewers:
24
- - edouard
25
- assignees:
26
- - edouard
@@ -1,36 +0,0 @@
1
- name-template: '$RESOLVED_VERSION 🌈'
2
- tag-template: '$RESOLVED_VERSION'
3
- categories:
4
- - title: '🚀 Features'
5
- labels:
6
- - 'feature'
7
- - 'enhancement'
8
- - title: '🐛 Bug Fixes'
9
- labels:
10
- - 'bug'
11
- - 'design'
12
- - 'performance'
13
- - title: '🧰 Maintenance'
14
- labels:
15
- - 'admin'
16
- - 'refactoring'
17
- - 'dependencies'
18
- - 'github_actions'
19
- - 'tests'
20
- change-template: '- $TITLE @$AUTHOR (#$NUMBER)'
21
- change-title-escapes: '\<*_&' # You can add # and @ to disable mentions, and add ` to disable code blocks.
22
- version-resolver:
23
- major:
24
- labels:
25
- - 'major'
26
- minor:
27
- labels:
28
- - 'minor'
29
- patch:
30
- labels:
31
- - 'patch'
32
- default: patch
33
- template: |
34
- ## Changes
35
-
36
- $CHANGES
@@ -1,51 +0,0 @@
1
- # This workflow uses actions that are not certified by GitHub.
2
- # They are provided by a third-party and are governed by
3
- # separate terms of service, privacy policy, and support
4
- # documentation.
5
- # This workflow will download a prebuilt Ruby version, install dependencies and run tests with Rake
6
- # For more information see: https://github.com/marketplace/actions/setup-ruby-jruby-and-truffleruby
7
-
8
- name: Ruby
9
-
10
- on: push
11
-
12
- jobs:
13
- test:
14
- env:
15
- COVERAGE: Y
16
- CC_TEST_REPORTER_ID: 9eb2d68da2519eb132eb0c3e063c4b899247c7ebe390a68c286545fc9f346286
17
-
18
- runs-on: ubuntu-latest
19
- strategy:
20
- matrix:
21
- ruby-version: ['3.2']
22
-
23
- steps:
24
- - uses: actions/checkout@v3
25
- - name: Set up Ruby
26
- # To automatically get bug fixes and new Ruby versions for ruby/setup-ruby,
27
- # change this to (see https://github.com/ruby/setup-ruby#versioning):
28
- uses: ruby/setup-ruby@v1
29
- with:
30
- ruby-version: ${{ matrix.ruby-version }}
31
- bundler-cache: true # runs 'bundle install' and caches installed gems automatically
32
- - name: Run tests
33
- run: bundle exec rspec
34
-
35
- linters:
36
- name: Linters
37
- runs-on: ubuntu-22.04
38
- timeout-minutes: 10
39
-
40
- steps:
41
- - name: Checkout repository
42
- uses: actions/checkout@v3
43
-
44
- - name: Install ruby and gems
45
- uses: ruby/setup-ruby@v1
46
- with:
47
- ruby-version: 3.2.0 # Use .ruby-version file instead of duplicating here and in Gemfile?
48
- bundler-cache: true
49
-
50
- - name: Run ruby linter
51
- run: bundle exec rubocop --format github
@@ -1,29 +0,0 @@
1
- name: Release Drafter
2
-
3
- on:
4
- push:
5
- # branches to consider in the event; optional, defaults to all
6
- branches:
7
- - master
8
- # pull_request event is required only for autolabeler
9
- pull_request:
10
- # Only following types are handled by the action, but one can default to all as well
11
- types: [opened, reopened, synchronize]
12
-
13
- jobs:
14
- update_release_draft:
15
- runs-on: ubuntu-latest
16
- steps:
17
- # (Optional) GitHub Enterprise requires GHE_HOST variable set
18
- #- name: Set GHE_HOST
19
- # run: |
20
- # echo "GHE_HOST=${GITHUB_SERVER_URL##https:\/\/}" >> $GITHUB_ENV
21
-
22
- # Drafts your next Release notes as Pull Requests are merged into "master"
23
- - uses: release-drafter/release-drafter@v5
24
- # (Optional) specify config name to use, relative to .github/. Default: release-drafter.yml
25
- # with:
26
- # config-name: my-config.yml
27
- # disable-autolabeler: true
28
- env:
29
- GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
data/.gitignore DELETED
@@ -1,18 +0,0 @@
1
- *.gem
2
- *.rbc
3
- .bundle
4
- .config
5
- .rubocop-http*
6
- .yardoc
7
- InstalledFiles
8
- _yardoc
9
- coverage
10
- doc/
11
- lib/bundler/man
12
- pkg
13
- rdoc
14
- spec/reports
15
- test/tmp
16
- test/version_tmp
17
- tmp
18
- tags
data/.rspec DELETED
@@ -1,3 +0,0 @@
1
- --colour
2
- --format d
3
- --profile
data/.rubocop.yml DELETED
@@ -1,8 +0,0 @@
1
- inherit_from:
2
- - https://raw.githubusercontent.com/webtranslateit/webtranslateit/main/.rubocop_common.yml
3
- - .rubocop_todo.yml
4
-
5
- AllCops:
6
- TargetRubyVersion: 3.2
7
- Exclude:
8
- - vendor/bundle/**/*