querly 0.5.0 → 0.6.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/CHANGELOG.md +6 -0
- data/lib/querly/cli.rb +2 -2
- data/lib/querly/pp/cli.rb +8 -0
- data/lib/querly/version.rb +1 -1
- data/querly.gemspec +1 -1
- metadata +5 -5
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 98d2102a17e63b28b3c08366d02b7e54c804d8c8
|
|
4
|
+
data.tar.gz: a152411cc3e70cd97fac3534c950c16c62d955d1
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 903128838bc67d5296f269ceffc1b3e42eedb982e917064351607fb652171bfc29e2bc3c2ce7c8faac1338b11d56ff82fa6fcfe16c6e06a382907affb871f19f
|
|
7
|
+
data.tar.gz: d0aeabc064163ae7630f007e7756f88932ed6c555bb4e864aeb23bf350f1ad62d6765d43b51d6010d4851d3f9653b0cfc7a7c5515164aebf84e143e87d5de313
|
data/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,12 @@
|
|
|
2
2
|
|
|
3
3
|
## master
|
|
4
4
|
|
|
5
|
+
## 0.6.0 (2017-06-27)
|
|
6
|
+
|
|
7
|
+
* Load current directory when no path is given (@wata727) #18
|
|
8
|
+
* Require Active Support ~> 5.0 (@gfx) #17
|
|
9
|
+
* Print error message if HAML 5.0 is loaded (@pocke) #16
|
|
10
|
+
|
|
5
11
|
## 0.5.0 (2017-06-16)
|
|
6
12
|
|
|
7
13
|
* Exit 1 on test failure #9
|
data/lib/querly/cli.rb
CHANGED
|
@@ -40,7 +40,7 @@ Specify configuration file by --config option.
|
|
|
40
40
|
|
|
41
41
|
analyzer = Analyzer.new(config: config)
|
|
42
42
|
|
|
43
|
-
ScriptEnumerator.new(paths: paths.map {|path| Pathname(path) }, config: config).each do |path, script|
|
|
43
|
+
ScriptEnumerator.new(paths: paths.empty? ? [Pathname.pwd] : paths.map {|path| Pathname(path) }, config: config).each do |path, script|
|
|
44
44
|
case script
|
|
45
45
|
when Script
|
|
46
46
|
analyzer.scripts << script
|
|
@@ -64,7 +64,7 @@ Specify configuration file by --config option.
|
|
|
64
64
|
desc "console [paths]", "Start console for given paths"
|
|
65
65
|
def console(*paths)
|
|
66
66
|
require 'querly/cli/console'
|
|
67
|
-
Console.new(paths: paths.map {|path| Pathname(path) }).start
|
|
67
|
+
Console.new(paths: paths.empty? ? [Pathname.pwd] : paths.map {|path| Pathname(path) }).start
|
|
68
68
|
end
|
|
69
69
|
|
|
70
70
|
desc "test", "Check configuration"
|
data/lib/querly/pp/cli.rb
CHANGED
|
@@ -55,6 +55,14 @@ module Querly
|
|
|
55
55
|
|
|
56
56
|
def run_haml
|
|
57
57
|
require "haml"
|
|
58
|
+
if Haml::VERSION >= '5.0.0'
|
|
59
|
+
raise <<~ERROR
|
|
60
|
+
HAML 5.0+ is detected.
|
|
61
|
+
`querly-pp haml` does not work on HAML 5.0+.
|
|
62
|
+
Use `haml -d` instead.
|
|
63
|
+
ERROR
|
|
64
|
+
end
|
|
65
|
+
|
|
58
66
|
load_libs
|
|
59
67
|
|
|
60
68
|
source = stdin.read
|
data/lib/querly/version.rb
CHANGED
data/querly.gemspec
CHANGED
|
@@ -30,5 +30,5 @@ Gem::Specification.new do |spec|
|
|
|
30
30
|
spec.add_dependency 'thor', "~> 0.19"
|
|
31
31
|
spec.add_dependency "parser", "~> 2.4.0"
|
|
32
32
|
spec.add_dependency "rainbow", "~> 2.1"
|
|
33
|
-
spec.add_dependency "activesupport", "~> 5.
|
|
33
|
+
spec.add_dependency "activesupport", "~> 5.0"
|
|
34
34
|
end
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: querly
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.6.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Soutaro Matsumoto
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2017-06-
|
|
11
|
+
date: 2017-06-27 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|
|
@@ -128,14 +128,14 @@ dependencies:
|
|
|
128
128
|
requirements:
|
|
129
129
|
- - "~>"
|
|
130
130
|
- !ruby/object:Gem::Version
|
|
131
|
-
version: 5.
|
|
131
|
+
version: '5.0'
|
|
132
132
|
type: :runtime
|
|
133
133
|
prerelease: false
|
|
134
134
|
version_requirements: !ruby/object:Gem::Requirement
|
|
135
135
|
requirements:
|
|
136
136
|
- - "~>"
|
|
137
137
|
- !ruby/object:Gem::Version
|
|
138
|
-
version: 5.
|
|
138
|
+
version: '5.0'
|
|
139
139
|
description: Querly is a query language and tool to find out method calls from Ruby
|
|
140
140
|
programs. Define rules to check your program with patterns to find out *bad* pieces.
|
|
141
141
|
Querly finds out matching pieces from your program.
|
|
@@ -202,7 +202,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
202
202
|
version: '0'
|
|
203
203
|
requirements: []
|
|
204
204
|
rubyforge_project:
|
|
205
|
-
rubygems_version: 2.6.
|
|
205
|
+
rubygems_version: 2.6.8
|
|
206
206
|
signing_key:
|
|
207
207
|
specification_version: 4
|
|
208
208
|
summary: Pattern Based Checking Tool for Ruby
|