sql_fingerprint 0.1.0 → 0.1.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
- SHA1:
3
- metadata.gz: 926aef84c8e2c58bf3c3b633e4ad490ce27577c4
4
- data.tar.gz: 8071ef06e595011602886f3d2a39a4cebdb8b78d
2
+ SHA256:
3
+ metadata.gz: 55df33c0d1abce9e549c543975fc99ca26029875e21b516acf95015ea0e35d68
4
+ data.tar.gz: 1bc1eeb40d0876be2a327b74e825f8efebdbdb336de71c19339870116d0054ff
5
5
  SHA512:
6
- metadata.gz: de1f1371912ad4306df9525ac7d0bf5d7430b15f901964924f93a3f78481366380a5abfd3e0dc7386cc29a555163283a61e57a7425fb1a32eeab2e71ffed2297
7
- data.tar.gz: ae6ed8dd588beb69ad1e89635696ba9de988f2b65f278b9333665ae3b4f1f70a47e000201262d94891907291c23571e95df8d1a97bdf614cebbf619d23b9f715
6
+ metadata.gz: eabcd053afaf6864bb46ae1a65f5957a5993486bfb7617aaae6c1c07474f1186a8c9635dc70c2555ee4aee5aec4ac26d59b701d88dfcadcd234a4bb4b3bae8f8
7
+ data.tar.gz: 80f7085c12c6262f85d0cd944ad708325a5b6dd540300f9ab38741efb41da707b976accf9cb3a535d33406d1e3f796937c77ed17fa4f9a7a5869a70d406bec2b
@@ -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
@@ -6,6 +6,6 @@
6
6
  /pkg/
7
7
  /spec/reports/
8
8
  /tmp/
9
-
9
+ Gemfile.lock
10
10
  # rspec failure tracking
11
11
  .rspec_status
data/Gemfile CHANGED
@@ -1,6 +1,3 @@
1
1
  source "https://rubygems.org"
2
2
 
3
- git_source(:github) {|repo_name| "https://github.com/#{repo_name}" }
4
-
5
- # Specify your gem's dependencies in sql_fingerprint.gemspec
6
3
  gemspec
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 SqlFingerprint::VERSION
10
+ end
@@ -1,3 +1,3 @@
1
1
  module SqlFingerprint
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
@@ -5,8 +5,8 @@ require 'sql_fingerprint/version'
5
5
  Gem::Specification.new do |spec|
6
6
  spec.name = 'sql_fingerprint'
7
7
  spec.version = SqlFingerprint::VERSION
8
- spec.authors = ['Laurynas Butkus', 'Tomas Didžiokas']
9
- spec.email = ['laurynas.butkus@gmail.com', 'tomas.did@gmail.com']
8
+ spec.authors = ['Vinted']
9
+ spec.email = ['backend@vinted.com']
10
10
  spec.summary = 'Abstracts SQL query and calculates fingerprint'
11
11
  spec.homepage = 'https://github.com/vinted/sql_fingerprint'
12
12
  spec.license = 'MIT'
@@ -17,7 +17,7 @@ Gem::Specification.new do |spec|
17
17
 
18
18
  spec.require_paths = ['lib']
19
19
 
20
- spec.add_development_dependency 'bundler', '~> 1.16'
21
- spec.add_development_dependency 'rake', '~> 10.0'
20
+ spec.add_development_dependency 'bundler'
21
+ spec.add_development_dependency 'rake', '~> 12.3'
22
22
  spec.add_development_dependency 'rspec', '~> 3.0'
23
23
  end
metadata CHANGED
@@ -1,44 +1,43 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sql_fingerprint
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
- - Laurynas Butkus
8
- - Tomas Didžiokas
7
+ - Vinted
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2018-01-05 00:00:00.000000000 Z
11
+ date: 2021-04-09 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: bundler
16
15
  requirement: !ruby/object:Gem::Requirement
17
16
  requirements:
18
- - - "~>"
17
+ - - ">="
19
18
  - !ruby/object:Gem::Version
20
- version: '1.16'
19
+ version: '0'
21
20
  type: :development
22
21
  prerelease: false
23
22
  version_requirements: !ruby/object:Gem::Requirement
24
23
  requirements:
25
- - - "~>"
24
+ - - ">="
26
25
  - !ruby/object:Gem::Version
27
- version: '1.16'
26
+ version: '0'
28
27
  - !ruby/object:Gem::Dependency
29
28
  name: rake
30
29
  requirement: !ruby/object:Gem::Requirement
31
30
  requirements:
32
31
  - - "~>"
33
32
  - !ruby/object:Gem::Version
34
- version: '10.0'
33
+ version: '12.3'
35
34
  type: :development
36
35
  prerelease: false
37
36
  version_requirements: !ruby/object:Gem::Requirement
38
37
  requirements:
39
38
  - - "~>"
40
39
  - !ruby/object:Gem::Version
41
- version: '10.0'
40
+ version: '12.3'
42
41
  - !ruby/object:Gem::Dependency
43
42
  name: rspec
44
43
  requirement: !ruby/object:Gem::Requirement
@@ -55,18 +54,16 @@ dependencies:
55
54
  version: '3.0'
56
55
  description:
57
56
  email:
58
- - laurynas.butkus@gmail.com
59
- - tomas.did@gmail.com
57
+ - backend@vinted.com
60
58
  executables: []
61
59
  extensions: []
62
60
  extra_rdoc_files: []
63
61
  files:
62
+ - ".github/workflows/build_release_pipeline.yaml"
64
63
  - ".gitignore"
65
64
  - ".rspec"
66
- - ".travis.yml"
67
65
  - CODE_OF_CONDUCT.md
68
66
  - Gemfile
69
- - Gemfile.lock
70
67
  - LICENSE.txt
71
68
  - README.md
72
69
  - Rakefile
@@ -93,8 +90,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
93
90
  - !ruby/object:Gem::Version
94
91
  version: '0'
95
92
  requirements: []
96
- rubyforge_project:
97
- rubygems_version: 2.6.11
93
+ rubygems_version: 3.1.4
98
94
  signing_key:
99
95
  specification_version: 4
100
96
  summary: Abstracts SQL query and calculates fingerprint
data/.travis.yml DELETED
@@ -1,5 +0,0 @@
1
- sudo: false
2
- language: ruby
3
- rvm:
4
- - 2.4.1
5
- before_install: gem install bundler -v 1.16.0
data/Gemfile.lock DELETED
@@ -1,35 +0,0 @@
1
- PATH
2
- remote: .
3
- specs:
4
- sql_fingerprint (0.1.0)
5
-
6
- GEM
7
- remote: https://rubygems.org/
8
- specs:
9
- diff-lcs (1.3)
10
- rake (10.5.0)
11
- rspec (3.7.0)
12
- rspec-core (~> 3.7.0)
13
- rspec-expectations (~> 3.7.0)
14
- rspec-mocks (~> 3.7.0)
15
- rspec-core (3.7.0)
16
- rspec-support (~> 3.7.0)
17
- rspec-expectations (3.7.0)
18
- diff-lcs (>= 1.2.0, < 2.0)
19
- rspec-support (~> 3.7.0)
20
- rspec-mocks (3.7.0)
21
- diff-lcs (>= 1.2.0, < 2.0)
22
- rspec-support (~> 3.7.0)
23
- rspec-support (3.7.0)
24
-
25
- PLATFORMS
26
- ruby
27
-
28
- DEPENDENCIES
29
- bundler (~> 1.16)
30
- rake (~> 10.0)
31
- rspec (~> 3.0)
32
- sql_fingerprint!
33
-
34
- BUNDLED WITH
35
- 1.16.0