middleman-targets 1.0.6 → 1.0.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +9 -2
- data/Rakefile +36 -28
- data/documentation_project/Gemfile +1 -1
- data/documentation_project/config.rb +1 -5
- data/lib/middleman-targets/version.rb +1 -1
- data/middleman-targets.gemspec +1 -0
- metadata +17 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e34940fd32f574977097b9092ba42a88cdc067bb
|
4
|
+
data.tar.gz: a476d42726325de71f5fb21cd73d861e0974e6e8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0f78348d953a9d4a2fc4c57c4bce4acaa788ab0e0831f0f69d445f2a424a9ff116b106142cc53f48ff67c4e8b26f5dd02c5930d997e2995c6addeae156bc530f
|
7
|
+
data.tar.gz: 864a4824fb85e9de8250707f9f88cd73f36f89d84d6d4e9322f1b27e3da5b1810a0a8557e81c0be5c6d6ddebf4a6e51b9d582e5e023dc3659c5863693f05320c
|
data/CHANGELOG.md
CHANGED
@@ -1,8 +1,15 @@
|
|
1
1
|
middleman-targets change log
|
2
2
|
============================
|
3
3
|
|
4
|
-
- Version 1.0.
|
5
|
-
|
4
|
+
- Version 1.0.7 / 2016-May-15
|
5
|
+
|
6
|
+
- Bump to 1.0.7 fixes:
|
7
|
+
- Require capybara as development dependency fixes broken testing.
|
8
|
+
- Improved the Rakefile version manipulation system.
|
9
|
+
- Ensure sample project uses correct Gem versions.
|
10
|
+
- Version 1.0.7.wip
|
11
|
+
- Bump to 1.0.7.wip.
|
12
|
+
- to be determined.
|
6
13
|
- Version 1.0.6
|
7
14
|
- Added the missing documentation file git didn't commit.
|
8
15
|
- Introduced several RAKE tasks to manage distribution.
|
data/Rakefile
CHANGED
@@ -88,10 +88,7 @@ desc 'Remove any wip suffix from the version'
|
|
88
88
|
task :version_finalize do
|
89
89
|
version_old = Middleman::MiddlemanTargets::VERSION
|
90
90
|
version_new = version_old.sub('.wip', '')
|
91
|
-
|
92
|
-
update_doc_file( version_new )
|
93
|
-
Middleman::MiddlemanTargets.send(:remove_const, 'VERSION')
|
94
|
-
Middleman::MiddlemanTargets::VERSION = version_new
|
91
|
+
update_versions( version_new )
|
95
92
|
end
|
96
93
|
|
97
94
|
|
@@ -105,10 +102,17 @@ task :version_next_wip do
|
|
105
102
|
version_new = version_old.sub('.wip', '').split('.')
|
106
103
|
version_new.last.succ!
|
107
104
|
version_new = version_new.join('.') + '.wip'
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
105
|
+
update_versions( version_new )
|
106
|
+
end
|
107
|
+
|
108
|
+
|
109
|
+
###############################################################################
|
110
|
+
# :version_set
|
111
|
+
# Sets an arbitrary version.
|
112
|
+
###############################################################################
|
113
|
+
desc 'Sets all of the files to the version specified. Use rake version_set[value].'
|
114
|
+
task :version_set, :new_version do |t, args|
|
115
|
+
update_versions( args[:new_version] )
|
112
116
|
end
|
113
117
|
|
114
118
|
|
@@ -175,25 +179,29 @@ private
|
|
175
179
|
|
176
180
|
|
177
181
|
###############################################################################
|
178
|
-
#
|
179
|
-
#
|
180
|
-
###############################################################################
|
181
|
-
def
|
182
|
-
|
183
|
-
|
184
|
-
|
185
|
-
|
186
|
-
|
187
|
-
|
182
|
+
# update_versions
|
183
|
+
# Update the version in various files that depend on the correct version.
|
184
|
+
###############################################################################
|
185
|
+
def update_versions( version_new )
|
186
|
+
[ {
|
187
|
+
:file => File.expand_path('../lib/middleman-targets/version.rb', __FILE__),
|
188
|
+
:regex => /(?<=VERSION = ')(.*)(?=')/
|
189
|
+
},
|
190
|
+
{
|
191
|
+
:file => File.expand_path('../documentation_project/Gemfile', __FILE__),
|
192
|
+
:regex => /(?<=gem 'middleman-targets', '~> ).*(?=')/
|
193
|
+
},
|
194
|
+
{
|
195
|
+
:file => File.expand_path('../documentation_project/config.rb', __FILE__),
|
196
|
+
:regex => /(?<=def product_version\n ').*?(?='\n end)/m
|
197
|
+
},
|
198
|
+
].each do | item |
|
199
|
+
|
200
|
+
content = File.read( item[:file] )
|
201
|
+
content.gsub!( item[:regex], version_new )
|
202
|
+
File.write( item[:file], content )
|
203
|
+
puts "#{File.basename( item[:file] )} changed to '#{version_new}'."
|
204
|
+
end
|
188
205
|
|
189
|
-
|
190
|
-
# update_doc_file
|
191
|
-
# Replace the version in the `documentation_project/config.rb` file.
|
192
|
-
###############################################################################
|
193
|
-
def update_doc_file( version_new )
|
194
|
-
file = File.expand_path('../documentation_project/config.rb', __FILE__)
|
195
|
-
content = File.read(file)
|
196
|
-
content.sub!(/(?<=def product_version).*?(?=end)/m, "\n '#{version_new}'\n")
|
197
|
-
File.write(file, content)
|
198
|
-
puts "config.rb changed to #{version_new}."
|
206
|
+
Middleman::MiddlemanTargets::VERSION.replace version_new
|
199
207
|
end
|
data/middleman-targets.gemspec
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: middleman-targets
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jim Derry
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-05-
|
11
|
+
date: 2016-05-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: middleman-core
|
@@ -112,6 +112,20 @@ dependencies:
|
|
112
112
|
- - ">="
|
113
113
|
- !ruby/object:Gem::Version
|
114
114
|
version: '0'
|
115
|
+
- !ruby/object:Gem::Dependency
|
116
|
+
name: capybara
|
117
|
+
requirement: !ruby/object:Gem::Requirement
|
118
|
+
requirements:
|
119
|
+
- - "~>"
|
120
|
+
- !ruby/object:Gem::Version
|
121
|
+
version: 2.5.0
|
122
|
+
type: :development
|
123
|
+
prerelease: false
|
124
|
+
version_requirements: !ruby/object:Gem::Requirement
|
125
|
+
requirements:
|
126
|
+
- - "~>"
|
127
|
+
- !ruby/object:Gem::Version
|
128
|
+
version: 2.5.0
|
115
129
|
description: Provides multiple build targets and tools for Middleman.
|
116
130
|
email:
|
117
131
|
- balthisar@gmail.com
|
@@ -213,7 +227,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
213
227
|
version: '0'
|
214
228
|
requirements: []
|
215
229
|
rubyforge_project:
|
216
|
-
rubygems_version: 2.
|
230
|
+
rubygems_version: 2.5.1
|
217
231
|
signing_key:
|
218
232
|
specification_version: 4
|
219
233
|
summary: Provides multiple build targets and tools for Middleman.
|