pansophy 1.1.0 → 1.2.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: 533f6b740d5a0574181977d2bbd5291880c980e1ba171a4b9fd988a10217c911
4
- data.tar.gz: b97a51bb55d417506e3e2f42529cfe250737307a96bd966600ce772fcc0b0ec0
3
+ metadata.gz: de34ea76e43128a0992a5c65b1340f7d89d06f7ed18b99f4482e8424f2ae88aa
4
+ data.tar.gz: 7ea83691dcd7f194a8e83c3053443c9754134c073ca8a216a8632384a0ea269b
5
5
  SHA512:
6
- metadata.gz: 91b67b1cd044a8eee7ca2628a19355cf013326737e00670fad5c5cac3faa6eed42d4e93db3958aa29c2233c8538bea7f22a60161624e308a0cb13739d34823b2
7
- data.tar.gz: fcc6c86ecd333a1bca6ab009ba2605f94ff1ca0339b3201ec5a5020537f313e21e8fe5103dbb3395582c6c4d803f3481bdd5b74ca7262689d948a725e7e23b38
6
+ metadata.gz: 23bd0aaa2784bf8874ae0c9f8009d0907c46dce2b8dc2a636c7df7b638e1d691419843a6c8c3ddc6bda0314ccd6e01d95ac60ab070f43f0b3ff87aaada894f3c
7
+ data.tar.gz: 230869bccd6ef9ad83075f95f6f01126940e11bd021b76a1aed038f74aef57290518adf7f81853589eef93d8982e1ac046182f46f0f8420671a0d598d66d148b
@@ -0,0 +1,6 @@
1
+ version: 2
2
+ updates:
3
+ - package-ecosystem: "bundler"
4
+ directory: "/"
5
+ schedule:
6
+ interval: "daily"
@@ -0,0 +1,59 @@
1
+ name: Release
2
+
3
+ on:
4
+ push:
5
+ tags:
6
+ - "v*"
7
+
8
+ jobs:
9
+ build:
10
+ name: Build
11
+ runs-on: ubuntu-latest
12
+ steps:
13
+ - name: Checkout
14
+ uses: actions/checkout@v2
15
+ - uses: ruby/setup-ruby@v1
16
+ with:
17
+ bundler-cache: true
18
+ - run: bundle exec rake
19
+
20
+ release:
21
+ needs: build
22
+ name: Release
23
+ runs-on: ubuntu-latest
24
+ steps:
25
+ - name: Checkout
26
+ uses: actions/checkout@v2
27
+
28
+ - name: Generate Changelog
29
+ run: |
30
+ # Get version from github ref (remove 'refs/tags/' and prefix 'v')
31
+ version="${GITHUB_REF#refs/tags/v}"
32
+ npx changelog-parser CHANGELOG.md | jq -cr ".versions | .[] | select(.version == \"$version\") | .body" > ${{ github.workflow }}-CHANGELOG.txt
33
+
34
+ - name: Release
35
+ uses: softprops/action-gh-release@v1
36
+ with:
37
+ body_path: ${{ github.workflow }}-CHANGELOG.txt
38
+ env:
39
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
40
+
41
+ publish:
42
+ needs: [build, release]
43
+ name: Publish
44
+ runs-on: ubuntu-latest
45
+
46
+ steps:
47
+ - uses: actions/checkout@v2
48
+ - uses: ruby/setup-ruby@v1
49
+
50
+ - name: Publish to RubyGems
51
+ run: |
52
+ mkdir -p $HOME/.gem
53
+ touch $HOME/.gem/credentials
54
+ chmod 0600 $HOME/.gem/credentials
55
+ printf -- "---\n:rubygems_api_key: ${GEM_HOST_API_KEY}\n" > $HOME/.gem/credentials
56
+ gem build *.gemspec
57
+ gem push *.gem
58
+ env:
59
+ GEM_HOST_API_KEY: "${{secrets.RUBYGEMS_AUTH_TOKEN}}"
@@ -0,0 +1,16 @@
1
+ name: Build and Test
2
+ on: [push, pull_request]
3
+ jobs:
4
+ test:
5
+ strategy:
6
+ fail-fast: false
7
+ matrix:
8
+ ruby: ["2.6", "2.7", "3.0"]
9
+ runs-on: ubuntu-latest
10
+ steps:
11
+ - uses: actions/checkout@v2
12
+ - uses: ruby/setup-ruby@v1
13
+ with:
14
+ ruby-version: ${{ matrix.ruby }}
15
+ bundler-cache: true
16
+ - run: bundle exec rake
@@ -1 +1 @@
1
- 2.6.3
1
+ 3.0.0
@@ -1,5 +1,9 @@
1
1
  # Change Log
2
2
 
3
+ ## 1.2.0
4
+
5
+ - [TT-8614] Update to build with github actions / ruby 3.0 / rails 6.1
6
+
3
7
  ## [1.1.0]
4
8
  ### Removed
5
9
  - [TT-7135] Remove the Anima dependency
data/README.md CHANGED
@@ -1,18 +1,18 @@
1
1
  # Pansophy
2
2
 
3
3
  [![Gem Version](https://badge.fury.io/rb/pansophy.svg)](http://badge.fury.io/rb/pansophy)
4
- [![Build Status](https://travis-ci.org/sealink/pansophy.svg?branch=master)](https://travis-ci.org/sealink/pansophy)
4
+ [![Build Status](https://github.com/sealink/pansophy/workflows/Build%20and%20Test/badge.svg?branch=master)](https://github.com/sealink/pansophy/actions)
5
5
  [![Coverage Status](https://coveralls.io/repos/sealink/pansophy/badge.svg)](https://coveralls.io/r/sealink/pansophy)
6
- [![Dependency Status](https://gemnasium.com/sealink/pansophy.svg)](https://gemnasium.com/sealink/pansophy)
7
6
  [![Code Climate](https://codeclimate.com/github/sealink/pansophy/badges/gpa.svg)](https://codeclimate.com/github/sealink/pansophy)
8
7
 
9
8
  Pansophy allows different applications to share knowledge via a centralised remote repository
10
9
 
11
10
  The current version only works with AWS S3 buckets and allows:
12
- * pulling a remote directory to a local directory
13
- * merging a remote directory with a local directory
14
- * pushing a local directory to a remote directory
15
- * reading the contents of a remote file
11
+
12
+ - pulling a remote directory to a local directory
13
+ - merging a remote directory with a local directory
14
+ - pushing a local directory to a remote directory
15
+ - reading the contents of a remote file
16
16
 
17
17
  ## Installation
18
18
 
@@ -33,18 +33,21 @@ Or install it yourself as:
33
33
  ## Usage
34
34
 
35
35
  To pull a remote directory to a local directory
36
+
36
37
  ```ruby
37
38
  # Pass overwrite: true to entirely replace the local directory.
38
39
  Pansophy.pull('bucket_name', 'remote_directory', 'local_directory', overwrite: true)
39
40
  ```
40
41
 
41
42
  To merge a remote directory with a local directory
43
+
42
44
  ```ruby
43
45
  # Pass overwrite: true to entirely replace the remote directory.
44
46
  Pansophy.merge('bucket_name', 'remote_directory', 'local_directory', overwrite: true)
45
47
  ```
46
48
 
47
49
  To push a local directory to a remote directory
50
+
48
51
  ```ruby
49
52
  # Pass overwrite: true to overwrite local files with remote files.
50
53
  # Local files without a corresponding remote file remain untouched.
@@ -52,11 +55,13 @@ Pansophy.push('bucket_name', 'remote_directory', 'local_directory', overwrite: t
52
55
  ```
53
56
 
54
57
  To read the contents of a remote file
58
+
55
59
  ```ruby
56
60
  Pansophy.read('bucket_name', 'remote_file_path')
57
61
  ```
58
62
 
59
63
  To read the head of a remote file
64
+
60
65
  ```ruby
61
66
  Pansophy.head('bucket_name', 'remote_file_path')
62
67
  ```
@@ -67,6 +72,18 @@ After checking out the repo, run `bin/setup` to install dependencies. Then, run
67
72
 
68
73
  To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release` to create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
69
74
 
75
+ ## Release
76
+
77
+ To publish a new version of this gem the following steps must be taken.
78
+
79
+ * Update the version in the following files
80
+ ```
81
+ CHANGELOG.md
82
+ lib/pansophy/version.rb
83
+ ````
84
+ * Create a tag using the format v0.1.0
85
+ * Follow build progress in GitHub actions
86
+
70
87
  ## Contributing
71
88
 
72
89
  1. Fork it ( https://github.com/sealink/pansophy/fork )
@@ -1,3 +1,3 @@
1
1
  module Pansophy
2
- VERSION = '1.1.0'
2
+ VERSION = '1.2.0'
3
3
  end
@@ -21,9 +21,9 @@ Gem::Specification.new do |spec|
21
21
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
22
22
  spec.require_paths = ['lib']
23
23
 
24
- spec.required_ruby_version = '>= 2.5'
24
+ spec.required_ruby_version = '>= 2.6'
25
25
 
26
- spec.add_dependency 'fog-aws', '~> 2.0'
26
+ spec.add_dependency 'fog-aws', '>= 2', '< 4'
27
27
  spec.add_dependency 'mime-types'
28
28
  spec.add_dependency 'adamantium'
29
29
 
@@ -35,5 +35,5 @@ Gem::Specification.new do |spec|
35
35
  spec.add_development_dependency 'simplecov-rcov'
36
36
  spec.add_development_dependency 'coveralls'
37
37
  spec.add_development_dependency 'rubocop'
38
- spec.add_development_dependency 'travis'
38
+ spec.add_development_dependency 'pry-byebug'
39
39
  end
metadata CHANGED
@@ -1,29 +1,35 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pansophy
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alessandro Berardi
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-04-20 00:00:00.000000000 Z
11
+ date: 2021-01-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: fog-aws
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - "~>"
17
+ - - ">="
18
+ - !ruby/object:Gem::Version
19
+ version: '2'
20
+ - - "<"
18
21
  - !ruby/object:Gem::Version
19
- version: '2.0'
22
+ version: '4'
20
23
  type: :runtime
21
24
  prerelease: false
22
25
  version_requirements: !ruby/object:Gem::Requirement
23
26
  requirements:
24
- - - "~>"
27
+ - - ">="
28
+ - !ruby/object:Gem::Version
29
+ version: '2'
30
+ - - "<"
25
31
  - !ruby/object:Gem::Version
26
- version: '2.0'
32
+ version: '4'
27
33
  - !ruby/object:Gem::Dependency
28
34
  name: mime-types
29
35
  requirement: !ruby/object:Gem::Requirement
@@ -165,7 +171,7 @@ dependencies:
165
171
  - !ruby/object:Gem::Version
166
172
  version: '0'
167
173
  - !ruby/object:Gem::Dependency
168
- name: travis
174
+ name: pry-byebug
169
175
  requirement: !ruby/object:Gem::Requirement
170
176
  requirements:
171
177
  - - ">="
@@ -186,11 +192,13 @@ executables: []
186
192
  extensions: []
187
193
  extra_rdoc_files: []
188
194
  files:
195
+ - ".github/dependabot.yml"
196
+ - ".github/workflows/release.yml"
197
+ - ".github/workflows/ruby.yml"
189
198
  - ".gitignore"
190
199
  - ".rspec"
191
200
  - ".rubocop.yml"
192
201
  - ".ruby-version"
193
- - ".travis.yml"
194
202
  - CHANGELOG.md
195
203
  - CODE_OF_CONDUCT.md
196
204
  - Gemfile
@@ -233,14 +241,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
233
241
  requirements:
234
242
  - - ">="
235
243
  - !ruby/object:Gem::Version
236
- version: '2.5'
244
+ version: '2.6'
237
245
  required_rubygems_version: !ruby/object:Gem::Requirement
238
246
  requirements:
239
247
  - - ">="
240
248
  - !ruby/object:Gem::Version
241
249
  version: '0'
242
250
  requirements: []
243
- rubygems_version: 3.0.3
251
+ rubygems_version: 3.2.3
244
252
  signing_key:
245
253
  specification_version: 4
246
254
  summary: Information sharing via centralised repository
@@ -1,12 +0,0 @@
1
- language: ruby
2
- rvm:
3
- - 2.5
4
- - 2.6
5
- - 2.7
6
- notifications:
7
- email:
8
- - support@travellink.com.au
9
- flowdock:
10
- secure: JUt4oMDS2rrSOzfb1VIDBBgl3Vox97PXAVc0mKjy8zvOQmTsfsGF6Eum85inEThjavm+WRmKffX66MjSSZ6wDWpaAmELh7LihQszJNhHejSfkSFJIc1v0AtrEoDpWEkh4bboO8eFMn+7Xw6ESZAzzK7k9791U9cuGShkFSnN76w=
11
- sudo: false
12
- cache: bundler