rake-plugin 0.1.3

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: 2b584459db2b8113aaff2ea5d471a9e28e856b56
4
+ data.tar.gz: cf4519bc9b1352e9e70cdba7f6c668d0e03c3e51
5
+ SHA512:
6
+ metadata.gz: ca3a82f551506fca36e35708cad5ad32593842942d274380900afffcc53daadfd7fccad880f68228345f3bef7c919b8f4573cece45d686a12c3f8507a574ff45
7
+ data.tar.gz: d142711d952ed13f1ddc81b5c21929c603f6a9606c9a677ae1a3fb4422d4a63803bf776f881242692155507091e5c0c7430838fbdb3e85f0a0231835818a902f
data/.gitignore ADDED
@@ -0,0 +1,4 @@
1
+ /pkg/
2
+ /Gemfile.lock
3
+ /LICENSES/
4
+ /share/gemspec/templates/init/Gemfile
data/Gemfile ADDED
@@ -0,0 +1,5 @@
1
+ source 'https://rubygems.org'
2
+
3
+ # Specify your gem's dependencies in gemspec.gemspec
4
+ gem 'gemspec', '~> 0.2'
5
+ gemspec glob: '*.gemspec'
data/Rakefile ADDED
@@ -0,0 +1 @@
1
+ task :default => :test
data/VERSION ADDED
@@ -0,0 +1 @@
1
+ lib/rake/plugin/VERSION
data/VERSIONING.md ADDED
@@ -0,0 +1,18 @@
1
+ ## Versioning
2
+ ### Version Number for Machines
3
+
4
+ This gem uses a slightly modified version of the **SemVer** specification, namely:
5
+ ```ruby
6
+ spec.version = "BREAKING.PATCHES.NONBREAKING"
7
+ ```
8
+ You can use this versioning with your dependency tools, only you have a somewhat stronger guarantee that your
9
+ code won't break if you limit yourself to the third number, but you need to allow second level updates in order to
10
+ get (security and other) patches.
11
+
12
+ ### Version Number for Humans
13
+ Since the above-described type of versioning doesn't tell you anything about the functional state of the gem (you can go from a "hello world" to a full blown operating system
14
+ without making a breaking change, as long as your operating system prints "hello world" to the screen) (SemVer, when used correctly, doesn't tell anything about the functional state of a software package either), a second, human-friendly version number can be found in `spec.metadata[:human_version]`.
15
+
16
+ The magnitude of this version number shall be made to correspond to actual functional changes in the software. If I've worked a lot on the package, I'll make it move a lot, but unless I've made breaking changes, I'll stick to only moving the third number in the `spec.version` version.
17
+
18
+ This number is for you. If you see it increase a lot, it probably means much more new goodies, but is less strictly defined then the version number for the machine. (I reserve the right to later change the way I change this number).
@@ -0,0 +1 @@
1
+ lib/rake/plugin/VERSION_FOR_HUMANS
data/gemspec.gemspec ADDED
@@ -0,0 +1,35 @@
1
+ # coding: utf-8
2
+
3
+ #Naming utils, git utils, and default boilerplate
4
+ require 'gemspec'
5
+
6
+ #This is a place to put custom overrides to Gemspec.boilerplate
7
+ begin; require_relative 'gemspec.rb'; rescue LoadError; end
8
+
9
+ Gem::Specification.new do |s|
10
+
11
+ #Name is the name of the project root directory
12
+ s.name = Gemspec.base_dirname(__FILE__)
13
+
14
+ Gemspec.boilerplate(s)
15
+
16
+ #s.metadata['allowed_push_host'] = "TODO: Set to 'http://mygemserver.com' to prevent pushes to rubygems.org, or delete to allow pushes to any server."
17
+
18
+ #####Must change
19
+ s.summary = %q{Nothin, just cybersquattin'}
20
+ s.description = %q{Nothin, just cybersquattin'}
21
+ s.licenses = %w[GPL-2.0]
22
+
23
+
24
+ #####Unlikely to change
25
+ s.email = [ `git config user.email`.chomp ]
26
+ s.homepage = "https://github.com/#{`git config github.username`.chomp}/#{s.name}.git"
27
+ $? == 0 or s.homepage = nil
28
+ ###################################
29
+
30
+ #Dependencies
31
+ s.add_dependency 'gemspec', '~> 0.2'
32
+ s.add_development_dependency 'rake', '~> 10.4'
33
+ s.add_development_dependency 'minitest-documentation'
34
+
35
+ end
@@ -0,0 +1,7 @@
1
+ require "rake/plugin/version"
2
+
3
+ module Rake
4
+ module Plugin
5
+
6
+ end
7
+ end
@@ -0,0 +1 @@
1
+ 0.1.3
@@ -0,0 +1 @@
1
+ 0.2
@@ -0,0 +1,6 @@
1
+ module Rake
2
+ module Plugin
3
+ VERSION = File.read(File.expand_path("../VERSION", __FILE__)).chomp
4
+ VERSION_FOR_HUMANS = File.read(File.expand_path("../VERSION_FOR_HUMANS", __FILE__)).chomp
5
+ end
6
+ end
data/rakelib/gem.rake ADDED
@@ -0,0 +1,13 @@
1
+ require 'rubygems/package_task'
2
+ $:.unshift(File.expand_path('../lib',__FILE__))
3
+
4
+ $gemspec = Gem::Specification.load(Dir["*.gemspec"][0])
5
+ files = Rake::FileList.new(Gemspec::Git.ls_files)
6
+
7
+ Gem::PackageTask.new($gemspec) { }
8
+ task :gem => :chmod
9
+ task :chmod do
10
+ files.each do |file|
11
+ chmod 'o+r', file unless File.world_readable?(file)
12
+ end
13
+ end
@@ -0,0 +1,35 @@
1
+
2
+ desc 'Render licenses into LICENSES/'
3
+ task 'licenses' => 'LICENSES/.info'
4
+
5
+ desc 'View licenses'
6
+ task 'view-licenses' => 'licenses' do
7
+ sh "less", *Dir["LICENSES/*"]
8
+ end
9
+
10
+ #############################################3
11
+
12
+ directory "LICENSES"
13
+ gemspec = Gem::Specification.load(Dir["*.gemspec"][0])
14
+
15
+ def render_erb(s, src, dest)
16
+ File.write(dest,
17
+ ERB.new(File.read(src), nil, '-').result(binding)
18
+ )
19
+ end
20
+
21
+ file "LICENSES/.info" => "gemspec.gemspec" do |t|
22
+ mkdir_p "LICENSES"
23
+
24
+ licenses_dir = File.expand_path('../../share/gemspec/licenses/', `gem which gemspec`.chomp)
25
+ $? == 0 or licenses_dir = File.expand_path('licenses/')
26
+
27
+ gemspec.licenses.each do |license|
28
+ render_erb(gemspec,
29
+ File.join(licenses_dir, license + '.erb'),
30
+ "LICENSES/#{Shellwords.escape license}"
31
+ )
32
+ end
33
+ File.write(t.name, "This directory contains the licenses you can use with this gem\n")
34
+ end
35
+
@@ -0,0 +1,17 @@
1
+ require 'gemspec/git'
2
+
3
+ desc "Push master to origin, build gem, and push it"
4
+ task 'release' => 'gem' do
5
+ Gemspec::Git.cdroot!
6
+ Gemspec::Git.clean? or (
7
+ warn "Need to clean up before releasing"
8
+ exit 1
9
+ )
10
+ sh "git checkout master"
11
+ s = Gem::Specification.load('gemspec.gemspec')
12
+ sh <<-EOF
13
+ git push origin master &
14
+ rake gem && gem push pkg/#{s.name}-#{s.version}.gem
15
+ wait
16
+ EOF
17
+ end
data/rakelib/test.rake ADDED
@@ -0,0 +1,7 @@
1
+ require 'rake/testtask'
2
+
3
+ Rake::TestTask.new do |t|
4
+ t.libs << "lib" << "test" << "spec"
5
+ t.pattern = 'test/**/*_{test,spec}.rb'
6
+ t.verbose = true
7
+ end
@@ -0,0 +1,7 @@
1
+ $LOAD_PATH.unshift File.expand_path('../../lib', __FILE__)
2
+
3
+ $gemspec = Gem::Specification.load(Dir["*.gemspec"][0])
4
+ require $gemspec.name.tr('-','/')
5
+
6
+ require 'minitest/autorun'
7
+ require 'minitest/documentation'
data/test/test_spec.rb ADDED
@@ -0,0 +1,11 @@
1
+ require 'minitest_helper'
2
+
3
+ describe "Test" do
4
+ it "should assert that true is not nil" do
5
+ refute_nil true
6
+ end
7
+
8
+ it "should do something useful" do
9
+ assert false
10
+ end
11
+ end
data/test/test_test.rb ADDED
@@ -0,0 +1,11 @@
1
+ require 'minitest_helper'
2
+
3
+ class TestTest < Minitest::Test
4
+ def test_true_is_not_nil
5
+ refute_nil true
6
+ end
7
+
8
+ def test_it_does_something_useful
9
+ assert false
10
+ end
11
+ end
metadata ADDED
@@ -0,0 +1,110 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: rake-plugin
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.3
5
+ platform: ruby
6
+ authors:
7
+ - Petr Skocik
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2015-06-01 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: gemspec
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '0.2'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '0.2'
27
+ - !ruby/object:Gem::Dependency
28
+ name: rake
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '10.4'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '10.4'
41
+ - !ruby/object:Gem::Dependency
42
+ name: minitest-documentation
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ">="
46
+ - !ruby/object:Gem::Version
47
+ version: '0'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ">="
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
55
+ description: Nothin, just cybersquattin'
56
+ email:
57
+ - pskocik@gmail.com
58
+ executables: []
59
+ extensions: []
60
+ extra_rdoc_files: []
61
+ files:
62
+ - ".gitignore"
63
+ - Gemfile
64
+ - Rakefile
65
+ - VERSION
66
+ - VERSIONING.md
67
+ - VERSION_FOR_HUMANS
68
+ - gemspec.gemspec
69
+ - lib/rake/plugin.rb
70
+ - lib/rake/plugin/VERSION
71
+ - lib/rake/plugin/VERSION_FOR_HUMANS
72
+ - lib/rake/plugin/version.rb
73
+ - rakelib/gem.rake
74
+ - rakelib/licenses.rake
75
+ - rakelib/release.rake
76
+ - rakelib/test.rake
77
+ - test/minitest_helper.rb
78
+ - test/test_spec.rb
79
+ - test/test_test.rb
80
+ homepage: https://github.com/pjump/rake-plugin.git
81
+ licenses:
82
+ - GPL-2.0
83
+ metadata:
84
+ namespaced_path: rake/plugin
85
+ constant_name: Rake::Plugin
86
+ human_version: '0.2'
87
+ post_install_message:
88
+ rdoc_options: []
89
+ require_paths:
90
+ - lib
91
+ required_ruby_version: !ruby/object:Gem::Requirement
92
+ requirements:
93
+ - - ">="
94
+ - !ruby/object:Gem::Version
95
+ version: '0'
96
+ required_rubygems_version: !ruby/object:Gem::Requirement
97
+ requirements:
98
+ - - ">="
99
+ - !ruby/object:Gem::Version
100
+ version: '0'
101
+ requirements: []
102
+ rubyforge_project:
103
+ rubygems_version: 2.4.6
104
+ signing_key:
105
+ specification_version: 4
106
+ summary: Nothin, just cybersquattin'
107
+ test_files:
108
+ - test/minitest_helper.rb
109
+ - test/test_spec.rb
110
+ - test/test_test.rb