percy-common 3.1.2 → 3.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/percy/common/version.rb +1 -1
- data/percy-common.gemspec +2 -2
- data/release.sh +16 -7
- metadata +14 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ce7918aeff2ead877459e0bfd675c86caa2378a0b428dca1c8aaf93d427f276a
|
4
|
+
data.tar.gz: ed60d47e414a8a9ce3662407ae500bb56bdba6087de7cad21b36473ca8f67487
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4e8461a0a30b248ecf18d009d935a23a5c8a6076e6b2bf2136282b7235428787f8d62e98c5c00bcf1046525dc075995efd5fe47ac5ec076530aa82dc8915a66b
|
7
|
+
data.tar.gz: 731a137bdc7f022685d42562b2b394689874aeb0087e5e1d9b334d14d64cf1aa8bdf01f55af0dddca33d79625a12c9b2dff271ad04304998a95333c05b481f90
|
data/lib/percy/common/version.rb
CHANGED
data/percy-common.gemspec
CHANGED
@@ -17,13 +17,13 @@ Gem::Specification.new do |spec|
|
|
17
17
|
end
|
18
18
|
spec.require_paths = ['lib']
|
19
19
|
|
20
|
-
spec.add_dependency 'dogstatsd-ruby', '
|
20
|
+
spec.add_dependency 'dogstatsd-ruby', '>= 4.4', '< 4.9'
|
21
21
|
spec.add_dependency 'excon', '~> 0.57'
|
22
22
|
spec.add_dependency 'redis', '>= 4.1.3', '< 5.0.0'
|
23
23
|
|
24
24
|
spec.add_development_dependency 'bundler', '~> 2.1.4'
|
25
25
|
spec.add_development_dependency 'guard-rspec', '~> 4.7'
|
26
26
|
spec.add_development_dependency 'percy-style', '~> 0.7.0'
|
27
|
-
spec.add_development_dependency 'rake', '~>
|
27
|
+
spec.add_development_dependency 'rake', '~> 13.0'
|
28
28
|
spec.add_development_dependency 'rspec', '~> 3.2'
|
29
29
|
end
|
data/release.sh
CHANGED
@@ -19,7 +19,9 @@ rm "$CURDIR/"percy-common*.gem >/dev/null 2>&1 || true
|
|
19
19
|
delete_existing_version() {
|
20
20
|
git tag -d "v$1" || true
|
21
21
|
git push origin ":v$1" || true
|
22
|
-
|
22
|
+
# Replace - with .pre. in version string for rubygems compatibility
|
23
|
+
GEM_VERSION=${1/-/.pre.}
|
24
|
+
gem yank percy-common -v "$GEM_VERSION" || true
|
23
25
|
}
|
24
26
|
|
25
27
|
if [[ $1 =~ ^.*delete$ ]]; then
|
@@ -35,17 +37,24 @@ else
|
|
35
37
|
if [[ "$CLEAN" == "0" ]]; then
|
36
38
|
if [[ $1 == '--force' ]]; then
|
37
39
|
shift
|
38
|
-
|
39
|
-
|
40
|
+
VERSION=$1
|
41
|
+
if [[ -n $VERSION ]]; then
|
42
|
+
echo "Deleting version $VERSION"
|
40
43
|
sleep 1
|
41
|
-
delete_existing_version "$
|
44
|
+
delete_existing_version "$VERSION"
|
42
45
|
else
|
43
46
|
echo "Missing release version"
|
44
47
|
exit 1
|
45
48
|
fi
|
46
49
|
fi
|
47
50
|
VERSION=$1
|
48
|
-
|
51
|
+
# Replace - with .pre. in version string for rubygems compatibility
|
52
|
+
GEM_VERSION="${VERSION/-/.pre.}"
|
53
|
+
if [[ "$GEM_VERSION" == "$VERSION" ]]; then
|
54
|
+
echo "Releasing $VERSION"
|
55
|
+
else
|
56
|
+
echo "Releasing $VERSION as $GEM_VERSION"
|
57
|
+
fi
|
49
58
|
sleep 1
|
50
59
|
|
51
60
|
sed -i "" -e "s/$PERCY_COMMON_VERSION/$VERSION/g" "lib/percy/common/version.rb"
|
@@ -56,9 +65,9 @@ else
|
|
56
65
|
git push origin "v$VERSION" || true
|
57
66
|
|
58
67
|
bundle exec rake build
|
59
|
-
gem push "$CURDIR/pkg/percy-common
|
68
|
+
gem push "$CURDIR/pkg/percy-common-$GEM_VERSION.gem"
|
60
69
|
open "https://github.com/percy/percy-common/releases/new?tag=v$VERSION&title=$VERSION"
|
61
|
-
rm "$CURDIR/pkg/percy-common
|
70
|
+
rm "$CURDIR/pkg/percy-common-$GEM_VERSION.gem"
|
62
71
|
else
|
63
72
|
echo "Please commit your changes and try again"
|
64
73
|
exit 1
|
metadata
CHANGED
@@ -1,29 +1,35 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: percy-common
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.1.
|
4
|
+
version: 3.1.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Perceptual Inc.
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-06-
|
11
|
+
date: 2020-06-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: dogstatsd-ruby
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - "
|
17
|
+
- - ">="
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '4.4'
|
20
|
+
- - "<"
|
18
21
|
- !ruby/object:Gem::Version
|
19
|
-
version: 4.
|
22
|
+
version: '4.9'
|
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: '4.4'
|
30
|
+
- - "<"
|
25
31
|
- !ruby/object:Gem::Version
|
26
|
-
version: 4.
|
32
|
+
version: '4.9'
|
27
33
|
- !ruby/object:Gem::Dependency
|
28
34
|
name: excon
|
29
35
|
requirement: !ruby/object:Gem::Requirement
|
@@ -106,14 +112,14 @@ dependencies:
|
|
106
112
|
requirements:
|
107
113
|
- - "~>"
|
108
114
|
- !ruby/object:Gem::Version
|
109
|
-
version: '
|
115
|
+
version: '13.0'
|
110
116
|
type: :development
|
111
117
|
prerelease: false
|
112
118
|
version_requirements: !ruby/object:Gem::Requirement
|
113
119
|
requirements:
|
114
120
|
- - "~>"
|
115
121
|
- !ruby/object:Gem::Version
|
116
|
-
version: '
|
122
|
+
version: '13.0'
|
117
123
|
- !ruby/object:Gem::Dependency
|
118
124
|
name: rspec
|
119
125
|
requirement: !ruby/object:Gem::Requirement
|