cliqr 0.0.2 → 0.0.3

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 79c47830a838dbb29465c407eab7a17226ba1999
4
- data.tar.gz: 7194f0d76b8f37fba854fbeae463e4ffd7cb1053
3
+ metadata.gz: f3005b3bec4c39c0af0006b3da4be666c2c0f0b2
4
+ data.tar.gz: 11a692aba415f994a5b3f26857c5d025371a1bd6
5
5
  SHA512:
6
- metadata.gz: 14d192c7b142d1cf0183466b118c4a7090de49698c0aa8c2e99bbda36e7adba1cc1ea32ffd1a792a2c14133af73b2dc62425f66099d07a5c21f5515864b62cae
7
- data.tar.gz: df85568578f3aedd565a82c6ba9e5a25fb3d2747d877dc8cc096bec11f435ab85834b08c430dd89de0501de55a7bfa6ad08ffd39cb0effc0dff46b6888ec81ff
6
+ metadata.gz: b0504ab87aafe19c34dff996cb9eb8b5499b2b242a4f8e2973afb643c32d98aff0959fd85d24dd8dd297bc818a0b27247e576be8d6e0a4a8fa2ddc9ddf6ce902
7
+ data.tar.gz: 7c61a612684c2a33f3db3cca0525134d0e3cb7621ef43a92c657c51865732b7e716c247f88aecaac94fc3b8c437969ce92b6aff50467d3dda604ceea2c07ecd9
@@ -1,4 +1,17 @@
1
1
 
2
+ 0.0.3 / 2015-05-08
3
+ ==================
4
+
5
+ * add simplecov to make sure test coverage stays at 100 percent
6
+ * don't allow failure on ruby 2.2
7
+ * bump required version to 1.9.3
8
+ * add inch ci badge
9
+ * don't include rubocop in gemfile for ruby version less than 1.9.3
10
+ * disable rubocop for ruby 1.9.2
11
+ * we don't support ruby 1.9.2 anymore
12
+ * adding build section to readme
13
+ * added rubocop for code style checking
14
+
2
15
  0.0.2 / 2015-05-07
3
16
  ==================
4
17
 
data/README.md CHANGED
@@ -4,8 +4,10 @@
4
4
  [![Coverage](http://img.shields.io/codeclimate/coverage/github/anshulverma/cliqr.svg?style=flat-square)](https://codeclimate.com/github/anshulverma/cliqr)
5
5
  [![Quality](http://img.shields.io/codeclimate/github/anshulverma/cliqr.svg?style=flat-square)](https://codeclimate.com/github/anshulverma/cliqr)
6
6
  [![Dependencies](http://img.shields.io/gemnasium/anshulverma/cliqr.svg?style=flat-square)](https://gemnasium.com/anshulverma/cliqr)
7
- [![Downloads](http://img.shields.io/gem/dtv/cliqr.svg?style=flat-square)](https://rubygems.org/gems/cliqr)
7
+ [![Inline docs](http://inch-ci.org/github/anshulverma/cliqr.svg)](http://inch-ci.org/github/anshulverma/cliqr)
8
+
8
9
  [![Version](http://img.shields.io/gem/v/cliqr.svg?style=flat-square)](https://rubygems.org/gems/cliqr)
10
+ [![Downloads](http://img.shields.io/gem/dtv/cliqr.svg?style=flat-square)](https://rubygems.org/gems/cliqr)
9
11
 
10
12
  <!-- markdown-toc start - Don't edit this section. Run M-x markdown-toc/generate-toc again -->
11
13
  **Table of Contents**
@@ -15,6 +17,7 @@
15
17
  - [Examples](#examples)
16
18
  - [Simple CLI app with basename and description](#simple-cli-app-with-basename-and-description)
17
19
  - [Installation](#installation)
20
+ - [Building](#building)
18
21
  - [Contributing](#contributing)
19
22
 
20
23
  <!-- markdown-toc end -->
@@ -68,6 +71,23 @@ Or install it yourself as:
68
71
 
69
72
  $ gem install cliqr
70
73
 
74
+ ## Building
75
+
76
+ There are various metric with different thresholds settings that needed
77
+ to be satisfied for a successful build. Here is a list:
78
+
79
+ - `rubocop` to make sure the code style checks are maintained
80
+ - `yardstick` to measure document coverage
81
+ - `codeclimate` to make we ship quality code
82
+ - `coveralls` to measure code coverage
83
+ - `rdoc` to build and measure documentation
84
+
85
+ To run all of the above, simply run:
86
+
87
+ ```bash
88
+ $ rake
89
+ ```
90
+
71
91
  ## Contributing
72
92
 
73
93
  1. Fork it ( https://github.com/anshulverma/cliqr/fork )
data/Rakefile CHANGED
@@ -1,3 +1,5 @@
1
+ # encoding: utf-8
2
+
1
3
  require 'bundler/gem_tasks'
2
4
  require 'rspec/core/rake_task'
3
5
  require 'rake/clean'
@@ -8,11 +10,20 @@ end
8
10
 
9
11
  FileList['tasks/*.rake'].each(&method(:import))
10
12
 
13
+ desc 'run code coverage checker'
14
+ task :coverage do
15
+ ENV['COVERAGE'] = 'true'
16
+ Rake::Task['spec'].execute
17
+ end
18
+
11
19
  desc 'default rake task'
12
- task default: [:clean, :spec, :verify_measurements, :yardstick_measure]
20
+ task default: [:clean, :spec, :rubocop, :coverage, :verify_measurements, :yardstick_measure]
13
21
 
14
22
  desc 'run CI tasks'
15
- task ci: [:default]
23
+ task :ci do
24
+ ENV['CI'] = 'true'
25
+ Rake::Task['default'].execute
26
+ end
16
27
 
17
28
  desc 'Load gem inside irb console'
18
29
  task :console do
@@ -1,3 +1,5 @@
1
+ # encoding: utf-8
2
+
1
3
  require 'cliqr/version'
2
4
  require 'cliqr/error'
3
5
 
@@ -1,3 +1,5 @@
1
+ # encoding: utf-8
2
+
1
3
  require 'cliqr/cli/validator'
2
4
 
3
5
  module Cliqr
@@ -1,3 +1,5 @@
1
+ # encoding: utf-8
2
+
1
3
  require 'cliqr/dsl'
2
4
 
3
5
  module Cliqr
@@ -1,3 +1,5 @@
1
+ # encoding: utf-8
2
+
1
3
  require 'cliqr/error'
2
4
 
3
5
  module Cliqr
@@ -1,3 +1,5 @@
1
+ # encoding: utf-8
2
+
1
3
  require 'delegate'
2
4
 
3
5
  module Cliqr
@@ -1,3 +1,5 @@
1
+ # encoding: utf-8
2
+
1
3
  module Cliqr
2
4
  module Error
3
5
  class ConfigNotFound < StandardError; end
@@ -1,4 +1,6 @@
1
+ # encoding: utf-8
2
+
1
3
  # Versioned gem
2
4
  module Cliqr
3
- VERSION = '0.0.2'
5
+ VERSION = '0.0.3'
4
6
  end
@@ -1,3 +1,5 @@
1
+ # encoding: utf-8
2
+
1
3
  require 'spec_helper'
2
4
 
3
5
  describe Cliqr::CLI::Builder do
@@ -1,3 +1,5 @@
1
+ # encoding: utf-8
2
+
1
3
  require 'spec_helper'
2
4
 
3
5
  describe Cliqr do
@@ -1,13 +1,25 @@
1
- # enable code climate
2
- require 'codeclimate-test-reporter'
3
- CodeClimate::TestReporter.configure do |config|
4
- config.logger.level = Logger::WARN
1
+ # encoding: utf-8
2
+
3
+ if ENV['CI']
4
+ # enable code climate
5
+ require 'codeclimate-test-reporter'
6
+ CodeClimate::TestReporter.configure do |config|
7
+ config.logger.level = Logger::WARN
8
+ end
9
+ CodeClimate::TestReporter.start
10
+
11
+ # enable coveralls
12
+ require 'coveralls'
13
+ Coveralls.wear!
5
14
  end
6
- CodeClimate::TestReporter.start
7
15
 
8
- # enable coveralls
9
- require 'coveralls'
10
- Coveralls.wear!
16
+ # enable simplecov for code coverage
17
+ if ENV['COVERAGE']
18
+ require 'simplecov'
19
+ SimpleCov.start do
20
+ SimpleCov.minimum_coverage 100
21
+ end
22
+ end
11
23
 
12
24
  require 'bundler/setup'
13
25
  Bundler.setup
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cliqr
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Anshul Verma
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-05-07 00:00:00.000000000 Z
11
+ date: 2015-05-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: log4r