gemfury 0.12.0 → 0.13.0.beta1

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,15 +1,16 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'rubygems/package'
2
4
  require 'gemfury'
3
5
  require 'gemfury/command'
4
6
 
5
7
  namespace 'fury' do
6
- desc "Build gem and push it to Gemfury"
7
- task :release, [:gemspec, :as] do |t, args|
8
- gemspec = args[:gemspec] ||
9
- FileList["#{Dir.pwd}/*.gemspec"][0]
8
+ desc 'Build gem and push it to Gemfury'
9
+ task :release, [:gemspec, :as] do |_t, args|
10
+ gemspec = args[:gemspec] || FileList["#{Dir.pwd}/*.gemspec"][0]
10
11
 
11
12
  if gemspec.nil? || !File.exist?(gemspec)
12
- puts "No gemspec found"
13
+ puts 'No gemspec found'
13
14
  else
14
15
  puts "Building #{File.basename(gemspec)}"
15
16
  spec = Gem::Specification.load(gemspec)
@@ -23,7 +24,7 @@ namespace 'fury' do
23
24
 
24
25
  gemfile = File.basename(spec.cache_file)
25
26
 
26
- params = ['push', gemfile]
27
+ params = ['push', gemfile, '--no_warnings']
27
28
  params << "--as=#{args[:as]}" if args[:as]
28
29
 
29
30
  Gemfury::Command::App.start(params)
@@ -32,5 +33,5 @@ namespace 'fury' do
32
33
  end
33
34
 
34
35
  namespace 'gemfury' do
35
- task :release => 'fury:release'
36
- end
36
+ task release: 'fury:release'
37
+ end
data/lib/gemfury/tasks.rb CHANGED
@@ -1,2 +1,4 @@
1
+ # frozen_string_literal: true
2
+
1
3
  # Load Gemfury rakefile extensions
2
- load "gemfury/tasks/release.rake"
4
+ load 'gemfury/tasks/release.rake'
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Gemfury
2
- VERSION = '0.12.0'
4
+ VERSION = '0.13.0.beta1'
3
5
  end
data/lib/gemfury.rb CHANGED
@@ -1,6 +1,9 @@
1
- gem "multi_json", "~> 1.10"
2
- gem "faraday", ">= 0.9.0", "< 1.1.0.pre"
3
- gem "netrc", ">= 0.10.0", "< 0.12.0.pre"
1
+ # frozen_string_literal: true
2
+
3
+ gem 'multi_json', '~> 1.10'
4
+ gem 'netrc', '>= 0.10.0', '< 0.12.0.pre'
5
+ gem 'faraday', '>= 2.0.0', '< 3.0.0.pre'
6
+ gem 'faraday-multipart', '>= 1.0.0', '< 2.0.0.pre'
4
7
 
5
8
  require 'time'
6
9
  require 'cgi'
@@ -8,6 +11,7 @@ require 'uri'
8
11
  require 'netrc'
9
12
  require 'multi_json'
10
13
  require 'faraday'
14
+ require 'faraday/multipart'
11
15
  require 'faraday/adapter/fury_http'
12
16
  require 'faraday/request/multipart_with_file'
13
17
 
@@ -29,7 +33,7 @@ module Gemfury
29
33
  # Alias for Gemfury::Client.new
30
34
  #
31
35
  # @return [Gemfury::Client]
32
- def new(options={})
36
+ def new(options = {})
33
37
  Gemfury::Client.new(options)
34
38
  end
35
39
 
@@ -41,9 +45,8 @@ module Gemfury
41
45
  # Create a hash of options and their values
42
46
  # @return [Hash] the options and their values
43
47
  def options
44
- VALID_OPTIONS_KEYS.inject({}) do |options, k|
48
+ VALID_OPTIONS_KEYS.each_with_object({}) do |k, options|
45
49
  options[k] = send(k)
46
- options
47
50
  end
48
51
  end
49
52
 
@@ -57,13 +60,13 @@ module Gemfury
57
60
  # Delegate to Gemfury::Client
58
61
  def method_missing(method, *args, &block)
59
62
  return super unless new.respond_to?(method)
63
+
60
64
  new.send(method, *args, &block)
61
65
  end
62
66
 
63
67
  def respond_to?(method, include_private = false)
64
68
  new.respond_to?(method, include_private) || super(method, include_private)
65
69
  end
66
-
67
70
  end
68
71
  end
69
72
 
@@ -72,7 +75,7 @@ Gemfury.reset
72
75
 
73
76
  # Polyfill #dig for Ruby 2.2 and earlier
74
77
  class Hash
75
- unless self.instance_methods.include?(:dig)
78
+ unless instance_methods.include?(:dig)
76
79
  def dig(*parts)
77
80
  parts.inject(self) do |hash, part|
78
81
  hash.is_a?(Hash) ? hash[part] : nil
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'gemfury'
2
4
  require 'gemfury/command'
3
5
 
@@ -7,7 +9,7 @@ class Gem::Commands::FuryCommand < Gem::Command
7
9
  end
8
10
 
9
11
  def arguments
10
- "GEM built gem file to push"
12
+ 'GEM built gem file to push'
11
13
  end
12
14
 
13
15
  def usage
@@ -24,6 +26,6 @@ class Gem::Commands::FuryCommand < Gem::Command
24
26
  def execute
25
27
  opts = options.dup
26
28
  args = opts.delete(:args)
27
- Gemfury::Command::App.send(:dispatch, "push", args, opts, {})
29
+ Gemfury::Command::App.send(:dispatch, 'push', args, opts, {})
28
30
  end
29
31
  end
@@ -1,2 +1,4 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'rubygems/command_manager'
2
4
  Gem::CommandManager.instance.register_command :fury
metadata CHANGED
@@ -1,132 +1,152 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gemfury
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.12.0
4
+ version: 0.13.0.beta1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael Rykov
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-06-17 00:00:00.000000000 Z
11
+ date: 2023-07-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
- name: multi_json
14
+ name: faraday
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - "~>"
17
+ - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: '1.10'
19
+ version: 2.0.0
20
+ - - "<"
21
+ - !ruby/object:Gem::Version
22
+ version: 3.0.0.pre
20
23
  type: :runtime
21
24
  prerelease: false
22
25
  version_requirements: !ruby/object:Gem::Requirement
23
26
  requirements:
24
- - - "~>"
27
+ - - ">="
25
28
  - !ruby/object:Gem::Version
26
- version: '1.10'
29
+ version: 2.0.0
30
+ - - "<"
31
+ - !ruby/object:Gem::Version
32
+ version: 3.0.0.pre
27
33
  - !ruby/object:Gem::Dependency
28
- name: thor
34
+ name: faraday-multipart
29
35
  requirement: !ruby/object:Gem::Requirement
30
36
  requirements:
31
37
  - - ">="
32
38
  - !ruby/object:Gem::Version
33
- version: 0.14.0
39
+ version: 1.0.0
34
40
  - - "<"
35
41
  - !ruby/object:Gem::Version
36
- version: 1.1.0.pre
42
+ version: 2.0.0.pre
37
43
  type: :runtime
38
44
  prerelease: false
39
45
  version_requirements: !ruby/object:Gem::Requirement
40
46
  requirements:
41
47
  - - ">="
42
48
  - !ruby/object:Gem::Version
43
- version: 0.14.0
49
+ version: 1.0.0
44
50
  - - "<"
45
51
  - !ruby/object:Gem::Version
46
- version: 1.1.0.pre
52
+ version: 2.0.0.pre
47
53
  - !ruby/object:Gem::Dependency
48
- name: netrc
54
+ name: highline
49
55
  requirement: !ruby/object:Gem::Requirement
50
56
  requirements:
51
57
  - - ">="
52
58
  - !ruby/object:Gem::Version
53
- version: 0.10.0
59
+ version: 1.6.0
54
60
  - - "<"
55
61
  - !ruby/object:Gem::Version
56
- version: 0.12.0.pre
62
+ version: 2.2.0.pre
57
63
  type: :runtime
58
64
  prerelease: false
59
65
  version_requirements: !ruby/object:Gem::Requirement
60
66
  requirements:
61
67
  - - ">="
62
68
  - !ruby/object:Gem::Version
63
- version: 0.10.0
69
+ version: 1.6.0
64
70
  - - "<"
65
71
  - !ruby/object:Gem::Version
66
- version: 0.12.0.pre
72
+ version: 2.2.0.pre
67
73
  - !ruby/object:Gem::Dependency
68
- name: faraday
74
+ name: multi_json
75
+ requirement: !ruby/object:Gem::Requirement
76
+ requirements:
77
+ - - "~>"
78
+ - !ruby/object:Gem::Version
79
+ version: '1.10'
80
+ type: :runtime
81
+ prerelease: false
82
+ version_requirements: !ruby/object:Gem::Requirement
83
+ requirements:
84
+ - - "~>"
85
+ - !ruby/object:Gem::Version
86
+ version: '1.10'
87
+ - !ruby/object:Gem::Dependency
88
+ name: netrc
69
89
  requirement: !ruby/object:Gem::Requirement
70
90
  requirements:
71
91
  - - ">="
72
92
  - !ruby/object:Gem::Version
73
- version: 0.9.0
93
+ version: 0.10.0
74
94
  - - "<"
75
95
  - !ruby/object:Gem::Version
76
- version: 1.1.0.pre
96
+ version: 0.12.0.pre
77
97
  type: :runtime
78
98
  prerelease: false
79
99
  version_requirements: !ruby/object:Gem::Requirement
80
100
  requirements:
81
101
  - - ">="
82
102
  - !ruby/object:Gem::Version
83
- version: 0.9.0
103
+ version: 0.10.0
84
104
  - - "<"
85
105
  - !ruby/object:Gem::Version
86
- version: 1.1.0.pre
106
+ version: 0.12.0.pre
87
107
  - !ruby/object:Gem::Dependency
88
- name: highline
108
+ name: progressbar
89
109
  requirement: !ruby/object:Gem::Requirement
90
110
  requirements:
91
111
  - - ">="
92
112
  - !ruby/object:Gem::Version
93
- version: 1.6.0
113
+ version: 1.10.1
94
114
  - - "<"
95
115
  - !ruby/object:Gem::Version
96
- version: 2.1.0.pre
116
+ version: 2.0.0.pre
97
117
  type: :runtime
98
118
  prerelease: false
99
119
  version_requirements: !ruby/object:Gem::Requirement
100
120
  requirements:
101
121
  - - ">="
102
122
  - !ruby/object:Gem::Version
103
- version: 1.6.0
123
+ version: 1.10.1
104
124
  - - "<"
105
125
  - !ruby/object:Gem::Version
106
- version: 2.1.0.pre
126
+ version: 2.0.0.pre
107
127
  - !ruby/object:Gem::Dependency
108
- name: progressbar
128
+ name: thor
109
129
  requirement: !ruby/object:Gem::Requirement
110
130
  requirements:
111
131
  - - ">="
112
132
  - !ruby/object:Gem::Version
113
- version: 1.10.1
133
+ version: 0.14.0
114
134
  - - "<"
115
135
  - !ruby/object:Gem::Version
116
- version: 2.0.0.pre
136
+ version: 1.3.0.pre
117
137
  type: :runtime
118
138
  prerelease: false
119
139
  version_requirements: !ruby/object:Gem::Requirement
120
140
  requirements:
121
141
  - - ">="
122
142
  - !ruby/object:Gem::Version
123
- version: 1.10.1
143
+ version: 0.14.0
124
144
  - - "<"
125
145
  - !ruby/object:Gem::Version
126
- version: 2.0.0.pre
146
+ version: 1.3.0.pre
127
147
  description: 'Hosted repo for your public and private packages at https://gemfury.com
128
148
 
129
- '
149
+ '
130
150
  email: hello@gemfury.com
131
151
  executables:
132
152
  - gemfury
@@ -158,7 +178,8 @@ files:
158
178
  homepage: https://gemfury.com
159
179
  licenses:
160
180
  - MIT
161
- metadata: {}
181
+ metadata:
182
+ rubygems_mfa_required: 'true'
162
183
  post_install_message: |
163
184
  ************************************************************************
164
185
 
@@ -182,15 +203,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
182
203
  requirements:
183
204
  - - ">="
184
205
  - !ruby/object:Gem::Version
185
- version: '0'
206
+ version: 2.6.0
186
207
  required_rubygems_version: !ruby/object:Gem::Requirement
187
208
  requirements:
188
- - - ">="
209
+ - - ">"
189
210
  - !ruby/object:Gem::Version
190
- version: '0'
211
+ version: 1.3.1
191
212
  requirements: []
192
- rubyforge_project:
193
- rubygems_version: 2.7.8
213
+ rubygems_version: 3.1.2
194
214
  signing_key:
195
215
  specification_version: 4
196
216
  summary: Hosted repo for your public and private packages