hoe-telicopter 0.2.1 → 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- data/History.txt +2 -2
- data/Manifest.txt +0 -1
- data/README.txt +5 -10
- data/lib/hoe/telicopter.rb +3 -3
- metadata +5 -8
- data/lib/hoe/prefixer.rb +0 -53
data/History.txt
CHANGED
data/Manifest.txt
CHANGED
data/README.txt
CHANGED
@@ -4,23 +4,19 @@
|
|
4
4
|
|
5
5
|
== DESCRIPTION:
|
6
6
|
|
7
|
-
Hoe
|
8
|
-
|
9
|
-
|
10
|
-
this plugin is base on the seattlerb hoe plugin by Ryan Davis
|
7
|
+
Hoe plugin providing tasks used by hotelicopter, currently just the email plugin
|
8
|
+
from the seattlerb plugin by Ryan Davis
|
11
9
|
|
12
10
|
== FEATURES/PROBLEMS:
|
13
11
|
|
14
12
|
* hoe/email - automates sending release email.
|
15
|
-
* hoe/
|
16
|
-
* hoe/telicopter - activates all the telicopter plugins.
|
13
|
+
* hoe/telicopter - activates other plugins.
|
17
14
|
|
18
15
|
== SYNOPSIS:
|
19
16
|
|
20
17
|
require 'rubygems'
|
21
18
|
require 'hoe'
|
22
19
|
|
23
|
-
Hoe.plugins.delete :gemcutter
|
24
20
|
Hoe.plugins.delete :rubyforge
|
25
21
|
|
26
22
|
Hoe.plugin :telicopter
|
@@ -29,8 +25,6 @@ this plugin is base on the seattlerb hoe plugin by Ryan Davis
|
|
29
25
|
developer 'jim nist', 'jim@hotelicopter.com'
|
30
26
|
|
31
27
|
email_to << 'boskos@mailing_list.com'
|
32
|
-
|
33
|
-
prefix = 'myfreakyprefix'
|
34
28
|
end
|
35
29
|
|
36
30
|
== USING EMAIL PLUGIN:
|
@@ -74,7 +68,8 @@ and generate the RDoc.
|
|
74
68
|
|
75
69
|
(The MIT License)
|
76
70
|
|
77
|
-
Copyright (c) 2010
|
71
|
+
Copyright (c) 2010 jim nist, hotelicopter.com
|
72
|
+
Copyright (c) 2009 Ryan Davis, seattle.rb
|
78
73
|
|
79
74
|
Permission is hereby granted, free of charge, to any person obtaining
|
80
75
|
a copy of this software and associated documentation files (the
|
data/lib/hoe/telicopter.rb
CHANGED
@@ -1,11 +1,11 @@
|
|
1
1
|
##
|
2
|
-
# all this really does is
|
2
|
+
# all this really does is activate other plugins
|
3
3
|
#
|
4
4
|
|
5
|
-
Hoe.plugin :email
|
5
|
+
Hoe.plugin :email
|
6
6
|
|
7
7
|
module Hoe::Telicopter
|
8
|
-
VERSION = "0.
|
8
|
+
VERSION = "1.0.0"
|
9
9
|
|
10
10
|
def define_telicopter_tasks
|
11
11
|
# nothing to do
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: hoe-telicopter
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 1.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- jim nist
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2010-01-
|
12
|
+
date: 2010-01-24 00:00:00 -05:00
|
13
13
|
default_executable:
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
@@ -73,10 +73,8 @@ dependencies:
|
|
73
73
|
version: 2.5.0
|
74
74
|
version:
|
75
75
|
description: |-
|
76
|
-
Hoe
|
77
|
-
|
78
|
-
|
79
|
-
this plugin is base on the seattlerb hoe plugin by Ryan Davis
|
76
|
+
Hoe plugin providing tasks used by hotelicopter, currently just the email plugin
|
77
|
+
from the seattlerb plugin by Ryan Davis
|
80
78
|
email:
|
81
79
|
- jim@hotelicopter.com
|
82
80
|
executables: []
|
@@ -94,7 +92,6 @@ files:
|
|
94
92
|
- README.txt
|
95
93
|
- Rakefile
|
96
94
|
- lib/hoe/email.rb
|
97
|
-
- lib/hoe/prefixer.rb
|
98
95
|
- lib/hoe/telicopter.rb
|
99
96
|
has_rdoc: true
|
100
97
|
homepage: https://github.com/g1nn13/hoe-telicopter
|
@@ -124,6 +121,6 @@ rubyforge_project: hoe-telicopter
|
|
124
121
|
rubygems_version: 1.3.5
|
125
122
|
signing_key:
|
126
123
|
specification_version: 3
|
127
|
-
summary: Hoe
|
124
|
+
summary: Hoe plugin providing tasks used by hotelicopter, currently just the email plugin from the seattlerb plugin by Ryan Davis
|
128
125
|
test_files: []
|
129
126
|
|
data/lib/hoe/prefixer.rb
DELETED
@@ -1,53 +0,0 @@
|
|
1
|
-
##
|
2
|
-
# this is used to publish gems to gemcutter that have been forked from other
|
3
|
-
# gems. it adds the 'g1nn13-' prefix to the gem before publishing, leaving the
|
4
|
-
# insides of the gem the unchanged as is the current custom.
|
5
|
-
#
|
6
|
-
# note however, that this custom may soon changeto support 'namespaces' in gems.
|
7
|
-
# TODO: change this when and if it makes sense.
|
8
|
-
#
|
9
|
-
# this file is 'based' on the lib/hoe/gemcutter.rb from the hoe gem.
|
10
|
-
#
|
11
|
-
|
12
|
-
require 'rake'
|
13
|
-
gem "gemcutter" # lame. gemcutter doesn't have a VERSION const.
|
14
|
-
|
15
|
-
module Hoe::Prefixer
|
16
|
-
|
17
|
-
Hoe::DEFAULT_CONFIG["prefixer"] = {
|
18
|
-
"prefix" => "pre",
|
19
|
-
}
|
20
|
-
|
21
|
-
attr_reader :prefix
|
22
|
-
|
23
|
-
def initialize_prefixer
|
24
|
-
version = Gem.loaded_specs['gemcutter'].version
|
25
|
-
dependency_target << ['gemcutter', ">= #{version}"]
|
26
|
-
|
27
|
-
with_config do |config, _|
|
28
|
-
@prefix = config["prefixer"]["prefix"] rescue nil
|
29
|
-
end
|
30
|
-
end
|
31
|
-
|
32
|
-
def define_prefixer_tasks
|
33
|
-
desc "Push prefixed gem to gemcutter."
|
34
|
-
task :release_to_prefixer => [:clean, :package, :release_sanity] do
|
35
|
-
pkg = "pkg/#{spec.name}-#{spec.version}"
|
36
|
-
gems = Dir["#{pkg}*.gem"]
|
37
|
-
|
38
|
-
# make sure we have the trailing dash on the prefix
|
39
|
-
@prefix = "#{@prefix}-" unless @prefix.index("-") == @prefix.length - 1
|
40
|
-
|
41
|
-
gems.each do |g|
|
42
|
-
new_name = "#{File.dirname(g)}/#{@prefix}#{File.basename(g)}"
|
43
|
-
File.rename(g, new_name)
|
44
|
-
# TODO - once gemcutter supports command invocation, use it.
|
45
|
-
# We could still fail here due to --format executable
|
46
|
-
sh Gem.ruby, "-S", "gem", "push", new_name
|
47
|
-
end
|
48
|
-
end
|
49
|
-
|
50
|
-
task :release_to => :release_to_prefixer
|
51
|
-
end
|
52
|
-
|
53
|
-
end unless defined? Hoe::Prefixer
|