This repository was archived by the owner on Sep 10, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmiddleman-target.gemspec
52 lines (40 loc) · 1.83 KB
/
middleman-target.gemspec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
require 'rubygems'
spec = Gem::Specification.new do |s|
s.name = "middleman-target"
s.version = "0.0.8"
s.author = "Matthew Nielsen"
s.email = "[email protected]"
s.homepage = "https://github.com/xunker/middleman-target"
s.summary = "Build a middleman project for multiple platforms using the same codebase"
s.description = "Allows you to build a middleman project for multiple platforms using the same codebase. Useful for creating PhoneGap/Cordova apps that target multiple OSes while using same source tree."
s.license = 'MIT'
s.files = `git ls-files`.split($/).reject{|fn| fn =~ /^\.ruby\-/}
s.has_rdoc = false
s.add_dependency("middleman", ">= 3.0")
s.add_development_dependency('rake', '~> 0')
s.add_development_dependency('cucumber', '~> 2.0')
s.add_development_dependency('aruba', '~> 0.8')
s.add_development_dependency('rspec', '~> 3.0')
# Check for the current installed version of middleman.
# We'll let this work with anything greater than 3.0, but
# show the user a warning if the version is greater than
# highest_tested_version.
current_middleman_version = begin
Gem::Specification.detect{|g|g.name=='middleman'}.version
rescue NoMethodError
nil
end
# if current_middleman_version is nil it's because we're doing a
# bundle install or some such and we should let it go.
if current_middleman_version
highest_tested_version = Gem::Version.new("3.3.12")
if (current_middleman_version > highest_tested_version)
s.post_install_message = <<EOF
Notice: This version of middleman-target has only been tested with
middleman #{highest_tested_version}, you are using #{current_middleman_version}. It will probably
work just fine, but if it doesn't please file an issue on the
Github page: https://github.com/xunker/middleman-target/issues
EOF
end
end
end