active_generator 2.2.5 → 2.2.6

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
  SHA1:
3
- metadata.gz: be9f82b23248e0bdc190eedaa53813f4f3f7578b
4
- data.tar.gz: 4971159e830272571bfd66173a766b6e15bd6156
3
+ metadata.gz: 47503d682e8ec0e743971568d2b3fbdf3e9d44a1
4
+ data.tar.gz: 3f59c892cd89433c60d92a561e462d275f5d6ef1
5
5
  SHA512:
6
- metadata.gz: 0bb5d098d3449c23d6d636c95b3782948beaf5a86347009843d96e2983d000dafc5e997e692d9d3c3879f8a3dc11f9fd24ae094a20f9b3118f4e94728ef9ec36
7
- data.tar.gz: f0475cd4f9175a8e176555f853e3a071b2f85c14c31eaceeef4d8207aea9eda02289c05d063fee1ffd727f92deac8406048dcfe727d765317ce046512f56ab09
6
+ metadata.gz: 863aafbd1e9b2f9e77086abeca500cd8cbe7fba21b8bf58f55fadee7b34a75ba836e71d598536c7b8b7784fee59b2bd229551262fdf3d7a52f900c74dfa69e10
7
+ data.tar.gz: 2473a006b7b821b03632651b42e30c7662bad4bf13daaf6de1248f3392025bc64c732d5bd4b55b8719bfaa3580027a5a68edf36cdd46666082d51cee7dbacb18
@@ -1,3 +1,3 @@
1
1
  module ActiveGenerator
2
- VERSION = "2.2.5"
2
+ VERSION = "2.2.6"
3
3
  end
@@ -7,4 +7,5 @@ ActiveGenerator.configure do |config|
7
7
  config.autoload_service_generator_locale = true
8
8
  config.autoload_task_generator_locale = true
9
9
  config.autoload_view_generator_locale = true
10
+ config.test_framework = "test_unit"
10
11
  end
@@ -10,7 +10,7 @@ module Erb
10
10
  end
11
11
 
12
12
  def generate_test_file
13
- unless ["test_unit", nil].include?(ActiveGenerator.configuration.test_framework)
13
+ unless ActiveGenerator.configuration.test_framework.nil?
14
14
  invoke("#{ActiveGenerator.configuration.test_framework}:view", [name]) rescue nil
15
15
  end
16
16
  end
@@ -10,7 +10,7 @@ module Erb
10
10
  end
11
11
 
12
12
  def generate_test_file
13
- unless ["test_unit", nil].include?(ActiveGenerator.configuration.test_framework)
13
+ unless ActiveGenerator.configuration.test_framework.nil?
14
14
  invoke("#{ActiveGenerator.configuration.test_framework}:view", [name]) rescue nil
15
15
  end
16
16
  end
@@ -21,7 +21,7 @@ class ViewGenerator < Rails::Generators::NamedBase
21
21
  end
22
22
 
23
23
  def generate_test_file
24
- unless ["test_unit", nil].include?(ActiveGenerator.configuration.test_framework)
24
+ unless ActiveGenerator.configuration.test_framework.nil?
25
25
  invoke("#{ActiveGenerator.configuration.test_framework}:view", [name]) rescue nil
26
26
  end
27
27
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: active_generator
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.2.5
4
+ version: 2.2.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Juan Gomez