targit 1.0.1 → 1.1.0

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
  SHA1:
3
- metadata.gz: 7759a8270b57df87bb39c2ddec2221c553c3b021
4
- data.tar.gz: 023441502fc90144614f48960cf9d6d9800113a0
3
+ metadata.gz: d9c24d83d5995fef98de9689b8852b8c68646258
4
+ data.tar.gz: 871da0a7a3bca5260c83115edcf411f8c5a020f8
5
5
  SHA512:
6
- metadata.gz: fee0063d6cc3904b8a101d9a795397d95abeca362ccd393987f064ab51039aa5537612fb84c54f8dbeb6b02db1b58a3368482ee87cc3ff01dcc469ce8436545c
7
- data.tar.gz: eb9ca08ee60115fe622074c9670d606d9254fc437be35dcccfe060879ed60dfb48b2f5f6764f5789466ab289f4841ec2016c41ab24e220d92e091f5608ed963e
6
+ metadata.gz: a5c86ed4423e4a56c3eaf41426410402f723c3cd824f4e69cb38afeec1297bb1cdcef010fd64693a2c3371a7122178913580a749ca1e112d54bbc5346525e0d0
7
+ data.tar.gz: 5b2b75233390a33d4d6156d9dbcd2fc78eb09f3b59acad3dd0632257bcb0addcf269196bc08410cf162fed05fbd61243b11f75cfe195f56b1d21b911bfa139c0
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ # 1.1.0 / 2015-05-04
2
+
3
+ * [FEATURE] Support multiple files for auth file
4
+
1
5
  # 1.0.1 / 2015-03-18
2
6
 
3
7
  * [BUGFIX] Update Octoauth dependency
data/bin/targit CHANGED
@@ -19,7 +19,7 @@ Mercenary.program(:targit) do |p|
19
19
  p.option :create, '-c', '--create', 'Create release if it does not exist'
20
20
  p.option :release_name, '-r NAME', '--release NAME', 'Set the release name'
21
21
  p.option :prerelease, '-p', '--prerelease', 'With -c, create as a dev release'
22
- p.option :authfile, '-a FILE', '--authfile FILE', 'Set the auth file for GitHub credentials'
22
+ p.option :authfile, '-a FILE', '--authfile FILE', 'Set the auth files for GitHub credentials (comma-delimited)'
23
23
  p.option :name, '-n NAME', '--name NAME', 'Set the name for the release asset'
24
24
  # rubocop:enable Style/LineLength
25
25
 
data/lib/targit/client.rb CHANGED
@@ -8,9 +8,9 @@ module Targit
8
8
  private
9
9
 
10
10
  def _client
11
- file = @options[:authfile] || Octoauth::DEFAULT_FILE
11
+ files = @options[:authfile].split(',') || [:default]
12
12
  autosave = @options[:autosave] || true
13
- auth = Octoauth.new note: 'targit', file: file, autosave: autosave
13
+ auth = Octoauth.new note: 'targit', files: files, autosave: autosave
14
14
  Octokit::Client.new(
15
15
  access_token: auth.token,
16
16
  api_endpoint: @options[:api_endpoint],
@@ -1,5 +1,5 @@
1
1
  ##
2
2
  # Set the version (needed for Mercenary -v)
3
3
  module Targit
4
- VERSION = '1.0.1'
4
+ VERSION = '1.1.0'
5
5
  end
data/targit.gemspec CHANGED
@@ -18,15 +18,15 @@ Gem::Specification.new do |s|
18
18
  s.executables = ['targit']
19
19
 
20
20
  s.add_dependency 'octokit', '~> 3.8.0'
21
- s.add_dependency 'octoauth', '~> 1.0.1'
21
+ s.add_dependency 'octoauth', '~> 1.1.0'
22
22
  s.add_dependency 'mercenary', '~> 0.3.4'
23
23
  s.add_dependency 'mime-types', '~> 2.3'
24
24
 
25
- s.add_development_dependency 'rubocop', '~> 0.29.0'
25
+ s.add_development_dependency 'rubocop', '~> 0.30.0'
26
26
  s.add_development_dependency 'rake', '~> 10.4.0'
27
- s.add_development_dependency 'coveralls', '~> 0.7.1'
27
+ s.add_development_dependency 'coveralls', '~> 0.8.0'
28
28
  s.add_development_dependency 'rspec', '~> 3.2.0'
29
29
  s.add_development_dependency 'fuubar', '~> 2.0.0'
30
- s.add_development_dependency 'webmock', '~> 1.20.2'
30
+ s.add_development_dependency 'webmock', '~> 1.21.0'
31
31
  s.add_development_dependency 'vcr', '~> 2.9.2'
32
32
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: targit
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Les Aker
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-03-18 00:00:00.000000000 Z
11
+ date: 2015-05-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: octokit
@@ -30,14 +30,14 @@ dependencies:
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: 1.0.1
33
+ version: 1.1.0
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: 1.0.1
40
+ version: 1.1.0
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: mercenary
43
43
  requirement: !ruby/object:Gem::Requirement
@@ -72,14 +72,14 @@ dependencies:
72
72
  requirements:
73
73
  - - "~>"
74
74
  - !ruby/object:Gem::Version
75
- version: 0.29.0
75
+ version: 0.30.0
76
76
  type: :development
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
80
  - - "~>"
81
81
  - !ruby/object:Gem::Version
82
- version: 0.29.0
82
+ version: 0.30.0
83
83
  - !ruby/object:Gem::Dependency
84
84
  name: rake
85
85
  requirement: !ruby/object:Gem::Requirement
@@ -100,14 +100,14 @@ dependencies:
100
100
  requirements:
101
101
  - - "~>"
102
102
  - !ruby/object:Gem::Version
103
- version: 0.7.1
103
+ version: 0.8.0
104
104
  type: :development
105
105
  prerelease: false
106
106
  version_requirements: !ruby/object:Gem::Requirement
107
107
  requirements:
108
108
  - - "~>"
109
109
  - !ruby/object:Gem::Version
110
- version: 0.7.1
110
+ version: 0.8.0
111
111
  - !ruby/object:Gem::Dependency
112
112
  name: rspec
113
113
  requirement: !ruby/object:Gem::Requirement
@@ -142,14 +142,14 @@ dependencies:
142
142
  requirements:
143
143
  - - "~>"
144
144
  - !ruby/object:Gem::Version
145
- version: 1.20.2
145
+ version: 1.21.0
146
146
  type: :development
147
147
  prerelease: false
148
148
  version_requirements: !ruby/object:Gem::Requirement
149
149
  requirements:
150
150
  - - "~>"
151
151
  - !ruby/object:Gem::Version
152
- version: 1.20.2
152
+ version: 1.21.0
153
153
  - !ruby/object:Gem::Dependency
154
154
  name: vcr
155
155
  requirement: !ruby/object:Gem::Requirement