asana_exception_notifier 0.3.5 → 0.3.6

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: 5620668bc035e12c767b60a17038f76b3d5d6285
4
- data.tar.gz: 69c8b7368eda6d23705d0f6d60aa18f33429e00e
3
+ metadata.gz: b1cb4ae76fceebfea087b47a6d8e8ff3997e29ed
4
+ data.tar.gz: 267e2552aec5fdbb6963ee6e91c9d3b186358563
5
5
  SHA512:
6
- metadata.gz: ffbce63e63f51c23ceb20e10b59f6cf1c39ca507867e40b5c6520efa6c0ee8c4aeca3536227d3d5bb9714258b0821f972856074c50520b30aac6731956c11842
7
- data.tar.gz: abecc58e0b1f569a9f6974660bb51f761ac89c4b8a87abec9fea7bc3fe6cc8b2706a62cb7aaa9b242a97445c182344864eda6797619d9c4f9f9cce4416d90049
6
+ metadata.gz: 71f94b10c551a36901915a3f7f9b557c2122187b1712bcd8a2fd542b67c49138c9b799d347b94e7cdce9a39afda9fff8318a6481dae8266d6631b79e2532d011
7
+ data.tar.gz: 0f42aa22a72bbcf8d5220d8e01f15837acdb5d309216e35db522e27d627d7d2f306130a850555b7ba11acb34f50ba75af33348c40ab5e9340a0394aacc1dd733
data/.gitignore CHANGED
@@ -17,3 +17,4 @@ tags
17
17
  .yardoc/
18
18
  doc/
19
19
  bin/
20
+ gemfiles/*.lock
data/.travis.yml CHANGED
@@ -1,15 +1,31 @@
1
- sudo: false
2
- cache: bundler
3
1
  language: ruby
2
+ sudo: false
4
3
  before_install:
5
4
  - "echo 'gem: --no-ri --no-rdoc' > ~/.gemrc"
6
5
  - gem install bundler
6
+ bundler_args: "--no-deployment"
7
+ script:
8
+ - echo $BUNDLE_GEMFILE
9
+ - bundle exec rake
10
+ gemfile:
11
+ - gemfiles/rails_4.0.0.gemfile
12
+ - gemfiles/rails_4.1.1.gemfile
13
+ - gemfiles/rails_4.2.0.gemfile
7
14
  rvm:
8
- - 2.0.0
9
- - 2.1.5
10
- - 2.2.2
11
- - 2.2.3
12
- env:
13
- - RAILS_ENV=test RACK_ENV=test
15
+ - 2.0.0
16
+ - 2.1.5
17
+ - 2.1.8
18
+ - 2.2.2
19
+ - 2.2.3
20
+ - 2.3.0
21
+ - 2.3.1
22
+ matrix:
23
+ exclude:
24
+ - rvm: 2.0.0
25
+ gemfile: gemfiles/rails_5.0.0.gemfile
26
+ - rvm: 2.1.5
27
+ gemfile: gemfiles/rails_5.0.0.gemfile
28
+ - rvm: 2.1.8
29
+ gemfile: gemfiles/rails_5.0.0.gemfile
14
30
  notifications:
15
31
  email: false
data/Appraisals ADDED
@@ -0,0 +1,20 @@
1
+ appraise "rails-4.0.0" do
2
+ gem "rails", "4.0.0"
3
+ end
4
+
5
+ appraise "rails-4.1.1" do
6
+ gem "rails", "4.0.2"
7
+ end
8
+
9
+ appraise "rails-4.2.0" do
10
+ gem "rails", "4.2.0"
11
+ end
12
+
13
+
14
+ # if RUBY_VERSION >= "2.2.0"
15
+ # appraise "rails-5.0.0" do
16
+ # gem "rails", "5.0.0"
17
+ # gem 'exception_notification', github:'smartinez87/exception_notification', branch: 'rails5'
18
+ # gem 'rails-controller-testing'
19
+ # end
20
+ # end
data/Gemfile CHANGED
@@ -1,3 +1,9 @@
1
1
  source 'http://rubygems.org'
2
2
 
3
3
  gemspec
4
+
5
+ if RUBY_VERSION >= "2.2.0"
6
+ gem 'activesupport', '>= 4.0', '>= 4.0'
7
+ else
8
+ gem 'activesupport', '>= 4.0', '< 5.0'
9
+ end
data/Rakefile CHANGED
@@ -1,30 +1,31 @@
1
1
  require 'bundler/setup'
2
2
  require 'bundler/gem_tasks'
3
+ require 'appraisal'
3
4
  require 'rspec/core/rake_task'
4
5
  require 'coveralls/rake/task'
5
6
  require 'yard'
6
7
  Coveralls::RakeTask.new
7
8
 
8
9
  RSpec::Core::RakeTask.new(:spec) do |spec|
9
- default_options = ['--colour']
10
- default_options.concat(['--backtrace', '--fail-fast']) if ENV['DEBUG']
11
- spec.rspec_opts = default_options
12
- end
13
-
14
- YARD::Config.options[:load_plugins] = true
15
- YARD::Config.load_plugins
16
-
17
- # dirty hack for YardocTask
18
- ::Rake.application.class.class_eval do
19
- alias_method :last_comment, :last_description
20
- end
21
-
22
-
23
- YARD::Rake::YardocTask.new do |t|
24
- t.files = ['lib/**/*.rb', 'spec/**/*_spec.rb'] # optional
25
- t.options = ['--any', '--extra', '--opts', '--markup-provider=redcarpet', '--markup=markdown', '--debug'] # optional
26
- t.stats_options = ['--list-undoc'] # optional
27
- end
10
+ default_options = ['--colour']
11
+ default_options.concat(['--backtrace', '--fail-fast']) if ENV['DEBUG']
12
+ spec.rspec_opts = default_options
13
+ spec.verbose = true
14
+ end
15
+
16
+ YARD::Config.options[:load_plugins] = true
17
+ YARD::Config.load_plugins
18
+
19
+ # dirty hack for YardocTask
20
+ ::Rake.application.class.class_eval do
21
+ alias_method :last_comment, :last_description
22
+ end
23
+
24
+ YARD::Rake::YardocTask.new do |t|
25
+ t.files = ['lib/**/*.rb', 'spec/**/*_spec.rb'] # optional
26
+ t.options = ['--any', '--extra', '--opts', '--markup-provider=redcarpet', '--markup=markdown', '--debug'] # optional
27
+ t.stats_options = ['--list-undoc'] # optional
28
+ end
28
29
 
29
30
  desc 'Default: run the unit tests.'
30
31
  task default: [:all]
@@ -32,9 +33,17 @@ task default: [:all]
32
33
  desc 'Test the plugin under all supported Rails versions.'
33
34
  task :all do |_t|
34
35
  if ENV['TRAVIS']
35
- exec('bundle exec rake spec && bundle exec rake coveralls:push')
36
+ # require 'json'
37
+ # puts JSON.pretty_generate(ENV.to_hash)
38
+ if ENV['BUNDLE_GEMFILE'] =~ /gemfiles/
39
+ appraisal_name = ENV['BUNDLE_GEMFILE'].scan(/rails\_(.*)\.gemfile/).flatten.first
40
+ command_prefix = "appraisal rails-#{appraisal_name}"
41
+ exec ("#{command_prefix} bundle install && #{command_prefix} bundle exec rspec && bundle exec rake coveralls:push ")
42
+ else
43
+ exec(' bundle exec appraisal install && bundle exec rake appraisal spec && bundle exec rake coveralls:push')
44
+ end
36
45
  else
37
- exec('bundle exec rake spec')
46
+ exec('bundle exec appraisal install && bundle exec rake appraisal spec')
38
47
  end
39
48
  end
40
49
 
@@ -30,12 +30,12 @@ Gem::Specification.new do |s|
30
30
  s.add_runtime_dependency 'typhoeus', '~> 1.0', '>= 1.0.2'
31
31
  s.add_runtime_dependency 'exception_notification', '~> 4.1', '>= 4.1.4'
32
32
  s.add_runtime_dependency 'tilt', '>= 1.4', '< 3'
33
- s.add_runtime_dependency 'rack', '>= 1.6', '>= 1.6'
33
+ s.add_runtime_dependency 'rack', '>= 1.5', '>= 1.5'
34
34
  s.add_runtime_dependency 'rubyzip', '~> 1.0', '>= 1.0.0' # will load new rubyzip version
35
35
  s.add_runtime_dependency 'zip-zip', '~> 0.3', '>= 0.3' # will load compatibility for old rubyzip API
36
36
  s.add_runtime_dependency 'sys-uname', '~> 1.0', '>= 1.0.2'
37
37
 
38
-
38
+ s.add_development_dependency 'appraisal', '~> 2.1', '>= 2.1'
39
39
  s.add_development_dependency 'rspec', '~> 3.4', '>= 3.4'
40
40
  s.add_development_dependency 'simplecov', '~> 0.11', '>= 0.10'
41
41
  s.add_development_dependency 'simplecov-summary', '~> 0.0.4', '>= 0.0.4'
@@ -0,0 +1,8 @@
1
+ # This file was generated by Appraisal
2
+
3
+ source "http://rubygems.org"
4
+
5
+ gem "activesupport", ">= 4.0", ">= 4.0"
6
+ gem "rails", "4.0.0"
7
+
8
+ gemspec :path => "../"
@@ -0,0 +1,8 @@
1
+ # This file was generated by Appraisal
2
+
3
+ source "http://rubygems.org"
4
+
5
+ gem "activesupport", ">= 4.0", ">= 4.0"
6
+ gem "rails", "4.0.2"
7
+
8
+ gemspec :path => "../"
@@ -0,0 +1,8 @@
1
+ # This file was generated by Appraisal
2
+
3
+ source "http://rubygems.org"
4
+
5
+ gem "activesupport", ">= 4.0", ">= 4.0"
6
+ gem "rails", "4.2.0"
7
+
8
+ gemspec :path => "../"
@@ -17,7 +17,7 @@ module AsanaExceptionNotifier
17
17
  # minor release version
18
18
  MINOR = 3
19
19
  # tiny release version
20
- TINY = 5
20
+ TINY = 6
21
21
  # prelease version ( set this only if it is a prelease)
22
22
  PRE = nil
23
23
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: asana_exception_notifier
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.5
4
+ version: 0.3.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - bogdanRada
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-06-21 00:00:00.000000000 Z
11
+ date: 2016-07-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -110,14 +110,14 @@ dependencies:
110
110
  requirements:
111
111
  - - ">="
112
112
  - !ruby/object:Gem::Version
113
- version: '1.6'
113
+ version: '1.5'
114
114
  type: :runtime
115
115
  prerelease: false
116
116
  version_requirements: !ruby/object:Gem::Requirement
117
117
  requirements:
118
118
  - - ">="
119
119
  - !ruby/object:Gem::Version
120
- version: '1.6'
120
+ version: '1.5'
121
121
  - !ruby/object:Gem::Dependency
122
122
  name: rubyzip
123
123
  requirement: !ruby/object:Gem::Requirement
@@ -178,6 +178,26 @@ dependencies:
178
178
  - - ">="
179
179
  - !ruby/object:Gem::Version
180
180
  version: 1.0.2
181
+ - !ruby/object:Gem::Dependency
182
+ name: appraisal
183
+ requirement: !ruby/object:Gem::Requirement
184
+ requirements:
185
+ - - "~>"
186
+ - !ruby/object:Gem::Version
187
+ version: '2.1'
188
+ - - ">="
189
+ - !ruby/object:Gem::Version
190
+ version: '2.1'
191
+ type: :development
192
+ prerelease: false
193
+ version_requirements: !ruby/object:Gem::Requirement
194
+ requirements:
195
+ - - "~>"
196
+ - !ruby/object:Gem::Version
197
+ version: '2.1'
198
+ - - ">="
199
+ - !ruby/object:Gem::Version
200
+ version: '2.1'
181
201
  - !ruby/object:Gem::Dependency
182
202
  name: rspec
183
203
  requirement: !ruby/object:Gem::Requirement
@@ -371,6 +391,7 @@ files:
371
391
  - ".reek"
372
392
  - ".rubocop.yml"
373
393
  - ".travis.yml"
394
+ - Appraisals
374
395
  - CONTRIBUTING.md
375
396
  - Gemfile
376
397
  - LICENSE
@@ -387,6 +408,9 @@ files:
387
408
  - examples/sinatra/README.md
388
409
  - examples/sinatra/config.ru
389
410
  - examples/sinatra/sinatra_app.rb
411
+ - gemfiles/rails_4.0.0.gemfile
412
+ - gemfiles/rails_4.1.1.gemfile
413
+ - gemfiles/rails_4.2.0.gemfile
390
414
  - init.rb
391
415
  - lib/asana_exception_notifier.rb
392
416
  - lib/asana_exception_notifier/classes/asana.rb
@@ -426,7 +450,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
426
450
  version: '2.5'
427
451
  requirements: []
428
452
  rubyforge_project:
429
- rubygems_version: 2.6.4
453
+ rubygems_version: 2.5.1
430
454
  signing_key:
431
455
  specification_version: 4
432
456
  summary: Simple ruby implementation to send notifications to Asana when a exception