From 7c1d716ff357e4e71f7a0aa64070959e27492c15 Mon Sep 17 00:00:00 2001 From: Stefano Verna Date: Tue, 8 Nov 2016 12:09:56 +0100 Subject: [PATCH] Bump version --- lib/middleman_dato/middleman_extension.rb | 11 ++--------- lib/middleman_dato/version.rb | 2 +- middleman-dato.gemspec | 5 ++--- 3 files changed, 5 insertions(+), 13 deletions(-) diff --git a/lib/middleman_dato/middleman_extension.rb b/lib/middleman_dato/middleman_extension.rb index 1f1ffc2..dfa942e 100644 --- a/lib/middleman_dato/middleman_extension.rb +++ b/lib/middleman_dato/middleman_extension.rb @@ -1,7 +1,6 @@ # frozen_string_literal: true require 'middleman-core' require 'middleman-core/version' -require 'semantic' require 'dato/site/client' require 'dato/local/loader' require 'middleman_dato/meta_tags_builder' @@ -61,10 +60,8 @@ class MiddlemanExtension < ::Middleman::Extension option :api_base_url, 'https://site-api.datocms.com', 'Site API host' option :base_url, nil, 'Website base URL' - if Semantic::Version.new(Middleman::VERSION).major >= 4 - expose_to_config dato: :dato_collector - expose_to_application dato_items_repo: :items_repo - end + expose_to_config dato: :dato_collector + expose_to_application dato_items_repo: :items_repo def initialize(app, options_hash = {}, &block) super @@ -83,10 +80,6 @@ def initialize(app, options_hash = {}, &block) Watcher.instance.shutdown(app) end end - - if Semantic::Version.new(Middleman::VERSION).major <= 3 - app.send :include, InstanceMethods - end end def client diff --git a/lib/middleman_dato/version.rb b/lib/middleman_dato/version.rb index a79c229..52ed46d 100644 --- a/lib/middleman_dato/version.rb +++ b/lib/middleman_dato/version.rb @@ -1,4 +1,4 @@ # frozen_string_literal: true module MiddlemanDato - VERSION = '0.5.24' + VERSION = '0.6.0' end diff --git a/middleman-dato.gemspec b/middleman-dato.gemspec index dbee0a7..643b2f7 100644 --- a/middleman-dato.gemspec +++ b/middleman-dato.gemspec @@ -22,9 +22,8 @@ Gem::Specification.new do |s| s.add_development_dependency('coveralls') - s.add_runtime_dependency('middleman-core', ['>= 3.3.12']) - s.add_runtime_dependency('dato', ['>= 0.1.22']) - s.add_runtime_dependency('semantic') + s.add_runtime_dependency('middleman-core', ['>= 4.1.10']) + s.add_runtime_dependency('dato', ['>= 0.2.4']) s.add_runtime_dependency('activesupport') s.add_runtime_dependency('pusher-client') end