pig-ci-rails 0.1.2 → 0.1.3

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
  SHA256:
3
- metadata.gz: db71bd9b82ebe9f9f4e9d88184f6c85f8883d4f94043df05dfc22acef1ca7a6e
4
- data.tar.gz: 621ff89d5cdb3cac6b9dbeb51d4f5f4b6d929c9fb7488ecf6b10600add3beff1
3
+ metadata.gz: 8394ca55c3db58b23157e53816e5fcac10fbce265b489a0d257c89b8f3a94b82
4
+ data.tar.gz: 6d73a5fede30a3ab10958357b1ffcc36e06fc69ef0b3b11f2e4b7d668ed98e18
5
5
  SHA512:
6
- metadata.gz: 05f65a26d7dfcf639d28087f530d93b661051d5145afe9906fa8dc07247980dc76096b389e0e44916b5586b27901722c09554b1614b4fe110db70f3b7c55effa
7
- data.tar.gz: 12bbaa13fa3a727a272220d6cedeabb6758c4c9099835d8a00fb10e7726665ebb092104a4724a319347fb4af05641f3966010d75121e68ffee08c065f0e98ec5
6
+ metadata.gz: dadf2604201efda1f497b0e7862fe5f28bc964a930de24e2cc440f1d22985787e3e8de535378be90e0d402fdfd45affeb964160c3da421a96d692765ef84e588
7
+ data.tar.gz: ba7fcc7ce0f031c0070a4e833884244f79e77ee738ac54de504acbecbede11ba894da6599645a85ff4879a40378b8d94aa3540699d4b334870a4d5b47e8fbd26
data/CHANGELOG.md CHANGED
@@ -1,5 +1,10 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.1.3
4
+
5
+ * [Gracefully handling SockerError when submitting reports while offline](https://github.com/PigCI/pig-ci-rails/pull/7)
6
+ * [Update webmock requirement from ~> 3.6.0 to ~> 3.7.0](https://github.com/PigCI/pig-ci-rails/pull/6)
7
+
3
8
  ## 0.1.2
4
9
 
5
10
  * [Improving Codacy Rating](https://github.com/PigCI/pig-ci-rails/pull/4)
data/README.md CHANGED
@@ -3,6 +3,7 @@
3
3
  [![Codacy Badge](https://api.codacy.com/project/badge/Grade/a3ab882cc57c4cc68d7e30f25cad2568)](https://www.codacy.com/app/MikeRogers0/pig-ci-rails?utm_source=github.com&utm_medium=referral&utm_content=PigCI/pig-ci-rails&utm_campaign=Badge_Grade)
4
4
  [![Maintainability](https://api.codeclimate.com/v1/badges/d022db58c712d425dba9/maintainability)](https://codeclimate.com/github/PigCI/pig-ci-rails/maintainability)
5
5
  [![Test Coverage](https://api.codeclimate.com/v1/badges/d022db58c712d425dba9/test_coverage)](https://codeclimate.com/github/PigCI/pig-ci-rails/test_coverage)
6
+ [![Dependabot Status](https://api.dependabot.com/badges/status?host=github&repo=PigCI/pig-ci-rails)](https://dependabot.com)
6
7
 
7
8
  # PigCI
8
9
 
@@ -106,6 +107,12 @@ PigCI.start do |config|
106
107
  end
107
108
  ```
108
109
 
110
+ You can also improve the first request performance (and overall memory usage) by precompiling your assets before running RSpec:
111
+
112
+ ```ruby
113
+ bundle exec rake assets:precompile RAILS_ENV=test
114
+ ```
115
+
109
116
  ## Authors
110
117
 
111
118
  * This gem was made by [@MikeRogers0](https://github.com/MikeRogers0).
@@ -126,7 +133,8 @@ Features I'd like to add at some point:
126
133
  * Should I disable terminal output by default? It feels like noise.
127
134
  * Should I reject database requests that have a value of 0? I think so.
128
135
  * Document setting branch/commit encase of weird CI.
129
- * Add rake rake for submitting reports.
136
+ * Add rake for submitting reports.
137
+ * https://rubydoc.info/gems/yard/file/docs/GettingStarted.md - Document the gem so it's easier for people to jump on.
130
138
 
131
139
  ## Contributing
132
140
 
@@ -10,6 +10,8 @@ class PigCI::Api::Reports < PigCI::Api
10
10
  puts I18n.t('pig_ci.api.reports.error', error: JSON.parse(response.parsed_response || '{}')['error'])
11
11
  rescue JSON::ParserError => _e
12
12
  puts I18n.t('pig_ci.api.reports.api_error')
13
+ rescue SocketError => e
14
+ puts I18n.t('pig_ci.api.reports.error', error: e)
13
15
  rescue Net::OpenTimeout => e
14
16
  puts I18n.t('pig_ci.api.reports.error', error: e.inspect)
15
17
  end
@@ -1,3 +1,3 @@
1
1
  module PigCI
2
- VERSION = '0.1.2'.freeze
2
+ VERSION = '0.1.3'.freeze
3
3
  end
data/pig_ci.gemspec CHANGED
@@ -40,7 +40,7 @@ Gem::Specification.new do |spec|
40
40
 
41
41
  spec.add_development_dependency 'bundler', '~> 2.0'
42
42
  spec.add_development_dependency 'rake', '~> 12.3'
43
- spec.add_development_dependency 'webmock', '~> 3.6.0'
43
+ spec.add_development_dependency 'webmock', '~> 3.7.0'
44
44
 
45
45
  spec.add_development_dependency 'json-schema', '~> 2.8.1'
46
46
  spec.add_development_dependency 'rspec', '~> 3.8.0'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pig-ci-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mike Rogers
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-08-03 00:00:00.000000000 Z
11
+ date: 2019-08-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -142,14 +142,14 @@ dependencies:
142
142
  requirements:
143
143
  - - "~>"
144
144
  - !ruby/object:Gem::Version
145
- version: 3.6.0
145
+ version: 3.7.0
146
146
  type: :development
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: 3.6.0
152
+ version: 3.7.0
153
153
  - !ruby/object:Gem::Dependency
154
154
  name: json-schema
155
155
  requirement: !ruby/object:Gem::Requirement