liquid-ext 3.3.0 → 3.3.2

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: d1323dc768902ea05e69c01cb8548540daca2cb3
4
- data.tar.gz: f36b10320132fb182ed9233f6eeb1b28c909a78e
3
+ metadata.gz: e87e1079f0bedaef4363d9152123d3eaaa7cf193
4
+ data.tar.gz: eb940ff9c03c50072188ec94bdaf4a4f63187c02
5
5
  SHA512:
6
- metadata.gz: 1e6182e393fabdd026dc5447b29e6999cc2857ee82cd71c6c9532a77f6e00ad874f63c5954e93718e71ffffea22d9005429786d813968167a1ec1186d964c1cb
7
- data.tar.gz: dd79fbd7bfb4d2f507b711174326a094833042e86b506fe4b715248ad0a73310d99a9f9e4121130c34f59c9e38579e548170d3c570f7fc623c52b82604fea014
6
+ metadata.gz: 9a881d510c48e20a0f1e7caa3f9e8bb4e864e6b7359e309d659cf936824ce4b91b97e2f06e8641393955c4d221882b87adcd6ae7b6383297255d2c26693e8aa9
7
+ data.tar.gz: de9002f429a4707092c71b20e7cb72f1bb85dc1869cb31195e015e1fde823fee73535d9309e39a9c13fac288204f4a858acb56197193ee405d1d2bfec15f59cb
@@ -0,0 +1,109 @@
1
+ def qa_files
2
+ files = case (ENV['MODE'] || '').to_sym
3
+ when :full
4
+ %x(git ls-files '*.rb')
5
+ when :feat
6
+ %x(git diff master...HEAD --name-only)
7
+ else
8
+ %x(git diff --name-only)
9
+ end
10
+
11
+ files.split("\n").map(&:chomp).select{ |file| file =~ /\.rb\z/ }
12
+ end
13
+
14
+ def qa_files_array
15
+ @qa_files_array ||= qa_files
16
+ end
17
+
18
+ def qa_files_glob
19
+ @qa_files_glob ||= "{#{qa_files_array.join(",")}}"
20
+ end
21
+
22
+ begin
23
+ require 'cane/rake_task'
24
+
25
+ namespace :qa do
26
+ Cane::RakeTask.new(:cane) do |cane|
27
+ cane.abc_max = 20
28
+ cane.abc_glob = qa_files_glob
29
+ cane.add_threshold 'coverage/covered_percent', :>=, 75
30
+ cane.no_style = true
31
+ cane.no_doc = true
32
+ end
33
+ end
34
+
35
+ rescue LoadError
36
+ warn 'cane not available, QA task not provided.'
37
+ end
38
+
39
+ begin
40
+ require 'reek/rake/task'
41
+
42
+ namespace :qa do
43
+ Reek::Rake::Task.new do |t|
44
+ t.fail_on_error = false
45
+ t.source_files = qa_files_glob
46
+ end
47
+ end
48
+
49
+ rescue LoadError
50
+ warn 'reek not available, QA task not provided.'
51
+ end
52
+
53
+ begin
54
+ require 'tailor/rake_task'
55
+
56
+ namespace :qa do
57
+ Tailor::RakeTask.new do |task|
58
+ task.file_set qa_files_array do |style|
59
+ style.max_line_length 0, level: :off
60
+ end
61
+ end
62
+ end
63
+
64
+ rescue LoadError
65
+ warn 'tailor not available, QA task not provided.'
66
+ end
67
+
68
+ begin
69
+ require 'rubocop/rake_task'
70
+
71
+ namespace :qa do
72
+ Rubocop::RakeTask.new(:rubocop) do |task|
73
+ task.patterns = qa_files_array
74
+ task.formatters = ['fuubar']
75
+ task.fail_on_error = false
76
+ end
77
+ end
78
+
79
+ rescue LoadError
80
+ warn 'rubocop not available, QA task not provided.'
81
+ end
82
+
83
+ begin
84
+ require 'rails_best_practices'
85
+
86
+ namespace :qa do
87
+ desc 'Run rails_best_practices'
88
+ task :rails_best_practices do
89
+ `rails_best_practices -o #{qa_files_array.join(',')}`
90
+ end
91
+ end
92
+
93
+ rescue LoadError
94
+ warn 'rails_best_practices not available, QA task not provided.'
95
+ end
96
+
97
+ desc 'Run all QA tasks'
98
+ task :qa do
99
+ if qa_files_array.any?
100
+ Rake.application.in_namespace(:qa) do |namespace|
101
+ namespace.tasks.each do |task|
102
+ puts "\033[34m*** Runing #{task.name}\033[0m\n\n"
103
+ task.invoke
104
+ end
105
+ end
106
+ else
107
+ puts "\033[33mNo file changes identified, skipping QA tasks\033[0m\n\n"
108
+ end
109
+ end
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |spec|
4
4
  spec.name = "liquid-ext"
5
- spec.version = "3.3.0"
5
+ spec.version = "3.3.2"
6
6
  spec.authors = ["LiquidM, Inc."]
7
7
  spec.email = ["opensource@liquidm.com"]
8
8
  spec.description = %q{Ruby core extensions and helper libraries}
metadata CHANGED
@@ -1,85 +1,85 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: liquid-ext
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.3.0
4
+ version: 3.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - LiquidM, Inc.
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-03-24 00:00:00.000000000 Z
11
+ date: 2014-04-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
- name: activesupport
15
- version_requirements: !ruby/object:Gem::Requirement
16
- requirements:
17
- - - '>='
18
- - !ruby/object:Gem::Version
19
- version: '0'
20
14
  requirement: !ruby/object:Gem::Requirement
21
15
  requirements:
22
16
  - - '>='
23
17
  - !ruby/object:Gem::Version
24
18
  version: '0'
19
+ name: activesupport
25
20
  prerelease: false
26
21
  type: :runtime
27
- - !ruby/object:Gem::Dependency
28
- name: erubis
29
22
  version_requirements: !ruby/object:Gem::Requirement
30
23
  requirements:
31
24
  - - '>='
32
25
  - !ruby/object:Gem::Version
33
26
  version: '0'
27
+ - !ruby/object:Gem::Dependency
34
28
  requirement: !ruby/object:Gem::Requirement
35
29
  requirements:
36
30
  - - '>='
37
31
  - !ruby/object:Gem::Version
38
32
  version: '0'
33
+ name: erubis
39
34
  prerelease: false
40
35
  type: :runtime
41
- - !ruby/object:Gem::Dependency
42
- name: jmx4r
43
36
  version_requirements: !ruby/object:Gem::Requirement
44
37
  requirements:
45
38
  - - '>='
46
39
  - !ruby/object:Gem::Version
47
40
  version: '0'
41
+ - !ruby/object:Gem::Dependency
48
42
  requirement: !ruby/object:Gem::Requirement
49
43
  requirements:
50
44
  - - '>='
51
45
  - !ruby/object:Gem::Version
52
46
  version: '0'
47
+ name: jmx4r
53
48
  prerelease: false
54
49
  type: :runtime
55
- - !ruby/object:Gem::Dependency
56
- name: mixlib-cli
57
50
  version_requirements: !ruby/object:Gem::Requirement
58
51
  requirements:
59
52
  - - '>='
60
53
  - !ruby/object:Gem::Version
61
54
  version: '0'
55
+ - !ruby/object:Gem::Dependency
62
56
  requirement: !ruby/object:Gem::Requirement
63
57
  requirements:
64
58
  - - '>='
65
59
  - !ruby/object:Gem::Version
66
60
  version: '0'
61
+ name: mixlib-cli
67
62
  prerelease: false
68
63
  type: :runtime
69
- - !ruby/object:Gem::Dependency
70
- name: terminal-table
71
64
  version_requirements: !ruby/object:Gem::Requirement
72
65
  requirements:
73
66
  - - '>='
74
67
  - !ruby/object:Gem::Version
75
68
  version: '0'
69
+ - !ruby/object:Gem::Dependency
76
70
  requirement: !ruby/object:Gem::Requirement
77
71
  requirements:
78
72
  - - '>='
79
73
  - !ruby/object:Gem::Version
80
74
  version: '0'
75
+ name: terminal-table
81
76
  prerelease: false
82
77
  type: :runtime
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - '>='
81
+ - !ruby/object:Gem::Version
82
+ version: '0'
83
83
  description: Ruby core extensions and helper libraries
84
84
  email:
85
85
  - opensource@liquidm.com
@@ -146,7 +146,7 @@ files:
146
146
  - lib/liquid/snappy-java-1.1.1-M1.jar
147
147
  - lib/liquid/tasks.rb
148
148
  - lib/liquid/tasks/protoc.rake
149
- - lib/liquid/tasks/reek.rake
149
+ - lib/liquid/tasks/qa.rake
150
150
  - lib/liquid/tasks/rspec.rake
151
151
  - lib/liquid/templates/Gemfile.tt
152
152
  - lib/liquid/templates/LICENSE.txt.tt
@@ -169,6 +169,7 @@ files:
169
169
  - lib/liquid/trove-3.0.3.jar
170
170
  - lib/liquid/trove.rb
171
171
  - lib/liquid/weighted_selector.rb
172
+ - lib/liquid/zkclient-0.4.jar
172
173
  - lib/liquid/zmq.rb
173
174
  - lib/liquid/zookeeper-3.4.6.jar
174
175
  - liquid-ext.gemspec
@@ -195,7 +196,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
195
196
  version: '0'
196
197
  requirements: []
197
198
  rubyforge_project:
198
- rubygems_version: 2.2.2
199
+ rubygems_version: 2.1.9
199
200
  signing_key:
200
201
  specification_version: 4
201
202
  summary: Ruby core extensions and helper libraries
@@ -1,7 +0,0 @@
1
- begin
2
- require 'reek/rake/task'
3
- Reek::Rake::Task.new do |t|
4
- t.fail_on_error = false
5
- end
6
- rescue LoadError
7
- end