myrails 2.1.0 → 2.2.0

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
  SHA1:
3
- metadata.gz: dde9aa23a4216392eaa454f9666f325243890a06
4
- data.tar.gz: a2ebad86347303b613be67dbe8bd285a5f7a9bae
3
+ metadata.gz: 64df48e3bf130c1d4ae5d38bc92f493c399e04b8
4
+ data.tar.gz: d3b8b516bc16ecd917664b1a9194a2a5b6773575
5
5
  SHA512:
6
- metadata.gz: e7ba1481d70d8ab8ddf69e39166bee322e2941bf101b77f8e56c6a6e0eb0629382c6a4e51a3c55302cdb740076a3386b4b0d573789028d0642d45f8c4db21850
7
- data.tar.gz: 7ab2caaf2cb3f0e2e39efe166035c9586470aed229f8681ba95779564463e28ed6231d319d0200b94c40db6c6419c00ec392fe71d3eba57069679310755f2b13
6
+ metadata.gz: 864b4b07cc0e635e4ca8ebfef50ae8962db97e4f23daa9b9810394692302aa028acd5423cbe9f75a8a08c2c090942eac21d33db539a582af3a475f61fe8881dc
7
+ data.tar.gz: 9c7a83a07d30667b7acffe416b67348ca1abb22790cad608a8762a5ad2267aaf887745902320614798531484556577f514d83fddb91e936ce89085e1a4fe79a0
data/README.md CHANGED
@@ -78,7 +78,7 @@ To release a new version,
78
78
  * tag the the code `git tag v1.0.0`
79
79
  * push the tag `git push --tags`
80
80
  * then run `bundle exec rake build`
81
- * `gem push pkg/myrails-verion`
81
+ * `gem push pkg/myrails-version`
82
82
 
83
83
  Which will push the `.gem` file to [rubygems.org](https://rubygems.org).
84
84
 
@@ -1,3 +1,3 @@
1
1
  module Myrails
2
- VERSION = "2.1.0"
2
+ VERSION = "2.2.0"
3
3
  end
data/lib/myrails.rb CHANGED
@@ -432,15 +432,40 @@ gem 'rspec-rails', group: :test
432
432
  s.add_development_dependency 'rspec-rails'
433
433
  s.add_development_dependency 'capybara'
434
434
  s.add_development_dependency 'factory_girl_rails'
435
+ s.add_development_dependency "faker"
436
+ s.add_development_dependency "byebug"
437
+ s.add_development_dependency 'rails-controller-testing'
438
+ s.add_development_dependency 'pundit-matchers'
439
+ s.add_development_dependency "simplecov"
440
+ s.add_development_dependency "shoulda-matchers"
441
+ s.add_development_dependency "database_cleaner"
442
+ s.add_dependency 'pundit'
443
+ s.add_dependency 'bootstrap-sass', '~> 3.3.6'
444
+ s.add_dependency 'autoprefixer-rails'
445
+ s.add_dependency "haml-rails"
446
+ s.add_dependency "font-awesome-rails"
447
+ s.add_dependency 'record_tag_helper'
435
448
  CODE
436
449
  end
437
450
 
438
451
  run 'bundle'
452
+ copy_file 'rspec/database_cleaner.rb', 'spec/configs/database_cleaner.rb'
453
+ copy_file 'rspec/factory_girl.rb', 'spec/configs/factory_gir.rb'
454
+ copy_file 'rspec/presenter.rb', 'spec/configs/presenter.rb'
455
+ copy_file 'rspec/shoulda_matchers', 'spec/configs/shoulda_matchers.rb'
439
456
  copy_file 'engines/rakefile', 'Rakefile'
440
-
441
457
  run 'rails g rspec:install'
442
- gsub_file 'spec/rails_helper.rb', "# Dir[Rails.root.join('spec/support/**/*.rb')].each { |f| require f }", "Dir[Rails.root.join('spec/support/**/*.rb')].each { |f| require f }"
443
458
 
459
+ gsub_file 'spec/rails_helper.rb', "# Dir[Rails.root.join('spec/support/**/*.rb')].each { |f| require f }", "Dir[File.join(__dir__, 'support', '**', '*.rb')].each { |f| require f }"
460
+
461
+ gsub_file 'spec/rails_helper.rb', "require File.expand_path('../../config/environment', __FILE__)", "require_relative 'dummy/config/environment'"
462
+
463
+ inject_into_file 'spec/rails_helper.rb', after: "require 'rspec/rails'\n" do <<-CODE
464
+ require 'shoulda/matchers'
465
+ require 'factory_girl'
466
+ require 'database_cleaner'
467
+ CODE
468
+ end
444
469
  inject_into_file 'spec/rails_helper.rb', after: "RSpec.configure do |config|\n" do <<-CODE
445
470
  config.mock_with :rspec
446
471
  config.infer_base_class_for_anonymous_controllers = false
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: myrails
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.0
4
+ version: 2.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Vell