packlink_lite 0.5.0 → 0.5.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: b0a8ac0008b13809fbfc4244b9f544736b62875d561e477e10f35590451a8309
4
- data.tar.gz: 5883d2a574d8b23599c48e276903fe9634b1fdd27767c80da10218314db7b134
3
+ metadata.gz: 7c094522c97ddd9c6a6d7c0fe7bfebb8631bf8f69df958b87b35aa8426af969d
4
+ data.tar.gz: d6aade4a8833b945cb9ce9526b599cd5c2ead9b59388e8612a85d9c55ed22dbf
5
5
  SHA512:
6
- metadata.gz: f98d79dc03af172268ac3443edc92a6e5b46de487d37fcd8bdba300db194fcfd69bb737013f4f3b96c70146ee350b0e52f3570883ca6b45606e8d2978f8bc61b
7
- data.tar.gz: db22020ae99136941f7613ef2acef4b804b1f351fbae474dc195ba8aa84c58821f30cbcafecec7fd3de60d0de899dfc913ab03aeb4b9deb05dd45d7476f06de4
6
+ metadata.gz: 404cbc639c31d5dbe0132a36d37e4145c9974ab7cc19a7f1b0f548d47a94febd9700a852edb867325372e6e595f9a14d140d2cc2610dbe98a47fe8a72a2b81e5
7
+ data.tar.gz: 2451dfba0293b9607ee1c54ba50e938d54d17cd56cc7d5e67eba04625f8ff44c10e53d6ca9812264c41fff7d72a94fba8d92d49a8876d3816ce0f2b6ca8d3284
@@ -0,0 +1,53 @@
1
+ name: Build and release ruby gem
2
+
3
+ on:
4
+ pull_request:
5
+ branches: [ master ]
6
+ push:
7
+ workflow_dispatch:
8
+
9
+ jobs:
10
+ build-release-pipeline:
11
+ runs-on: ubuntu-latest
12
+ container: ruby:2.7.2
13
+ steps:
14
+ - uses: actions/checkout@v2
15
+ - name: Setup
16
+ run: |
17
+ gem install bundler
18
+ bundle install
19
+
20
+ - name: Test
21
+ run: bundle exec rake
22
+
23
+ - name: Build
24
+ id: build
25
+ if: success() && github.ref == 'refs/heads/master'
26
+ run: |
27
+ bundle exec rake build
28
+ echo "::set-output name=gem_version::v$(bundle exec rake version)"
29
+
30
+ - name: Release
31
+ if: success() && github.ref == 'refs/heads/master'
32
+ run: |
33
+ mkdir -p $HOME/.gem
34
+ touch $HOME/.gem/credentials
35
+ chmod 600 $HOME/.gem/credentials
36
+ printf -- "---\n:rubygems_api_key: ${GEM_HOST_API_KEY}\n" > $HOME/.gem/credentials
37
+ gem push pkg/*
38
+ env:
39
+ GEM_HOST_API_KEY: "${{ secrets.RUBYGEMS_AUTH_TOKEN }}"
40
+
41
+ - name: Tag repo with new gem version
42
+ if: success() && github.ref == 'refs/heads/master'
43
+ uses: actions/github-script@v3
44
+ with:
45
+ github-token: ${{ github.token }}
46
+ script: |
47
+ github.git.createRef({
48
+ owner: context.repo.owner,
49
+ repo: context.repo.repo,
50
+ ref: "refs/tags/${{ steps.build.outputs.gem_version }}",
51
+ sha: context.sha
52
+ })
53
+
data/.gitignore CHANGED
@@ -2,10 +2,10 @@
2
2
  /.yardoc
3
3
  /.ruby-version
4
4
  /.env
5
- /Gemfile.lock
6
5
  /_yardoc/
7
6
  /coverage/
8
7
  /doc/
9
8
  /pkg/
10
9
  /spec/reports/
11
10
  /tmp/
11
+ Gemfile.lock
data/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # PacklinkLite
2
2
 
3
- [![Build Status](https://travis-ci.org/laurynas/packlink_lite.svg?branch=master)](https://travis-ci.org/laurynas/packlink_lite)
3
+ [![Build Status](https://travis-ci.com/vinted/packlink_lite.svg?branch=master)](https://travis-ci.com/vinted/packlink_lite)
4
4
 
5
5
  Packlink.com API client
6
6
 
@@ -62,7 +62,7 @@ PacklinkLite.change_tracking_callback_url(url)
62
62
 
63
63
  ## Contributing
64
64
 
65
- Bug reports and pull requests are welcome on GitHub at https://github.com/laurynas/packlink_lite.
65
+ Bug reports and pull requests are welcome on GitHub at https://github.com/vinted/packlink_lite.
66
66
 
67
67
 
68
68
  ## License
data/Rakefile CHANGED
@@ -4,3 +4,7 @@ require "rspec/core/rake_task"
4
4
  RSpec::Core::RakeTask.new(:spec)
5
5
 
6
6
  task :default => :spec
7
+
8
+ task :version do |t|
9
+ puts PacklinkLite::VERSION
10
+ end
@@ -1,3 +1,3 @@
1
1
  module PacklinkLite
2
- VERSION = '0.5.0'
2
+ VERSION = '0.5.1'
3
3
  end
@@ -7,11 +7,11 @@ Gem::Specification.new do |spec|
7
7
  spec.name = 'packlink_lite'
8
8
  spec.version = PacklinkLite::VERSION
9
9
  spec.authors = ['Laurynas Butkus']
10
- spec.email = ['laurynas.butkus@gmail.com']
10
+ spec.email = ['backend@vinted.com']
11
11
 
12
12
  spec.summary = %q{Packlink.com API client}
13
13
  spec.description = %q{Client to access packlink.com shipping API}
14
- spec.homepage = 'https://github.com/laurynas/packlink_lite'
14
+ spec.homepage = 'https://github.com/vinted/packlink_lite'
15
15
  spec.license = 'MIT'
16
16
 
17
17
  spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: packlink_lite
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.0
4
+ version: 0.5.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Laurynas Butkus
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2021-02-04 00:00:00.000000000 Z
11
+ date: 2021-04-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday
@@ -110,14 +110,14 @@ dependencies:
110
110
  version: '0'
111
111
  description: Client to access packlink.com shipping API
112
112
  email:
113
- - laurynas.butkus@gmail.com
113
+ - backend@vinted.com
114
114
  executables: []
115
115
  extensions: []
116
116
  extra_rdoc_files: []
117
117
  files:
118
+ - ".github/workflows/build_release_action.yaml"
118
119
  - ".gitignore"
119
120
  - ".rspec"
120
- - ".travis.yml"
121
121
  - Gemfile
122
122
  - LICENSE.txt
123
123
  - README.md
@@ -135,7 +135,7 @@ files:
135
135
  - lib/packlink_lite/tracking_history.rb
136
136
  - lib/packlink_lite/version.rb
137
137
  - packlink_lite.gemspec
138
- homepage: https://github.com/laurynas/packlink_lite
138
+ homepage: https://github.com/vinted/packlink_lite
139
139
  licenses:
140
140
  - MIT
141
141
  metadata: {}
@@ -154,7 +154,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
154
154
  - !ruby/object:Gem::Version
155
155
  version: '0'
156
156
  requirements: []
157
- rubygems_version: 3.0.3
157
+ rubygems_version: 3.1.4
158
158
  signing_key:
159
159
  specification_version: 4
160
160
  summary: Packlink.com API client
data/.travis.yml DELETED
@@ -1,6 +0,0 @@
1
- language: ruby
2
- rvm:
3
- - 2.3.0
4
- - 2.4.1
5
- - 2.6.3
6
- before_install: gem install bundler -v 1.17.3