querly 0.5.0 → 0.6.0

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: 691aa5292cedd241455746b5e4f7cd4e4f72f82c
4
- data.tar.gz: 47b1c349087fdc731b4740f40c15901a2c1db080
3
+ metadata.gz: 98d2102a17e63b28b3c08366d02b7e54c804d8c8
4
+ data.tar.gz: a152411cc3e70cd97fac3534c950c16c62d955d1
5
5
  SHA512:
6
- metadata.gz: bf05476ed45253cd0738db867ba33325bd00e3b4eee6bb20f2eb0caafd19a3a7672d31a2e3db8491e44e1a397f53314757249cc815fa67a0d4bc6d25d0223332
7
- data.tar.gz: b99a104c7d4914d195226b04c06b87b6243a79634b35935fea05fa7dae3cfd563f63dc5cd99ef0a3dff3c87babb35b1d0efd700f59306c032f5013840c796b84
6
+ metadata.gz: 903128838bc67d5296f269ceffc1b3e42eedb982e917064351607fb652171bfc29e2bc3c2ce7c8faac1338b11d56ff82fa6fcfe16c6e06a382907affb871f19f
7
+ data.tar.gz: d0aeabc064163ae7630f007e7756f88932ed6c555bb4e864aeb23bf350f1ad62d6765d43b51d6010d4851d3f9653b0cfc7a7c5515164aebf84e143e87d5de313
@@ -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
@@ -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"
@@ -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
@@ -1,3 +1,3 @@
1
1
  module Querly
2
- VERSION = "0.5.0"
2
+ VERSION = "0.6.0"
3
3
  end
@@ -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.1.1"
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.5.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-16 00:00:00.000000000 Z
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.1.1
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.1.1
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.10
205
+ rubygems_version: 2.6.8
206
206
  signing_key:
207
207
  specification_version: 4
208
208
  summary: Pattern Based Checking Tool for Ruby