reveal-ck 3.5.0 → 3.5.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 700f151b2efad7591e5ee3640a78c2f2790bbf7b
4
- data.tar.gz: dbba1d4ca370e5b5174c8a5fcb7dd8b47632a6c7
3
+ metadata.gz: 672a77ecbcabbec2df42ba7cfbba21b46a4a4123
4
+ data.tar.gz: 5daf328bdd2e713373469133d2ab9c566a36dd67
5
5
  SHA512:
6
- metadata.gz: a5c1599f7ce5133c88397c93287cde6653151f400abf79ae6a984d6768092473d24326ede93f74994d4a648cd020f6ac0615447f0341bda141fdb2e7aa647a2f
7
- data.tar.gz: 648f9c9768d2e7e2aa2e484a27ae6a814feb6de138a67329034041218e9a74a1b08685b3b93077949865ca41ef6d56322c31523a8cdc184770e443d60df6be1d
6
+ metadata.gz: 65d42838ba9a956611bd92dc4a45d62780849ce8b03d1cc897654bbae1327e621861a86ffc387a8c4bb7897829bed5fad8dc9d8d4de925e5e9967e6d5673ed27
7
+ data.tar.gz: fd19909cb7ef6bb81e77de54c5e63774a881068fa5bae128dec01ca629d124d4c20c8d36fd442ed3b9f58771315d17113f8e9d0dd8faf6556fb2563321bd8f1f
@@ -56,8 +56,8 @@ module RevealCK
56
56
  end
57
57
 
58
58
  def define(args, &task_block)
59
- last_comment = ::Rake.application.last_comment
60
- desc 'Generate a reveal.js presentation' unless last_comment
59
+ last_description = ::Rake.application.last_description
60
+ desc 'Generate a reveal.js presentation' unless last_description
61
61
  task name, *args do |_, task_args|
62
62
  RakeFileUtils.__send__(:verbose, verbose) do
63
63
  yield(*[self, task_args].slice(0, task_block.arity)) if task_block
@@ -1,4 +1,4 @@
1
1
  # RevealCK::VERSION is the current version of reveal-ck
2
2
  module RevealCK
3
- VERSION = '3.5.0'.freeze
3
+ VERSION = '3.5.1'.freeze
4
4
  end
@@ -0,0 +1,3 @@
1
+ ## <%= new_version %> / <%= todays_date %>
2
+
3
+ [Detailed Changes](https://github.com/jedcn/reveal-ck/compare/v<%= old_version %>...v<%= new_version %>)
@@ -0,0 +1,68 @@
1
+ def change_file(filepath, regex, regex_replacement)
2
+ current_content = File.open(filepath).read
3
+ new_content = current_content.gsub(regex, regex_replacement)
4
+ IO.write(filepath, new_content)
5
+ end
6
+
7
+ def update_version_rb(new_version)
8
+ change_file('lib/reveal-ck/version.rb',
9
+ /^ VERSION = '.*'\.freeze$/,
10
+ " VERSION = '#{new_version}'.freeze")
11
+ end
12
+
13
+ def update_gemspec(todays_date)
14
+ change_file('reveal-ck.gemspec',
15
+ /^ s.date = '.*'$/,
16
+ " s.date = '#{todays_date}'")
17
+ end
18
+
19
+ def update_detailed_changes(old_version, new_version, todays_date)
20
+ b = binding
21
+ detailed_changes = File.open('rakelib/detailed_changes.erb').read
22
+ modified = ERB.new(detailed_changes).result(b)
23
+ change_file('CHANGELOG.md',
24
+ /^## \[Unreleased\]\[unreleased\]\n\n\[unreleased\]: .*$\n/,
25
+ modified)
26
+ end
27
+
28
+ def add_unreleased_preamble(new_version)
29
+ b = binding
30
+ unreleased = File.open('rakelib/unreleased.erb').read
31
+ modified = ERB.new(unreleased).result(b)
32
+ change_file('CHANGELOG.md',
33
+ /^bugs are fixed.\n$/,
34
+ "bugs are fixed.\n#{modified}")
35
+ end
36
+
37
+ def update_changelog(old_version, new_version, todays_date)
38
+ update_detailed_changes(old_version, new_version, todays_date)
39
+ add_unreleased_preamble(new_version)
40
+ end
41
+
42
+ def echo(s)
43
+ puts "\n#{s}\n"
44
+ end
45
+
46
+ def print_next_steps(new_version)
47
+ echo 'Modified:'
48
+ echo " * lib/reveal-ck/version.rb\n * reveal-ck.gemspec\n * CHANGELOG.md"
49
+ echo '1. Next:'
50
+ commit_msg = "Updating CHANGELOG, version, .gemspec for #{new_version}"
51
+ echo " git add . && git commit -m '#{commit_msg}'"
52
+ echo '2. Verify your commit diff and then push to master'
53
+ echo '3. Visit: https://travis-ci.org/jedcn/reveal-ck/ and verify it passes'
54
+ echo '4. Release to rubygems:'
55
+ echo ' rm -rf pkg/* && bundle exec rake && bundle exec rake release'
56
+ echo "5. Update Relish: 'rake relish:push'\n"
57
+ end
58
+
59
+ desc 'Prepare to Release'
60
+ task :prep_release do
61
+ new_version = ENV['NEW_VERSION']
62
+ todays_date = Time.now.strftime('%Y-%m-%d')
63
+ update_version_rb(new_version)
64
+ update_gemspec(todays_date)
65
+ current_version = RevealCK::VERSION
66
+ update_changelog(current_version, new_version, todays_date)
67
+ print_next_steps(new_version)
68
+ end
@@ -0,0 +1,16 @@
1
+
2
+ ## [Unreleased][unreleased]
3
+
4
+ [unreleased]: https://github.com/jedcn/reveal-ck/compare/v<%= new_version %>...master
5
+
6
+ ### Added
7
+
8
+ * Nothing
9
+
10
+ ### Changed
11
+
12
+ * Nothing
13
+
14
+ ### Fixed
15
+
16
+ * Nothing.
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: reveal-ck
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.5.0
4
+ version: 3.5.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jed Northridge
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-01-07 00:00:00.000000000 Z
11
+ date: 2017-01-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: docile
@@ -30,56 +30,56 @@ dependencies:
30
30
  requirements:
31
31
  - - '='
32
32
  - !ruby/object:Gem::Version
33
- version: 2.1.0
33
+ version: 3.0.0
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - '='
39
39
  - !ruby/object:Gem::Version
40
- version: 2.1.0
40
+ version: 3.0.0
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: gli
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
45
  - - '='
46
46
  - !ruby/object:Gem::Version
47
- version: 2.13.2
47
+ version: 2.14.0
48
48
  type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
52
  - - '='
53
53
  - !ruby/object:Gem::Version
54
- version: 2.13.2
54
+ version: 2.14.0
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: guard
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
59
  - - '='
60
60
  - !ruby/object:Gem::Version
61
- version: 2.13.0
61
+ version: 2.14.0
62
62
  type: :runtime
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
66
  - - '='
67
67
  - !ruby/object:Gem::Version
68
- version: 2.13.0
68
+ version: 2.14.0
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: guard-livereload
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
73
  - - '='
74
74
  - !ruby/object:Gem::Version
75
- version: 2.4.0
75
+ version: 2.5.2
76
76
  type: :runtime
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
80
  - - '='
81
81
  - !ruby/object:Gem::Version
82
- version: 2.4.0
82
+ version: 2.5.2
83
83
  - !ruby/object:Gem::Dependency
84
84
  name: haml
85
85
  requirement: !ruby/object:Gem::Requirement
@@ -100,14 +100,14 @@ dependencies:
100
100
  requirements:
101
101
  - - '='
102
102
  - !ruby/object:Gem::Version
103
- version: 2.1.0
103
+ version: 2.4.2
104
104
  type: :runtime
105
105
  prerelease: false
106
106
  version_requirements: !ruby/object:Gem::Requirement
107
107
  requirements:
108
108
  - - '='
109
109
  - !ruby/object:Gem::Version
110
- version: 2.1.0
110
+ version: 2.4.2
111
111
  - !ruby/object:Gem::Dependency
112
112
  name: kramdown
113
113
  requirement: !ruby/object:Gem::Requirement
@@ -128,28 +128,28 @@ dependencies:
128
128
  requirements:
129
129
  - - '='
130
130
  - !ruby/object:Gem::Version
131
- version: 3.0.3
131
+ version: 3.1.5
132
132
  type: :runtime
133
133
  prerelease: false
134
134
  version_requirements: !ruby/object:Gem::Requirement
135
135
  requirements:
136
136
  - - '='
137
137
  - !ruby/object:Gem::Version
138
- version: 3.0.3
138
+ version: 3.1.5
139
139
  - !ruby/object:Gem::Dependency
140
140
  name: rack
141
141
  requirement: !ruby/object:Gem::Requirement
142
142
  requirements:
143
143
  - - '='
144
144
  - !ruby/object:Gem::Version
145
- version: 1.6.4
145
+ version: 2.0.1
146
146
  type: :runtime
147
147
  prerelease: false
148
148
  version_requirements: !ruby/object:Gem::Requirement
149
149
  requirements:
150
150
  - - '='
151
151
  - !ruby/object:Gem::Version
152
- version: 1.6.4
152
+ version: 2.0.1
153
153
  - !ruby/object:Gem::Dependency
154
154
  name: rack-livereload
155
155
  requirement: !ruby/object:Gem::Requirement
@@ -170,56 +170,56 @@ dependencies:
170
170
  requirements:
171
171
  - - '='
172
172
  - !ruby/object:Gem::Version
173
- version: 10.4.2
173
+ version: 12.0.0
174
174
  type: :runtime
175
175
  prerelease: false
176
176
  version_requirements: !ruby/object:Gem::Requirement
177
177
  requirements:
178
178
  - - '='
179
179
  - !ruby/object:Gem::Version
180
- version: 10.4.2
180
+ version: 12.0.0
181
181
  - !ruby/object:Gem::Dependency
182
182
  name: rinku
183
183
  requirement: !ruby/object:Gem::Requirement
184
184
  requirements:
185
185
  - - '='
186
186
  - !ruby/object:Gem::Version
187
- version: 1.7.3
187
+ version: 2.0.2
188
188
  type: :runtime
189
189
  prerelease: false
190
190
  version_requirements: !ruby/object:Gem::Requirement
191
191
  requirements:
192
192
  - - '='
193
193
  - !ruby/object:Gem::Version
194
- version: 1.7.3
194
+ version: 2.0.2
195
195
  - !ruby/object:Gem::Dependency
196
196
  name: slim
197
197
  requirement: !ruby/object:Gem::Requirement
198
198
  requirements:
199
199
  - - '='
200
200
  - !ruby/object:Gem::Version
201
- version: 3.0.6
201
+ version: 3.0.7
202
202
  type: :runtime
203
203
  prerelease: false
204
204
  version_requirements: !ruby/object:Gem::Requirement
205
205
  requirements:
206
206
  - - '='
207
207
  - !ruby/object:Gem::Version
208
- version: 3.0.6
208
+ version: 3.0.7
209
209
  - !ruby/object:Gem::Dependency
210
210
  name: tilt
211
211
  requirement: !ruby/object:Gem::Requirement
212
212
  requirements:
213
213
  - - '='
214
214
  - !ruby/object:Gem::Version
215
- version: 2.0.1
215
+ version: 2.0.5
216
216
  type: :runtime
217
217
  prerelease: false
218
218
  version_requirements: !ruby/object:Gem::Requirement
219
219
  requirements:
220
220
  - - '='
221
221
  - !ruby/object:Gem::Version
222
- version: 2.0.1
222
+ version: 2.0.5
223
223
  - !ruby/object:Gem::Dependency
224
224
  name: thor
225
225
  requirement: !ruby/object:Gem::Requirement
@@ -238,16 +238,16 @@ dependencies:
238
238
  name: aruba
239
239
  requirement: !ruby/object:Gem::Requirement
240
240
  requirements:
241
- - - "~>"
241
+ - - ">="
242
242
  - !ruby/object:Gem::Version
243
- version: '0.9'
243
+ version: '0'
244
244
  type: :development
245
245
  prerelease: false
246
246
  version_requirements: !ruby/object:Gem::Requirement
247
247
  requirements:
248
- - - "~>"
248
+ - - ">="
249
249
  - !ruby/object:Gem::Version
250
- version: '0.9'
250
+ version: '0'
251
251
  - !ruby/object:Gem::Dependency
252
252
  name: codeclimate-test-reporter
253
253
  requirement: !ruby/object:Gem::Requirement
@@ -266,16 +266,16 @@ dependencies:
266
266
  name: cucumber
267
267
  requirement: !ruby/object:Gem::Requirement
268
268
  requirements:
269
- - - "~>"
269
+ - - ">="
270
270
  - !ruby/object:Gem::Version
271
- version: '2.1'
271
+ version: '0'
272
272
  type: :development
273
273
  prerelease: false
274
274
  version_requirements: !ruby/object:Gem::Requirement
275
275
  requirements:
276
- - - "~>"
276
+ - - ">="
277
277
  - !ruby/object:Gem::Version
278
- version: '2.1'
278
+ version: '0'
279
279
  - !ruby/object:Gem::Dependency
280
280
  name: nokogiri
281
281
  requirement: !ruby/object:Gem::Requirement
@@ -308,30 +308,30 @@ dependencies:
308
308
  name: rspec
309
309
  requirement: !ruby/object:Gem::Requirement
310
310
  requirements:
311
- - - "~>"
311
+ - - ">="
312
312
  - !ruby/object:Gem::Version
313
- version: '3.3'
313
+ version: '0'
314
314
  type: :development
315
315
  prerelease: false
316
316
  version_requirements: !ruby/object:Gem::Requirement
317
317
  requirements:
318
- - - "~>"
318
+ - - ">="
319
319
  - !ruby/object:Gem::Version
320
- version: '3.3'
320
+ version: '0'
321
321
  - !ruby/object:Gem::Dependency
322
322
  name: rubocop
323
323
  requirement: !ruby/object:Gem::Requirement
324
324
  requirements:
325
- - - "~>"
325
+ - - ">="
326
326
  - !ruby/object:Gem::Version
327
- version: '0.34'
327
+ version: '0'
328
328
  type: :development
329
329
  prerelease: false
330
330
  version_requirements: !ruby/object:Gem::Requirement
331
331
  requirements:
332
- - - "~>"
332
+ - - ">="
333
333
  - !ruby/object:Gem::Version
334
- version: '0.34'
334
+ version: '0'
335
335
  - !ruby/object:Gem::Dependency
336
336
  name: simplecov
337
337
  requirement: !ruby/object:Gem::Requirement
@@ -526,11 +526,14 @@ files:
526
526
  - lib/reveal-ck/version.rb
527
527
  - rakelib/ci.rake
528
528
  - rakelib/cucumber.rake
529
+ - rakelib/detailed_changes.erb
529
530
  - rakelib/examples.rake
531
+ - rakelib/prepare_release.rake
530
532
  - rakelib/relish.rake
531
533
  - rakelib/rspec.rake
532
534
  - rakelib/rubocop.rake
533
535
  - rakelib/simplecov.rake
536
+ - rakelib/unreleased.erb
534
537
  - spec/data/builders/index_html/slides.html
535
538
  - spec/data/config/full_config.yml
536
539
  - spec/data/config/partial_config.yml
@@ -592,7 +595,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
592
595
  requirements:
593
596
  - - ">="
594
597
  - !ruby/object:Gem::Version
595
- version: 2.0.0
598
+ version: 2.2.2
596
599
  required_rubygems_version: !ruby/object:Gem::Requirement
597
600
  requirements:
598
601
  - - ">="
@@ -600,7 +603,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
600
603
  version: '0'
601
604
  requirements: []
602
605
  rubyforge_project:
603
- rubygems_version: 2.2.0
606
+ rubygems_version: 2.4.5.1
604
607
  signing_key:
605
608
  specification_version: 4
606
609
  summary: Create reveal.js presentations with Markdown.