gemika 0.2.0 → 0.3.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: a934a9b1bb2b0ffbf8ae5d02afe7da41a3e98555
4
+ data.tar.gz: 43c266c1e45736030ff64909d407b581106b45f2
5
+ SHA512:
6
+ metadata.gz: 870476f7b37365f079d5f4cd77eb0ed4840aae31a94d673636b38db5b821eac725a1e9e2f0f47205a4639eb788e11dfa2145df8b5266b50da798853396b9eb53
7
+ data.tar.gz: 246b17fde0d99997efda8a8ce51ef891e354b61f13f06bb4daf3aed87eb108e50af542d4a23562c7e239ba6065b8800ce50facac60a1008936327d757b06ff55
data/.travis.yml CHANGED
@@ -14,11 +14,40 @@ gemfile:
14
14
  - gemfiles/Gemfile.5.0.mysql2
15
15
  - gemfiles/Gemfile.5.0.pg
16
16
 
17
+ matrix:
18
+ exclude:
19
+ - gemfile: gemfiles/Gemfile.2.3.mysql2
20
+ rvm: 2.1.8
21
+ - gemfile: gemfiles/Gemfile.2.3.mysql2
22
+ rvm: 2.2.4
23
+ - gemfile: gemfiles/Gemfile.2.3.mysql2
24
+ rvm: 2.3.1
25
+ - gemfile: gemfiles/Gemfile.3.2.mysql2
26
+ rvm: 2.3.1
27
+ - gemfile: gemfiles/Gemfile.4.2.mysql2
28
+ rvm: 1.8.7
29
+ - gemfile: gemfiles/Gemfile.4.2.pg
30
+ rvm: 1.8.7
31
+ - gemfile: gemfiles/Gemfile.5.0.mysql2
32
+ rvm: 1.8.7
33
+ - gemfile: gemfiles/Gemfile.5.0.pg
34
+ rvm: 1.8.7
35
+ - gemfile: gemfiles/Gemfile.5.0.mysql2
36
+ rvm: 2.1.8
37
+ - gemfile: gemfiles/Gemfile.5.0.pg
38
+ rvm: 2.1.8
39
+
40
+ install:
41
+ # Old Travis CI bundler explodes when lockfile version doesn't match recently bumped version
42
+ - gem install bundler --version='=1.12.5'
43
+ # This is the default Travis CI install step
44
+ - bundle install --jobs=3 --retry=3 --deployment --path=${BUNDLE_PATH:-vendor/bundle}
45
+
17
46
  before_script:
18
47
  - psql -c 'create database gemika_test;' -U postgres
19
48
  - mysql -e 'create database IF NOT EXISTS gemika_test;'
20
49
 
21
- script: bundle exec rake gemika:spec
50
+ script: bundle exec rake current_rspec
22
51
 
23
52
  sudo: false
24
53
 
@@ -27,24 +56,3 @@ cache: bundler
27
56
  notifications:
28
57
  email:
29
58
  - fail@makandra.de
30
-
31
- matrix:
32
- exclude:
33
- - rvm: 1.8.7
34
- gemfile: gemfiles/Gemfile.4.2.mysql2
35
- - rvm: 1.8.7
36
- gemfile: gemfiles/Gemfile.4.2.pg
37
- - rvm: 1.8.7
38
- gemfile: gemfiles/Gemfile.5.0.mysql2
39
- - rvm: 1.8.7
40
- gemfile: gemfiles/Gemfile.5.0.pg
41
- - rvm: 2.1.8
42
- gemfile: gemfiles/Gemfile.2.3.mysql2
43
- - rvm: 2.1.8
44
- gemfile: gemfiles/Gemfile.5.0.mysql2
45
- - rvm: 2.1.8
46
- gemfile: gemfiles/Gemfile.5.0.pg
47
- - rvm: 2.2.4
48
- gemfile: gemfiles/Gemfile.2.3.mysql2
49
- - rvm: 2.3.1
50
- gemfile: gemfiles/Gemfile.2.3.mysql2
data/.yardopts ADDED
@@ -0,0 +1 @@
1
+ --markup=markdown --main=README.md
data/README.md CHANGED
@@ -10,17 +10,17 @@ Gemika helps you test your gem against multiple versions of Ruby, gem dependenci
10
10
 
11
11
  Here's what Gemika can give your test's development setup (all features are opt-in):
12
12
 
13
- - Test one codebase against multiple sets of gem dependency sets (e.g. Rails 4.2, Rails 5.0).
14
- - Test one codebase against multiple Ruby versions (e.g. Ruby 2.1.8, Ruby 2.3.1).
13
+ - Test one codebase against multiple sets of runtime gem dependency sets (e.g. Rails 2.3, Rails 5.0).
14
+ - Test one codebase against multiple Ruby versions (e.g. Ruby 1.8.7, Ruby 2.3.10).
15
15
  - Test one codebase against multiple database types (currently MySQL or PostgreSQL).
16
- - Compute a matrix of all possible dependency permutations (Ruby, gem set, database type). Manually exclude incompatible dependency permutations (e.g. Rails 5.0 does not work with Ruby 2.1).
16
+ - Compute a matrix of all possible dependency permutations (Ruby, runtime gems, database type). Manually exclude incompatible dependency permutations (e.g. Rails 5.0 does not work with Ruby 2.1).
17
17
  - Let developers enter their local credentials for MySQL and PostgreSQL in a `database.yml` file.
18
18
  - Define default Ruby version, gem dependencies and database for developers who don't care about every possible permutation for everyday work.
19
19
  - Help configure a [Travis CI](https://travis-ci.org/) build that tests every dependency permutation after each `git push`.
20
20
  - Share your Ruby / gem dependeny / database permutation between local development and Travis CI.
21
21
  - Define an [ActiveRecord database migration](http://api.rubyonrails.org/classes/ActiveRecord/Migration.html) that sets up your test database.
22
22
  - Automatically drop and re-create your test database before each run of your test suite.
23
- - Configure RSpec to wrap each example in a transaction that is rolled back when the example ends. This way each example starts with a blank database.
23
+ - Work around breaking changes in RSpec, Ruby and other gems
24
24
 
25
25
 
26
26
  ## Compatibility
@@ -28,7 +28,7 @@ Here's what Gemika can give your test's development setup (all features are opt-
28
28
  Gemika currently supports the following dependency versions:
29
29
 
30
30
  - Ruby: 1.8.7, 2.1, 2.2, 2.3
31
- - RSpec: Versions 1, 3
31
+ - RSpec: Versions 1, 2, 3
32
32
  - ActiveRecord: Versions 2.3, 3.2, 4.2, 5.0
33
33
  - Databases: PostgreSQL (with `pg` gem), MySQL or MariaDB (with `mysql2` gem)
34
34
 
@@ -119,9 +119,11 @@ end
119
119
  Check that the tasks appear with `rake -T`:
120
120
 
121
121
  ```shell
122
- rake matrix:install # Install all Ruby 2.2.4 gemfiles
123
- rake matrix:spec # Run specs for all Ruby 2.2.4 gemfiles
124
- rake matrix:update[gems] # Update all Ruby 2.2.4 gemfiles
122
+ rake current_rspec[files] # Run specs with the current RSpec version
123
+ rake matrix:install # Install all Ruby 1.8.7 gemfiles
124
+ rake matrix:list # List dependencies for all Ruby 1.8.7 gemfiles
125
+ rake matrix:spec[files] # Run specs for all Ruby 1.8.7 gemfiles
126
+ rake matrix:update[gems] # Update all Ruby 1.8.7 gemfiles
125
127
  ```
126
128
 
127
129
  We also recommend to make `matrix:spec` the default task in your `Rakefile`:
@@ -150,28 +152,34 @@ For each dependency set, create a `Gemfile` in the `gemfiles` directory that con
150
152
  For instance, if one dependency set is Rails 3.2 with a MySQL database, we would create `gemfiles/Gemfile.4.2.mysql2` with these contents:
151
153
 
152
154
  ```ruby
155
+ # Runtime dependencies
153
156
  gem 'rails', '~>3.2.22'
154
157
  gem 'mysql2', '= 0.3.17'
155
158
  gem 'rspec', '~> 3.4'
156
159
 
160
+ # Development dependencies
157
161
  gem 'rake'
158
162
  gem 'byebug'
159
163
  gem 'gemika'
160
164
 
165
+ # Gem under test
161
166
  gem 'my_gem', :path => '..'
162
167
  ```
163
168
 
164
169
  If a second dependency is Rails 5.0 with a PostgreSQL database, we would create `gemfiles/Gemfile.5.0.pg` with these contents:
165
170
 
166
171
  ```ruby
172
+ # Runtime dependencies
167
173
  gem 'rails', '~>5.0.0'
168
174
  gem 'pg', '~>0.18.4'
169
175
  gem 'rspec', '~>3.5'
170
176
 
177
+ # Development dependencies
171
178
  gem 'rake'
172
179
  gem 'byebug'
173
180
  gem 'gemika'
174
181
 
182
+ # Gem under test
175
183
  gem 'my_gem', :path => '..'
176
184
  ```
177
185
 
@@ -234,14 +242,14 @@ There might be incompatible combinations of gemfiles and Rubies, e.g. Rails 5.0
234
242
  ```yaml
235
243
  matrix:
236
244
  exclude:
237
- - rvm: 2.1.8
238
- gemfile: gemfiles/Gemfile.5.0.mysql2
239
- - rvm: 2.1.8
240
- gemfile: gemfiles/Gemfile.5.0.pg
245
+ - gemfile: gemfiles/Gemfile.5.0.mysql2
246
+ rvm: 2.1.8
247
+ - gemfile: gemfiles/Gemfile.5.0.pg
248
+ rvm: 2.1.8
241
249
  ```
242
250
 
243
251
 
244
- ### Default Ruby and dependency set
252
+ ### Default Ruby and default gemfile
245
253
 
246
254
  Your project will be more approachable if you're defining a default Ruby and dependency set. This way a developer can make changes and run code without knowing about the test matrix.
247
255
 
@@ -258,8 +266,6 @@ ln -s gemfiles/Gemfile.4.2.mysql2 Gemfile
258
266
  ln -s gemfiles/Gemfile.4.2.mysql2.lock Gemfile.lock
259
267
  ```
260
268
 
261
- Note that since you now have a Gemfile in your project root, you will need to call `bundle exec rake` instead of `rake` from this point on.
262
-
263
269
  Commit both `.ruby-version` and symlinks to your repo.
264
270
 
265
271
  We recommend to setup Travis CI (see below) to check the entire test matrix after each push, even if a developer only tested with the defaults.
@@ -325,7 +331,7 @@ Now you have a great place for code snippets that need to run before specs (fact
325
331
 
326
332
  If your gem is talking to the database, you probably need to create some example tables.
327
333
 
328
- Magika lets you define an [ActiveRecord database migration](http://api.rubyonrails.org/classes/ActiveRecord/Migration.html) for that. Before your test suite runs, Magika will drop *all* tables in your test database and recreate them using this migration.
334
+ Gemika lets you define an [ActiveRecord database migration](http://api.rubyonrails.org/classes/ActiveRecord/Migration.html) for that. Before your test suite runs, Gemika will drop *all* tables in your test database and recreate them using this migration.
329
335
 
330
336
  Add your migration to your `spec/support/database.rb` (created and required above):
331
337
 
@@ -358,31 +364,30 @@ database.rewrite_schema! do
358
364
  end
359
365
  ```
360
366
 
361
- #### Wrap examples in transactions
367
+ #### Clean database before each test
362
368
 
363
369
  A very useful Rails default is to wrap every test in a transaction that is rolled back when the example ends. This way each example starts with a blank database.
364
370
 
365
- To get the same behavior in your gem tests, append the following to your `spec_helper.rb`:
371
+ To get the same behavior in your gem tests, add `database_cleaner` as a development dependency to all your gemfiles:
366
372
 
373
+ ```ruby
374
+ gem 'database_cleaner'
367
375
  ```
368
- Gemika::RSpec.configure_transactional_examples
376
+
377
+ If you don't want to configure `database_cleaner` manually, you can ask Gemika to clean the database before each example:
378
+
379
+ ```ruby
380
+ Gemika::RSpec.configure_clean_database_before_example
369
381
  ```
370
382
 
371
383
  Note that you also need `require 'gemika'` in your `spec_helper.rb`.
372
384
 
373
- Now every RSpec example is wrapped in a transaction. To disable this behavior for an individual example, use the `transaction: false` option:
374
-
375
- ```
376
- it 'should work', transaction: false do
377
- # code that doesn't work within a transaction, e.g. threads
378
- end
379
- ```
380
385
 
381
386
  ### Try it out
382
387
 
383
388
  Check if you can install development dependencies for each row in the test matrix:
384
389
 
385
- ```
390
+ ```shell
386
391
  bundle exec rake matrix:install
387
392
  ```
388
393
 
@@ -392,11 +397,38 @@ Check if you can run tests for each row in the test matrix:
392
397
  bundle exec rake matrix:spec
393
398
  ```
394
399
 
400
+ To only run some examples, put the list of files in square brackets (it's a Rake thing):
401
+
402
+ ```shell
403
+ bundle exec rake matrix:spec[spec/foo_spec.rb:1005]
404
+ ```
405
+
395
406
  You should see the command output for each row in the test matrix. Gemika will also print a summary at the end:
396
407
 
397
408
  ![Matrix task output](https://raw.githubusercontent.com/makandra/gemika/master/doc/minidusen_test.png)
398
409
 
399
- Note that there is no task for running all gemfiles in all Ruby versions. We had something like this in earlier versions of Gemika and it wasn't as practical as we thought. You need to manually switch Ruby versions and re-run `rake matrix:install`. We recommend to setup Travis CI to check the entire test matrix after each push, including all Rubies.
410
+ If you now discover compatibility issue with your library, see below how Gemika can help you [bridge incompatibilities between dependency sets](#bridging-incompatibilities-between-dependency-sets).
411
+
412
+
413
+ ### Running specs in multiple Ruby versions
414
+
415
+ Note that there is no task for automatically running all gemfiles in all Ruby versions. We had something like this in earlier versions of Gemika and it wasn't as practical as we thought.
416
+
417
+ Instead you need to manually switch Ruby versions and re-run:
418
+
419
+ ```shell
420
+ rake matrix:install
421
+ rake matrix:spec
422
+ ```
423
+
424
+ Note that if your current Ruby version is *very* far away from your [default Ruby](#default-ruby-and-default-gemfile) in `.ruby-version`, you might need to run `rake` with a gemfile that has compatible dependencies:
425
+
426
+ ```shell
427
+ BUNDLE_GEMFILE=gemfiles/Gemfile.2.3 bundle exec rake matrix:install
428
+ BUNDLE_GEMFILE=gemfiles/Gemfile.2.3 bundle exec rake matrix:spec
429
+ ```
430
+
431
+ We recommend to setup Travis CI to check the entire test matrix after each push, including all Rubies. This way developers can stay on the [default Ruby and gemfile](#default-ruby-and-default-gemfile) most of the time while Travis CI checks make sure that nothing broken gets merged.
400
432
 
401
433
 
402
434
  ## Activate Travis CI
@@ -438,11 +470,18 @@ notifications:
438
470
  email:
439
471
  - notifications@test.com
440
472
 
441
- script: bundle exec rspec spec
473
+ install:
474
+ # Old Travis CI bundler explodes when lockfile version doesn't match recently bumped version
475
+ - gem install bundler --version='=1.12.5'
476
+ # This is the default Travis CI install step
477
+ - bundle install --jobs=3 --retry=3 --deployment --path=${BUNDLE_PATH:-vendor/bundle}
478
+
479
+ script: bundle exec rake current_rspec
442
480
  ```
443
481
 
444
482
  Adjust the `script` option if you're not using RSpec to test your code.
445
483
 
484
+
446
485
  #### Activate Github integration
447
486
 
448
487
  To activate Travis CI for your Github repo:
@@ -461,7 +500,7 @@ To check if the integration has worked, push a change and check if you can see y
461
500
 
462
501
  You might want to a build status badge to your `README.md` like this:
463
502
 
464
- [![Build Status](https://travis-ci.org/makandra/minidusen.svg?branch=master)](https://travis-ci.org/makandra/minidusen)
503
+ [![Build Status](https://travis-ci.org/makandra/gemika.svg?branch=master)](https://travis-ci.org/makandra/gemika)
465
504
 
466
505
  You can add such a badge using this markdown:
467
506
 
@@ -485,9 +524,7 @@ If you're super paranoid you can also prevent anyone from pushing to `master` wi
485
524
 
486
525
  ## Add development instructions to your README
487
526
 
488
- Your README should contain instructions how to run tests before making a PR. You might also want to educate future contributors about the existence of your test matrix, and how to use it.
489
-
490
- We recommend to add a section like the following to your `README.md`:
527
+ Your README should contain instructions how to run tests before making a PR. We recommend to add a section like the one below to your `README.md`:
491
528
 
492
529
  ```markdown
493
530
  ## Development
@@ -508,11 +545,80 @@ We recommend to test large changes against multiple versions of Ruby and multipl
508
545
  Note that we have configured Travis CI to automatically run tests in all supported Ruby versions and dependency sets after each push. We will only merge pull requests after a green Travis build.
509
546
  ```
510
547
 
548
+ Adjust the first part to match what you chose as your [default Ruby and default gemfile](#default-ruby-and-dependency-set).
549
+
550
+
551
+ Bridging incompatibilities between dependency sets
552
+ ---------------------------------------------------
553
+
554
+ Gemika can help you bridge incompatibilities or breaking changes between Ruby versions, gem versions, or RSpec.
555
+
556
+
557
+ ### Version switches
558
+
559
+ Check if a gem was activated by the current gemfile:
560
+
561
+ ```ruby
562
+ Gemika::Env.gem?('activesupport')
563
+ ```
564
+
565
+ Check if a gem was activated and satisfies a version requirement:
566
+
567
+ ```ruby
568
+ Gemika::Env.gem?('activesupport', '>= 5')
569
+ Gemika::Env.gem?('activesupport', '~> 5.0.0')
570
+ Gemika::Env.gem?('activesupport', '< 5')
571
+ ```
572
+
573
+ Check if the current Ruby version satisfies a version requirement:
574
+
575
+ ```ruby
576
+ Gemika::Env.ruby?('>= 2')
577
+ Gemika::Env.ruby?('< 2')
578
+ Gemika::Env.ruby?('~> 2.1.0')
579
+ ```
580
+
581
+ Check if the process is running as a Travis CI build:
582
+
583
+ ```ruby
584
+ Gemika::Env.travis?
585
+ ```
586
+
587
+ ### RSpec 1 vs. RSpec 2+
588
+
589
+ If you're testing gems against Rails 2.3 or Ruby 1.8.7 you might need to test with RSpec 1. There are a lot of differences between RSpec 1 and later versions, which Gemika helps to pave over.
590
+
591
+ Configuring RSpec requires you to work on a different module in RSpec 1 (`Spec::Runner`) and RSpec 2 (just `RSpec`). The following works for all RSpec versions:
592
+
593
+ ```ruby
594
+ Gemika::RSpec.configure do |config|
595
+
596
+ config.before(:each) do
597
+ # runs before each example
598
+ end
599
+
600
+ end
601
+ ```
602
+
603
+ When your tests need to run with RSpec 1, you need to use the old `should` syntax, which works across all RSpec versions.
604
+
605
+ To enable this `should` syntax for later RSpecs:
606
+
607
+ ```ruby
608
+ Gemika::RSpec.configure_should_syntax
609
+ ```
610
+
611
+ RSpec 1 has a binary `spec`, while later RSpecs use `rspec`. To call the correct binary for the current gemfile:
612
+
613
+ ```shell
614
+ rake current_rspec
615
+ ```
616
+
511
617
 
512
618
  Development
513
619
  -----------
514
620
 
515
- Here are some hints when you try to make changes to Gemika:
621
+ Here are some hints when you try to make changes to Gemika itself:
516
622
 
517
623
  There are tests in `spec`. We only accept PRs with tests. To run tests:
518
624
 
@@ -1,11 +1,17 @@
1
1
  source 'https://rubygems.org'
2
2
 
3
+ # Ruby
4
+ ruby '< 2'
5
+
6
+ # Runtime dependencies
3
7
  gem 'activerecord', '=2.3.18'
4
8
  gem 'rspec', '~> 1.3.0'
5
9
  gem 'mysql2', '= 0.2.20'
10
+ gem 'i18n', '=0.6.11' # 0.7 no longer builds for Ruby 1.8.7
6
11
 
12
+ # Development dependencies
7
13
  gem 'rake', '=10.0.4'
14
+ gem 'database_cleaner'
8
15
 
9
- gem 'i18n', '=0.6.11' # 0.7 no longer builds for Ruby 1.8.7
10
-
16
+ # Gem under test
11
17
  gem 'gemika', :path => '..'
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: ..
3
3
  specs:
4
- gemika (0.1.4)
4
+ gemika (0.2.0)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -9,6 +9,7 @@ GEM
9
9
  activerecord (2.3.18)
10
10
  activesupport (= 2.3.18)
11
11
  activesupport (2.3.18)
12
+ database_cleaner (1.0.1)
12
13
  i18n (0.6.11)
13
14
  mysql2 (0.2.20)
14
15
  rake (10.0.4)
@@ -19,6 +20,7 @@ PLATFORMS
19
20
 
20
21
  DEPENDENCIES
21
22
  activerecord (= 2.3.18)
23
+ database_cleaner
22
24
  gemika!
23
25
  i18n (= 0.6.11)
24
26
  mysql2 (= 0.2.20)
@@ -1,11 +1,17 @@
1
1
  source 'https://rubygems.org'
2
2
 
3
+ # Ruby
4
+ ruby '< 2.3'
5
+
6
+ # Runtime dependencies
3
7
  gem 'activerecord', '=3.2.22'
4
8
  gem 'rspec', '~> 3.4'
5
9
  gem 'mysql2', '= 0.3.17'
10
+ gem 'i18n', '=0.6.11' # 0.7 no longer builds for Ruby 1.8.7
6
11
 
12
+ # Development dependencies
7
13
  gem 'rake', '=10.0.4'
14
+ gem 'database_cleaner', '~>1.0.0'
8
15
 
9
- gem 'i18n', '=0.6.11' # 0.7 no longer builds for Ruby 1.8.7
10
-
16
+ # Gem under test
11
17
  gem 'gemika', :path => '..'
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: ..
3
3
  specs:
4
- gemika (0.1.4)
4
+ gemika (0.2.0)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -19,6 +19,7 @@ GEM
19
19
  multi_json (~> 1.0)
20
20
  arel (3.0.3)
21
21
  builder (3.0.4)
22
+ database_cleaner (1.0.1)
22
23
  diff-lcs (1.2.5)
23
24
  i18n (0.6.11)
24
25
  multi_json (1.12.1)
@@ -44,11 +45,15 @@ PLATFORMS
44
45
 
45
46
  DEPENDENCIES
46
47
  activerecord (= 3.2.22)
48
+ database_cleaner (~> 1.0.0)
47
49
  gemika!
48
50
  i18n (= 0.6.11)
49
51
  mysql2 (= 0.3.17)
50
52
  rake (= 10.0.4)
51
53
  rspec (~> 3.4)
52
54
 
55
+ RUBY VERSION
56
+ ruby 1.8.7p375
57
+
53
58
  BUNDLED WITH
54
59
  1.12.5
@@ -1,9 +1,16 @@
1
1
  source 'https://rubygems.org'
2
2
 
3
+ # Ruby
4
+ ruby '>= 1.9.3'
5
+
6
+ # Runtime dependencies
3
7
  gem 'activerecord', '~>4.2.1'
4
8
  gem 'rspec', '~>3.4'
5
9
  gem 'mysql2', '~> 0.3.17'
6
10
 
11
+ # Development dependencies
7
12
  gem 'rake'
13
+ gem 'database_cleaner'
8
14
 
15
+ # Gem under test
9
16
  gem 'gemika', :path => '..'
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: ..
3
3
  specs:
4
- gemika (0.1.4)
4
+ gemika (0.2.0)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -21,6 +21,7 @@ GEM
21
21
  tzinfo (~> 1.1)
22
22
  arel (6.0.3)
23
23
  builder (3.2.2)
24
+ database_cleaner (1.5.3)
24
25
  diff-lcs (1.2.5)
25
26
  i18n (0.7.0)
26
27
  json (1.8.3)
@@ -49,6 +50,7 @@ PLATFORMS
49
50
 
50
51
  DEPENDENCIES
51
52
  activerecord (~> 4.2.1)
53
+ database_cleaner
52
54
  gemika!
53
55
  mysql2 (~> 0.3.17)
54
56
  rake
@@ -1,9 +1,18 @@
1
1
  source 'https://rubygems.org'
2
2
 
3
+ # Ruby
4
+ ruby '>= 1.9.3'
5
+
6
+ # Runtime dependencies
3
7
  gem 'activerecord', '~>4.2.1'
4
8
  gem 'rspec', '~>3.4'
5
9
  gem 'pg'
6
10
 
11
+ # Development dependencies
7
12
  gem 'rake'
13
+ gem 'database_cleaner'
8
14
 
15
+ # Gem under test
9
16
  gem 'gemika', :path => '..'
17
+
18
+ ruby '>= 1.9.3'
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: ..
3
3
  specs:
4
- gemika (0.1.4)
4
+ gemika (0.3.0)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -21,6 +21,7 @@ GEM
21
21
  tzinfo (~> 1.1)
22
22
  arel (6.0.3)
23
23
  builder (3.2.2)
24
+ database_cleaner (1.5.3)
24
25
  diff-lcs (1.2.5)
25
26
  i18n (0.7.0)
26
27
  json (1.8.3)
@@ -49,10 +50,14 @@ PLATFORMS
49
50
 
50
51
  DEPENDENCIES
51
52
  activerecord (~> 4.2.1)
53
+ database_cleaner
52
54
  gemika!
53
55
  pg
54
56
  rake
55
57
  rspec (~> 3.4)
56
58
 
59
+ RUBY VERSION
60
+ ruby 2.3.1p112
61
+
57
62
  BUNDLED WITH
58
63
  1.12.5
@@ -1,9 +1,16 @@
1
1
  source 'https://rubygems.org'
2
2
 
3
+ # Ruby
4
+ ruby '>= 2.2'
5
+
6
+ # Runtime dependencies
3
7
  gem 'activerecord', '~>5.0.0'
4
8
  gem 'rspec', '~>3.5'
5
9
  gem 'mysql2', '~>0.4.4'
6
10
 
11
+ # Development dependencies
7
12
  gem 'rake'
13
+ gem 'database_cleaner'
8
14
 
15
+ # Gem under test
9
16
  gem 'gemika', :path => '..'
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: ..
3
3
  specs:
4
- gemika (0.1.4)
4
+ gemika (0.2.0)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -19,6 +19,7 @@ GEM
19
19
  tzinfo (~> 1.1)
20
20
  arel (7.1.2)
21
21
  concurrent-ruby (1.0.2)
22
+ database_cleaner (1.5.3)
22
23
  diff-lcs (1.2.5)
23
24
  i18n (0.7.0)
24
25
  minitest (5.9.0)
@@ -46,6 +47,7 @@ PLATFORMS
46
47
 
47
48
  DEPENDENCIES
48
49
  activerecord (~> 5.0.0)
50
+ database_cleaner
49
51
  gemika!
50
52
  mysql2 (~> 0.4.4)
51
53
  rake
@@ -1,9 +1,16 @@
1
1
  source 'https://rubygems.org'
2
2
 
3
+ # Ruby
4
+ ruby '>= 2.2'
5
+
6
+ # Runtime dependencies
3
7
  gem 'activerecord', '~>5.0.0'
4
8
  gem 'rspec', '~>3.5'
5
9
  gem 'pg', '~>0.18.4'
6
10
 
11
+ # Development dependencies
7
12
  gem 'rake'
13
+ gem 'database_cleaner'
8
14
 
15
+ # Gem under test
9
16
  gem 'gemika', :path => '..'
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: ..
3
3
  specs:
4
- gemika (0.1.4)
4
+ gemika (0.2.0)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -19,6 +19,7 @@ GEM
19
19
  tzinfo (~> 1.1)
20
20
  arel (7.1.2)
21
21
  concurrent-ruby (1.0.2)
22
+ database_cleaner (1.5.3)
22
23
  diff-lcs (1.2.5)
23
24
  i18n (0.7.0)
24
25
  minitest (5.9.0)
@@ -46,6 +47,7 @@ PLATFORMS
46
47
 
47
48
  DEPENDENCIES
48
49
  activerecord (~> 5.0.0)
50
+ database_cleaner
49
51
  gemika!
50
52
  pg (~> 0.18.4)
51
53
  rake