generic_app 1.0.3 → 1.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/gem_test.sh +6 -3
- data/lib/generic_app/version.rb +1 -1
- data/spec/lib/1_new_app_spec.rb +2 -3
- data/spec/lib/2_legacy_app_spec.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 31f775611caa10bdaa430cdc406ba7b31d569353
|
4
|
+
data.tar.gz: 91270cc88abfdc5d91e7e85b6fe0d6ac399d4a2b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1cc5bf6c7e392379d92d8db6eaf0640ed11cd3312f9d64a6d741b5fc75a3351fd3eb75d5ce85d090a2c0d16862245a2e18b106adce94093d50418d9190ee5c05
|
7
|
+
data.tar.gz: d968517570dee60145633a778827fb04301141e96e6ac8375f58547eeafbcd55789e70d5e2c0e9acfdafb983c1e1d96e7eb5af141cf1947979848edcd285ea99
|
data/gem_test.sh
CHANGED
@@ -48,8 +48,11 @@ echo
|
|
48
48
|
echo '***********************************'
|
49
49
|
echo 'The locations of the test logs are:'
|
50
50
|
echo "GEM TEST: $DIR_GENERIC_APP/log/generic_app.txt"
|
51
|
-
echo "TEST
|
52
|
-
echo "TEST
|
51
|
+
echo "TEST 1A (new app): $DIR_GENERIC_APP/log/tmp1A.txt"
|
52
|
+
echo "TEST 1B (new app): $DIR_GENERIC_APP/log/tmp1B.txt"
|
53
|
+
echo "TEST 2A (legacy app): $DIR_GENERIC_APP/log/tmp2A.txt"
|
54
|
+
echo "TEST 2B (legacy app): $DIR_GENERIC_APP/log/tmp2B.txt"
|
53
55
|
echo
|
54
|
-
echo "If all went well, the results at the end of
|
56
|
+
echo "If all went well, the results at the end of tests 1A and 2A show 0 or 31m0 failures and 0 errors."
|
57
|
+
echo 'Test 2B may show vulnerabilities in some gems. This is normal for the legacy app.'
|
55
58
|
echo
|
data/lib/generic_app/version.rb
CHANGED
data/spec/lib/1_new_app_spec.rb
CHANGED
@@ -23,7 +23,7 @@ describe GenericApp do
|
|
23
23
|
it "Bash scripts should be provided" do
|
24
24
|
expect(StringInFile.present("heroku run rake db:migrate", "#{dir_app_1}/heroku_upload.sh")).to eq(true)
|
25
25
|
expect(StringInFile.present("pkill", "#{dir_app_1}/kill_spring.sh")).to eq(true)
|
26
|
-
expect(StringInFile.present("ls -R1 -I concerns app/controllers", "#{dir_app_1}/
|
26
|
+
expect(StringInFile.present("ls -R1 -I concerns app/controllers", "#{dir_app_1}/outline.sh")).to eq(true)
|
27
27
|
expect(StringInFile.present("rails console --sandbox", "#{dir_app_1}/sandbox.sh")).to eq(true)
|
28
28
|
expect(StringInFile.present("rake db:seed", "#{dir_app_1}/seed.sh")).to eq(true)
|
29
29
|
expect(StringInFile.present("rails server -b 0.0.0.0", "#{dir_app_1}/server.sh")).to eq(true)
|
@@ -31,7 +31,7 @@ describe GenericApp do
|
|
31
31
|
end
|
32
32
|
|
33
33
|
it "New README.md file should be provided" do
|
34
|
-
expect(StringInFile.present("
|
34
|
+
expect(StringInFile.present("outline.sh", "#{dir_app_1}/README.md")).to eq(true)
|
35
35
|
end
|
36
36
|
|
37
37
|
it "Guardfile should be set to automatically run tests upon startup" do
|
@@ -60,7 +60,6 @@ describe GenericApp do
|
|
60
60
|
|
61
61
|
it "The notes/1-file_list-misc.txt file should be in place" do
|
62
62
|
expect(StringInFile.present("application_helper.rb", "#{dir_app_1}/notes/1-file_list-misc.txt")).to eq(true)
|
63
|
-
expect(StringInFile.present("users_helper.rb", "#{dir_app_1}/notes/1-file_list-misc.txt")).to eq(true)
|
64
63
|
end
|
65
64
|
|
66
65
|
it "The notes/1-file_list-models.txt file should be in place" do
|
@@ -31,7 +31,7 @@ describe GenericApp do
|
|
31
31
|
it "Bash scripts should be provided" do
|
32
32
|
expect(StringInFile.present("heroku run rake db:migrate", "#{dir_app_2}/heroku_upload.sh")).to eq(true)
|
33
33
|
expect(StringInFile.present("pkill", "#{dir_app_2}/kill_spring.sh")).to eq(true)
|
34
|
-
expect(StringInFile.present("ls -R1 -I concerns app/controllers", "#{dir_app_2}/
|
34
|
+
expect(StringInFile.present("ls -R1 -I concerns app/controllers", "#{dir_app_2}/outline.sh")).to eq(true)
|
35
35
|
expect(StringInFile.present("rails console --sandbox", "#{dir_app_2}/sandbox.sh")).to eq(true)
|
36
36
|
expect(StringInFile.present("rake db:seed", "#{dir_app_2}/seed.sh")).to eq(true)
|
37
37
|
expect(StringInFile.present("rails server -b 0.0.0.0", "#{dir_app_2}/server.sh")).to eq(true)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: generic_app
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jason Hsu
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-10-
|
11
|
+
date: 2015-10-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|