slack_resources 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.circleci/{preparation.rb → gem_deployment.rb} +11 -5
- data/lib/slack_resources/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c7a9bb05470d03cde9f14ae3b60bb5750f0f0fca5b8d66737a0be01317ebc15e
|
4
|
+
data.tar.gz: 5f6f0e3f7f27a4fa8c8d3ceab64d6b503b9cc953875a62d129384cd3958a989c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e6e0885e7d4278a1bba04ff1e64cc6929d9927a87143454a8e0014be18da0a7f0954551197623efb55a05d1a0dca799f4fb284665e350b3970f5e6f7b824216c
|
7
|
+
data.tar.gz: c34f447048993eb32260089c4224d4a4221bf2b33364b4e471a9d21763949efa749b85a5f216b489d3778d09d940b4fa9d990f7a0fcc8b2477f4b67977078bad
|
@@ -1,8 +1,11 @@
|
|
1
|
-
class
|
1
|
+
class GemDeployment
|
2
|
+
CREDENTIAL_DIR_PATH = '~/.gem/credentials'
|
3
|
+
CREDENTIAL_FILE_PATH = '~/.gem/credentials'
|
2
4
|
VERSION_FILE_PATH = './lib/slack_resources/version.rb'
|
3
5
|
|
4
|
-
def initialize(
|
5
|
-
@
|
6
|
+
def initialize(api_key = '', version = 'tiny')
|
7
|
+
@api_key = api_key
|
8
|
+
@version = version
|
6
9
|
end
|
7
10
|
|
8
11
|
def execute!
|
@@ -14,6 +17,9 @@ class Preparation
|
|
14
17
|
|
15
18
|
next_version = [major, minor, tiny].join('.')
|
16
19
|
|
20
|
+
`echo "---\n:rubygems_api_key: #{@api_key}\n" > ~/.gem/credentials && chmod 600 ~/.gem/credentials`
|
21
|
+
puts `cat ~/.gem/credentials`
|
22
|
+
|
17
23
|
File.write(VERSION_FILE_PATH, <<~VER)
|
18
24
|
module SlackResources
|
19
25
|
VERSION = '#{next_version}'.freeze
|
@@ -41,8 +47,8 @@ class Preparation
|
|
41
47
|
end
|
42
48
|
|
43
49
|
def tiny?
|
44
|
-
|
50
|
+
@version == 'tiny'
|
45
51
|
end
|
46
52
|
end
|
47
53
|
|
48
|
-
|
54
|
+
GemDeployment.new(*ARGV).execute! if __FILE__ == $0
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: slack_resources
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- mmmpa
|
@@ -130,7 +130,7 @@ extensions: []
|
|
130
130
|
extra_rdoc_files: []
|
131
131
|
files:
|
132
132
|
- ".circleci/config.yml"
|
133
|
-
- ".circleci/
|
133
|
+
- ".circleci/gem_deployment.rb"
|
134
134
|
- ".gitignore"
|
135
135
|
- ".rubocop.yml"
|
136
136
|
- Gemfile
|
@@ -380,7 +380,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
380
380
|
version: '0'
|
381
381
|
requirements: []
|
382
382
|
rubyforge_project:
|
383
|
-
rubygems_version: 2.7.
|
383
|
+
rubygems_version: 2.7.7
|
384
384
|
signing_key:
|
385
385
|
specification_version: 4
|
386
386
|
summary: slack resources
|