Skip to content
This repository has been archived by the owner on Nov 3, 2022. It is now read-only.

Commit

Permalink
Bump version
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanoverna committed Nov 8, 2016
1 parent 5f74fea commit 7c1d716
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 13 deletions.
11 changes: 2 additions & 9 deletions lib/middleman_dato/middleman_extension.rb
Original file line number Diff line number Diff line change
@@ -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'
Expand Down Expand Up @@ -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
Expand All @@ -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
Expand Down
2 changes: 1 addition & 1 deletion lib/middleman_dato/version.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# frozen_string_literal: true
module MiddlemanDato
VERSION = '0.5.24'
VERSION = '0.6.0'
end
5 changes: 2 additions & 3 deletions middleman-dato.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 7c1d716

Please sign in to comment.