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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d294305ce317a688605fd30111343ceea6b07a62c39afc0eebf5b0d1b51b72be
4
- data.tar.gz: e7aa3c3b2eabc96fc3f549bfc493112a981e20172f45aba85fb0dcd3afdd7393
3
+ metadata.gz: c7a9bb05470d03cde9f14ae3b60bb5750f0f0fca5b8d66737a0be01317ebc15e
4
+ data.tar.gz: 5f6f0e3f7f27a4fa8c8d3ceab64d6b503b9cc953875a62d129384cd3958a989c
5
5
  SHA512:
6
- metadata.gz: 55ba35b521d86ca65dc916a2caec9da6e800210cce1fd36d14b9c5d90d84076a28598f6e36a8d47e216366b783e7570416bff3b3558e9552b12f0ca66ebb2211
7
- data.tar.gz: 7520541cbf6d5d9d507cb20a99a9824be980512f29b9f7e67a81d0161979a92ee40ea7dd43bf4cff75f0ec0fd081be14a401d07a60cbd865de24e2cead429f4b
6
+ metadata.gz: e6e0885e7d4278a1bba04ff1e64cc6929d9927a87143454a8e0014be18da0a7f0954551197623efb55a05d1a0dca799f4fb284665e350b3970f5e6f7b824216c
7
+ data.tar.gz: c34f447048993eb32260089c4224d4a4221bf2b33364b4e471a9d21763949efa749b85a5f216b489d3778d09d940b4fa9d990f7a0fcc8b2477f4b67977078bad
@@ -1,8 +1,11 @@
1
- class Preparation
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(params)
5
- @version = params[0]
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
- !major? && !minor?
50
+ @version == 'tiny'
45
51
  end
46
52
  end
47
53
 
48
- Preparation.new(ARGV).execute! if __FILE__ == $0
54
+ GemDeployment.new(*ARGV).execute! if __FILE__ == $0
@@ -1,3 +1,3 @@
1
1
  module SlackResources
2
- VERSION = '0.1.1'.freeze
2
+ VERSION = '0.1.2'.freeze
3
3
  end
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.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/preparation.rb"
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.6
383
+ rubygems_version: 2.7.7
384
384
  signing_key:
385
385
  specification_version: 4
386
386
  summary: slack resources