blocktrain 0.2.1 → 0.2.2

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,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- YmRkYjIzOTU3YzM3MGFjMmI4NTdiYTYxMDhjMmI2ZDE1NWI3MTE2ZA==
4
+ YTc0NWM2YjBkOGNlMjIyOTM1ZDNiNjRkMzhlZDZhNTRmNzNhZjIxMg==
5
5
  data.tar.gz: !binary |-
6
- NWI5YmUyYmY1NzY5YWMxNjZkY2ZmZTgxYzJkZGMzMmJhZDBiOTBmOA==
6
+ ZWFmMzA2M2UwMmRhM2QxYTZhNWYzMDQzMDJjMjExMGRiNjY5ODFhNQ==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- ZTJjMTI0ZjU4NGMxYzA5YjEyYmFjY2E3MmYzNGM1OWI0M2ZhYmQ2YjI2NzQ2
10
- ZTFlOGIwNTkxYTc1YTgxYzRlMTI1OTMyOTdmNWMyNGZkMzM1NzFlMmJhMTNh
11
- OTg5NGFiOGFhZWM5N2M0YzU2M2MyMmExZTYyMDRiYWM4NWYwNWQ=
9
+ OTE5Y2Q1NDY3MjgwYzMzNzUxNzFiZThiMTBmYzZmNTM1YjBiZjMzN2FjYmY4
10
+ NzFlNDVkNGMzMjQyYjg5ZTY1Y2JjZjYwMjRlNDczZjYzMWVhNGNjNTRmZGJi
11
+ NDcyMDA3MDhjZjY3Mjg0ZGE1MjJjZDczNzc5MzkxNGZjNGM2YjQ=
12
12
  data.tar.gz: !binary |-
13
- YTMzZjA4ZjY2ODFkNGViNzEyYzc5YjI3Y2JlZGVkNzNmY2E2NzA2MGY0ZmU4
14
- NjU4ZmZhZDNlZmVmMmIwZWEyNmRiM2Q2YzIxZmY4NmJhYzIxMzNlYmIwMGJi
15
- NjE0MDg4MTBlYjBkYzZmM2I4Nzk3MjI0NTM5YTVmZWU5MmU0MmM=
13
+ ZGIzMzIyZDRkM2JiMDE5Mjg1MmNiMWIwYmFiODExNWZkNWJiNTg5MjFlOTVl
14
+ ZGY0ZTZlOGY2Mjg2OGFhZDcxMmYyMTg0N2MyYWZiYzQxOGMzNTM2ZGQzYmM1
15
+ MjQwZDE0MmVlNTBmYjAyYWYxNjlmZDUxZDcxZmNkZDIwOTNkOTg=
data/CHANGELOG.md CHANGED
@@ -1,5 +1,15 @@
1
1
  # Change Log
2
2
 
3
+ ## [v0.2.2](https://github.com/TheODI-UD2D/blocktrain/tree/v0.2.2) (2015-11-11)
4
+ [Full Changelog](https://github.com/TheODI-UD2D/blocktrain/compare/v0.2.1...v0.2.2)
5
+
6
+ ## [v0.2.1](https://github.com/TheODI-UD2D/blocktrain/tree/v0.2.1) (2015-11-10)
7
+ [Full Changelog](https://github.com/TheODI-UD2D/blocktrain/compare/v0.2.0...v0.2.1)
8
+
9
+ **Merged pull requests:**
10
+
11
+ - Auto-detect available signals from Elasticsearch [\#7](https://github.com/TheODI-UD2D/blocktrain/pull/7) ([Floppy](https://github.com/Floppy))
12
+
3
13
  ## [v0.2.0](https://github.com/TheODI-UD2D/blocktrain/tree/v0.2.0) (2015-11-10)
4
14
  [Full Changelog](https://github.com/TheODI-UD2D/blocktrain/compare/v0.1.4...v0.2.0)
5
15
 
data/Rakefile CHANGED
@@ -1,6 +1,50 @@
1
1
  require 'bundler/gem_tasks'
2
2
  require 'rspec/core/rake_task'
3
+ require 'blocktrain'
4
+
5
+ require 'github_changelog_generator'
6
+ require 'erb'
7
+ require 'git'
8
+ require 'semver'
9
+
10
+ class GemPublisher
11
+ def initialize
12
+ @version = SemVer.parse(Blocktrain::VERSION)
13
+ end
14
+
15
+ def publish
16
+ push_tag
17
+ create_changelog
18
+ bump_version
19
+ end
20
+
21
+ def push_tag
22
+ g = Git.open('.')
23
+ g.add_tag(@version.to_s)
24
+ g.push('origin', 'master', tags: true)
25
+ end
26
+
27
+ def create_changelog
28
+ ARGV[0] = "TheODI-UD2D"
29
+ ARGV[1] = "blocktrain"
30
+ GitHubChangelogGenerator::ChangelogGenerator.new.run
31
+ end
32
+
33
+ def bump_version
34
+ @version.patch += 1
35
+ @new_version = @version.format("%M.%m.%p%s%d")
36
+ template = File.read('version.rb.erb')
37
+ renderer = ERB.new(template)
38
+ version_file = File.open File.join('lib', 'blocktrain', 'version.rb'), 'w'
39
+ version_file.write renderer.result(binding)
40
+ end
41
+ end
3
42
 
4
43
  RSpec::Core::RakeTask.new
5
44
 
6
45
  task :default => [:spec]
46
+
47
+ desc 'Write changelog, tag & release gem, bump version'
48
+ task :publish do
49
+ GemPublisher.new.publish
50
+ end
data/TODO.md ADDED
@@ -0,0 +1,4 @@
1
+ * Rake task ('publish'?) to:
2
+ * Tag (from VERSION)
3
+ * Push tags
4
+ * Bump VERSION
data/blocktrain.gemspec CHANGED
@@ -39,5 +39,7 @@ Gem::Specification.new do |spec|
39
39
  spec.add_development_dependency 'webmock', '~> 1.21'
40
40
  spec.add_development_dependency 'coveralls', '~> 0.8'
41
41
  spec.add_development_dependency 'terminal-notifier-guard', '~> 1.6'
42
+ spec.add_development_dependency 'git', '~> 1.2'
42
43
  spec.add_development_dependency 'github_changelog_generator', '~> 1.9'
44
+ spec.add_development_dependency 'semver2', '~> 3.4'
43
45
  end
@@ -1,3 +1,3 @@
1
1
  module Blocktrain
2
- VERSION = '0.2.1'
2
+ VERSION = '0.2.2'
3
3
  end
data/version.rb.erb ADDED
@@ -0,0 +1,3 @@
1
+ module Blocktrain
2
+ VERSION = '<%= @new_version %>'
3
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: blocktrain
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - pikesley
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: exe
11
11
  cert_chain: []
12
- date: 2015-11-10 00:00:00.000000000 Z
12
+ date: 2015-11-11 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: dotenv
@@ -165,6 +165,20 @@ dependencies:
165
165
  - - ~>
166
166
  - !ruby/object:Gem::Version
167
167
  version: '1.6'
168
+ - !ruby/object:Gem::Dependency
169
+ name: git
170
+ requirement: !ruby/object:Gem::Requirement
171
+ requirements:
172
+ - - ~>
173
+ - !ruby/object:Gem::Version
174
+ version: '1.2'
175
+ type: :development
176
+ prerelease: false
177
+ version_requirements: !ruby/object:Gem::Requirement
178
+ requirements:
179
+ - - ~>
180
+ - !ruby/object:Gem::Version
181
+ version: '1.2'
168
182
  - !ruby/object:Gem::Dependency
169
183
  name: github_changelog_generator
170
184
  requirement: !ruby/object:Gem::Requirement
@@ -179,6 +193,20 @@ dependencies:
179
193
  - - ~>
180
194
  - !ruby/object:Gem::Version
181
195
  version: '1.9'
196
+ - !ruby/object:Gem::Dependency
197
+ name: semver2
198
+ requirement: !ruby/object:Gem::Requirement
199
+ requirements:
200
+ - - ~>
201
+ - !ruby/object:Gem::Version
202
+ version: '3.4'
203
+ type: :development
204
+ prerelease: false
205
+ version_requirements: !ruby/object:Gem::Requirement
206
+ requirements:
207
+ - - ~>
208
+ - !ruby/object:Gem::Version
209
+ version: '3.4'
182
210
  description: Train of fools
183
211
  email:
184
212
  - ops@theodi.org
@@ -196,6 +224,7 @@ files:
196
224
  - LICENSE.md
197
225
  - README.md
198
226
  - Rakefile
227
+ - TODO.md
199
228
  - bin/console
200
229
  - bin/setup
201
230
  - blocktrain.gemspec
@@ -210,6 +239,7 @@ files:
210
239
  - lib/blocktrain/lookups.rb
211
240
  - lib/blocktrain/query.rb
212
241
  - lib/blocktrain/version.rb
242
+ - version.rb.erb
213
243
  homepage: http://github.org/theodi/blocktrain
214
244
  licenses:
215
245
  - MIT