asana_exception_notifier 0.3.5 → 0.3.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +1 -0
- data/.travis.yml +24 -8
- data/Appraisals +20 -0
- data/Gemfile +6 -0
- data/Rakefile +30 -21
- data/asana_exception_notifier.gemspec +2 -2
- data/gemfiles/rails_4.0.0.gemfile +8 -0
- data/gemfiles/rails_4.1.1.gemfile +8 -0
- data/gemfiles/rails_4.2.0.gemfile +8 -0
- data/lib/asana_exception_notifier/version.rb +1 -1
- metadata +29 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b1cb4ae76fceebfea087b47a6d8e8ff3997e29ed
|
4
|
+
data.tar.gz: 267e2552aec5fdbb6963ee6e91c9d3b186358563
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 71f94b10c551a36901915a3f7f9b557c2122187b1712bcd8a2fd542b67c49138c9b799d347b94e7cdce9a39afda9fff8318a6481dae8266d6631b79e2532d011
|
7
|
+
data.tar.gz: 0f42aa22a72bbcf8d5220d8e01f15837acdb5d309216e35db522e27d627d7d2f306130a850555b7ba11acb34f50ba75af33348c40ab5e9340a0394aacc1dd733
|
data/.gitignore
CHANGED
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.
|
11
|
-
- 2.2.
|
12
|
-
|
13
|
-
|
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
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
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
YARD::Config.load_plugins
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
YARD::Rake::YardocTask.new do |t|
|
24
|
-
|
25
|
-
|
26
|
-
|
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
|
-
|
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.
|
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'
|
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.
|
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-
|
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.
|
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.
|
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.
|
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
|