authentication-zero 1.0.0 → 1.0.1
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
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 421b9ebae03521494dfa8745a2e06f912635d3f09e34466fcdcf52040564cf7d
|
4
|
+
data.tar.gz: 155653fd131eccc9aee0aeffb1b859b2b1f34507db60a17c0b337f865502322b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3bdd61297018da9d527e5c250c8271511bfefb375d01357d81b968eda239940191412b30ac38d89b493780eccdaddba507ebde9df908f6459f358fac10b05ee9
|
7
|
+
data.tar.gz: 3d916dd8b43f4ecdc7c65660bf5c7f889324672a6d105fe258610b97b64ac1428bc0e8c74d2fa5617161d28b125f73fe156fadfd8fe6ce99136361c3f2ac41b8
|
data/Gemfile.lock
CHANGED
@@ -3,10 +3,10 @@ require "rails/generators/active_record"
|
|
3
3
|
class AuthenticationGenerator < Rails::Generators::NamedBase
|
4
4
|
class_option :api, type: :boolean, desc: "Generates API authentication"
|
5
5
|
|
6
|
-
class_option :migration, type: :boolean
|
6
|
+
class_option :migration, type: :boolean, default: true
|
7
7
|
class_option :test_framework, type: :string, desc: "Test framework to be invoked"
|
8
8
|
|
9
|
-
class_option :fixture, type: :boolean
|
9
|
+
class_option :fixture, type: :boolean, default: true
|
10
10
|
class_option :system_tests, type: :string, desc: "Skip system test files"
|
11
11
|
|
12
12
|
class_option :skip_routes, type: :boolean
|
@@ -32,7 +32,7 @@ class AuthenticationGenerator < Rails::Generators::NamedBase
|
|
32
32
|
hook_for :fixture_replacement
|
33
33
|
|
34
34
|
def create_fixture_file
|
35
|
-
if options.fixture
|
35
|
+
if options.fixture && options.fixture_replacement.nil?
|
36
36
|
template "#{test_framework}/fixtures.yml", "test/fixtures/#{fixture_file_name}.yml"
|
37
37
|
end
|
38
38
|
end
|