diff --git a/CHANGELOG.md b/CHANGELOG.md index b1aae7d7..57616738 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,8 @@ # Hanami::Controller Complete, fast and testable actions for Rack +## v1.0.0 - 2017-04-06 + ## v1.0.0.rc1 - 2017-03-31 ## v1.0.0.beta3 - 2017-03-17 diff --git a/Gemfile b/Gemfile index d61a9955..7db37a7a 100644 --- a/Gemfile +++ b/Gemfile @@ -7,11 +7,11 @@ unless ENV['TRAVIS'] end gem 'minitest', '~> 5.8' -gem 'hanami-utils', '~> 1.0.0.rc1', require: false, github: 'hanami/utils', branch: '1.0.x' -gem 'hanami-router', '~> 1.0.0.rc1', require: false, github: 'hanami/router', branch: '1.0.x' +gem 'hanami-utils', '~> 1.0', require: false, git: 'https://github.com/hanami/utils.git', branch: '1.0.x' +gem 'hanami-router', '~> 1.0', require: false, git: 'https://github.com/hanami/router.git', branch: '1.0.x' group :validations do - gem 'hanami-validations', '~> 1.0.0.rc1', require: false, github: 'hanami/validations', branch: '1.0.x' + gem 'hanami-validations', '~> 1.0', require: false, git: 'https://github.com/hanami/validations.git', branch: '1.0.x' end gem 'coveralls', require: false diff --git a/hanami-controller.gemspec b/hanami-controller.gemspec index db1ee09c..a606951d 100644 --- a/hanami-controller.gemspec +++ b/hanami-controller.gemspec @@ -20,7 +20,7 @@ Gem::Specification.new do |spec| spec.required_ruby_version = '>= 2.3.0' spec.add_dependency 'rack', '~> 2.0' - spec.add_dependency 'hanami-utils', '~> 1.0.0.rc1' + spec.add_dependency 'hanami-utils', '~> 1.0' spec.add_development_dependency 'bundler', '~> 1.6' spec.add_development_dependency 'rack-test', '~> 0.6' diff --git a/lib/hanami/action/base_params.rb b/lib/hanami/action/base_params.rb index bec235db..c7e81581 100644 --- a/lib/hanami/action/base_params.rb +++ b/lib/hanami/action/base_params.rb @@ -20,7 +20,7 @@ class BaseParams # The key that returns Rack session params from the Rack env # Please note that this is used only when an action is unit tested. # - # @since 1.0.0.beta1 + # @since 1.0.0 # @api private # # @example diff --git a/lib/hanami/action/flash.rb b/lib/hanami/action/flash.rb index 163cfd90..2443d565 100644 --- a/lib/hanami/action/flash.rb +++ b/lib/hanami/action/flash.rb @@ -93,7 +93,7 @@ def empty? # @return [String] # - # @since 1.0.0.beta2 + # @since 1.0.0 def inspect "#<#{self.class}:#{'0x%x' % (__id__ << 1)} #{@merged.inspect}>" end @@ -144,7 +144,7 @@ def remove! @session.delete(SESSION_KEY) if empty? end - # @since 1.0.0.beta2 + # @since 1.0.0 # @api private # # @see Hanami::Action::Flash#[] diff --git a/lib/hanami/action/mime.rb b/lib/hanami/action/mime.rb index b332dbca..cb01ff45 100644 --- a/lib/hanami/action/mime.rb +++ b/lib/hanami/action/mime.rb @@ -42,7 +42,7 @@ module Mime # Most commom MIME Types used for responses # - # @since 1.0.0.beta1 + # @since 1.0.0 # @api private MIME_TYPES = { txt: 'text/plain', diff --git a/lib/hanami/action/rack.rb b/lib/hanami/action/rack.rb index d4c22f48..97f740c8 100644 --- a/lib/hanami/action/rack.rb +++ b/lib/hanami/action/rack.rb @@ -12,19 +12,19 @@ module Action module Rack # Rack SPEC response code # - # @since 1.0.0.beta2 + # @since 1.0.0 # @api private RESPONSE_CODE = 0 # Rack SPEC response headers # - # @since 1.0.0.beta2 + # @since 1.0.0 # @api private RESPONSE_HEADERS = 1 # Rack SPEC response body # - # @since 1.0.0.beta2 + # @since 1.0.0 # @api private RESPONSE_BODY = 2 @@ -36,7 +36,7 @@ module Rack # Not Found # - # @since 1.0.0.beta2 + # @since 1.0.0 # @api private NOT_FOUND = 404 @@ -62,14 +62,14 @@ module Rack # The Content-Length HTTP header # - # @since 1.0.0.beta2 + # @since 1.0.0 # @api private CONTENT_LENGTH = 'Content-Length'.freeze # The non-standard HTTP header to pass the control over when a resource # cannot be found by the current endpoint # - # @since 1.0.0.beta2 + # @since 1.0.0 # @api private X_CASCADE = 'X-Cascade'.freeze @@ -335,7 +335,7 @@ def send_file(path) # @param path [String, Pathname] path to the file to be sent # @return [void] # - # @since 1.0.0.beta2 + # @since 1.0.0 # # @example # require 'hanami/controller' @@ -373,7 +373,7 @@ def request_method @_env[REQUEST_METHOD] end - # @since 1.0.0.beta2 + # @since 1.0.0 # @api private def _send_file(response) headers.merge!(response[RESPONSE_HEADERS]) diff --git a/lib/hanami/action/rack/file.rb b/lib/hanami/action/rack/file.rb index 7b00b7c6..eee2c690 100644 --- a/lib/hanami/action/rack/file.rb +++ b/lib/hanami/action/rack/file.rb @@ -12,7 +12,7 @@ module Rack class File # The key that returns path info from the Rack env # - # @since 1.0.0.beta1 + # @since 1.0.0 # @api private PATH_INFO = "PATH_INFO".freeze diff --git a/lib/hanami/controller/configuration.rb b/lib/hanami/controller/configuration.rb index c2d290f0..d850e253 100644 --- a/lib/hanami/controller/configuration.rb +++ b/lib/hanami/controller/configuration.rb @@ -30,7 +30,7 @@ class Configuration # # It serves as base root for file downloads # - # @since 1.0.0.beta1 + # @since 1.0.0 # @api private DEFAULT_PUBLIC_DIRECTORY = 'public'.freeze @@ -220,7 +220,7 @@ def handled_exception?(exception) # # @param exception [Exception] an exception # - # @since 1.0.0.beta1 + # @since 1.0.0 # @api private # # @see Hanami::Controller::Configuration#handle_exception @@ -439,7 +439,7 @@ def mime_types # # @param mime_types [Array] the set of MIME types # - # @since 1.0.0.beta1 + # @since 1.0.0 # @api private # # @see Hanami::Action::Mime::ClassMethods#accept @@ -652,7 +652,7 @@ def mime_type_for(format) end # @api private - # @since 1.0.0.beta2 + # @since 1.0.0 attr_reader :root_directory def public_directory(value = nil) diff --git a/lib/hanami/controller/version.rb b/lib/hanami/controller/version.rb index 79a6e70d..34f26029 100644 --- a/lib/hanami/controller/version.rb +++ b/lib/hanami/controller/version.rb @@ -3,6 +3,6 @@ module Controller # Defines the version # # @since 0.1.0 - VERSION = '1.0.0.rc1'.freeze + VERSION = '1.0.0'.freeze end end diff --git a/test/version_test.rb b/test/version_test.rb index 0ec89ce8..56e7b52e 100644 --- a/test/version_test.rb +++ b/test/version_test.rb @@ -2,6 +2,6 @@ describe Hanami::Controller::VERSION do it 'returns the current version' do - Hanami::Controller::VERSION.must_equal '1.0.0.rc1' + Hanami::Controller::VERSION.must_equal '1.0.0' end end