jinda 0.7.7.3 → 0.8.0
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/README.md +40 -37
- data/app/assets/config/manifest.js +4 -1
- data/lib/generators/jinda/config_generator.rb +1 -1
- data/lib/generators/jinda/install_generator.rb +3 -4
- data/lib/generators/jinda/templates/app/assets/config/manifest.js +4 -0
- data/lib/generators/jinda/templates/config/mongoid.yml +3 -3
- data/lib/generators/jinda/templates/config/mongoid.yml-docker +3 -3
- data/lib/generators/jinda/templates/config/mongoid.yml-localhost +3 -3
- data/lib/generators/jinda/templates/spec/features/userlogins_spec.rb +1 -1
- data/lib/jinda/version.rb +1 -1
- data/test/dummy/Gemfile +6 -5
- data/test/dummy/Gemfile.lock +196 -181
- data/test/dummy/app/assets/config/manifest.js +4 -0
- data/test/dummy/config/credentials.yml.enc +1 -1
- data/test/dummy/config/environments/test.rb +1 -1
- data/test/dummy/config/initializers/content_security_policy.rb +5 -4
- data/test/dummy/config/initializers/filter_parameter_logging.rb +1 -3
- data/test/dummy/config/mongoid.yml-docker +3 -3
- data/test/dummy/config/mongoid.yml-localhost +3 -3
- data/test/dummy/docker-compose.yml +0 -2
- data/test/dummy/log/development.log +2 -699
- data/test/dummy/spec/features/userlogins_spec.rb +1 -1
- data/test/dummy/tmp/development_secret.txt +1 -1
- data/test/integration/config_generator_test.rb +28 -0
- metadata +3 -3
- data/test/Gemfile +0 -2
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
1b1b29c0ebe13fdb2bb00364b7a1b4f21eab332749fbcc2b8de9ed78f7ab60b7a82f8753bece3727dbaf2f86e586aa36266059a263fab6b631cf439176c5efcb
|
@@ -0,0 +1,28 @@
|
|
1
|
+
require 'test_helper'
|
2
|
+
require 'generators/jinda/config/config_generator'
|
3
|
+
require 'pry'
|
4
|
+
|
5
|
+
class ConfigGeneratorTest < Rails::Generators::TestCase
|
6
|
+
tests Jinda::Generators::ConfigGenerator
|
7
|
+
destination File.expand_path('../../tmp', __FILE__)
|
8
|
+
setup :prepare_destination
|
9
|
+
|
10
|
+
test "backup_files method moves .env file to .env-bak if it exists" do
|
11
|
+
FileUtils.touch("#{destination_root}/.env")
|
12
|
+
assert File.exist?("#{destination_root}/.env")
|
13
|
+
|
14
|
+
run_generator
|
15
|
+
refute File.exist?("#{destination_root}/.env")
|
16
|
+
binding.pry
|
17
|
+
assert File.exist?("#{destination_root}/.env-bak")
|
18
|
+
end
|
19
|
+
|
20
|
+
test "gen_image_store method creates an 'upload' directory" do
|
21
|
+
run_generator
|
22
|
+
assert File.directory?("#{destination_root}/upload")
|
23
|
+
end
|
24
|
+
|
25
|
+
# Add more tests for other methods as needed...
|
26
|
+
|
27
|
+
end
|
28
|
+
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jinda
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.8.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Prateep Kul
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: exe
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2024-03-12 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: mongoid
|
@@ -393,7 +393,6 @@ files:
|
|
393
393
|
- lib/jinda/version.rb
|
394
394
|
- lib/jquery.validate.js
|
395
395
|
- lib/tasks/jinda.rake
|
396
|
-
- test/Gemfile
|
397
396
|
- test/dummy/Dockerfile
|
398
397
|
- test/dummy/Gemfile
|
399
398
|
- test/dummy/Gemfile.lock
|
@@ -611,6 +610,7 @@ files:
|
|
611
610
|
- test/dummy/spec/support/request_spec_helper.rb
|
612
611
|
- test/dummy/spec/views/articles/_article.html.erb_spec.rbx
|
613
612
|
- test/dummy/tmp/development_secret.txt
|
613
|
+
- test/integration/config_generator_test.rb
|
614
614
|
- test/integration/navigation_test.rb
|
615
615
|
- test/jinda_test.rb
|
616
616
|
- test/test_helper.rb
|
data/test/Gemfile
DELETED