checker 0.6.5.rc2 → 0.6.5

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.
data/Gemfile CHANGED
@@ -2,4 +2,5 @@ source 'http://rubygems.org'
2
2
 
3
3
  gem 'rake'
4
4
  gem 'rspec'
5
- gem 'colorize'
5
+ gem 'colorize'
6
+ gem 'coveralls'
@@ -2,8 +2,19 @@ GEM
2
2
  remote: http://rubygems.org/
3
3
  specs:
4
4
  colorize (0.5.8)
5
+ coveralls (0.5.8)
6
+ colorize
7
+ json
8
+ rest-client
9
+ simplecov (>= 0.7)
10
+ thor
5
11
  diff-lcs (1.1.3)
12
+ json (1.7.7)
13
+ mime-types (1.21)
14
+ multi_json (1.6.1)
6
15
  rake (0.9.2.2)
16
+ rest-client (1.6.7)
17
+ mime-types (>= 1.16)
7
18
  rspec (2.11.0)
8
19
  rspec-core (~> 2.11.0)
9
20
  rspec-expectations (~> 2.11.0)
@@ -12,11 +23,17 @@ GEM
12
23
  rspec-expectations (2.11.1)
13
24
  diff-lcs (~> 1.1.3)
14
25
  rspec-mocks (2.11.1)
26
+ simplecov (0.7.1)
27
+ multi_json (~> 1.0)
28
+ simplecov-html (~> 0.7.1)
29
+ simplecov-html (0.7.1)
30
+ thor (0.17.0)
15
31
 
16
32
  PLATFORMS
17
33
  ruby
18
34
 
19
35
  DEPENDENCIES
20
36
  colorize
37
+ coveralls
21
38
  rake
22
39
  rspec
data/README.md CHANGED
@@ -1,14 +1,26 @@
1
- # Checker [![Build Status](https://secure.travis-ci.org/netguru/checker.png?branch=master)](http://travis-ci.org/netguru/checker)
1
+ # Checker [![Build Status](https://secure.travis-ci.org/netguru/checker.png?branch=master)](http://travis-ci.org/netguru/checker) [![Coverage Status](https://coveralls.io/repos/netguru/checker/badge.png?branch=master)](https://coveralls.io/r/netguru/checker) [![Code Climate](https://codeclimate.com/github/netguru/checker.png)](https://codeclimate.com/github/netguru/checker)
2
2
 
3
3
  A collection of modules for which every is designed to check syntax in files to be commited via git.
4
4
 
5
+ ## Compatibility
6
+
7
+ Checker works with rubies ree, 1.8.7, 1.9.2, 1.9.3 and 2.0.0 - all of those are tested on Travis.
8
+ As for Rails with SASS - tested with RoR 3.2.x
9
+
10
+
5
11
  ## Usage
6
12
 
7
13
  ### Install
8
- Checker is available in rubygems, so you just need to do:
14
+ Checker is available in rubygems (current stable version is 0.6.4), so you just need to do:
9
15
  ```
10
16
  gem install checker
11
17
  ```
18
+
19
+ If you want to install release candidate version (current rc version is 0.6.5.rc2) use the following command:
20
+ ```
21
+ gem install checker --pre
22
+ ```
23
+
12
24
  If you are using bundler, you can add it to your project via `Gemfile` file (best to put it under `:development` group).
13
25
  Since checker is a command-line utility, there is no need to load it up in the application:
14
26
  ```ruby
@@ -22,13 +34,17 @@ After installing the gem please follow [Git hook](#git-hook) section for further
22
34
  ### Git hook
23
35
 
24
36
  All you need to do is type in `checker install` and it will automatically install the prepare-commit-msg hook
25
- to your current git project. It will look like this:
37
+ to your current git project. It will look something like this:
26
38
 
27
39
  ```
28
40
  #!/bin/bash
29
41
 
30
42
  #### Begin of checker script
31
- checker
43
+ if [ -f /Users/user/.rvm/bin/rvm-shell ]; then
44
+ /Users/user/.rvm/bin/rvm-shell 'ruby-1.9.3-p286' -c 'checker'
45
+ else
46
+ checker
47
+ fi
32
48
 
33
49
  if [ $? = 1 ]; then
34
50
  exit 1
@@ -4,7 +4,7 @@ require File.expand_path('../lib/checker/version', __FILE__)
4
4
  Gem::Specification.new do |s|
5
5
  s.name = 'checker'
6
6
  s.version = Checker::VERSION
7
- s.date = '2013-02-23'
7
+ s.date = '2013-03-01'
8
8
  s.summary = "Syntax checker for various files"
9
9
  s.description = "A collection of modules which every is designed to check syntax for specific files."
10
10
  s.authors = ["Jacek Jakubik", "Tomasz Pewiński"]
@@ -14,4 +14,5 @@ Gem::Specification.new do |s|
14
14
  s.require_paths = ["lib"]
15
15
  s.homepage = 'http://github.com/netguru/checker'
16
16
  s.add_dependency 'colorize', '0.5.8'
17
+ s.add_development_dependency "coveralls"
17
18
  end
@@ -1,3 +1,3 @@
1
1
  module Checker
2
- VERSION = '0.6.5.rc2'
2
+ VERSION = '0.6.5'
3
3
  end
@@ -1,4 +1,6 @@
1
1
  require 'digest/md5'
2
+ require 'coveralls'
3
+ Coveralls.wear!
2
4
 
3
5
  $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
4
6
 
@@ -10,6 +10,6 @@ if [ $? = 1 ]; then
10
10
  exit 1
11
11
  fi
12
12
 
13
- text=`echo -n ':checkered_flag: '; cat $1`
13
+ text=`echo -n ':ok: '; cat $1`
14
14
  echo "$text" > $1
15
15
  #### End of checker script
metadata CHANGED
@@ -1,13 +1,12 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: checker
3
3
  version: !ruby/object:Gem::Version
4
- prerelease: true
4
+ prerelease: false
5
5
  segments:
6
6
  - 0
7
7
  - 6
8
8
  - 5
9
- - rc2
10
- version: 0.6.5.rc2
9
+ version: 0.6.5
11
10
  platform: ruby
12
11
  authors:
13
12
  - Jacek Jakubik
@@ -16,7 +15,7 @@ autorequire:
16
15
  bindir: bin
17
16
  cert_chain: []
18
17
 
19
- date: 2013-02-23 00:00:00 +01:00
18
+ date: 2013-03-01 00:00:00 +01:00
20
19
  default_executable:
21
20
  dependencies:
22
21
  - !ruby/object:Gem::Dependency
@@ -33,6 +32,18 @@ dependencies:
33
32
  version: 0.5.8
34
33
  type: :runtime
35
34
  version_requirements: *id001
35
+ - !ruby/object:Gem::Dependency
36
+ name: coveralls
37
+ prerelease: false
38
+ requirement: &id002 !ruby/object:Gem::Requirement
39
+ requirements:
40
+ - - ">="
41
+ - !ruby/object:Gem::Version
42
+ segments:
43
+ - 0
44
+ version: "0"
45
+ type: :development
46
+ version_requirements: *id002
36
47
  description: A collection of modules which every is designed to check syntax for specific files.
37
48
  email:
38
49
  - jacek.jakubik@netguru.pl
@@ -125,13 +136,11 @@ required_ruby_version: !ruby/object:Gem::Requirement
125
136
  version: "0"
126
137
  required_rubygems_version: !ruby/object:Gem::Requirement
127
138
  requirements:
128
- - - ">"
139
+ - - ">="
129
140
  - !ruby/object:Gem::Version
130
141
  segments:
131
- - 1
132
- - 3
133
- - 1
134
- version: 1.3.1
142
+ - 0
143
+ version: "0"
135
144
  requirements: []
136
145
 
137
146
  rubyforge_project: