tng 0.2.9 → 0.3.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/binaries/go-ui-darwin-amd64 +0 -0
- data/binaries/go-ui-darwin-arm64 +0 -0
- data/binaries/go-ui-linux-amd64 +0 -0
- data/binaries/go-ui-linux-arm64 +0 -0
- data/binaries/tng.bundle +0 -0
- data/binaries/tng.so +0 -0
- data/lib/generators/tng/install_generator.rb +7 -1
- data/lib/tng/version.rb +1 -1
- data/lib/tng.rb +10 -1
- metadata +6 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 1565b9f82ca06425bf3e88f44f018c0d34e7f3adc5cc91c111a593689303ef77
|
|
4
|
+
data.tar.gz: 5a5868449487efa2f07d4d9d57aa3dc4ea1ac050f4b530f225e72bbb7067337a
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 11945827a48c2f3e3ff40b5e7c24f356d466b00c0b1b0bcebf397188477b9ce08c10843d762d2ac1835c9ad582c2d26c283fb569eabff395981aa73273320c02
|
|
7
|
+
data.tar.gz: '0644595817a169561541f4f052b417435e2ba21629cbf3c144d92a188006cec4fc953edb638517adaaca82bcab4e648782fdfdcb59795a2c1e8bfb42d334d04e'
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
data/binaries/tng.bundle
CHANGED
|
Binary file
|
data/binaries/tng.so
CHANGED
|
Binary file
|
|
@@ -68,7 +68,7 @@ module Tng
|
|
|
68
68
|
[
|
|
69
69
|
"# frozen_string_literal: true",
|
|
70
70
|
"",
|
|
71
|
-
"return
|
|
71
|
+
"return unless Rails.env.development?",
|
|
72
72
|
"",
|
|
73
73
|
"Tng.configure do |config|",
|
|
74
74
|
" config.api_key = nil",
|
|
@@ -88,6 +88,12 @@ module Tng
|
|
|
88
88
|
" # Leave empty [] to auto-detect from project",
|
|
89
89
|
" config.test_examples = #{test_examples_config}",
|
|
90
90
|
"",
|
|
91
|
+
" # Source Code Reading Configuration",
|
|
92
|
+
" # When enabled (true), TNG will only read the file where the method is located",
|
|
93
|
+
" # and will not analyze other files in the project. This may increase the accuracy of the tests,",
|
|
94
|
+
" # but it may also increase the time it takes to generate the tests.",
|
|
95
|
+
" config.read_file_source_code = false # Options: true, false",
|
|
96
|
+
"",
|
|
91
97
|
" # Authentication#{auth_comment}",
|
|
92
98
|
" #{auth_enabled} # Options: true, false",
|
|
93
99
|
" #{auth_lib} # Options: devise, clearance, sorcery, nil",
|
data/lib/tng/version.rb
CHANGED
data/lib/tng.rb
CHANGED
|
@@ -61,7 +61,8 @@ module Tng
|
|
|
61
61
|
mock_library: "minitest/mock",
|
|
62
62
|
http_mock_library: "webmock",
|
|
63
63
|
factory_library: "active_record",
|
|
64
|
-
test_examples: []
|
|
64
|
+
test_examples: [],
|
|
65
|
+
read_file_source_code: false
|
|
65
66
|
}
|
|
66
67
|
|
|
67
68
|
def self.configure
|
|
@@ -249,6 +250,14 @@ module Tng
|
|
|
249
250
|
@config[:test_examples]
|
|
250
251
|
end
|
|
251
252
|
|
|
253
|
+
def self.read_file_source_code=(value)
|
|
254
|
+
@config[:read_file_source_code] = value
|
|
255
|
+
end
|
|
256
|
+
|
|
257
|
+
def self.read_file_source_code
|
|
258
|
+
@config[:read_file_source_code]
|
|
259
|
+
end
|
|
260
|
+
|
|
252
261
|
def self.authentication_configured?
|
|
253
262
|
return false unless authentication_enabled
|
|
254
263
|
return false if authentication_methods.nil? || authentication_methods.empty?
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: tng
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.3.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- ralucab
|
|
@@ -222,6 +222,10 @@ files:
|
|
|
222
222
|
- Rakefile
|
|
223
223
|
- bin/load_dev
|
|
224
224
|
- bin/tng
|
|
225
|
+
- binaries/go-ui-darwin-amd64
|
|
226
|
+
- binaries/go-ui-darwin-arm64
|
|
227
|
+
- binaries/go-ui-linux-amd64
|
|
228
|
+
- binaries/go-ui-linux-arm64
|
|
225
229
|
- binaries/tng.bundle
|
|
226
230
|
- binaries/tng.so
|
|
227
231
|
- lib/generators/tng/install_generator.rb
|
|
@@ -287,7 +291,7 @@ post_install_message: "┌ TNG ────────────────
|
|
|
287
291
|
\ │\n│ • bundle exec
|
|
288
292
|
tng --help - Show help information │\n│ │\n│
|
|
289
293
|
\ \U0001F4A1 Generate tests for individual methods with precision │\n└────────────────────────────────────────────────────────────
|
|
290
|
-
v0.
|
|
294
|
+
v0.3.0 ┘\n"
|
|
291
295
|
rdoc_options: []
|
|
292
296
|
require_paths:
|
|
293
297
|
- lib
|