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: e787fda8231f0dbe267c758fb1da312e415ae83a80f77d6a9a7083bc144b8cb0
4
- data.tar.gz: e9abc471342a9c5c903a42060a6907cdd093691c0d84c2f2acf0529c283ee31b
3
+ metadata.gz: e810b78278df899ed4b86e5f54068ac4746e810669e25584eac74f719b91e9ed
4
+ data.tar.gz: fa00144f2ce85ba016dbd69ade21de76e760b98ff6ac108885a2d461587a4e2c
5
5
  SHA512:
6
- metadata.gz: 65fb72db1ec538595da11494e6b98a7b89c7328104de1c3ab166ef9134ce062c9172f26e6831096ed6b800190cd6f854c7807bdf48bf60a3aa9ef74ac38ba8f7
7
- data.tar.gz: acdfac248ce160b37b6526edc1554d8f69b81066407e319faaa47d0e45bce7b066c19ef94bede71054bdbf1bda65863299fc8ba5eb949198e271dd3fd423c561
6
+ metadata.gz: 22375ce0628c8200162afcf98152b5f5d8c9c0e9855d0085a18c9f0553e206f247b6ca95a6ec0745b8661b2ca7214d67b5fb8f30ae476168d7db43d91f2fe3c6
7
+ data.tar.gz: 9c47b932560f45e25c5e734929e484181a6b1625e809e373dd0a7f5f4742b43a8a6c4c804b5e93337af01c0ec8993bc95438d0146ba66744f23cab104f450bcd
data/CHANGELOG.md CHANGED
@@ -6,6 +6,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
6
6
 
7
7
  ## [Unreleased]
8
8
 
9
+ ## [1.0.1] - 2019-09-02
10
+ ### Changed
11
+ - Changed generator syntax
12
+
9
13
  ## [1.0.0] - 2019-09-02
10
14
  ### Added
11
15
  - Initial project version
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- lite-query (1.0.0)
4
+ lite-query (1.0.1)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -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 RSpec
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
 
@@ -11,6 +11,7 @@ module TestUnit
11
11
 
12
12
  def create_test_file
13
13
  path = File.join('test', 'queries', class_path, "#{file_name}_query_test.rb")
14
+ empty_directory('test/queries')
14
15
  template('query_test.rb.tt', path)
15
16
  end
16
17
 
@@ -3,7 +3,7 @@
3
3
  module Lite
4
4
  module Query
5
5
 
6
- VERSION ||= '1.0.0'
6
+ VERSION ||= '1.0.1'
7
7
 
8
8
  end
9
9
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lite-query
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Juan Gomez