middleman-targets 1.0.6 → 1.0.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d82480769f95eaac813243c7929ca199f36ffa5b
4
- data.tar.gz: 991f1492c11900ded03061961e8b8c3426fc001e
3
+ metadata.gz: e34940fd32f574977097b9092ba42a88cdc067bb
4
+ data.tar.gz: a476d42726325de71f5fb21cd73d861e0974e6e8
5
5
  SHA512:
6
- metadata.gz: 0a8975f43c2e6653edb4519da03ed82263e2e003d851432e78b58c442879c4eff647a31fc7ecbbf102b05761eae1573768d7e5fd067ea12089b2137ec6338a16
7
- data.tar.gz: decf462d568bef42d85022cdf013643ddfb72a8a792b657ffc291998ac2b113406cca9dc4b7d95c5aa76ab4169d620052f7b236ee908d857aabc28eba9ff03e4
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.6 / 2016-May-11
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
- update_version_file( version_new )
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
- update_version_file( version_new )
109
- update_doc_file( version_new )
110
- Middleman::MiddlemanTargets.send(:remove_const, 'VERSION')
111
- Middleman::MiddlemanTargets::VERSION = version_new
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
- # update_version_file
179
- # Replace the version in the `version.rb` file.
180
- ###############################################################################
181
- def update_version_file( version_new )
182
- file = File.expand_path('../lib/middleman-targets/version.rb', __FILE__)
183
- content = File.read(file)
184
- content.sub!(/(?<=VERSION = ')(.*)(?=')/, version_new)
185
- File.write(file, content)
186
- puts "version.rb changed to #{version_new}."
187
- end
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
@@ -9,6 +9,6 @@ gem 'wdm', '~> 0.1.0', platforms: [:mswin, :mingw]
9
9
  gem 'tzinfo-data', platforms: [:mswin, :mingw, :jruby]
10
10
 
11
11
  # Middleman Gems
12
- gem 'middleman-targets', '~>1.0.5'
12
+ gem 'middleman-targets', '~> 1.0.7'
13
13
  gem 'middleman', '~> 4.1.6'
14
14
  gem 'middleman-syntax'
@@ -103,11 +103,7 @@ helpers do
103
103
  end
104
104
 
105
105
  def product_version
106
- '1.0.6'
107
- end
108
-
109
- def product_uri
110
- 'https://github.com/middlemac'
106
+ '1.0.7'
111
107
  end
112
108
 
113
109
  end
@@ -1,5 +1,5 @@
1
1
  module Middleman
2
2
  module MiddlemanTargets
3
- VERSION = '1.0.6'
3
+ VERSION = '1.0.7'
4
4
  end
5
5
  end
@@ -31,4 +31,5 @@ Gem::Specification.new do |s|
31
31
  s.add_development_dependency 'bundler', '>= 1.6'
32
32
  s.add_development_dependency 'rake', '>= 10.3'
33
33
  s.add_development_dependency 'git'
34
+ s.add_development_dependency 'capybara', ['~> 2.5.0']
34
35
  end
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.6
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 00:00:00.000000000 Z
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.4.8
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.