pig-ci-rails 0.1.4 → 0.1.5

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: 9a5d58f2c466ba3ddd5a11b5c4af7e6a9d300e5526ea1c6d3cf808f8e73ea6b9
4
- data.tar.gz: 1fd23fe41910c53a784d7ef5ac77b80c05085279a879aff4a2f760c4b19682d7
3
+ metadata.gz: 9a0910dfcd93b0aa8da420798e8888787f3c7c614a86836c6d456c89123aeea3
4
+ data.tar.gz: c550a0069bd3d36eeba1511a3c9601777c8bbdb7f939d6c039b5cf0415f54b0a
5
5
  SHA512:
6
- metadata.gz: b7c7467d599bc6f67ce2c0224b7cc0f950341c81461dca606c771b3d8f07eb019df98e408625fee01b3a543b1d61b72aa1c06f21bdc76fe8a1ea6841b3409ea9
7
- data.tar.gz: 4b4f5bdefac64e25125e93d35ac4167e010be1d4da7e37ceaf95d3c371162f21f0d16d5ec56772e922c1dac7a514ee7f79b6be8f6d93afee6a53e0bccdda6689
6
+ metadata.gz: f7411322993aa119f7e8f70d545ec214aed0730467b7274aab4ea4f33a9359ef6569b649056882c9eaaed4f44e9429232b65c980e536539bf98c703dc5feb7c3
7
+ data.tar.gz: 82d3ed70e9f709d0d464c8df1acb9c37f9a2c62c722f48c98362d2d4f5e5d3f6a402cbcfe8c522a0ffcd5b85533c2dda38f81e05d2f34d158f446c32e3d93ac1
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.1.5
4
+
5
+ * [Widen i18n gem version requirement](https://github.com/PigCI/pig-ci-rails/pull/12)
6
+
3
7
  ## 0.1.4
4
8
 
5
9
  * [Precompile assets before tests run](https://github.com/PigCI/pig-ci-rails/pull/11)
data/README.md CHANGED
@@ -7,6 +7,8 @@
7
7
 
8
8
  # PigCI
9
9
 
10
+ ![Sample Output of PigCI in TravisCI](https://user-images.githubusercontent.com/325384/64909005-7b4a1280-d6fe-11e9-8a1f-c40d21eeb4a7.png)
11
+
10
12
  Monitor your Ruby Applications metrics (Memory, SQL Requests & Request Time) as part of your test suite.
11
13
 
12
14
  Please consider supporting this project by adding [PigCI](https://pigci.com/) to your GitHub project & using this as part of CI. The CI tool will fail PRs that exceed metric threshold (e.g. a big increase in memory).
@@ -52,10 +54,12 @@ You can hookup your project to PigCI.com, this will fail PRs when metric thresho
52
54
  require 'pig_ci'
53
55
  PigCI.start do |config|
54
56
  # When you connect your project, you'll be given an API key.
55
- config.api_key = 'you-api-key-here'
57
+ config.api_key = 'your-api-key-here'
56
58
  end
57
59
  ```
58
60
 
61
+ It's a great way to track metrics over time & support this project.
62
+
59
63
  ### Configuring PigCI
60
64
 
61
65
  This gems was setup to be configured by passing a block to the `PigCI.start` method, e.g:
@@ -68,7 +72,7 @@ PigCI.start do |config|
68
72
 
69
73
  # E.g. disable terminal summary output
70
74
  config.generate_terminal_summary = false
71
- end # if ENV['RUN_PIG_CI'] || RSpec.configuration.files_to_run.count > 1
75
+ end # if RSpec.configuration.files_to_run.count > 1
72
76
  ```
73
77
 
74
78
  You can see the full configuration options [lib/pig_ci.rb](https://github.com/PigCI/pig-ci-rails/blob/master/lib/pig_ci.rb#L21).
@@ -116,21 +120,20 @@ end
116
120
 
117
121
  ## Development
118
122
 
119
- After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake test` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
123
+ After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
120
124
 
121
125
  To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
122
126
 
123
127
  ## TODO
124
128
 
125
129
  Features I'd like to add at some point:
126
-
130
+
127
131
  * HTML output to include branch - Right now they're just timestamps which makes filtering hard.
128
- * Should I disable terminal output by default? It feels like noise.
129
- * Should I reject database requests that have a value of 0? I think so.
130
- * Document setting branch/commit encase of weird CI.
132
+ * Document setting branch/commit to handle when CI doesn't set it correctly.
131
133
  * Add rake for submitting reports.
132
134
  * https://rubydoc.info/gems/yard/file/docs/GettingStarted.md - Document the gem so it's easier for people to jump on.
133
- * Attempt to precompile assets (They throw off the first request timing)
135
+ * Support ActionCable (when requests have no key).
136
+ * Add support for "upsert" for when tests are split over multiple machines
134
137
 
135
138
  ## Contributing
136
139
 
@@ -1,3 +1,3 @@
1
1
  module PigCI
2
- VERSION = '0.1.4'.freeze
2
+ VERSION = '0.1.5'.freeze
3
3
  end
data/pig_ci.gemspec CHANGED
@@ -34,7 +34,7 @@ Gem::Specification.new do |spec|
34
34
  spec.add_dependency 'colorize', '>= 0.8.1'
35
35
  spec.add_dependency 'get_process_mem', '~> 0.2.3'
36
36
  spec.add_dependency 'httparty', '>= 0.16'
37
- spec.add_dependency 'i18n', '>= 1.0'
37
+ spec.add_dependency 'i18n', '>= 0.9', '< 2'
38
38
  spec.add_dependency 'rails', '>= 4.2.0'
39
39
  spec.add_dependency 'terminal-table', '~> 1.8.0'
40
40
 
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.4
4
+ version: 0.1.5
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-09-10 00:00:00.000000000 Z
11
+ date: 2019-09-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -72,14 +72,20 @@ dependencies:
72
72
  requirements:
73
73
  - - ">="
74
74
  - !ruby/object:Gem::Version
75
- version: '1.0'
75
+ version: '0.9'
76
+ - - "<"
77
+ - !ruby/object:Gem::Version
78
+ version: '2'
76
79
  type: :runtime
77
80
  prerelease: false
78
81
  version_requirements: !ruby/object:Gem::Requirement
79
82
  requirements:
80
83
  - - ">="
81
84
  - !ruby/object:Gem::Version
82
- version: '1.0'
85
+ version: '0.9'
86
+ - - "<"
87
+ - !ruby/object:Gem::Version
88
+ version: '2'
83
89
  - !ruby/object:Gem::Dependency
84
90
  name: rails
85
91
  requirement: !ruby/object:Gem::Requirement