openstax_api 8.2.0 → 8.3.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,4 +1,4 @@
1
- FactoryGirl.define do
1
+ FactoryBot.define do
2
2
  factory :user do
3
3
  username { SecureRandom.hex.to_s }
4
4
  password_hash { SecureRandom.hex.to_s }
@@ -3,7 +3,7 @@ require 'rails_helper'
3
3
  module OpenStax
4
4
  module Api
5
5
  describe ApiUser do
6
- let(:user) { FactoryGirl.create :user }
6
+ let(:user) { FactoryBot.create :user }
7
7
  let(:application) { double('Doorkeeper::Application') }
8
8
  let(:doorkeeper_token) { double('Doorkeeper::AccessToken') }
9
9
  let(:non_doorkeeper_user_proc) { lambda { user } }
data/spec/rails_helper.rb CHANGED
@@ -3,7 +3,7 @@ ENV["RAILS_ENV"] ||= 'test'
3
3
  require 'spec_helper'
4
4
  require File.expand_path("../dummy/config/environment", __FILE__)
5
5
  require 'rspec/rails'
6
- require 'factory_girl_rails'
6
+ require 'factory_bot_rails'
7
7
  require 'faker'
8
8
  require 'squeel'
9
9
 
@@ -7,18 +7,18 @@ module OpenStax
7
7
 
8
8
  before(:all) do
9
9
  100.times do
10
- FactoryGirl.create(:user)
10
+ FactoryBot.create(:user)
11
11
  end
12
12
 
13
13
  User.where{name.like "% doe%"}.delete_all
14
14
 
15
- john_doe = FactoryGirl.create :user, name: "John Doe",
15
+ john_doe = FactoryBot.create :user, name: "John Doe",
16
16
  username: "doejohn",
17
17
  email: "john@doe.com"
18
- jane_doe = FactoryGirl.create :user, name: "Jane Doe",
18
+ jane_doe = FactoryBot.create :user, name: "Jane Doe",
19
19
  username: "doejane",
20
20
  email: "jane@doe.com"
21
- jack_doe = FactoryGirl.create :user, name: "Jack Doe",
21
+ jack_doe = FactoryBot.create :user, name: "Jack Doe",
22
22
  username: "doejack",
23
23
  email: "jack@doe.com"
24
24
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: openstax_api
3
3
  version: !ruby/object:Gem::Version
4
- version: 8.2.0
4
+ version: 8.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dante Soares
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2017-09-13 00:00:00.000000000 Z
12
+ date: 2018-11-28 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails
@@ -192,7 +192,7 @@ dependencies:
192
192
  - !ruby/object:Gem::Version
193
193
  version: '0'
194
194
  - !ruby/object:Gem::Dependency
195
- name: factory_girl_rails
195
+ name: factory_bot_rails
196
196
  requirement: !ruby/object:Gem::Requirement
197
197
  requirements:
198
198
  - - ">="
@@ -247,20 +247,6 @@ dependencies:
247
247
  - - ">="
248
248
  - !ruby/object:Gem::Version
249
249
  version: '0'
250
- - !ruby/object:Gem::Dependency
251
- name: byebug
252
- requirement: !ruby/object:Gem::Requirement
253
- requirements:
254
- - - ">="
255
- - !ruby/object:Gem::Version
256
- version: '0'
257
- type: :development
258
- prerelease: false
259
- version_requirements: !ruby/object:Gem::Requirement
260
- requirements:
261
- - - ">="
262
- - !ruby/object:Gem::Version
263
- version: '0'
264
250
  description: Provides models, controllers and libraries that help OpenStax products
265
251
  define API's for user applications.
266
252
  email:
@@ -325,11 +311,13 @@ files:
325
311
  - spec/dummy/config/locales/en.yml
326
312
  - spec/dummy/config/routes.rb
327
313
  - spec/dummy/config/secrets.yml
314
+ - spec/dummy/db/development.sqlite3
328
315
  - spec/dummy/db/migrate/0_create_doorkeeper_tables.rb
329
316
  - spec/dummy/db/migrate/1_create_users.rb
330
317
  - spec/dummy/db/schema.rb
331
318
  - spec/dummy/db/test.sqlite3
332
319
  - spec/dummy/lib/controller_includes.rb
320
+ - spec/dummy/log/development.log
333
321
  - spec/dummy/log/test.log
334
322
  - spec/dummy/public/404.html
335
323
  - spec/dummy/public/422.html
@@ -368,67 +356,69 @@ required_rubygems_version: !ruby/object:Gem::Requirement
368
356
  version: '0'
369
357
  requirements: []
370
358
  rubyforge_project:
371
- rubygems_version: 2.4.5.1
359
+ rubygems_version: 2.7.3
372
360
  signing_key:
373
361
  specification_version: 4
374
362
  summary: API utilities for OpenStax products and tools.
375
363
  test_files:
376
- - spec/controllers/openstax/api/v1/api_controller_spec.rb
377
- - spec/dummy/app/assets/javascripts/application.js
378
- - spec/dummy/app/assets/stylesheets/application.css
379
- - spec/dummy/app/controllers/api/v1/dummy_controller.rb
380
- - spec/dummy/app/helpers/application_helper.rb
381
- - spec/dummy/app/models/user.rb
364
+ - spec/spec_helper.rb
382
365
  - spec/dummy/app/representers/user_representer.rb
383
366
  - spec/dummy/app/representers/user_search_representer.rb
367
+ - spec/dummy/app/models/user.rb
384
368
  - spec/dummy/app/routines/search_users.rb
369
+ - spec/dummy/app/controllers/api/v1/dummy_controller.rb
385
370
  - spec/dummy/app/views/layouts/application.html.erb
371
+ - spec/dummy/app/assets/javascripts/application.js
372
+ - spec/dummy/app/assets/stylesheets/application.css
373
+ - spec/dummy/app/helpers/application_helper.rb
374
+ - spec/dummy/bin/rake
386
375
  - spec/dummy/bin/bundle
387
376
  - spec/dummy/bin/rails
388
- - spec/dummy/bin/rake
389
- - spec/dummy/config/application.rb
390
- - spec/dummy/config/boot.rb
391
- - spec/dummy/config/database.yml
392
- - spec/dummy/config/environment.rb
393
- - spec/dummy/config/environments/development.rb
377
+ - spec/dummy/config/secrets.yml
378
+ - spec/dummy/config/routes.rb
379
+ - spec/dummy/config/locales/en.yml
394
380
  - spec/dummy/config/environments/production.rb
381
+ - spec/dummy/config/environments/development.rb
395
382
  - spec/dummy/config/environments/test.rb
396
- - spec/dummy/config/initializers/assets.rb
383
+ - spec/dummy/config/environment.rb
384
+ - spec/dummy/config/application.rb
385
+ - spec/dummy/config/database.yml
386
+ - spec/dummy/config/boot.rb
397
387
  - spec/dummy/config/initializers/backtrace_silencers.rb
398
- - spec/dummy/config/initializers/cookies_serializer.rb
399
- - spec/dummy/config/initializers/doorkeeper.rb
400
- - spec/dummy/config/initializers/filter_parameter_logging.rb
401
- - spec/dummy/config/initializers/inflections.rb
402
388
  - spec/dummy/config/initializers/mime_types.rb
403
- - spec/dummy/config/initializers/openstax_api.rb
389
+ - spec/dummy/config/initializers/filter_parameter_logging.rb
404
390
  - spec/dummy/config/initializers/session_store.rb
405
391
  - spec/dummy/config/initializers/wrap_parameters.rb
406
- - spec/dummy/config/locales/en.yml
407
- - spec/dummy/config/routes.rb
408
- - spec/dummy/config/secrets.yml
392
+ - spec/dummy/config/initializers/assets.rb
393
+ - spec/dummy/config/initializers/cookies_serializer.rb
394
+ - spec/dummy/config/initializers/doorkeeper.rb
395
+ - spec/dummy/config/initializers/openstax_api.rb
396
+ - spec/dummy/config/initializers/inflections.rb
409
397
  - spec/dummy/config.ru
410
- - spec/dummy/db/migrate/0_create_doorkeeper_tables.rb
411
- - spec/dummy/db/migrate/1_create_users.rb
398
+ - spec/dummy/README.md
399
+ - spec/dummy/Rakefile
400
+ - spec/dummy/public/favicon.ico
401
+ - spec/dummy/public/422.html
402
+ - spec/dummy/public/500.html
403
+ - spec/dummy/public/404.html
404
+ - spec/dummy/lib/controller_includes.rb
412
405
  - spec/dummy/db/schema.rb
413
406
  - spec/dummy/db/test.sqlite3
414
- - spec/dummy/lib/controller_includes.rb
407
+ - spec/dummy/db/migrate/0_create_doorkeeper_tables.rb
408
+ - spec/dummy/db/migrate/1_create_users.rb
409
+ - spec/dummy/db/development.sqlite3
415
410
  - spec/dummy/log/test.log
416
- - spec/dummy/public/404.html
417
- - spec/dummy/public/422.html
418
- - spec/dummy/public/500.html
419
- - spec/dummy/public/favicon.ico
420
- - spec/dummy/Rakefile
421
- - spec/dummy/README.md
411
+ - spec/dummy/log/development.log
412
+ - spec/representers/openstax/api/v1/abstract_search_representer_spec.rb
413
+ - spec/models/openstax/api/api_user_spec.rb
422
414
  - spec/factories/user.rb
415
+ - spec/lib/openstax/api/representable_schema_printer_spec.rb
423
416
  - spec/lib/openstax/api/apipie_spec.rb
424
- - spec/lib/openstax/api/constraints_spec.rb
425
417
  - spec/lib/openstax/api/doorkeeper_application_includes_spec.rb
426
418
  - spec/lib/openstax/api/params_spec.rb
427
- - spec/lib/openstax/api/representable_schema_printer_spec.rb
428
- - spec/lib/openstax/api/roar_spec.rb
429
419
  - spec/lib/openstax/api/routing_mapper_includes_spec.rb
420
+ - spec/lib/openstax/api/constraints_spec.rb
421
+ - spec/lib/openstax/api/roar_spec.rb
430
422
  - spec/lib/openstax_api_spec.rb
431
- - spec/models/openstax/api/api_user_spec.rb
423
+ - spec/controllers/openstax/api/v1/api_controller_spec.rb
432
424
  - spec/rails_helper.rb
433
- - spec/representers/openstax/api/v1/abstract_search_representer_spec.rb
434
- - spec/spec_helper.rb