deployml 0.5.2 → 0.5.4

Sign up to get free protection for your applications and to get access to all the features.
data/.gitignore ADDED
@@ -0,0 +1,9 @@
1
+ doc
2
+ pkg
3
+ tmp/*
4
+ .DS_Store
5
+ .yardoc
6
+ *.db
7
+ *.log
8
+ *.swp
9
+ *~
data/ChangeLog.md CHANGED
@@ -1,3 +1,13 @@
1
+ ### 0.5.4 / 2012-05-28
2
+
3
+ * Fixed a typo in the gemspec, which incorrectly set
4
+ `required_rubygems_version` to the same value as `required_ruby_version`.
5
+
6
+ ### 0.5.3 / 2012-05-27
7
+
8
+ * Require addressable ~> 2.2.
9
+ * Require thor ~> 0.14.
10
+
1
11
  ### 0.5.2 / 2011-06-21
2
12
 
3
13
  * Added {DeploYML::Shell#ruby}.
data/LICENSE.txt CHANGED
@@ -1,4 +1,4 @@
1
- Copyright (c) 2010-2011 Hal Brodigan
1
+ Copyright (c) 2010-2012 Hal Brodigan
2
2
 
3
3
  Permission is hereby granted, free of charge, to any person obtaining
4
4
  a copy of this software and associated documentation files (the
data/README.md CHANGED
@@ -1,7 +1,7 @@
1
1
  # DeploYML
2
2
 
3
- * [Source](http://github.com/postmodern/deployml)
4
- * [Issues](http://github.com/postmodern/deployml/issues)
3
+ * [Source](https://github.com/postmodern/deployml)
4
+ * [Issues](https://github.com/postmodern/deployml/issues)
5
5
  * [Documentation](http://rubydoc.info/gems/deployml/frames)
6
6
  * [Email](mailto:postmodern.mod3 at gmail.com)
7
7
 
@@ -137,9 +137,9 @@ List available tasks:
137
137
  ## Requirements
138
138
 
139
139
  * [ruby](http://www.ruby-lang.org/) >= 1.8.6
140
- * [addressable](http://addressable.rubyforge.org/) ~> 2.2.0
141
- * [rprogram](http://github.com/postmodern/rprogram) ~> 0.2
142
- * [thor](http://github.com/wycats/thor) ~> 0.14.3
140
+ * [addressable](http://addressable.rubyforge.org/) ~> 2.2
141
+ * [rprogram](https://github.com/postmodern/rprogram) ~> 0.2
142
+ * [thor](https://github.com/wycats/thor) ~> 0.14
143
143
 
144
144
  ## Install
145
145
 
@@ -147,6 +147,6 @@ List available tasks:
147
147
 
148
148
  ## Copyright
149
149
 
150
- Copyright (c) 2010-2011 Hal Brodigan
150
+ Copyright (c) 2010-2012 Hal Brodigan
151
151
 
152
152
  See {file:LICENSE.txt} for license information.
data/Rakefile CHANGED
@@ -2,13 +2,13 @@ require 'rubygems'
2
2
  require 'rake'
3
3
 
4
4
  begin
5
- gem 'ore-tasks', '~> 0.4'
6
- require 'ore/tasks'
5
+ gem 'rubygems-tasks', '~> 0.1'
6
+ require 'rubygems/tasks'
7
7
 
8
- Ore::Tasks.new
8
+ Gem::Tasks.new
9
9
  rescue LoadError => e
10
- STDERR.puts e.message
11
- STDERR.puts "Run `gem install ore-tasks` to install 'ore/tasks'."
10
+ warn e.message
11
+ warn "Run `gem install rubygems-tasks` to install 'rubygems/tasks'."
12
12
  end
13
13
 
14
14
  begin
@@ -25,7 +25,7 @@ task :test => :spec
25
25
  task :default => :spec
26
26
 
27
27
  begin
28
- gem 'yard', '~> 0.7.0'
28
+ gem 'yard', '~> 0.7'
29
29
  require 'yard'
30
30
 
31
31
  YARD::Rake::YardocTask.new
data/deployml.gemspec CHANGED
@@ -2,126 +2,59 @@
2
2
 
3
3
  require 'yaml'
4
4
 
5
- Gem::Specification.new do |gemspec|
6
- files = if File.directory?('.git')
7
- `git ls-files`.split($/)
8
- elsif File.directory?('.hg')
9
- `hg manifest`.split($/)
10
- elsif File.directory?('.svn')
11
- `svn ls -R`.split($/).select { |path| File.file?(path) }
12
- else
13
- Dir['{**/}{.*,*}'].select { |path| File.file?(path) }
14
- end
5
+ Gem::Specification.new do |gem|
6
+ gemspec = YAML.load_file('gemspec.yml')
15
7
 
16
- filter_files = lambda { |paths|
17
- case paths
18
- when Array
19
- (files & paths)
20
- when String
21
- (files & Dir[paths])
22
- end
23
- }
24
-
25
- version = {
26
- :file => 'lib/deployml/version.rb',
27
- :constant => 'DeploYML::VERSION'
28
- }
29
-
30
- defaults = {
31
- 'name' => File.basename(File.dirname(__FILE__)),
32
- 'files' => files,
33
- 'executables' => filter_files['bin/*'].map { |path| File.basename(path) },
34
- 'test_files' => filter_files['{test/{**/}*_test.rb,spec/{**/}*_spec.rb}'],
35
- 'extra_doc_files' => filter_files['*.{txt,rdoc,md,markdown,tt,textile}'],
36
- }
37
-
38
- metadata = defaults.merge(YAML.load_file('gemspec.yml'))
39
-
40
- gemspec.name = metadata.fetch('name',defaults[:name])
41
- gemspec.version = if metadata['version']
42
- metadata['version']
43
- elsif File.file?(version[:file])
44
- require File.join('.',version[:file])
45
- eval(version[:constant])
46
- end
47
-
48
- gemspec.summary = metadata.fetch('summary',metadata['description'])
49
- gemspec.description = metadata.fetch('description',metadata['summary'])
50
-
51
- case metadata['license']
52
- when Array
53
- gemspec.licenses = metadata['license']
54
- when String
55
- gemspec.license = metadata['license']
56
- end
57
-
58
- case metadata['authors']
59
- when Array
60
- gemspec.authors = metadata['authors']
61
- when String
62
- gemspec.author = metadata['authors']
63
- end
8
+ gem.name = gemspec.fetch('name')
9
+ gem.version = gemspec.fetch('version') do
10
+ lib_dir = File.join(File.dirname(__FILE__),'lib')
11
+ $LOAD_PATH << lib_dir unless $LOAD_PATH.include?(lib_dir)
64
12
 
65
- gemspec.email = metadata['email']
66
- gemspec.homepage = metadata['homepage']
13
+ require 'deployml/version'
14
+ DeploYML::VERSION
15
+ end
67
16
 
68
- case metadata['require_paths']
69
- when Array
70
- gemspec.require_paths = metadata['require_paths']
71
- when String
72
- gemspec.require_path = metadata['require_paths']
73
- end
17
+ gem.summary = gemspec['summary']
18
+ gem.description = gemspec['description']
19
+ gem.licenses = Array(gemspec['license'])
20
+ gem.authors = Array(gemspec['authors'])
21
+ gem.email = gemspec['email']
22
+ gem.homepage = gemspec['homepage']
74
23
 
75
- gemspec.files = filter_files[metadata['files']]
24
+ glob = lambda { |patterns| gem.files & Dir[*patterns] }
76
25
 
77
- gemspec.executables = metadata['executables']
78
- gemspec.extensions = metadata['extensions']
26
+ gem.files = `git ls-files`.split($/)
27
+ gem.files = glob[gemspec['files']] if gemspec['files']
79
28
 
80
- if Gem::VERSION < '1.7.'
81
- gemspec.default_executable = gemspec.executables.first
29
+ gem.executables = gemspec.fetch('executables') do
30
+ glob['bin/*'].map { |path| File.basename(path) }
82
31
  end
32
+ gem.default_executable = gem.executables.first if Gem::VERSION < '1.7.'
83
33
 
84
- gemspec.test_files = filter_files[metadata['test_files']]
85
-
86
- unless gemspec.files.include?('.document')
87
- gemspec.extra_rdoc_files = metadata['extra_doc_files']
88
- end
89
-
90
- gemspec.post_install_message = metadata['post_install_message']
91
- gemspec.requirements = metadata['requirements']
92
-
93
- if gemspec.respond_to?(:required_ruby_version=)
94
- gemspec.required_ruby_version = metadata['required_ruby_version']
95
- end
34
+ gem.extensions = glob[gemspec['extensions'] || 'ext/**/extconf.rb']
35
+ gem.test_files = glob[gemspec['test_files'] || '{test/{**/}*_test.rb']
36
+ gem.extra_rdoc_files = glob[gemspec['extra_doc_files'] || '*.{txt,md}']
96
37
 
97
- if gemspec.respond_to?(:required_rubygems_version=)
98
- gemspec.required_rubygems_version = metadata['required_ruby_version']
99
- end
38
+ gem.require_paths = Array(gemspec.fetch('require_paths') {
39
+ %w[ext lib].select { |dir| File.directory?(dir) }
40
+ })
100
41
 
101
- parse_versions = lambda { |versions|
102
- case versions
103
- when Array
104
- versions.map { |v| v.to_s }
105
- when String
106
- versions.split(/,\s*/)
107
- end
108
- }
42
+ gem.requirements = gemspec['requirements']
43
+ gem.required_ruby_version = gemspec['required_ruby_version']
44
+ gem.required_rubygems_version = gemspec['required_rubygems_version']
45
+ gem.post_install_message = gemspec['post_install_message']
109
46
 
110
- if metadata['dependencies']
111
- metadata['dependencies'].each do |name,versions|
112
- gemspec.add_dependency(name,parse_versions[versions])
113
- end
114
- end
47
+ split = lambda { |string| string.split(/,\s*/) }
115
48
 
116
- if metadata['runtime_dependencies']
117
- metadata['runtime_dependencies'].each do |name,versions|
118
- gemspec.add_runtime_dependency(name,parse_versions[versions])
49
+ if gemspec['dependencies']
50
+ gemspec['dependencies'].each do |name,versions|
51
+ gem.add_dependency(name,split[versions])
119
52
  end
120
53
  end
121
54
 
122
- if metadata['development_dependencies']
123
- metadata['development_dependencies'].each do |name,versions|
124
- gemspec.add_development_dependency(name,parse_versions[versions])
55
+ if gemspec['development_dependencies']
56
+ gemspec['development_dependencies'].each do |name,versions|
57
+ gem.add_development_dependency(name,split[versions])
125
58
  end
126
59
  end
127
60
  end
data/gemspec.yml CHANGED
@@ -7,17 +7,17 @@ description:
7
7
  license: MIT
8
8
  authors: Postmodern
9
9
  email: postmodern.mod3@gmail.com
10
- homepage: http://github.com/postmodern/deployml
10
+ homepage: https://github.com/postmodern/deployml#readme
11
11
  has_yard: true
12
12
 
13
13
  required_ruby_version: ">= 1.8.6"
14
14
 
15
15
  dependencies:
16
- addressable: ~> 2.2.0
16
+ addressable: ~> 2.2
17
17
  rprogram: ~> 0.2
18
- thor: ~> 0.14.3
18
+ thor: ~> 0.14
19
19
 
20
20
  development_dependencies:
21
- ore-tasks: ~> 0.4
21
+ rubygems-tasks: ~> 0.1
22
22
  rspec: ~> 2.4
23
- yard: ~> 0.7.0
23
+ yard: ~> 0.7
@@ -83,6 +83,7 @@ module DeploYML
83
83
  # assume that `.rb` scripts do not have a `#!/usr/bin/env ruby`
84
84
  command.unshift('ruby') if program[-3,3] == '.rb'
85
85
 
86
+ # if the environment uses bundler, run all ruby commands via `bundle exec`
86
87
  if (@environment && @environment.bundler)
87
88
  command.unshift('bundle','exec')
88
89
  end
@@ -163,7 +164,7 @@ module DeploYML
163
164
  # @param [Array] arguments
164
165
  # Additional arguments to pass to the `rake` task.
165
166
  #
166
- # @param [String]
167
+ # @return [String]
167
168
  # The `rake` task name to be called.
168
169
  #
169
170
  def rake_task(name,*arguments)
@@ -1,4 +1,4 @@
1
1
  module DeploYML
2
2
  # deploYML version
3
- VERSION = '0.5.2'
3
+ VERSION = '0.5.4'
4
4
  end
metadata CHANGED
@@ -1,97 +1,126 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: deployml
3
- version: !ruby/object:Gem::Version
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.5.4
4
5
  prerelease:
5
- version: 0.5.2
6
6
  platform: ruby
7
- authors:
7
+ authors:
8
8
  - Postmodern
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
-
13
- date: 2011-06-21 00:00:00 Z
14
- dependencies:
15
- - !ruby/object:Gem::Dependency
12
+ date: 2012-05-28 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
16
15
  name: addressable
17
- prerelease: false
18
- requirement: &id001 !ruby/object:Gem::Requirement
16
+ requirement: !ruby/object:Gem::Requirement
19
17
  none: false
20
- requirements:
18
+ requirements:
21
19
  - - ~>
22
- - !ruby/object:Gem::Version
23
- version: 2.2.0
20
+ - !ruby/object:Gem::Version
21
+ version: '2.2'
24
22
  type: :runtime
25
- version_requirements: *id001
26
- - !ruby/object:Gem::Dependency
27
- name: rprogram
28
23
  prerelease: false
29
- requirement: &id002 !ruby/object:Gem::Requirement
24
+ version_requirements: !ruby/object:Gem::Requirement
25
+ none: false
26
+ requirements:
27
+ - - ~>
28
+ - !ruby/object:Gem::Version
29
+ version: '2.2'
30
+ - !ruby/object:Gem::Dependency
31
+ name: rprogram
32
+ requirement: !ruby/object:Gem::Requirement
30
33
  none: false
31
- requirements:
34
+ requirements:
32
35
  - - ~>
33
- - !ruby/object:Gem::Version
34
- version: "0.2"
36
+ - !ruby/object:Gem::Version
37
+ version: '0.2'
35
38
  type: :runtime
36
- version_requirements: *id002
37
- - !ruby/object:Gem::Dependency
38
- name: thor
39
39
  prerelease: false
40
- requirement: &id003 !ruby/object:Gem::Requirement
40
+ version_requirements: !ruby/object:Gem::Requirement
41
+ none: false
42
+ requirements:
43
+ - - ~>
44
+ - !ruby/object:Gem::Version
45
+ version: '0.2'
46
+ - !ruby/object:Gem::Dependency
47
+ name: thor
48
+ requirement: !ruby/object:Gem::Requirement
41
49
  none: false
42
- requirements:
50
+ requirements:
43
51
  - - ~>
44
- - !ruby/object:Gem::Version
45
- version: 0.14.3
52
+ - !ruby/object:Gem::Version
53
+ version: '0.14'
46
54
  type: :runtime
47
- version_requirements: *id003
48
- - !ruby/object:Gem::Dependency
49
- name: ore-tasks
50
55
  prerelease: false
51
- requirement: &id004 !ruby/object:Gem::Requirement
56
+ version_requirements: !ruby/object:Gem::Requirement
57
+ none: false
58
+ requirements:
59
+ - - ~>
60
+ - !ruby/object:Gem::Version
61
+ version: '0.14'
62
+ - !ruby/object:Gem::Dependency
63
+ name: rubygems-tasks
64
+ requirement: !ruby/object:Gem::Requirement
52
65
  none: false
53
- requirements:
66
+ requirements:
54
67
  - - ~>
55
- - !ruby/object:Gem::Version
56
- version: "0.4"
68
+ - !ruby/object:Gem::Version
69
+ version: '0.1'
57
70
  type: :development
58
- version_requirements: *id004
59
- - !ruby/object:Gem::Dependency
60
- name: rspec
61
71
  prerelease: false
62
- requirement: &id005 !ruby/object:Gem::Requirement
72
+ version_requirements: !ruby/object:Gem::Requirement
63
73
  none: false
64
- requirements:
74
+ requirements:
65
75
  - - ~>
66
- - !ruby/object:Gem::Version
67
- version: "2.4"
76
+ - !ruby/object:Gem::Version
77
+ version: '0.1'
78
+ - !ruby/object:Gem::Dependency
79
+ name: rspec
80
+ requirement: !ruby/object:Gem::Requirement
81
+ none: false
82
+ requirements:
83
+ - - ~>
84
+ - !ruby/object:Gem::Version
85
+ version: '2.4'
68
86
  type: :development
69
- version_requirements: *id005
70
- - !ruby/object:Gem::Dependency
71
- name: yard
72
87
  prerelease: false
73
- requirement: &id006 !ruby/object:Gem::Requirement
88
+ version_requirements: !ruby/object:Gem::Requirement
74
89
  none: false
75
- requirements:
90
+ requirements:
76
91
  - - ~>
77
- - !ruby/object:Gem::Version
78
- version: 0.7.0
92
+ - !ruby/object:Gem::Version
93
+ version: '2.4'
94
+ - !ruby/object:Gem::Dependency
95
+ name: yard
96
+ requirement: !ruby/object:Gem::Requirement
97
+ none: false
98
+ requirements:
99
+ - - ~>
100
+ - !ruby/object:Gem::Version
101
+ version: '0.7'
79
102
  type: :development
80
- version_requirements: *id006
81
- description: DeploYML is a simple deployment solution that uses a single YAML file, Git and SSH.
82
- email:
83
- - postmodern.mod3@gmail.com
84
- executables:
103
+ prerelease: false
104
+ version_requirements: !ruby/object:Gem::Requirement
105
+ none: false
106
+ requirements:
107
+ - - ~>
108
+ - !ruby/object:Gem::Version
109
+ version: '0.7'
110
+ description: DeploYML is a simple deployment solution that uses a single YAML file,
111
+ Git and SSH.
112
+ email: postmodern.mod3@gmail.com
113
+ executables:
85
114
  - deployml
86
115
  extensions: []
87
-
88
- extra_rdoc_files:
89
- - README.md
90
- - LICENSE.txt
116
+ extra_rdoc_files:
91
117
  - ChangeLog.md
92
- files:
118
+ - LICENSE.txt
119
+ - README.md
120
+ files:
93
121
  - .document
94
122
  - .gemtest
123
+ - .gitignore
95
124
  - .rspec
96
125
  - .yardopts
97
126
  - ChangeLog.md
@@ -141,36 +170,29 @@ files:
141
170
  - spec/project_spec.rb
142
171
  - spec/remote_shell_spec.rb
143
172
  - spec/spec_helper.rb
144
- homepage: http://github.com/postmodern/deployml
145
- licenses:
173
+ homepage: https://github.com/postmodern/deployml#readme
174
+ licenses:
146
175
  - MIT
147
176
  post_install_message:
148
177
  rdoc_options: []
149
-
150
- require_paths:
178
+ require_paths:
151
179
  - lib
152
- required_ruby_version: !ruby/object:Gem::Requirement
180
+ required_ruby_version: !ruby/object:Gem::Requirement
153
181
  none: false
154
- requirements:
155
- - - ">="
156
- - !ruby/object:Gem::Version
182
+ requirements:
183
+ - - ! '>='
184
+ - !ruby/object:Gem::Version
157
185
  version: 1.8.6
158
- required_rubygems_version: !ruby/object:Gem::Requirement
186
+ required_rubygems_version: !ruby/object:Gem::Requirement
159
187
  none: false
160
- requirements:
161
- - - ">="
162
- - !ruby/object:Gem::Version
163
- version: "0"
188
+ requirements:
189
+ - - ! '>='
190
+ - !ruby/object:Gem::Version
191
+ version: '0'
164
192
  requirements: []
165
-
166
- rubyforge_project: deployml
167
- rubygems_version: 1.8.5
193
+ rubyforge_project:
194
+ rubygems_version: 1.8.24
168
195
  signing_key:
169
196
  specification_version: 3
170
197
  summary: A simple deployment solution that works.
171
- test_files:
172
- - spec/remote_shell_spec.rb
173
- - spec/project_spec.rb
174
- - spec/environment_spec.rb
175
- - spec/configuration_spec.rb
176
- - spec/deployml_spec.rb
198
+ test_files: []