gemirro 1.0.0 → 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
  SHA256:
3
- metadata.gz: 809eb09ef1da4fd33100b1455f0acf3b068a97b27d4ed9f01bd72c2d6724b68d
4
- data.tar.gz: 23334e2ba6c56dc17d0f008e1de09dbc9923d5bd61d98264751a214a71224774
3
+ metadata.gz: ce79c3d8b29c2f541a1ea6a126cb00db2edc7cb6850892bad6373af8554e0df6
4
+ data.tar.gz: 121a2dd017cd6d17052099eb9c4b8caff56f4d046a5e66762f7084e74f54d628
5
5
  SHA512:
6
- metadata.gz: 347d4a085fee470c4f9b437fc0e1d8ae486947cbda75a27d910f8695bdf49699bd31e052b8522db5d496e21ff5adb5293adb48cc46da827aa0d6b2f7d1c9f11e
7
- data.tar.gz: 86db43bee5247cfaea9708027128756a47c4e50ef27ca130b6c9f02cc949b25a164f23b6ed66b0a47230a797b82c43f8291becd6c69b596b3cdc485d14c2aa94
6
+ metadata.gz: aa75d648ea174ce7c67d7c7be7ab3d05329ef379f8cba02fcb133d6426ddcc28e64c2e9050e104eacf37ce260beb254c5725fb8482f67acf2f6f6f184d023017
7
+ data.tar.gz: 253aaa641bb04a6abac1b81f1a440c70247fac63af87cb6669ab6ef0b286de274a57f0bdffa3b18c424a5db6355a719bf1c1fd19b33ad9e535fcb2045859a578
data/.rubocop.yml CHANGED
@@ -31,3 +31,5 @@ Metrics/BlockLength:
31
31
  Enabled: false
32
32
  Security/MarshalLoad:
33
33
  Enabled: false
34
+ Style/ExpandPathArguments:
35
+ Enabled: false
data/gemirro.gemspec CHANGED
@@ -23,7 +23,7 @@ Gem::Specification.new do |s|
23
23
  s.add_dependency 'erubis', '~>2.7'
24
24
  s.add_dependency 'httpclient', '~>2.8'
25
25
  s.add_dependency 'parallel', '~>1.12'
26
- s.add_dependency 'sinatra', '~>2.0'
26
+ s.add_dependency 'sinatra', '~>2.0.1'
27
27
  s.add_dependency 'slop', '~>3.6'
28
28
  s.add_dependency 'thin', '~>1.7'
29
29
 
@@ -70,7 +70,7 @@ Gemirro::CLI.options.command 'server' do
70
70
  end
71
71
  end
72
72
 
73
- Process.daemon
73
+ Process.daemon if Utils.configuration.server.daemonize
74
74
  create_pid
75
75
  STDOUT.reopen @orig_stdout
76
76
  puts "done! (PID is #{pid})\n"
@@ -7,7 +7,8 @@ module Gemirro
7
7
  default_config = {
8
8
  server: {
9
9
  access_log: '/tmp/gemirro.access.log',
10
- error_log: '/tmp/gemirro.access.log'
10
+ error_log: '/tmp/gemirro.access.log',
11
+ daemonize: true
11
12
  },
12
13
 
13
14
  update_on_fetch: true,
data/lib/gemirro/gem.rb CHANGED
@@ -23,7 +23,7 @@ module Gemirro
23
23
  # @return [Gem::Version]
24
24
  #
25
25
  def self.version_for(requirement)
26
- ::Gem::Version.new(requirement.requirements.sort.last.last.version)
26
+ ::Gem::Version.new(requirement.requirements.max.last.version)
27
27
  end
28
28
 
29
29
  ##
@@ -168,7 +168,7 @@ module Gemirro
168
168
 
169
169
  Utils.logger.info('Generating indexes')
170
170
  indexer.update_index
171
- indexer.updated_gems.peach do |gem|
171
+ indexer.updated_gems.each do |gem|
172
172
  Utils.cache.flush_key(File.basename(gem))
173
173
  end
174
174
  rescue SystemExit => e
@@ -1,4 +1,4 @@
1
1
  # Gemirro Version
2
2
  module Gemirro
3
- VERSION = '1.0.0'.freeze
3
+ VERSION = '1.1.0'.freeze
4
4
  end
data/template/config.rb CHANGED
@@ -17,6 +17,9 @@ Gemirro.configuration.configure do
17
17
  #
18
18
  # server.host 'localhost'
19
19
  # server.port '2000'
20
+
21
+ # If you don't want the server to run daemonized, uncomment the following
22
+ # server.daemonize false
20
23
  server.access_log File.expand_path('../logs/access.log', __FILE__)
21
24
  server.error_log File.expand_path('../logs/error.log', __FILE__)
22
25
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gemirro
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Pierre Rambaud
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-01-30 00:00:00.000000000 Z
11
+ date: 2018-05-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: addressable
@@ -100,14 +100,14 @@ dependencies:
100
100
  requirements:
101
101
  - - "~>"
102
102
  - !ruby/object:Gem::Version
103
- version: '2.0'
103
+ version: 2.0.1
104
104
  type: :runtime
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: '2.0'
110
+ version: 2.0.1
111
111
  - !ruby/object:Gem::Dependency
112
112
  name: slop
113
113
  requirement: !ruby/object:Gem::Requirement
@@ -317,7 +317,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
317
317
  version: '0'
318
318
  requirements: []
319
319
  rubyforge_project:
320
- rubygems_version: 2.7.4
320
+ rubygems_version: 2.7.6
321
321
  signing_key:
322
322
  specification_version: 4
323
323
  summary: Gem for easily creating your own gems mirror.