sawaal 0.0.2
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 +7 -0
- data/CHANGELOG.md +11 -0
- data/CHANGELOG.md~ +5 -0
- data/LICENSE.txt +22 -0
- data/README.md +51 -0
- data/Rakefile +38 -0
- data/lib/sawaal.rb +5 -0
- data/lib/sawaal/version.rb +3 -0
- data/tasks/rdoc.rake +16 -0
- data/tasks/rubucop.rake +14 -0
- data/tasks/yard.rake +21 -0
- metadata +71 -0
checksums.yaml
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
---
|
|
2
|
+
SHA1:
|
|
3
|
+
metadata.gz: e2bb42d7444ac80674d974592fb013da13969349
|
|
4
|
+
data.tar.gz: f2befb7ce93bc69882cb6d30353c76031c8ca76e
|
|
5
|
+
SHA512:
|
|
6
|
+
metadata.gz: 4ad28ca434de778363c410deb74362753c8c4f0970593115a317aed79b70e77792b1c3373b3c548b29bbfe276212814001519e9abf03181536933be1341478fd
|
|
7
|
+
data.tar.gz: f4d25d53df64ef258e9c448fc1d484556f4b5a7e5793c70b5765713dc57224a5cbc587f57a0e7704c29cc099776c548de9e8e7c41bab43116762581b02fe79ef
|
data/CHANGELOG.md
ADDED
data/CHANGELOG.md~
ADDED
data/LICENSE.txt
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
Copyright (c) 2015 Anshul Verma
|
|
2
|
+
|
|
3
|
+
MIT License
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
|
6
|
+
a copy of this software and associated documentation files (the
|
|
7
|
+
"Software"), to deal in the Software without restriction, including
|
|
8
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
|
9
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
|
10
|
+
permit persons to whom the Software is furnished to do so, subject to
|
|
11
|
+
the following conditions:
|
|
12
|
+
|
|
13
|
+
The above copyright notice and this permission notice shall be
|
|
14
|
+
included in all copies or substantial portions of the Software.
|
|
15
|
+
|
|
16
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|
17
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
|
18
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
|
19
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
|
20
|
+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
|
21
|
+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
|
22
|
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/README.md
ADDED
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
# sawaal [](https://rubygems.org/gems/sawaal)
|
|
2
|
+
|
|
3
|
+
[](https://travis-ci.org/anshulverma/sawaal)
|
|
4
|
+
[](https://codeclimate.com/github/anshulverma/sawaal)
|
|
5
|
+
[](https://codeclimate.com/github/anshulverma/sawaal)
|
|
6
|
+
[](https://gemnasium.com/anshulverma/sawaal)
|
|
7
|
+
[](http://inch-ci.org/github/anshulverma/sawaal)
|
|
8
|
+
[](https://rubygems.org/gems/sawaal)
|
|
9
|
+
|
|
10
|
+
<!-- markdown-toc start - Don't edit this section. Run M-x markdown-toc/generate-toc again -->
|
|
11
|
+
**Table of Contents**
|
|
12
|
+
|
|
13
|
+
- [sawaal [](https://rubygems.org/gems/sawaal)](#sawaal-versionhttpimgshieldsiogemvsawaalsvgstyleflat-squarehttpsrubygemsorggemssawaal)
|
|
14
|
+
- [Summary](#summary)
|
|
15
|
+
- [Installation](#installation)
|
|
16
|
+
- [Usage](#usage)
|
|
17
|
+
- [Contributing](#contributing)
|
|
18
|
+
|
|
19
|
+
<!-- markdown-toc end -->
|
|
20
|
+
|
|
21
|
+
# Summary
|
|
22
|
+
|
|
23
|
+
TODO: Write a gem description
|
|
24
|
+
|
|
25
|
+
## Installation
|
|
26
|
+
|
|
27
|
+
Add this line to your application's Gemfile:
|
|
28
|
+
|
|
29
|
+
```ruby
|
|
30
|
+
gem 'sawaal'
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
And then execute:
|
|
34
|
+
|
|
35
|
+
$ bundle
|
|
36
|
+
|
|
37
|
+
Or install it yourself as:
|
|
38
|
+
|
|
39
|
+
$ gem install sawaal
|
|
40
|
+
|
|
41
|
+
## Usage
|
|
42
|
+
|
|
43
|
+
TODO: Write usage instructions here
|
|
44
|
+
|
|
45
|
+
## Contributing
|
|
46
|
+
|
|
47
|
+
1. Fork it ( https://github.com/[my-github-username]/sawaal/fork )
|
|
48
|
+
2. Create your feature branch (`git checkout -b my-new-feature`)
|
|
49
|
+
3. Commit your changes (`git commit -am 'Add some feature'`)
|
|
50
|
+
4. Push to the branch (`git push origin my-new-feature`)
|
|
51
|
+
5. Create a new Pull Request
|
data/Rakefile
ADDED
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
# encoding: utf-8
|
|
2
|
+
|
|
3
|
+
require 'bundler/gem_tasks'
|
|
4
|
+
require 'rspec/core/rake_task'
|
|
5
|
+
require 'rake/clean'
|
|
6
|
+
|
|
7
|
+
RSpec::Core::RakeTask.new(:spec) do |spec|
|
|
8
|
+
spec.pattern = FileList['spec/**/*_spec.rb']
|
|
9
|
+
end
|
|
10
|
+
|
|
11
|
+
FileList['tasks/*.rake'].each(&method(:import))
|
|
12
|
+
|
|
13
|
+
desc 'run code coverage checker'
|
|
14
|
+
task :coverage do
|
|
15
|
+
ENV['COVERAGE'] = 'true'
|
|
16
|
+
Rake::Task['spec'].execute
|
|
17
|
+
end
|
|
18
|
+
|
|
19
|
+
desc 'default rake task'
|
|
20
|
+
task default: [:clean, :coverage, :rubocop, :verify_measurements, :yardstick_measure]
|
|
21
|
+
|
|
22
|
+
desc 'run CI tasks'
|
|
23
|
+
task :ci do
|
|
24
|
+
ENV['CI'] = 'true'
|
|
25
|
+
Rake::Task['default'].execute
|
|
26
|
+
end
|
|
27
|
+
|
|
28
|
+
desc 'Load gem inside irb console'
|
|
29
|
+
task :console do
|
|
30
|
+
require 'irb'
|
|
31
|
+
require 'irb/completion'
|
|
32
|
+
require File.join(__FILE__, '../lib/sawaal')
|
|
33
|
+
ARGV.clear
|
|
34
|
+
IRB.start
|
|
35
|
+
end
|
|
36
|
+
|
|
37
|
+
# temporary files for cleanup
|
|
38
|
+
CLEAN.include('coverage')
|
data/lib/sawaal.rb
ADDED
data/tasks/rdoc.rake
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
# encoding: utf-8
|
|
2
|
+
|
|
3
|
+
begin
|
|
4
|
+
require 'rdoc/task'
|
|
5
|
+
|
|
6
|
+
RDoc::Task.new do |rdoc|
|
|
7
|
+
rdoc.rdoc_dir = '.doc/rdoc'
|
|
8
|
+
rdoc.title = "sawaal #{Sawaal::VERSION}"
|
|
9
|
+
rdoc.main = 'README.md'
|
|
10
|
+
rdoc.rdoc_files.include('README.md', 'LICENSE.txt', 'CHANGELOG.md', 'lib/**/*.rb')
|
|
11
|
+
end
|
|
12
|
+
CLEAN.include('.doc')
|
|
13
|
+
CLEAN.include('doc')
|
|
14
|
+
rescue LoadError
|
|
15
|
+
# do nothing
|
|
16
|
+
end
|
data/tasks/rubucop.rake
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
# encoding: utf-8
|
|
2
|
+
|
|
3
|
+
begin
|
|
4
|
+
require 'rubocop/rake_task'
|
|
5
|
+
|
|
6
|
+
desc 'Run RuboCop on the lib directory'
|
|
7
|
+
RuboCop::RakeTask.new(:rubocop) do |task|
|
|
8
|
+
task.patterns = ['lib/**/*.rb', 'spec/**/*.rb']
|
|
9
|
+
# abort rake on failure
|
|
10
|
+
task.fail_on_error = true
|
|
11
|
+
end
|
|
12
|
+
rescue
|
|
13
|
+
# do nothing
|
|
14
|
+
end
|
data/tasks/yard.rake
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
# encoding: utf-8
|
|
2
|
+
|
|
3
|
+
begin
|
|
4
|
+
require 'yardstick/rake/measurement'
|
|
5
|
+
require 'yardstick/rake/verify'
|
|
6
|
+
|
|
7
|
+
# yardstick_measure task
|
|
8
|
+
Yardstick::Rake::Measurement.new do |measurement|
|
|
9
|
+
measurement.output = '.metrics/yard-report.txt'
|
|
10
|
+
end
|
|
11
|
+
CLEAN.include('.metrics')
|
|
12
|
+
CLEAN.include('.yardoc')
|
|
13
|
+
|
|
14
|
+
# verify_measurements task
|
|
15
|
+
Yardstick::Rake::Verify.new do |verify|
|
|
16
|
+
verify.threshold = 100
|
|
17
|
+
verify.require_exact_threshold = false
|
|
18
|
+
end
|
|
19
|
+
rescue LoadError
|
|
20
|
+
# do nothing
|
|
21
|
+
end
|
metadata
ADDED
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
|
2
|
+
name: sawaal
|
|
3
|
+
version: !ruby/object:Gem::Version
|
|
4
|
+
version: 0.0.2
|
|
5
|
+
platform: ruby
|
|
6
|
+
authors:
|
|
7
|
+
- Anshul Verma
|
|
8
|
+
autorequire:
|
|
9
|
+
bindir: bin
|
|
10
|
+
cert_chain: []
|
|
11
|
+
date: 2015-07-27 00:00:00.000000000 Z
|
|
12
|
+
dependencies:
|
|
13
|
+
- !ruby/object:Gem::Dependency
|
|
14
|
+
name: bundler
|
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
|
16
|
+
requirements:
|
|
17
|
+
- - "~>"
|
|
18
|
+
- !ruby/object:Gem::Version
|
|
19
|
+
version: '1.6'
|
|
20
|
+
type: :development
|
|
21
|
+
prerelease: false
|
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
23
|
+
requirements:
|
|
24
|
+
- - "~>"
|
|
25
|
+
- !ruby/object:Gem::Version
|
|
26
|
+
version: '1.6'
|
|
27
|
+
description: |2
|
|
28
|
+
A helper module to allow user to ask a question
|
|
29
|
+
on the terminal that has multiple choices
|
|
30
|
+
email:
|
|
31
|
+
- anshul.verma86@gmail.com
|
|
32
|
+
executables: []
|
|
33
|
+
extensions: []
|
|
34
|
+
extra_rdoc_files: []
|
|
35
|
+
files:
|
|
36
|
+
- CHANGELOG.md
|
|
37
|
+
- CHANGELOG.md~
|
|
38
|
+
- LICENSE.txt
|
|
39
|
+
- README.md
|
|
40
|
+
- Rakefile
|
|
41
|
+
- lib/sawaal.rb
|
|
42
|
+
- lib/sawaal/version.rb
|
|
43
|
+
- tasks/rdoc.rake
|
|
44
|
+
- tasks/rubucop.rake
|
|
45
|
+
- tasks/yard.rake
|
|
46
|
+
homepage: https://github.com/anshulverma/sawaal
|
|
47
|
+
licenses:
|
|
48
|
+
- MIT
|
|
49
|
+
metadata: {}
|
|
50
|
+
post_install_message:
|
|
51
|
+
rdoc_options: []
|
|
52
|
+
require_paths:
|
|
53
|
+
- lib
|
|
54
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
|
55
|
+
requirements:
|
|
56
|
+
- - ">="
|
|
57
|
+
- !ruby/object:Gem::Version
|
|
58
|
+
version: 1.9.3
|
|
59
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
60
|
+
requirements:
|
|
61
|
+
- - ">="
|
|
62
|
+
- !ruby/object:Gem::Version
|
|
63
|
+
version: 1.3.6
|
|
64
|
+
requirements: []
|
|
65
|
+
rubyforge_project:
|
|
66
|
+
rubygems_version: 2.2.2
|
|
67
|
+
signing_key:
|
|
68
|
+
specification_version: 4
|
|
69
|
+
summary: Helper gem for asking questions on terminal
|
|
70
|
+
test_files: []
|
|
71
|
+
has_rdoc:
|