jumpup-stats 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: b859085ad452864fcd2861375f5c01ad6e875785
4
+ data.tar.gz: a06ddd4b398152b01b77ca294ef856ed84ff8bb0
5
+ SHA512:
6
+ metadata.gz: 20cd8aedfb2eb4932e8024291d2b9733cf11e0bdecc5a63e1d24c17cd576144bbdbb4640932462bc8e0f76319b43c683b6ac3e95e37b23336794fa81df7075c4
7
+ data.tar.gz: 0042c05a3198fc5cd07ec577830aeb3fc6d4e46ef937a20b46e03401c53ebcf10ff37fd5d8d9f5f7c84962c326eb0165a0cd611b4014db3f09333917365c824f
data/.ruby-gemset ADDED
@@ -0,0 +1 @@
1
+ jumpup-stats
data/.ruby-version ADDED
@@ -0,0 +1 @@
1
+ ruby-2.0.0
data/CHANGELOG.md ADDED
@@ -0,0 +1,19 @@
1
+ # Changelog
2
+
3
+ ## 0.0.1 (February 18, 2014)
4
+
5
+ ### features
6
+
7
+ - Add rake quality check
8
+ - Create all tasks of stats
9
+ - Add info about how release the gem
10
+ - Update stats task to save on file and commit it
11
+ - Remove dashboard integration
12
+
13
+ ### improvements
14
+
15
+ - None
16
+
17
+ ### bug fixes
18
+
19
+ - None
data/CONTRIBUTING.md ADDED
@@ -0,0 +1,21 @@
1
+ # Contributing
2
+
3
+ We love pull requests. Here's a quick guide:
4
+
5
+ 1. Fork the repo.
6
+
7
+ 1. Create your feature branch (`git checkout -b my-new-feature`)
8
+
9
+ 1. Update [CHANGELOG.md](https://github.com/Helabs/jumpup-stats/blob/master/CHANGELOG.md) with a brief description of your changes under the `unreleased` heading.
10
+
11
+ 1. Commit your changes (`git commit -am 'Added some feature'`)
12
+
13
+ 1. Push to the branch (`git push origin my-new-feature`)
14
+
15
+ 1. Create new Pull Request
16
+
17
+ At this point you're waiting on us. We like to at least comment on, if not
18
+ accept, pull requests within three business days (and, typically, one business
19
+ day). We may suggest some changes or improvements or alternatives.
20
+
21
+ Some things that will increase the chance that your pull request is accepted is to follow the practices described on [Ruby style guide](https://github.com/bbatsov/ruby-style-guide), [Rails style guide](https://github.com/bbatsov/rails-style-guide) and [Better Specs](http://betterspecs.org/).
data/Gemfile ADDED
@@ -0,0 +1,4 @@
1
+ source 'https://rubygems.org'
2
+
3
+ # Specify your gem's dependencies in heroku-deploy.gemspec
4
+ gemspec
data/LICENSE.txt ADDED
@@ -0,0 +1,22 @@
1
+ Copyright (c) 2012 HE:labs
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,64 @@
1
+ # Jumpup-stats
2
+ [![RubyGems][gem_version_badge]][ruby_gems]
3
+
4
+ Some rake tasks to gather project data and statistics. The goal is to collect these data and commit it in the repository so it can be easily found anytime. It should be used along with [Jumpup](https://github.com/Helabs/jumpup).
5
+
6
+ ## Instalation
7
+
8
+ Add to your gem file.
9
+
10
+ ```ruby
11
+ group :development do
12
+ #...
13
+ gem 'jumpup-stats'
14
+ end
15
+ ```
16
+
17
+ ## Usage
18
+
19
+ 1. Add the `jumpup:stats` to your task list (jumpup.rake), right before the `jumpup:finish` task:
20
+
21
+ ```ruby
22
+ # jumpup.rake
23
+
24
+ INTEGRATION_TASKS = %w(
25
+ #...
26
+ jumpup:stats
27
+ jumpup:finish
28
+ )
29
+ ```
30
+
31
+ ### Quality check
32
+
33
+ Jumpup-stats has included some tasks to check quality. Just run `$ rake quality:check`.
34
+
35
+ ## Versioning
36
+
37
+ Jumpup-stats follow the [Semantic Versioning](http://semver.org/).
38
+
39
+ ## Issues
40
+
41
+ If you have problems, please create a [Github Issue](https://github.com/Helabs/jumpup-stats/issues).
42
+
43
+ ## Contributing
44
+
45
+ Please see [CONTRIBUTING.md](https://github.com/Helabs/jumpup-stats/blob/master/CONTRIBUTING.md) for details.
46
+
47
+ ## Release
48
+
49
+ Follow this steps to release a new version of the gem.
50
+
51
+ 1. Test if everything is running ok;
52
+ 1. Change version of the gem on `VERSION` constant;
53
+ 1. Add the release date on the `CHANGELOG`;
54
+ 1. Do a commit "Bump version x.x.x", follow the semantic version;
55
+ 1. Run `$ rake release`, this will send the gem to the rubygems;
56
+ 1. Check if the gem is on the rubygems and the tags are correct on the github;
57
+
58
+ ## Credits
59
+
60
+ Jumpup-stats is maintained and funded by [HE:labs](http://helabs.com.br/opensource/).
61
+ Thank you to all the [contributors](https://github.com/Helabs/jumpup-stats/graphs/contributors).
62
+
63
+ [gem_version_badge]: https://badge.fury.io/rb/jumpup-stats.png
64
+ [ruby_gems]: http://rubygems.org/gems/jumpup-stats
data/Rakefile ADDED
@@ -0,0 +1 @@
1
+ require "bundler/gem_tasks"
@@ -0,0 +1,28 @@
1
+ # -*- encoding: utf-8 -*-
2
+ lib = File.expand_path('../lib', __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require 'jumpup/stats/version'
5
+
6
+ Gem::Specification.new do |gem|
7
+ gem.name = "jumpup-stats"
8
+ gem.version = Jumpup::Stats::VERSION
9
+ gem.authors = ["HE:labs"]
10
+ gem.email = ["contato@helabs.com.br"]
11
+ gem.description = %q{Rake task to send scores to dashboard.}
12
+ gem.summary = %q{Rake task to send scores to dashboard.}
13
+ gem.homepage = "https://github.com/Helabs/jumpup-stats"
14
+ gem.license = "MIT"
15
+
16
+ gem.files = `git ls-files`.split($/)
17
+ gem.executables = gem.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
18
+ gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
19
+ gem.require_paths = ["lib"]
20
+
21
+ gem.add_dependency 'rubocop', '0.17.0'
22
+ gem.add_dependency 'brakeman', '2.3.1'
23
+ gem.add_dependency 'metric_fu', '4.7.2'
24
+ gem.add_dependency 'sandi_meter', '1.0.5'
25
+ gem.add_dependency 'mago', '0.1.0'
26
+
27
+ gem.add_runtime_dependency('colored', '~> 1.2')
28
+ end
@@ -0,0 +1,7 @@
1
+ require "jumpup/stats/version"
2
+
3
+ def gem_path
4
+ Gem::Specification.find_by_name('jumpup-stats').full_gem_path
5
+ end
6
+
7
+ Dir["#{gem_path}/lib/tasks/*.rake"].each { |ext| load ext } if defined?(Rake)
@@ -0,0 +1,5 @@
1
+ module Jumpup
2
+ module Stats
3
+ VERSION = "0.0.1"
4
+ end
5
+ end
@@ -0,0 +1,45 @@
1
+ namespace :quality do
2
+
3
+ desc 'Run all tasks to check quality'
4
+ task check: ['check:rubocop', 'check:brakeman', 'check:sandi_meter',
5
+ 'check:mago', 'check:metric_fu']
6
+
7
+ namespace :check do
8
+
9
+ desc 'Run rubocop'
10
+ task rubocop: :environment do
11
+ flag('rubocop')
12
+ system('rubocop')
13
+ end
14
+
15
+ desc 'Run brakeman'
16
+ task brakeman: :environment do
17
+ flag('brakeman')
18
+ system('brakeman')
19
+ end
20
+
21
+ desc 'Run metric_fu'
22
+ task metric_fu: :environment do
23
+ flag('metric_fu')
24
+ system('metric_fu')
25
+ end
26
+
27
+ desc 'Run sandi_meter'
28
+ task sandi_meter: :environment do
29
+ flag('sandi_meter')
30
+ system('sandi_meter -d')
31
+ end
32
+
33
+ desc 'Run mago'
34
+ task mago: :environment do
35
+ flag('mago')
36
+ system('mago')
37
+ end
38
+ end
39
+
40
+ def flag(text)
41
+ puts '=' * 80
42
+ puts text
43
+ puts '=' * 80
44
+ end
45
+ end
@@ -0,0 +1,11 @@
1
+ namespace :jumpup do
2
+ desc "Generate and commit the project .stats file"
3
+ task :stats do
4
+ puts "--> Generating .stats file"
5
+ File.open('.stats', 'w') { |file| file.write(`bundle exec rake stats`) }
6
+
7
+ puts "--> Commiting .stats file"
8
+ system "git add .stats"
9
+ system "git commit -m 'Update stats. #{Time.now.utc.to_s}'"
10
+ end
11
+ end
metadata ADDED
@@ -0,0 +1,141 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: jumpup-stats
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ platform: ruby
6
+ authors:
7
+ - HE:labs
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2014-02-18 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: rubocop
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - '='
18
+ - !ruby/object:Gem::Version
19
+ version: 0.17.0
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - '='
25
+ - !ruby/object:Gem::Version
26
+ version: 0.17.0
27
+ - !ruby/object:Gem::Dependency
28
+ name: brakeman
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - '='
32
+ - !ruby/object:Gem::Version
33
+ version: 2.3.1
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - '='
39
+ - !ruby/object:Gem::Version
40
+ version: 2.3.1
41
+ - !ruby/object:Gem::Dependency
42
+ name: metric_fu
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - '='
46
+ - !ruby/object:Gem::Version
47
+ version: 4.7.2
48
+ type: :runtime
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - '='
53
+ - !ruby/object:Gem::Version
54
+ version: 4.7.2
55
+ - !ruby/object:Gem::Dependency
56
+ name: sandi_meter
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - '='
60
+ - !ruby/object:Gem::Version
61
+ version: 1.0.5
62
+ type: :runtime
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - '='
67
+ - !ruby/object:Gem::Version
68
+ version: 1.0.5
69
+ - !ruby/object:Gem::Dependency
70
+ name: mago
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - '='
74
+ - !ruby/object:Gem::Version
75
+ version: 0.1.0
76
+ type: :runtime
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - '='
81
+ - !ruby/object:Gem::Version
82
+ version: 0.1.0
83
+ - !ruby/object:Gem::Dependency
84
+ name: colored
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - ~>
88
+ - !ruby/object:Gem::Version
89
+ version: '1.2'
90
+ type: :runtime
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - ~>
95
+ - !ruby/object:Gem::Version
96
+ version: '1.2'
97
+ description: Rake task to send scores to dashboard.
98
+ email:
99
+ - contato@helabs.com.br
100
+ executables: []
101
+ extensions: []
102
+ extra_rdoc_files: []
103
+ files:
104
+ - .ruby-gemset
105
+ - .ruby-version
106
+ - CHANGELOG.md
107
+ - CONTRIBUTING.md
108
+ - Gemfile
109
+ - LICENSE.txt
110
+ - README.md
111
+ - Rakefile
112
+ - jumpup-stats.gemspec
113
+ - lib/jumpup/stats.rb
114
+ - lib/jumpup/stats/version.rb
115
+ - lib/tasks/quality.rake
116
+ - lib/tasks/stats.rake
117
+ homepage: https://github.com/Helabs/jumpup-stats
118
+ licenses:
119
+ - MIT
120
+ metadata: {}
121
+ post_install_message:
122
+ rdoc_options: []
123
+ require_paths:
124
+ - lib
125
+ required_ruby_version: !ruby/object:Gem::Requirement
126
+ requirements:
127
+ - - '>='
128
+ - !ruby/object:Gem::Version
129
+ version: '0'
130
+ required_rubygems_version: !ruby/object:Gem::Requirement
131
+ requirements:
132
+ - - '>='
133
+ - !ruby/object:Gem::Version
134
+ version: '0'
135
+ requirements: []
136
+ rubyforge_project:
137
+ rubygems_version: 2.0.5
138
+ signing_key:
139
+ specification_version: 4
140
+ summary: Rake task to send scores to dashboard.
141
+ test_files: []