make_it_so 0.4.3 → 0.4.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/generators/rails_app_generator.rb +5 -0
- data/lib/make_it_so/version.rb +1 -1
- data/snippets/rails/js_testing_deps.json +3 -1
- data/spec/features/user_generates_rails_spec.rb +11 -0
- data/templates/rails/app/javascript/packs/new_application.js +1 -1
- data/templates/rails/app/javascript/react/components/{app.js → App.js} +0 -0
- data/templates/rails/karma.conf.js +0 -1
- data/templates/rails/spec/javascript/testHelper.js +6 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9ac6f0d77fb6e01dd7624748326a46c41d6783e2
|
4
|
+
data.tar.gz: c09977db2febc42710977548d5e7bb938fe7be3c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6fadff30e6ccc16cbfe781dd9973a0f02b889581a60f3dd8e5369c634122177bdb4bb0ab91c55d943372be1e5f7fd2e77ad11613b9ff8bce290e293aba492209
|
7
|
+
data.tar.gz: e97860de45eb65ece6811879340cd38b770cdc8843bb569cf82366ec624f444d375c3056d65a84e3c0fcf4ca6c5c8b8327c740f8c570c958ae0bf43a3b64643d
|
data/lib/make_it_so/version.rb
CHANGED
@@ -43,6 +43,10 @@ feature 'user generates rails app' do
|
|
43
43
|
expect(File.read(app_layout)).to include('viewport')
|
44
44
|
end
|
45
45
|
|
46
|
+
scenario 'skips active_storage' do
|
47
|
+
expect(FileTest.exists?(join_paths(app_path, 'config/storage.yml'))).to eq(false)
|
48
|
+
end
|
49
|
+
|
46
50
|
scenario 'creates a valid gemfile' do
|
47
51
|
words = ['source', '#', 'gem', 'group', 'end', 'ruby']
|
48
52
|
|
@@ -242,6 +246,13 @@ feature 'user generates rails app' do
|
|
242
246
|
end
|
243
247
|
end
|
244
248
|
|
249
|
+
it 'includes fetch-mock' do
|
250
|
+
in_package_json?(File.join(app_path, 'package.json')) do |json|
|
251
|
+
expect(json["devDependencies"]["fetch-mock"]).to_not be_nil
|
252
|
+
end
|
253
|
+
|
254
|
+
end
|
255
|
+
|
245
256
|
it 'adds coverage/* to gitignore' do
|
246
257
|
expect(File.read(File.join(app_path, '.gitignore'))).to include("coverage/*\n")
|
247
258
|
end
|
File without changes
|
@@ -1,13 +1,18 @@
|
|
1
1
|
import { shallow, mount } from 'enzyme';
|
2
2
|
import jasmineEnzyme from 'jasmine-enzyme';
|
3
3
|
import React from 'react';
|
4
|
-
import '
|
4
|
+
import fetchPonyfill from 'fetch-ponyfill';
|
5
|
+
const {fetch, Request, Response, Headers} = fetchPonyfill({});
|
5
6
|
|
6
7
|
Object.assign(global, {
|
7
8
|
jasmineEnzyme,
|
8
9
|
mount,
|
9
10
|
React,
|
10
11
|
shallow,
|
12
|
+
fetch,
|
13
|
+
Request,
|
14
|
+
Response,
|
15
|
+
Headers
|
11
16
|
});
|
12
17
|
|
13
18
|
beforeEach(() => {
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: make_it_so
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dan Pickett
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2019-04-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: thor
|
@@ -191,7 +191,7 @@ files:
|
|
191
191
|
- templates/rails/app/controllers/application_controller.rb
|
192
192
|
- templates/rails/app/controllers/homes_controller.rb
|
193
193
|
- templates/rails/app/javascript/packs/new_application.js
|
194
|
-
- templates/rails/app/javascript/react/components/
|
194
|
+
- templates/rails/app/javascript/react/components/App.js
|
195
195
|
- templates/rails/app/models/application_record.rb
|
196
196
|
- templates/rails/app/views/homes/index.html.erb
|
197
197
|
- templates/rails/app/views/layouts/application.html.erb.tt
|