ns-rake_tasks 0.3.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: 6afc5ebfb9d4cd5a060fc747707d6301969afa3a
4
+ data.tar.gz: 80fe5f7013389ad33f1a8b09d095b6d7df47f769
5
+ SHA512:
6
+ metadata.gz: 079cfc38e51d9e8cfbff0aef67a54a90e5a7aeb01c527c1658b370335f79f79e17c1da73f51847a0bf88f4d163e1d536c6f24f30b505a6a9a5bfa80a58f1b402
7
+ data.tar.gz: d56a2dac4e33591f507d79f1f2e3c35f10a90e6462e6f94662d3eae5ef0bc56561a2d5960d63599d6954ae385d5204da591be5fac94d579ebb79a322d72cc9fc
data/.gitignore ADDED
@@ -0,0 +1,24 @@
1
+ *.gem
2
+ *.rbc
3
+ .bundle
4
+ .config
5
+ .yardoc
6
+ Gemfile.lock
7
+ InstalledFiles
8
+ _yardoc
9
+ coverage
10
+ doc/
11
+ lib/bundler/man
12
+ pkg
13
+ rdoc
14
+ spec/reports
15
+ test/tmp
16
+ test/version_tmp
17
+ tmp
18
+ *.bundle
19
+ *.so
20
+ *.o
21
+ *.a
22
+ mkmf.log
23
+
24
+ .idea/
data/.ruby-gemset ADDED
@@ -0,0 +1 @@
1
+ ns-rake_tasks
data/.ruby-version ADDED
@@ -0,0 +1 @@
1
+ 2.2.1
data/.travis.yml ADDED
@@ -0,0 +1,8 @@
1
+ env:
2
+ - COVERAGE=1
3
+ language: ruby
4
+ rvm:
5
+ - 1.9.3
6
+ - 2.1.5
7
+ - 2.2.1
8
+ - jruby-19mode
data/Gemfile ADDED
@@ -0,0 +1,4 @@
1
+ source 'https://rubygems.org'
2
+
3
+ # Specify your gem's dependencies in ns-rake_tasks.gemspec
4
+ gemspec
data/LICENSE.txt ADDED
@@ -0,0 +1,22 @@
1
+ Copyright (c) 2015 Adam Zima
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,32 @@
1
+ [![Build Status](https://travis-ci.org/u2i/ns-rake_tasks.svg?branch=master)](https://travis-ci.org/u2i/ns-rake_tasks)
2
+ [![Code Climate](https://codeclimate.com/github/u2i/ns-rake_tasks/badges/gpa.svg)](https://codeclimate.com/github/u2i/ns-rake_tasks)
3
+
4
+ # Ns::RakeTasks
5
+
6
+ Write a gem description
7
+
8
+ ## Installation
9
+
10
+ Add this line to your application's Gemfile:
11
+
12
+ gem 'ns-rake_tasks'
13
+
14
+ And then execute:
15
+
16
+ $ bundle
17
+
18
+ Or install it yourself as:
19
+
20
+ $ gem install ns-rake_tasks
21
+
22
+ ## Usage
23
+
24
+ Write usage instructions here
25
+
26
+ ## Contributing
27
+
28
+ 1. Fork it ( https://github.com/[my-github-username]/ns-rake_tasks/fork )
29
+ 2. Create your feature branch (`git checkout -b my-new-feature`)
30
+ 3. Commit your changes (`git commit -am 'Add some feature'`)
31
+ 4. Push to the branch (`git push origin my-new-feature`)
32
+ 5. Create a new Pull Request
data/Rakefile ADDED
@@ -0,0 +1,3 @@
1
+ require 'bundler/gem_tasks'
2
+
3
+ task default: [:build]
@@ -0,0 +1,7 @@
1
+ require 'ns/rake_tasks/version'
2
+
3
+ module Ns
4
+ module RakeTasks
5
+ require 'ns/rake_tasks/railtie' if defined?(Rails)
6
+ end
7
+ end
@@ -0,0 +1,19 @@
1
+ if ENV['COVERAGE']
2
+ require 'simplecov'
3
+ require 'simplecov-rcov'
4
+ require 'simplecov-rcov-text'
5
+ require 'codeclimate-test-reporter'
6
+
7
+ SimpleCov.add_filter '/spec/'
8
+ SimpleCov.formatter = SimpleCov::Formatter::MultiFormatter[
9
+ SimpleCov::Formatter::HTMLFormatter,
10
+ SimpleCov::Formatter::RcovFormatter,
11
+ SimpleCov::Formatter::RcovTextFormatter,
12
+ CodeClimate::TestReporter::Formatter,
13
+ ]
14
+ if defined?(Rails)
15
+ SimpleCov.start 'rails'
16
+ else
17
+ SimpleCov.start
18
+ end
19
+ end
@@ -0,0 +1,12 @@
1
+ require 'ns/rake_tasks'
2
+ require 'rails'
3
+
4
+ module MyPlugin
5
+ class Railtie < Rails::Railtie
6
+ railtie_name :rake_tasks
7
+
8
+ rake_tasks do
9
+ require 'ns/rake_tasks/tasks/all'
10
+ end
11
+ end
12
+ end
@@ -0,0 +1,4 @@
1
+ load 'ns/rake_tasks/tasks/pronto.rake'
2
+ load 'ns/rake_tasks/tasks/rspec.rake'
3
+ load 'ns/rake_tasks/tasks/rubocop.rake'
4
+ load 'ns/rake_tasks/tasks/changelog.rake'
@@ -0,0 +1,7 @@
1
+ require 'github_changelog_generator/task'
2
+
3
+ namespace :ns do
4
+ GitHubChangelogGenerator::RakeTask.new :changelog do |config|
5
+ end
6
+
7
+ end
@@ -0,0 +1,38 @@
1
+ if defined?(JRUBY_VERSION)
2
+ namespace :ns do
3
+ namespace :pronto do
4
+ task :local do
5
+ end
6
+
7
+ task :branch, [:branch_name] do |_t, _args|
8
+ end
9
+
10
+ task :pr, [:branch_name] do |_t, _args|
11
+ end
12
+ end
13
+ end
14
+ else
15
+ require 'pronto'
16
+
17
+ namespace :ns do
18
+ Pronto.gem_names.each { |gem_name| require "pronto/#{gem_name}" }
19
+
20
+ namespace :pronto do
21
+ desc 'run pronto against unstaged'
22
+ task :local do
23
+ Pronto.run('HEAD', '.')
24
+ end
25
+
26
+ desc 'run pronto against branch, eg. origin/master'
27
+ task :branch, [:branch_name] do |_t, args|
28
+ Pronto.run(args[:branch_name], '.')
29
+ end
30
+
31
+ desc 'run pronto on PR, provide base branch as argument and GITHUB_ACCESS_TOKEN=token PULL_REQUEST_ID=id and env variables'
32
+ task :pr, [:branch_name] do |_t, args|
33
+ formatter = Pronto::Formatter::GithubPullRequestFormatter.new
34
+ Pronto.run(args[:branch_name], '.', formatter)
35
+ end
36
+ end
37
+ end
38
+ end
@@ -0,0 +1,6 @@
1
+ require 'ci/reporter/rake/rspec'
2
+
3
+ namespace :ci do
4
+ desc 'run RSpec with CI formatters (JUnit XML)'
5
+ task :spec => %w(ci:setup:rspec ^spec)
6
+ end
@@ -0,0 +1,17 @@
1
+ require 'rubocop'
2
+ require 'rubocop/rake_task'
3
+
4
+ namespace :ns do
5
+ RuboCop::RakeTask.new(:rubocop) do |task|
6
+ task.fail_on_error = false
7
+ end
8
+ end
9
+
10
+ namespace :ci do
11
+ RuboCop::RakeTask.new(:rubocop) do |task|
12
+ task.requires = %w(rubocop/formatter/checkstyle_formatter)
13
+ task.formatters = %w(RuboCop::Formatter::CheckstyleFormatter)
14
+ task.options += %w(--no-color --out=checkstyle.xml)
15
+ task.fail_on_error = false
16
+ end
17
+ end
@@ -0,0 +1,5 @@
1
+ module Ns
2
+ module RakeTasks
3
+ VERSION = '0.3.1'
4
+ end
5
+ end
@@ -0,0 +1,42 @@
1
+ # coding: utf-8
2
+ lib = File.expand_path('../lib', __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require 'ns/rake_tasks/version'
5
+
6
+ Gem::Specification.new do |spec|
7
+ spec.name = 'ns-rake_tasks'
8
+ spec.version = Ns::RakeTasks::VERSION
9
+ spec.authors = ['Adam Zima']
10
+ spec.email = ['adam.zima@u2i.com']
11
+ spec.summary = %q{Gem with rake tasks used across ns projects.}
12
+ spec.description = %q{Write a longer description. Optional.}
13
+ spec.homepage = ''
14
+ spec.license = 'MIT'
15
+
16
+ spec.files = `git ls-files -z`.split("\x0")
17
+ spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
18
+ spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
19
+ spec.require_paths = ['lib']
20
+
21
+ spec.add_development_dependency 'bundler', '~> 1.6'
22
+ # TODO - check if we need production dependency
23
+ spec.add_dependency 'rake'
24
+
25
+ unless defined?(JRUBY_VERSION)
26
+ spec.add_dependency 'pronto'
27
+ spec.add_dependency 'pronto-rubocop'
28
+ else
29
+ spec.platform = 'java'
30
+ end
31
+ spec.add_dependency 'rubocop-rspec'
32
+ spec.add_dependency 'rubocop-checkstyle_formatter'
33
+
34
+ spec.add_dependency 'simplecov'
35
+ spec.add_dependency 'simplecov-rcov'
36
+ spec.add_dependency 'simplecov-rcov-text'
37
+ spec.add_dependency 'codeclimate-test-reporter'
38
+
39
+ spec.add_dependency 'ci_reporter'
40
+ spec.add_dependency 'ci_reporter_rspec'
41
+ spec.add_dependency 'github_changelog_generator'
42
+ end
metadata ADDED
@@ -0,0 +1,244 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: ns-rake_tasks
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.3.1
5
+ platform: ruby
6
+ authors:
7
+ - Adam Zima
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2015-10-13 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
+ - !ruby/object:Gem::Dependency
28
+ name: rake
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
33
+ version: '0'
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ">="
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: pronto
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ">="
46
+ - !ruby/object:Gem::Version
47
+ version: '0'
48
+ type: :runtime
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ">="
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
55
+ - !ruby/object:Gem::Dependency
56
+ name: pronto-rubocop
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - ">="
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
62
+ type: :runtime
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - ">="
67
+ - !ruby/object:Gem::Version
68
+ version: '0'
69
+ - !ruby/object:Gem::Dependency
70
+ name: rubocop-rspec
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - ">="
74
+ - !ruby/object:Gem::Version
75
+ version: '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'
83
+ - !ruby/object:Gem::Dependency
84
+ name: rubocop-checkstyle_formatter
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - ">="
88
+ - !ruby/object:Gem::Version
89
+ version: '0'
90
+ type: :runtime
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - ">="
95
+ - !ruby/object:Gem::Version
96
+ version: '0'
97
+ - !ruby/object:Gem::Dependency
98
+ name: simplecov
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - ">="
102
+ - !ruby/object:Gem::Version
103
+ version: '0'
104
+ type: :runtime
105
+ prerelease: false
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - ">="
109
+ - !ruby/object:Gem::Version
110
+ version: '0'
111
+ - !ruby/object:Gem::Dependency
112
+ name: simplecov-rcov
113
+ requirement: !ruby/object:Gem::Requirement
114
+ requirements:
115
+ - - ">="
116
+ - !ruby/object:Gem::Version
117
+ version: '0'
118
+ type: :runtime
119
+ prerelease: false
120
+ version_requirements: !ruby/object:Gem::Requirement
121
+ requirements:
122
+ - - ">="
123
+ - !ruby/object:Gem::Version
124
+ version: '0'
125
+ - !ruby/object:Gem::Dependency
126
+ name: simplecov-rcov-text
127
+ requirement: !ruby/object:Gem::Requirement
128
+ requirements:
129
+ - - ">="
130
+ - !ruby/object:Gem::Version
131
+ version: '0'
132
+ type: :runtime
133
+ prerelease: false
134
+ version_requirements: !ruby/object:Gem::Requirement
135
+ requirements:
136
+ - - ">="
137
+ - !ruby/object:Gem::Version
138
+ version: '0'
139
+ - !ruby/object:Gem::Dependency
140
+ name: codeclimate-test-reporter
141
+ requirement: !ruby/object:Gem::Requirement
142
+ requirements:
143
+ - - ">="
144
+ - !ruby/object:Gem::Version
145
+ version: '0'
146
+ type: :runtime
147
+ prerelease: false
148
+ version_requirements: !ruby/object:Gem::Requirement
149
+ requirements:
150
+ - - ">="
151
+ - !ruby/object:Gem::Version
152
+ version: '0'
153
+ - !ruby/object:Gem::Dependency
154
+ name: ci_reporter
155
+ requirement: !ruby/object:Gem::Requirement
156
+ requirements:
157
+ - - ">="
158
+ - !ruby/object:Gem::Version
159
+ version: '0'
160
+ type: :runtime
161
+ prerelease: false
162
+ version_requirements: !ruby/object:Gem::Requirement
163
+ requirements:
164
+ - - ">="
165
+ - !ruby/object:Gem::Version
166
+ version: '0'
167
+ - !ruby/object:Gem::Dependency
168
+ name: ci_reporter_rspec
169
+ requirement: !ruby/object:Gem::Requirement
170
+ requirements:
171
+ - - ">="
172
+ - !ruby/object:Gem::Version
173
+ version: '0'
174
+ type: :runtime
175
+ prerelease: false
176
+ version_requirements: !ruby/object:Gem::Requirement
177
+ requirements:
178
+ - - ">="
179
+ - !ruby/object:Gem::Version
180
+ version: '0'
181
+ - !ruby/object:Gem::Dependency
182
+ name: github_changelog_generator
183
+ requirement: !ruby/object:Gem::Requirement
184
+ requirements:
185
+ - - ">="
186
+ - !ruby/object:Gem::Version
187
+ version: '0'
188
+ type: :runtime
189
+ prerelease: false
190
+ version_requirements: !ruby/object:Gem::Requirement
191
+ requirements:
192
+ - - ">="
193
+ - !ruby/object:Gem::Version
194
+ version: '0'
195
+ description: Write a longer description. Optional.
196
+ email:
197
+ - adam.zima@u2i.com
198
+ executables: []
199
+ extensions: []
200
+ extra_rdoc_files: []
201
+ files:
202
+ - ".gitignore"
203
+ - ".ruby-gemset"
204
+ - ".ruby-version"
205
+ - ".travis.yml"
206
+ - Gemfile
207
+ - LICENSE.txt
208
+ - README.md
209
+ - Rakefile
210
+ - lib/ns/rake_tasks.rb
211
+ - lib/ns/rake_tasks/coverage.rb
212
+ - lib/ns/rake_tasks/railtie.rb
213
+ - lib/ns/rake_tasks/tasks/all.rb
214
+ - lib/ns/rake_tasks/tasks/changelog.rake
215
+ - lib/ns/rake_tasks/tasks/pronto.rake
216
+ - lib/ns/rake_tasks/tasks/rspec.rake
217
+ - lib/ns/rake_tasks/tasks/rubocop.rake
218
+ - lib/ns/rake_tasks/version.rb
219
+ - ns-rake_tasks.gemspec
220
+ homepage: ''
221
+ licenses:
222
+ - MIT
223
+ metadata: {}
224
+ post_install_message:
225
+ rdoc_options: []
226
+ require_paths:
227
+ - lib
228
+ required_ruby_version: !ruby/object:Gem::Requirement
229
+ requirements:
230
+ - - ">="
231
+ - !ruby/object:Gem::Version
232
+ version: '0'
233
+ required_rubygems_version: !ruby/object:Gem::Requirement
234
+ requirements:
235
+ - - ">="
236
+ - !ruby/object:Gem::Version
237
+ version: '0'
238
+ requirements: []
239
+ rubyforge_project:
240
+ rubygems_version: 2.4.8
241
+ signing_key:
242
+ specification_version: 4
243
+ summary: Gem with rake tasks used across ns projects.
244
+ test_files: []