huginn_agent 0.4.3 → 0.5.0

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: 84de4573e25a1364a8693e8694e141669232eba7
4
- data.tar.gz: 66e75dbc1b1c8c9efc539695ea0900cb87b07164
3
+ metadata.gz: dd4c07e96bdf6326edef6857e3333478cf4518b6
4
+ data.tar.gz: ab060170632721a5ee8d6b993713101fe73296cd
5
5
  SHA512:
6
- metadata.gz: 09fcafc1ddc86bf668e40865675881170bd6d23368a42c880330d056a5e4bb9e5784cea07bd918122c393f6313f95408e99a93b6223fa2364fbcd9aeb2dfb994
7
- data.tar.gz: 51a57612699af43bbc5b21c46720bd00990208b854e877a833e0548b93462d5363c665c5c8062dee6a1db0fcc82562c9ce83e7c322f7a9a9831f44e338799142
6
+ metadata.gz: b6c2665dedb53a32d894996d4e5e8e4928d1849608d45116d4e7e904bf1aefb6a2844d0d54f7e5b3f1f289c2d65126969b5158974673b642c316ffce0c0627f0
7
+ data.tar.gz: 5c2c4475640c6503c54faa35e33a93a2530c5d140a09443811a26adf4d7a652e4d154cd69a4c096ce79ccaed5ae954d9370bb929fcbbfc7317fae7f990899c5c
@@ -0,0 +1,68 @@
1
+ # Change Log
2
+
3
+ All notable changes to this project will be documented in this file.
4
+
5
+ ## Unreleased
6
+
7
+ ### Added
8
+
9
+ ### Changed
10
+
11
+ ## [0.5.0] - 2017-02-04
12
+
13
+ ### Added
14
+ - Generate Agent gem code coverage report with `COVERAGE=true rake spec` and allow to report to coveralls (@stesie)
15
+
16
+ ### Fixed
17
+ - Generator: Do not include `spec/huginn` files in build gem (@stesie)
18
+
19
+ The `gemspec` of existing gems needs to be updated manually:
20
+ ```patch
21
+ - spec.test_files = Dir['spec/**/*.rb']
22
+ + spec.test_files = Dir['spec/**/*.rb'].reject { |f| f[%r{^spec/huginn}] }
23
+ ```
24
+
25
+ - Generator: Do not run Agent specs on ruby `2.1` (@stesie)
26
+
27
+ The `.travis.yml` of existing gems needs to be updated manually:
28
+ ```patch
29
+ rvm:
30
+ -- 2.1
31
+ -- 2.2
32
+ +- 2.2.2
33
+ - 2.3.0
34
+ ```
35
+
36
+ ## [0.4.3] - 2016-09-07
37
+
38
+ ### Fixed
39
+ - Exclude Huginn spec files when running Agent gem specs (@dsander)
40
+
41
+ ## [0.4.2] - 2016-08-10
42
+
43
+ ### Changed
44
+ - Run all Agent spec files in the spec directory recursively (@dsander)
45
+
46
+
47
+ ## [0.4.1] - 2016-06-23
48
+
49
+ ### Changed
50
+ - Generator: Do not lock the `huginn_agent` gem version (@dsander)
51
+
52
+ The `gemspec` of existing gems needs to be updated manually:
53
+ ```patch
54
+ - spec.add_runtime_dependency "huginn_agent", '~> 0.2'
55
+ + spec.add_runtime_dependency "huginn_agent"
56
+ ```
57
+
58
+ ## [0.4.0] - 2016-06-20
59
+
60
+ - First official and working release
61
+
62
+
63
+ [Unreleased]: https://github.com/cantino/huginn_agent/compare/v0.5.0...HEAD
64
+ [0.5.0]: https://github.com/cantino/huginn_agent/compare/v0.4.3...v0.5.0
65
+ [0.4.3]: https://github.com/cantino/huginn_agent/compare/v0.4.2...v0.4.3
66
+ [0.4.2]: https://github.com/cantino/huginn_agent/compare/v0.4.1...v0.4.2
67
+ [0.4.1]: https://github.com/cantino/huginn_agent/compare/v0.4.0...v0.4.1
68
+ [0.4.0]: https://github.com/cantino/huginn_agent/compare/f6e307e2ec1679367ecc43ab265b8f68d6fe12f2...v0.4.0
@@ -0,0 +1,19 @@
1
+ require 'simplecov'
2
+
3
+ if !ENV['COVERAGE']
4
+ require 'coveralls'
5
+ module Coveralls
6
+ module Configuration
7
+ def self.root
8
+ File.expand_path(File.join(Dir.pwd, '../..'))
9
+ end
10
+ end
11
+ end
12
+ end
13
+
14
+ SimpleCov.root File.expand_path(File.join(Dir.pwd, '../..'))
15
+ SimpleCov.start :rails do
16
+ add_filter do |src|
17
+ !(src.filename =~ /^#{SimpleCov.root}\/lib\//)
18
+ end
19
+ end
@@ -39,7 +39,7 @@ class HuginnAgent
39
39
 
40
40
  def spec
41
41
  Dir.chdir('spec/huginn') do
42
- shell_out "bundle exec rspec --pattern ../*_spec.rb,../{[!huginn/]}**/*_spec.rb", 'Running specs ...', true
42
+ shell_out "bundle exec rspec -r #{File.join(__dir__, 'patches/coverage.rb')} --pattern ../*_spec.rb,../{[!huginn/]}**/*_spec.rb", 'Running specs ...', true
43
43
  end
44
44
  end
45
45
 
@@ -18,7 +18,7 @@ Gem::Specification.new do |spec|
18
18
 
19
19
  spec.files = Dir['LICENSE.txt', 'lib/**/*']
20
20
  spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
21
- spec.test_files = Dir['spec/**/*.rb']
21
+ spec.test_files = Dir['spec/**/*.rb'].reject { |f| f[%r{^spec/huginn}] }
22
22
  spec.require_paths = ["lib"]
23
23
 
24
24
  spec.add_development_dependency "bundler", "~> 1.7"
@@ -7,8 +7,7 @@ env:
7
7
  - DATABASE_ADAPTER=mysql2
8
8
  - DATABASE_ADAPTER=postgresql DATABASE_USERNAME=postgres
9
9
  rvm:
10
- - 2.1
11
- - 2.2
10
+ - 2.2.2
12
11
  - 2.3.0
13
12
  cache: bundler
14
13
  script: bundle exec rake
@@ -1,3 +1,3 @@
1
1
  class HuginnAgent
2
- VERSION = '0.4.3'
2
+ VERSION = '0.5.0'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: huginn_agent
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.3
4
+ version: 0.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrew Cantino
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-09-07 00:00:00.000000000 Z
11
+ date: 2017-02-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thor
@@ -116,12 +116,14 @@ executables:
116
116
  extensions: []
117
117
  extra_rdoc_files: []
118
118
  files:
119
+ - CHANGELOG.md
119
120
  - LICENSE.txt
120
121
  - bin/huginn_agent
121
122
  - lib/huginn_agent.rb
122
123
  - lib/huginn_agent/cli.rb
123
124
  - lib/huginn_agent/cli/new.rb
124
125
  - lib/huginn_agent/helper.rb
126
+ - lib/huginn_agent/patches/coverage.rb
125
127
  - lib/huginn_agent/spec_helper.rb
126
128
  - lib/huginn_agent/spec_runner.rb
127
129
  - lib/huginn_agent/templates/newagent/Gemfile.tt