mini_phone 0.1.5 → 0.1.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/Rakefile +20 -2
- data/lib/mini_phone/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1bba68164238d85ff35c9e3adb5f691451b6ed10adbd6b221300dde45031c947
|
4
|
+
data.tar.gz: 2fe1c17ed5516cc584f53810896265a7f013c0bc3e3fcc4ff05c7c5705bc5302
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f9f73f44e94e49fbc2f95ba75f250ec6c7b8a5f7a7405d2740c9172cbcb354316168284a74fe5e48adcdcd80950f049c9a6efe092501f2d0219e4902fe95311c
|
7
|
+
data.tar.gz: 8a10b0e29939dd79d1d4e66953acdde1212bbf4ec4ce2ee46770aae39a7b45d209ed604b69014b2a6cf92dd31ac7d194b250e99d05ec0296666a8c56548bac46
|
data/Rakefile
CHANGED
@@ -36,9 +36,22 @@ task :deploy do
|
|
36
36
|
end
|
37
37
|
|
38
38
|
namespace :publish do
|
39
|
+
def push_to_github_registry(gem)
|
40
|
+
puts "Pushing #{gem} to GitHub Package Registry"
|
41
|
+
sh "gem push #{gem} --host https://rubygems.pkg.github.com/ianks --key github"
|
42
|
+
true
|
43
|
+
rescue StandardError
|
44
|
+
warn 'Could not publish to Github Package Registry'
|
45
|
+
false
|
46
|
+
end
|
47
|
+
|
39
48
|
def push_to_rubygems(gem)
|
40
|
-
puts "Pushing #{gem} to
|
49
|
+
puts "Pushing #{gem} to rubygems"
|
41
50
|
sh "gem push #{gem}"
|
51
|
+
true
|
52
|
+
rescue StandardError
|
53
|
+
warn 'Could not publish to rubygems'
|
54
|
+
false
|
42
55
|
end
|
43
56
|
|
44
57
|
task native: %i[native gem] do
|
@@ -50,6 +63,11 @@ namespace :publish do
|
|
50
63
|
task non_native: [:gem] do
|
51
64
|
g = "./pkg/mini_phone-#{MiniPhone::VERSION}.gem"
|
52
65
|
|
53
|
-
|
66
|
+
results = []
|
67
|
+
|
68
|
+
results << push_to_rubygems(g)
|
69
|
+
results << push_to_github_registry(g)
|
70
|
+
|
71
|
+
abort if results.all? { |r| r == true }
|
54
72
|
end
|
55
73
|
end
|
data/lib/mini_phone/version.rb
CHANGED