flexmls_gems 0.2.5 → 0.2.9
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/flexmls_gems.gemspec +2 -3
- data/lib/flexmls_gems/task_helper.rb +31 -12
- metadata +34 -30
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.2.
|
1
|
+
0.2.9
|
data/flexmls_gems.gemspec
CHANGED
@@ -12,16 +12,15 @@ Gem::Specification.new do |s|
|
|
12
12
|
s.description = %q{This gem is set of tasks to aid gems and tasks that largely reflect a gem run with bundler}
|
13
13
|
|
14
14
|
s.rubyforge_project = "flexmls_gems"
|
15
|
+
s.required_rubygems_version = ">= 1.8.0"
|
15
16
|
|
16
17
|
s.files = `git ls-files`.split("\n")
|
17
18
|
s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
|
18
19
|
s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
|
19
20
|
s.require_paths = ["lib"]
|
20
21
|
|
21
|
-
# specify any dependencies here; for example:
|
22
|
-
# s.add_development_dependency "rspec"
|
23
22
|
s.add_runtime_dependency "grit", '~> 2.4.1'
|
24
|
-
s.add_development_dependency "rake"
|
23
|
+
s.add_development_dependency "rake", '0.9.2'
|
25
24
|
s.add_development_dependency 'rspec', '~> 2.3.0'
|
26
25
|
s.add_development_dependency 'ci_reporter', '~> 1.6.3'
|
27
26
|
s.add_development_dependency 'rcov', '~> 0.9.9'
|
@@ -4,7 +4,7 @@ module FlexmlsGems
|
|
4
4
|
class TaskHelper
|
5
5
|
include Rake::DSL if defined? Rake::DSL
|
6
6
|
|
7
|
-
attr_reader :pwd, :gemspec, :name, :version, :release_dir, :dev_release_dir
|
7
|
+
attr_reader :pwd, :gemspec, :name, :version, :release_dir, :dev_release_dir, :public_release_dir
|
8
8
|
|
9
9
|
def initialize(opts={})
|
10
10
|
@pwd = opts[:dir] || Dir.pwd
|
@@ -20,6 +20,7 @@ module FlexmlsGems
|
|
20
20
|
end
|
21
21
|
@release_dir = opts[:release] || '/opt/gems/dev'
|
22
22
|
@dev_release_dir = opts[:dev_release] || '/opt/gems/dev'
|
23
|
+
@public_release_dir = opts[:public_release_dir] || '/opt/gems/public'
|
23
24
|
end
|
24
25
|
|
25
26
|
def patch_version
|
@@ -33,19 +34,19 @@ module FlexmlsGems
|
|
33
34
|
namespace :flexmls do
|
34
35
|
desc "Release the gem internally"
|
35
36
|
task :release do
|
36
|
-
|
37
|
-
raise "No gems built, run rake build to create" if gems.empty?
|
38
|
-
FileUtils.cp gems, "#{release_dir}/gems"
|
39
|
-
i=Gem::Indexer.new release_dir
|
40
|
-
i.generate_index
|
37
|
+
FlexmlsGems::TaskHelper.deploy_gem("#{pwd}/pkg/#{name}-#{version}.gem", release_dir)
|
41
38
|
end
|
42
|
-
desc "Release a
|
39
|
+
desc "Release a development build of the gem"
|
43
40
|
task :dev_release do
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
41
|
+
FlexmlsGems::TaskHelper.deploy_gem("#{pwd}/pkg/#{name}-#{version}.gem", dev_release_dir)
|
42
|
+
end
|
43
|
+
desc "Release a public version of the gem"
|
44
|
+
task :public_release do
|
45
|
+
FlexmlsGems::TaskHelper.deploy_gem("#{pwd}/pkg/#{name}-#{version}.gem", public_release_dir, true)
|
46
|
+
end
|
47
|
+
desc "Release a build of the gem to a remote gem repository"
|
48
|
+
task :remote_release do
|
49
|
+
FlexmlsGems::TaskHelper.deploy_gem("#{pwd}/pkg/#{name}-#{version}.gem", dev_release_dir, true, "blanka.flexmls.com")
|
49
50
|
end
|
50
51
|
end
|
51
52
|
namespace :version do
|
@@ -92,6 +93,24 @@ module FlexmlsGems
|
|
92
93
|
end
|
93
94
|
end
|
94
95
|
|
96
|
+
def self.deploy_gem(gem, dir, remote = false, host="farnsworth.fbsdata.com")
|
97
|
+
gems = Dir[gem]
|
98
|
+
raise "No gems built, run rake build to create" if gems.empty?
|
99
|
+
if remote
|
100
|
+
out = "#{host}:#{dir}"
|
101
|
+
copy = "scp #{gem} #{host}:#{dir}/gems/"
|
102
|
+
index = "ssh #{host} gem generate_index -d #{dir}"
|
103
|
+
else
|
104
|
+
out = dir
|
105
|
+
copy = "cp -v #{gem} #{dir}/gems/."
|
106
|
+
index = "/usr/local/rvm/rubies/ree-1.8.7-2011.03/bin/gem generate_index -d #{dir}"
|
107
|
+
end
|
108
|
+
$stdout.puts "Copying #{gem} to #{out}"
|
109
|
+
$stdout.puts `#{copy}`
|
110
|
+
$stdout.puts "Gemifying #{out}"
|
111
|
+
$stdout.puts `env ; #{index}`
|
112
|
+
end
|
113
|
+
|
95
114
|
private
|
96
115
|
def version_helper
|
97
116
|
return @version_helper unless @version_helper.nil?
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: flexmls_gems
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 5
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 2
|
9
|
-
-
|
10
|
-
version: 0.2.
|
9
|
+
- 9
|
10
|
+
version: 0.2.9
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Wade McEwen
|
@@ -15,12 +15,10 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date:
|
18
|
+
date: 2012-08-15 00:00:00 Z
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|
21
|
-
|
22
|
-
type: :runtime
|
23
|
-
requirement: &id001 !ruby/object:Gem::Requirement
|
21
|
+
version_requirements: &id001 !ruby/object:Gem::Requirement
|
24
22
|
none: false
|
25
23
|
requirements:
|
26
24
|
- - ~>
|
@@ -31,26 +29,28 @@ dependencies:
|
|
31
29
|
- 4
|
32
30
|
- 1
|
33
31
|
version: 2.4.1
|
34
|
-
|
32
|
+
requirement: *id001
|
33
|
+
prerelease: false
|
35
34
|
name: grit
|
35
|
+
type: :runtime
|
36
36
|
- !ruby/object:Gem::Dependency
|
37
|
-
|
38
|
-
type: :development
|
39
|
-
requirement: &id002 !ruby/object:Gem::Requirement
|
37
|
+
version_requirements: &id002 !ruby/object:Gem::Requirement
|
40
38
|
none: false
|
41
39
|
requirements:
|
42
|
-
- - "
|
40
|
+
- - "="
|
43
41
|
- !ruby/object:Gem::Version
|
44
|
-
hash:
|
42
|
+
hash: 63
|
45
43
|
segments:
|
46
44
|
- 0
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
45
|
+
- 9
|
46
|
+
- 2
|
47
|
+
version: 0.9.2
|
48
|
+
requirement: *id002
|
51
49
|
prerelease: false
|
50
|
+
name: rake
|
52
51
|
type: :development
|
53
|
-
|
52
|
+
- !ruby/object:Gem::Dependency
|
53
|
+
version_requirements: &id003 !ruby/object:Gem::Requirement
|
54
54
|
none: false
|
55
55
|
requirements:
|
56
56
|
- - ~>
|
@@ -61,12 +61,12 @@ dependencies:
|
|
61
61
|
- 3
|
62
62
|
- 0
|
63
63
|
version: 2.3.0
|
64
|
-
|
65
|
-
name: rspec
|
66
|
-
- !ruby/object:Gem::Dependency
|
64
|
+
requirement: *id003
|
67
65
|
prerelease: false
|
66
|
+
name: rspec
|
68
67
|
type: :development
|
69
|
-
|
68
|
+
- !ruby/object:Gem::Dependency
|
69
|
+
version_requirements: &id004 !ruby/object:Gem::Requirement
|
70
70
|
none: false
|
71
71
|
requirements:
|
72
72
|
- - ~>
|
@@ -77,12 +77,12 @@ dependencies:
|
|
77
77
|
- 6
|
78
78
|
- 3
|
79
79
|
version: 1.6.3
|
80
|
-
|
81
|
-
name: ci_reporter
|
82
|
-
- !ruby/object:Gem::Dependency
|
80
|
+
requirement: *id004
|
83
81
|
prerelease: false
|
82
|
+
name: ci_reporter
|
84
83
|
type: :development
|
85
|
-
|
84
|
+
- !ruby/object:Gem::Dependency
|
85
|
+
version_requirements: &id005 !ruby/object:Gem::Requirement
|
86
86
|
none: false
|
87
87
|
requirements:
|
88
88
|
- - ~>
|
@@ -93,8 +93,10 @@ dependencies:
|
|
93
93
|
- 9
|
94
94
|
- 9
|
95
95
|
version: 0.9.9
|
96
|
-
|
96
|
+
requirement: *id005
|
97
|
+
prerelease: false
|
97
98
|
name: rcov
|
99
|
+
type: :development
|
98
100
|
description: This gem is set of tasks to aid gems and tasks that largely reflect a gem run with bundler
|
99
101
|
email:
|
100
102
|
- wade@fbsdata.com
|
@@ -149,14 +151,16 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
149
151
|
requirements:
|
150
152
|
- - ">="
|
151
153
|
- !ruby/object:Gem::Version
|
152
|
-
hash:
|
154
|
+
hash: 55
|
153
155
|
segments:
|
156
|
+
- 1
|
157
|
+
- 8
|
154
158
|
- 0
|
155
|
-
version:
|
159
|
+
version: 1.8.0
|
156
160
|
requirements: []
|
157
161
|
|
158
162
|
rubyforge_project: flexmls_gems
|
159
|
-
rubygems_version: 1.8.
|
163
|
+
rubygems_version: 1.8.15
|
160
164
|
signing_key:
|
161
165
|
specification_version: 3
|
162
166
|
summary: Gem to manange common gem tasks
|