lite-query 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: e810b78278df899ed4b86e5f54068ac4746e810669e25584eac74f719b91e9ed
|
4
|
+
data.tar.gz: fa00144f2ce85ba016dbd69ade21de76e760b98ff6ac108885a2d461587a4e2c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 22375ce0628c8200162afcf98152b5f5d8c9c0e9855d0085a18c9f0553e206f247b6ca95a6ec0745b8661b2ca7214d67b5fb8f30ae476168d7db43d91f2fe3c6
|
7
|
+
data.tar.gz: 9c47b932560f45e25c5e734929e484181a6b1625e809e373dd0a7f5f4742b43a8a6c4c804b5e93337af01c0ec8993bc95438d0146ba66744f23cab104f450bcd
|
data/CHANGELOG.md
CHANGED
data/Gemfile.lock
CHANGED
@@ -7,13 +7,14 @@ module Rails
|
|
7
7
|
|
8
8
|
source_root File.expand_path('../templates', __FILE__)
|
9
9
|
check_class_collision suffix: 'Query'
|
10
|
-
hook_for :test_framework
|
11
10
|
|
12
11
|
def create_query
|
13
12
|
path = File.join('app', 'queries', class_path, "#{file_name}_query.rb")
|
14
13
|
template('query.rb.tt', path)
|
15
14
|
end
|
16
15
|
|
16
|
+
hook_for :test_framework
|
17
|
+
|
17
18
|
private
|
18
19
|
|
19
20
|
def file_name
|
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
require 'rails/generators'
|
4
4
|
|
5
|
-
module
|
5
|
+
module Rspec
|
6
6
|
module Generators
|
7
7
|
class QueryGenerator < Rails::Generators::NamedBase
|
8
8
|
|
@@ -10,6 +10,7 @@ module RSpec
|
|
10
10
|
|
11
11
|
def create_test_file
|
12
12
|
path = File.join('spec', 'queries', class_path, "#{file_name}_query_spec.rb")
|
13
|
+
empty_directory('spec/queries')
|
13
14
|
template('query_spec.rb.tt', path)
|
14
15
|
end
|
15
16
|
|
data/lib/lite/query/version.rb
CHANGED