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 +4 -4
- data/README.md +1 -1
- data/lib/myrails/version.rb +1 -1
- data/lib/myrails.rb +27 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 64df48e3bf130c1d4ae5d38bc92f493c399e04b8
|
4
|
+
data.tar.gz: d3b8b516bc16ecd917664b1a9194a2a5b6773575
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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-
|
81
|
+
* `gem push pkg/myrails-version`
|
82
82
|
|
83
83
|
Which will push the `.gem` file to [rubygems.org](https://rubygems.org).
|
84
84
|
|
data/lib/myrails/version.rb
CHANGED
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
|