rubybench_runner 0.1.1 → 0.1.2

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
  SHA256:
3
- metadata.gz: 334483648fd77a009b7b9ba01e47f83ba9b078d1734260d85bc7f8a6c7e837de
4
- data.tar.gz: 97b942643361581ef850ae4b2acf73e7bc2986c664ea9239232a0b8d5bd4e379
3
+ metadata.gz: 65bff81b60cf3bc552aae4af3621d0fedb582e3ea60f9277d1972587a0636870
4
+ data.tar.gz: 5caa5511d7afe1a971fbd9389611f818f55d2560359d6698285a34834f9a317c
5
5
  SHA512:
6
- metadata.gz: a3a989c8eeaa9d260b976476a2d01185a40b4111f5d35172d3dff4a944237b4a61097af78c2a665ea4fa6a25ca85b05e2349a79f5f8cd628db0b5ebad9e7a100
7
- data.tar.gz: 8b22f02267a6f54c14b2772dfb35a77d13351882d0bb14ebf031a54b1381a54dd36e2909f091390924889c82a1b0cb789332664cf3c9d77ae77c67f5b74a9512
6
+ metadata.gz: effa992a9c805bdfdf3bc9678278db66107e7f7b8d829af54c71d3359563d5477bc24ec63ee16ab63567dc59e92bd0eee7ca3df2f3c3b968a53be415bc77d735
7
+ data.tar.gz: 0ac1c39ef5778c309884c660131d6b86fe3714c015357b841e1d27c105b6e60e60e5c6e005e091f9ee62d7310320fe2a65259acf61d5703ef78dc2a876ba8d4b
@@ -0,0 +1,5 @@
1
+ # CHANGELOG
2
+
3
+ - 2019-06-16: 0.1.2
4
+
5
+ - FIX: Make pg and mysql2 gems (and their dependencies) completely optional (# d8781c8)
data/README.md CHANGED
@@ -1,38 +1,16 @@
1
1
  # RubybenchRunner
2
2
 
3
- Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/rubybench_runner`. To experiment with that code, run `bin/console` for an interactive prompt.
4
-
5
- TODO: Delete this and the text above, and describe your gem
6
-
7
- ## Installation
8
-
9
- Add this line to your application's Gemfile:
10
-
11
- ```ruby
12
- gem 'rubybench_runner'
13
- ```
14
-
15
- And then execute:
16
-
17
- $ bundle
18
-
19
- Or install it yourself as:
20
-
21
- $ gem install rubybench_runner
22
-
23
- ## Usage
24
-
25
- TODO: Write usage instructions here
3
+ This gem serves as a CLI tool to run the benchmarks at rubybench.org locally. Right now it's limited to the Rails benchmark. More details and installation/usage instructions are available [here](https://rubybench.org/run-locally).
26
4
 
27
5
  ## Development
28
6
 
29
7
  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.
30
8
 
31
- 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).
9
+ You can also use the `exe/rubybench_runner` executable to test and preview your changes.
32
10
 
33
11
  ## Contributing
34
12
 
35
- Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/rubybench_runner. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
13
+ Bug reports and pull requests are welcome on GitHub at https://github.com/OsamaSayegh/rubybench_runner. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
36
14
 
37
15
  ## License
38
16
 
@@ -40,4 +18,4 @@ The gem is available as open source under the terms of the [MIT License](https:/
40
18
 
41
19
  ## Code of Conduct
42
20
 
43
- Everyone interacting in the RubybenchRunner project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/[USERNAME]/rubybench_runner/blob/master/CODE_OF_CONDUCT.md).
21
+ Everyone interacting in the RubybenchRunner project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/OsamaSayegh/rubybench_runner/blob/master/CODE_OF_CONDUCT.md).
@@ -222,6 +222,13 @@ module RubybenchRunner
222
222
 
223
223
  log("Installing gems...")
224
224
  comm = "bundle install"
225
+ if opts.db == "mysql2"
226
+ comm += " --without postgres"
227
+ elsif opts.db == "postgres"
228
+ comm += " --without mysql"
229
+ else
230
+ comm += " --without mysql postgres"
231
+ end
225
232
  comm += " > /dev/null 2>&1" if !opts.verbose
226
233
  Dir.chdir(File.dirname(gemfile_location)) do
227
234
  system(comm)
@@ -32,8 +32,12 @@ module RubybenchRunner
32
32
 
33
33
  gem 'rails', path: '#{@repo_path}'
34
34
 
35
- gem 'mysql2', '0.5.2'
36
- gem 'pg', '1.1.4'
35
+ group :mysql do
36
+ gem 'mysql2', '0.5.2'
37
+ end
38
+ group :postgres do
39
+ gem 'pg', '1.1.4'
40
+ end
37
41
  gem 'benchmark-ips', '~> 2.7.2'
38
42
  gem 'redis', '~> 4.1.2'
39
43
  gem 'puma', '~> 3.12.1'
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module RubybenchRunner
4
- VERSION = '0.1.1'
4
+ VERSION = '0.1.2'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rubybench_runner
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Osama Sayegh
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-06-15 00:00:00.000000000 Z
11
+ date: 2019-06-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: byebug
@@ -75,6 +75,7 @@ extra_rdoc_files: []
75
75
  files:
76
76
  - ".gitignore"
77
77
  - ".travis.yml"
78
+ - CHANGELOG.md
78
79
  - CODE_OF_CONDUCT.md
79
80
  - Gemfile
80
81
  - Gemfile.lock