pansophy 1.1.0 → 1.3.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: 6e7b7bdfc98f13560a84d0acedb2538d396811306383b0ca95b9930e298a879e
4
+ data.tar.gz: c41cfacd903889a1bef489d4aea017192da0e09e25ca748dcfb4c006b7e876ee
5
5
  SHA512:
6
- metadata.gz: 91b67b1cd044a8eee7ca2628a19355cf013326737e00670fad5c5cac3faa6eed42d4e93db3958aa29c2233c8538bea7f22a60161624e308a0cb13739d34823b2
7
- data.tar.gz: fcc6c86ecd333a1bca6ab009ba2605f94ff1ca0339b3201ec5a5020537f313e21e8fe5103dbb3395582c6c4d803f3481bdd5b74ca7262689d948a725e7e23b38
6
+ metadata.gz: ce09111b5ffae7e54d69229209ccd02b02d43503d65ec6637b012d439abb52c3607cba4e0f4cfb9c12679d116466987c60dd34b76cf46fcb5bc719462d7d24d4
7
+ data.tar.gz: 67ee9572eeeac576ec125af81a33ee9bbc0ad363732402addbb7e397b778c4533cd74240860a113a3d48b4132cda15383373d8dbb9bde430f3b9a5fa41a5031c
@@ -0,0 +1,21 @@
1
+ # The commits that did automated reformatting. You can ignore them
2
+
3
+ # during git-blame with `--ignore-rev` or `--ignore-revs-file`.
4
+
5
+ # You can also globally configure GIT with the following command
6
+
7
+ #
8
+
9
+ # $ git config --add 'blame.ignoreRevsFile' '.git-blame-ignore-revs'
10
+
11
+ #
12
+
13
+ # Example entries:
14
+
15
+ #
16
+
17
+ # <full commit hash> # initial black-format
18
+
19
+ # <full commit hash> # rename something internal
20
+
21
+ 27290da9a34b8e47cd13007adc8616c66d47c629 # Pretty CHANGELOG.md
@@ -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: ["3.0", "3.1", "3.2"]
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
data/.ruby-version CHANGED
@@ -1 +1 @@
1
- 2.6.3
1
+ 3.2.0
data/CHANGELOG.md CHANGED
@@ -1,59 +1,94 @@
1
1
  # Change Log
2
2
 
3
+ ## [1.3.0]
4
+
5
+ ### Changed
6
+
7
+ - [TT-8614] Update to build with github actions / ruby 3.0 / rails 6.1
8
+ - [PLAT-1175] Update ruby build to 3.2
9
+
3
10
  ## [1.1.0]
11
+
4
12
  ### Removed
13
+
5
14
  - [TT-7135] Remove the Anima dependency
6
15
 
7
16
  ## [1.0.0]
17
+
8
18
  ### Added
19
+
9
20
  - [DO-228] Upgrade the AWS Fog dependency
10
21
 
11
22
  ## [0.6.0]
23
+
12
24
  ### Added
25
+
13
26
  - [DO-90] Support using EC2 profile when fetching configuration files
14
27
 
15
28
  ## [0.5.6]
29
+
16
30
  ### Changed
31
+
17
32
  - Allow specifying file attributes when creating files
18
33
 
19
34
  ## [0.5.5]
35
+
20
36
  ### Fixed
37
+
21
38
  - Remove overly strict dependencies
22
39
 
23
40
  ## [0.5.4]
41
+
24
42
  ### Fixed
43
+
25
44
  - Fix issue when writing files that contain unicode characters
26
45
 
27
46
  ## [0.5.3]
47
+
28
48
  ### Changed
49
+
29
50
  - Use coverage kit to enforce maximum coverage
30
51
 
31
52
  ### Fixed
53
+
32
54
  - [TT-1616] Reset Excon cipher list to the default which fixes connection issue from JRuby
33
55
 
34
56
  ## [0.5.2]
57
+
35
58
  ### Fixed
59
+
36
60
  - Removes strict version dependency for mime-types
37
61
 
38
62
  ## [0.5.1]
63
+
39
64
  ### Fixed
65
+
40
66
  - Adds missing mime-types dependency for fog-aws 0.9
41
67
 
42
68
  ## [0.5.0]
69
+
43
70
  ### Changed
71
+
44
72
  - Autoload tasks for rakefile
45
73
 
46
74
  ## [0.4.0]
75
+
47
76
  ### Added
77
+
48
78
  - File Fetching
49
79
 
50
80
  ## [0.3.0]
81
+
51
82
  ### Added
83
+
52
84
  - Reading file head
53
85
 
54
86
  ### Changed
87
+
55
88
  - Require ruby 2.1+
56
89
 
57
90
  ## [0.2.6]
91
+
58
92
  ### Added
93
+
59
94
  - Compatibility with ruby 1.9
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.3.0'
3
3
  end
data/pansophy.gemspec CHANGED
@@ -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 = '>= 3.0'
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
 
@@ -33,7 +33,6 @@ Gem::Specification.new do |spec|
33
33
  spec.add_development_dependency 'rspec'
34
34
  spec.add_development_dependency 'coverage-kit'
35
35
  spec.add_development_dependency 'simplecov-rcov'
36
- spec.add_development_dependency 'coveralls'
37
36
  spec.add_development_dependency 'rubocop'
38
- spec.add_development_dependency 'travis'
37
+ spec.add_development_dependency 'pry-byebug'
39
38
  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.3.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: 2023-01-18 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
+ - - ">="
25
28
  - !ruby/object:Gem::Version
26
- version: '2.0'
29
+ version: '2'
30
+ - - "<"
31
+ - !ruby/object:Gem::Version
32
+ version: '4'
27
33
  - !ruby/object:Gem::Dependency
28
34
  name: mime-types
29
35
  requirement: !ruby/object:Gem::Requirement
@@ -136,20 +142,6 @@ dependencies:
136
142
  - - ">="
137
143
  - !ruby/object:Gem::Version
138
144
  version: '0'
139
- - !ruby/object:Gem::Dependency
140
- name: coveralls
141
- requirement: !ruby/object:Gem::Requirement
142
- requirements:
143
- - - ">="
144
- - !ruby/object:Gem::Version
145
- version: '0'
146
- type: :development
147
- prerelease: false
148
- version_requirements: !ruby/object:Gem::Requirement
149
- requirements:
150
- - - ">="
151
- - !ruby/object:Gem::Version
152
- version: '0'
153
145
  - !ruby/object:Gem::Dependency
154
146
  name: rubocop
155
147
  requirement: !ruby/object:Gem::Requirement
@@ -165,7 +157,7 @@ dependencies:
165
157
  - !ruby/object:Gem::Version
166
158
  version: '0'
167
159
  - !ruby/object:Gem::Dependency
168
- name: travis
160
+ name: pry-byebug
169
161
  requirement: !ruby/object:Gem::Requirement
170
162
  requirements:
171
163
  - - ">="
@@ -186,11 +178,14 @@ executables: []
186
178
  extensions: []
187
179
  extra_rdoc_files: []
188
180
  files:
181
+ - ".git-blame-ignore-revs"
182
+ - ".github/dependabot.yml"
183
+ - ".github/workflows/release.yml"
184
+ - ".github/workflows/ruby.yml"
189
185
  - ".gitignore"
190
186
  - ".rspec"
191
187
  - ".rubocop.yml"
192
188
  - ".ruby-version"
193
- - ".travis.yml"
194
189
  - CHANGELOG.md
195
190
  - CODE_OF_CONDUCT.md
196
191
  - Gemfile
@@ -233,14 +228,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
233
228
  requirements:
234
229
  - - ">="
235
230
  - !ruby/object:Gem::Version
236
- version: '2.5'
231
+ version: '3.0'
237
232
  required_rubygems_version: !ruby/object:Gem::Requirement
238
233
  requirements:
239
234
  - - ">="
240
235
  - !ruby/object:Gem::Version
241
236
  version: '0'
242
237
  requirements: []
243
- rubygems_version: 3.0.3
238
+ rubygems_version: 3.4.1
244
239
  signing_key:
245
240
  specification_version: 4
246
241
  summary: Information sharing via centralised repository
data/.travis.yml DELETED
@@ -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