Este sítio funciona melhor com JavaScript.
Página inicial
Explorar
Ajuda
Iniciar sessão
abunchtell
/
mastodon
Vigiar
1
Marcar como favorito
0
Derivar
0
Código
Questões
0
Trabalho
Ver a proveniência
Bump version, improve how version is stored for better commit history (
#2526
)
master
Eugen Rochko
há 7 anos
committed by
GitHub
ascendente
b48f2cbc8b
cometimento
b48c9013aa
4 ficheiros alterados
com
30 adições
e
4 eliminações
Visualização em 2 colunas
Opções das diferenças
Mostrar estatísticas
Descarregar ficheiro patch
Descarregar ficheiro diff
+1
-1
app/helpers/http_helper.rb
+1
-1
app/presenters/instance_presenter.rb
+1
-1
app/views/api/v1/instances/show.rabl
+27
-1
lib/mastodon/version.rb
+ 1
- 1
app/helpers/http_helper.rb
Ver ficheiro
@@ -1,7 +1,7 @@
# frozen_string_literal: true
module HttpHelper
USER_AGENT = "#{HTTP::Request::USER_AGENT} (Mastodon/#{Mastodon::V
ERSION
}; +http://#{Rails.configuration.x.local_domain}/)"
USER_AGENT = "#{HTTP::Request::USER_AGENT} (Mastodon/#{Mastodon::V
ersion
}; +http://#{Rails.configuration.x.local_domain}/)"
def http_client(options = {})
timeout = { write: 10, connect: 10, read: 10 }.merge(options)
+ 1
- 1
app/presenters/instance_presenter.rb
Ver ficheiro
@@ -27,6 +27,6 @@ class InstancePresenter
end
def version_number
Mastodon::V
ERSION
Mastodon::V
ersion
end
end
+ 1
- 1
app/views/api/v1/instances/show.rabl
Ver ficheiro
@@ -4,4 +4,4 @@ node(:uri) { site_hostname }
node(:title) { Setting.site_title }
node(:description) { Setting.site_description }
node(:email) { Setting.site_contact_email }
node(:version) { Mastodon::V
ERSION
}
node(:version) { Mastodon::V
ersion
}
+ 27
- 1
lib/mastodon/version.rb
Ver ficheiro
@@ -1,5 +1,31 @@
# frozen_string_literal: true
module Mastodon
VERSION = '1.2.2'
module Version
module_function
def major
1
end
def minor
3
end
def patch
0
end
def pre
nil
end
def to_a
[major, minor, patch, pre].compact
end
def to_s
to_a.join('.')
end
end
end
Escrever
Pré-visualizar
Carregando…
Cancelar
Guardar