rake_dmg 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +1 -0
- data/.rspec +2 -0
- data/.travis.yml +1 -0
- data/Gemfile +2 -0
- data/README.rdoc +1 -1
- data/Rakefile +14 -22
- data/TODO.rdoc +20 -0
- data/lib/rake/dmg.rb +1 -2
- data/lib/rake/dmg/version.rb +5 -0
- data/rake_dmg.gemspec +33 -99
- data/spec/dmg_spec.rb +6 -6
- data/spec/spec_helper.rb +20 -36
- metadata +79 -76
- data/Manifest +0 -9
- data/spec/spec.opts +0 -2
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 0ae198c251cf57a955ed98d9198c7c62907731a8
|
4
|
+
data.tar.gz: 81b0f40185cefdba536665cac2e099a4e5ed92a5
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: f098d4656f2788b788ce5e096a697842c40290e949d0a1240e9966674254eb178b5790519751f8ae232fc45681a9bad385b3324208faa54263d8f2d1bef67daa
|
7
|
+
data.tar.gz: deff8fa0a84fe11f0298630b6577232cbed6d0bd0165b4bcc1dc6d13afeb88ed015d4256d3525d0aafd0e82cef130347306cd7eae9440d912ca6966452efcb75
|
data/.gitignore
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
Gemfile.lock
|
data/.rspec
ADDED
data/.travis.yml
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
language: ruby
|
data/Gemfile
ADDED
data/README.rdoc
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
= Rake DMG library
|
1
|
+
= Rake DMG library {<img src="https://travis-ci.org/baldowl/rake_dmg.png?branch=master" alt="Build Status" />}[https://travis-ci.org/baldowl/rake_dmg] {<img src="https://badge.fury.io/rb/rake_dmg.png" alt="Gem Version" />}[http://badge.fury.io/rb/rake_dmg]
|
2
2
|
|
3
3
|
DmgTask is a Rake library which aims to ease the building of DMG files for
|
4
4
|
projects, applications and whatever you throw at it.
|
data/Rakefile
CHANGED
@@ -1,27 +1,19 @@
|
|
1
1
|
require 'rubygems'
|
2
|
-
require '
|
3
|
-
require 'lib/rake/dmg'
|
2
|
+
require 'bundler/setup'
|
4
3
|
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
s.development_dependencies += ['rake >=0.8.2', 'rspec']
|
11
|
-
s.need_tar_gz = false
|
12
|
-
s.project = 'rakedmg'
|
13
|
-
s.gemspec_format = :yaml
|
14
|
-
s.retain_gemspec = true
|
15
|
-
s.rdoc_pattern = /^README|^LICENSE/
|
16
|
-
s.url = 'http://github.com/baldowl/rake_dmg'
|
17
|
-
end
|
4
|
+
require 'rake/clean'
|
5
|
+
require 'rspec/core/rake_task'
|
6
|
+
require 'rake/dmg/version'
|
7
|
+
require 'rdoc/task'
|
8
|
+
require 'bundler/gem_tasks'
|
18
9
|
|
19
|
-
|
10
|
+
RSpec::Core::RakeTask.new :spec
|
11
|
+
task :default => :spec
|
20
12
|
|
21
|
-
|
22
|
-
|
13
|
+
RDoc::Task.new :doc do |rdoc|
|
14
|
+
rdoc.rdoc_dir = 'doc'
|
15
|
+
rdoc.title = "Rake::Dmg #{Rake::DmgTask::VERSION}"
|
16
|
+
rdoc.main = 'README.rdoc'
|
17
|
+
rdoc.rdoc_files.include('README.rdoc', 'LICENSE.rdoc', 'TODO.rdoc')
|
18
|
+
rdoc.rdoc_files.include('lib/**/*.rb')
|
23
19
|
end
|
24
|
-
|
25
|
-
Rake::Task[:default].clear
|
26
|
-
Rake::Task.tasks.each {|t| t.clear if t.name =~ /test/}
|
27
|
-
task :default => :spec
|
data/TODO.rdoc
ADDED
@@ -0,0 +1,20 @@
|
|
1
|
+
= Things to do (not prioritized)
|
2
|
+
|
3
|
+
* Switching to UDBZ format? This move would introduce the requirement of OS X
|
4
|
+
10.4+.
|
5
|
+
|
6
|
+
* Increasing the compression-level (default to 1 (fastest)) for the UBZO
|
7
|
+
format or allow the user to set it?
|
8
|
+
|
9
|
+
* Allowing the user to set a licence agreement for the whole DMG file? The
|
10
|
+
simplest way allows only a single, English licence; see
|
11
|
+
ftp://ftp.apple.com/developer/Development_Kits/SLAs_for_UDIFs_1.0.dmg for
|
12
|
+
extras.
|
13
|
+
|
14
|
+
* Reworking the internal machinery to enable runtime detection of source
|
15
|
+
files? At the moment, it's not possible to chain the "build" target of a
|
16
|
+
project and the dmg target provided by Rake::DmgTask: building the project
|
17
|
+
and packaging it in a DMG *must* be done in two distinct Rake runs.
|
18
|
+
|
19
|
+
* Trying out Cucumber? Maybe it could be feasible way to really exercise the
|
20
|
+
tasks' code.
|
data/lib/rake/dmg.rb
CHANGED
data/rake_dmg.gemspec
CHANGED
@@ -1,103 +1,37 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
platform: ruby
|
6
|
-
authors:
|
7
|
-
- Emanuele Vicentini
|
8
|
-
autorequire:
|
9
|
-
bindir: bin
|
1
|
+
# coding: utf-8
|
2
|
+
lib = File.expand_path('../lib', __FILE__)
|
3
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
+
require 'rake/dmg/version'
|
10
5
|
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
- - ">="
|
21
|
-
- !ruby/object:Gem::Version
|
22
|
-
version: "0"
|
23
|
-
version:
|
24
|
-
- !ruby/object:Gem::Dependency
|
25
|
-
name: echoe
|
26
|
-
type: :development
|
27
|
-
version_requirement:
|
28
|
-
version_requirements: !ruby/object:Gem::Requirement
|
29
|
-
requirements:
|
30
|
-
- - ">="
|
31
|
-
- !ruby/object:Gem::Version
|
32
|
-
version: "0"
|
33
|
-
version:
|
34
|
-
- !ruby/object:Gem::Dependency
|
35
|
-
name: rake
|
36
|
-
type: :development
|
37
|
-
version_requirement:
|
38
|
-
version_requirements: !ruby/object:Gem::Requirement
|
39
|
-
requirements:
|
40
|
-
- - ">="
|
41
|
-
- !ruby/object:Gem::Version
|
42
|
-
version: 0.8.2
|
43
|
-
version:
|
44
|
-
- !ruby/object:Gem::Dependency
|
45
|
-
name: rspec
|
46
|
-
type: :development
|
47
|
-
version_requirement:
|
48
|
-
version_requirements: !ruby/object:Gem::Requirement
|
49
|
-
requirements:
|
50
|
-
- - ">="
|
51
|
-
- !ruby/object:Gem::Version
|
52
|
-
version: "0"
|
53
|
-
version:
|
54
|
-
description: Rake library to build DMG files
|
55
|
-
email: emanuele.vicentini@gmail.com
|
56
|
-
executables: []
|
6
|
+
Gem::Specification.new do |spec|
|
7
|
+
spec.name = 'rake_dmg'
|
8
|
+
spec.version = Rake::DmgTask::VERSION
|
9
|
+
spec.authors = ['Emanuele Vicentini']
|
10
|
+
spec.email = ['emanuele.vicentini@gmail.com']
|
11
|
+
spec.description = 'Rake library to build DMG files'
|
12
|
+
spec.summary = 'Rake library to build DMG files'
|
13
|
+
spec.homepage = 'https://github.com/baldowl/rake_dmg'
|
14
|
+
spec.license = 'MIT'
|
57
15
|
|
58
|
-
|
16
|
+
spec.files = `git ls-files -z`.split("\x0")
|
17
|
+
spec.test_files = spec.files.grep(%r{^spec/})
|
18
|
+
spec.require_paths = ['lib']
|
59
19
|
|
60
|
-
|
61
|
-
-
|
62
|
-
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
- spec/spec_helper.rb
|
73
|
-
has_rdoc: true
|
74
|
-
homepage: http://github.com/baldowl/rake_dmg
|
75
|
-
post_install_message:
|
76
|
-
rdoc_options:
|
77
|
-
- --line-numbers
|
78
|
-
- --inline-source
|
79
|
-
- --title
|
80
|
-
- Rake_dmg
|
81
|
-
- --main
|
82
|
-
- README.rdoc
|
83
|
-
require_paths:
|
84
|
-
- lib
|
85
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
86
|
-
requirements:
|
87
|
-
- - ">="
|
88
|
-
- !ruby/object:Gem::Version
|
89
|
-
version: "0"
|
90
|
-
version:
|
91
|
-
required_rubygems_version: !ruby/object:Gem::Requirement
|
92
|
-
requirements:
|
93
|
-
- - ">="
|
94
|
-
- !ruby/object:Gem::Version
|
95
|
-
version: "1.2"
|
96
|
-
version:
|
97
|
-
requirements: []
|
20
|
+
spec.rdoc_options = [
|
21
|
+
'--line-numbers',
|
22
|
+
'--inline-source',
|
23
|
+
'--title',
|
24
|
+
"Rake::Dmg #{Rake::DmgTask::VERSION}",
|
25
|
+
'--main',
|
26
|
+
'README.rdoc'
|
27
|
+
]
|
28
|
+
spec.extra_rdoc_files = [
|
29
|
+
'LICENSE.rdoc',
|
30
|
+
'README.rdoc'
|
31
|
+
]
|
98
32
|
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
33
|
+
spec.add_runtime_dependency 'rake', '>= 0.9.0.beta.1'
|
34
|
+
|
35
|
+
spec.add_development_dependency 'rspec', '~> 3.0'
|
36
|
+
spec.add_development_dependency 'rdoc', '>= 2.4.2'
|
37
|
+
end
|
data/spec/dmg_spec.rb
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
require
|
1
|
+
require 'spec_helper.rb'
|
2
2
|
|
3
3
|
describe "Rake::DmgTask" do
|
4
4
|
it "should build a DmgTask object" do
|
@@ -23,7 +23,7 @@ describe "Rake::DmgTask" do
|
|
23
23
|
lambda {Rake::DmgTask.new 'pimpernel', :noversion}.should_not raise_error
|
24
24
|
end
|
25
25
|
|
26
|
-
describe do
|
26
|
+
describe '' do
|
27
27
|
before do
|
28
28
|
Rake::Task.clear
|
29
29
|
Rake::DmgTask.new 'pimpernel', :noversion
|
@@ -152,20 +152,20 @@ describe "A Rake::DmgTask object" do
|
|
152
152
|
end
|
153
153
|
|
154
154
|
it "should default to not have administration rights" do
|
155
|
-
@rose.admin_rights.should
|
155
|
+
@rose.admin_rights.should be_falsey
|
156
156
|
end
|
157
157
|
|
158
158
|
it "should allow setting administration rights on creation" do
|
159
159
|
custom_pkg_dmg = Rake::DmgTask.new 'cyclamen', :noversion do |dmg|
|
160
160
|
dmg.admin_rights = true
|
161
161
|
end
|
162
|
-
custom_pkg_dmg.admin_rights.should
|
162
|
+
custom_pkg_dmg.admin_rights.should be_truthy
|
163
163
|
end
|
164
164
|
|
165
165
|
it "should allow setting administration rights after creation" do
|
166
|
-
@rose.admin_rights.should
|
166
|
+
@rose.admin_rights.should be_falsey
|
167
167
|
@rose.admin_rights = true
|
168
|
-
@rose.admin_rights.should
|
168
|
+
@rose.admin_rights.should be_truthy
|
169
169
|
end
|
170
170
|
|
171
171
|
it "should change DMG build options based on administration rights presence" do
|
data/spec/spec_helper.rb
CHANGED
@@ -1,48 +1,32 @@
|
|
1
1
|
require 'rubygems'
|
2
|
-
require '
|
3
|
-
require File.dirname(__FILE__) + '/../lib/rake/dmg'
|
2
|
+
require 'rspec'
|
4
3
|
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
end
|
11
|
-
def failure_message
|
12
|
-
"expected #{@task_name.inspect} to be defined"
|
13
|
-
end
|
14
|
-
def negative_failure_message
|
15
|
-
"expected #{@task_name.inspect} not to be define"
|
16
|
-
end
|
4
|
+
require 'rake/dmg'
|
5
|
+
|
6
|
+
RSpec::Matchers.define :be_defined do
|
7
|
+
match do |task_name|
|
8
|
+
Rake::Task.task_defined?(task_name)
|
17
9
|
end
|
10
|
+
end
|
18
11
|
|
19
|
-
|
20
|
-
|
12
|
+
RSpec::Matchers.define :have_prerequisites do |*prereq_tasks|
|
13
|
+
match do |task_name|
|
14
|
+
list = Rake::Task[task_name].prerequisites
|
15
|
+
prereq_tasks.all? {|t| list.include? t}
|
21
16
|
end
|
22
17
|
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
end
|
27
|
-
def matches?(task_name)
|
28
|
-
@task_name = task_name
|
29
|
-
@prereq_tasks.each do |t|
|
30
|
-
return false if !Rake::Task[@task_name].prerequisites.include?(t)
|
31
|
-
end
|
32
|
-
end
|
33
|
-
def failure_message
|
34
|
-
"expected #{@prereq_tasks.inspect} to be prerequistes of #{@task_name.inspect}"
|
35
|
-
end
|
36
|
-
def negative_failure_message
|
37
|
-
"expected #{@prereq_tasks.inspect} not to be prerequisites of #{@task_name.inspect}"
|
38
|
-
end
|
18
|
+
match_when_negated do |task_name|
|
19
|
+
list = Rake::Task[task_name].prerequisites
|
20
|
+
prereq_tasks.none? {|t| list.include? t}
|
39
21
|
end
|
40
22
|
|
41
|
-
|
42
|
-
|
23
|
+
failure_message do |task_name|
|
24
|
+
"expected prerequisite tasks: #{prereq_tasks.join(', ')}; got #{Rake::Task[task_name].prerequisites.join(', ')}"
|
43
25
|
end
|
44
26
|
end
|
45
27
|
|
46
|
-
|
47
|
-
conf.
|
28
|
+
RSpec.configure do |conf|
|
29
|
+
conf.expect_with :rspec do |c|
|
30
|
+
c.syntax = :should
|
31
|
+
end
|
48
32
|
end
|
metadata
CHANGED
@@ -1,106 +1,109 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: rake_dmg
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.3
|
5
5
|
platform: ruby
|
6
|
-
authors:
|
6
|
+
authors:
|
7
7
|
- Emanuele Vicentini
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
dependencies:
|
15
|
-
- !ruby/object:Gem::Dependency
|
11
|
+
date: 2015-06-27 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
16
14
|
name: rake
|
17
|
-
|
18
|
-
|
19
|
-
version_requirements: !ruby/object:Gem::Requirement
|
20
|
-
requirements:
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
21
17
|
- - ">="
|
22
|
-
- !ruby/object:Gem::Version
|
23
|
-
version:
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
version_requirement:
|
29
|
-
version_requirements: !ruby/object:Gem::Requirement
|
30
|
-
requirements:
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: 0.9.0.beta.1
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
31
24
|
- - ">="
|
32
|
-
- !ruby/object:Gem::Version
|
33
|
-
version:
|
34
|
-
|
35
|
-
|
36
|
-
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: 0.9.0.beta.1
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: rspec
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '3.0'
|
37
34
|
type: :development
|
38
|
-
|
39
|
-
version_requirements: !ruby/object:Gem::Requirement
|
40
|
-
requirements:
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '3.0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: rdoc
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
41
45
|
- - ">="
|
42
|
-
- !ruby/object:Gem::Version
|
43
|
-
version:
|
44
|
-
version:
|
45
|
-
- !ruby/object:Gem::Dependency
|
46
|
-
name: rspec
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: 2.4.2
|
47
48
|
type: :development
|
48
|
-
|
49
|
-
version_requirements: !ruby/object:Gem::Requirement
|
50
|
-
requirements:
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
51
52
|
- - ">="
|
52
|
-
- !ruby/object:Gem::Version
|
53
|
-
version:
|
54
|
-
version:
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: 2.4.2
|
55
55
|
description: Rake library to build DMG files
|
56
|
-
email:
|
56
|
+
email:
|
57
|
+
- emanuele.vicentini@gmail.com
|
57
58
|
executables: []
|
58
|
-
|
59
59
|
extensions: []
|
60
|
-
|
61
|
-
extra_rdoc_files:
|
60
|
+
extra_rdoc_files:
|
62
61
|
- LICENSE.rdoc
|
63
62
|
- README.rdoc
|
64
|
-
files:
|
65
|
-
-
|
63
|
+
files:
|
64
|
+
- ".gitignore"
|
65
|
+
- ".rspec"
|
66
|
+
- ".travis.yml"
|
67
|
+
- Gemfile
|
66
68
|
- LICENSE.rdoc
|
67
|
-
- Manifest
|
68
|
-
- rake_dmg.gemspec
|
69
|
-
- Rakefile
|
70
69
|
- README.rdoc
|
70
|
+
- Rakefile
|
71
|
+
- TODO.rdoc
|
72
|
+
- lib/rake/dmg.rb
|
73
|
+
- lib/rake/dmg/version.rb
|
74
|
+
- rake_dmg.gemspec
|
71
75
|
- spec/dmg_spec.rb
|
72
|
-
- spec/spec.opts
|
73
76
|
- spec/spec_helper.rb
|
74
|
-
|
75
|
-
|
77
|
+
homepage: https://github.com/baldowl/rake_dmg
|
78
|
+
licenses:
|
79
|
+
- MIT
|
80
|
+
metadata: {}
|
76
81
|
post_install_message:
|
77
|
-
rdoc_options:
|
78
|
-
- --line-numbers
|
79
|
-
- --inline-source
|
80
|
-
- --title
|
81
|
-
-
|
82
|
-
- --main
|
82
|
+
rdoc_options:
|
83
|
+
- "--line-numbers"
|
84
|
+
- "--inline-source"
|
85
|
+
- "--title"
|
86
|
+
- Rake::Dmg 0.0.3
|
87
|
+
- "--main"
|
83
88
|
- README.rdoc
|
84
|
-
require_paths:
|
89
|
+
require_paths:
|
85
90
|
- lib
|
86
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
87
|
-
requirements:
|
91
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
92
|
+
requirements:
|
88
93
|
- - ">="
|
89
|
-
- !ruby/object:Gem::Version
|
90
|
-
version:
|
91
|
-
|
92
|
-
|
93
|
-
requirements:
|
94
|
+
- !ruby/object:Gem::Version
|
95
|
+
version: '0'
|
96
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
97
|
+
requirements:
|
94
98
|
- - ">="
|
95
|
-
- !ruby/object:Gem::Version
|
96
|
-
version:
|
97
|
-
version:
|
99
|
+
- !ruby/object:Gem::Version
|
100
|
+
version: '0'
|
98
101
|
requirements: []
|
99
|
-
|
100
|
-
|
101
|
-
rubygems_version: 1.3.1
|
102
|
+
rubyforge_project:
|
103
|
+
rubygems_version: 2.4.8
|
102
104
|
signing_key:
|
103
|
-
specification_version:
|
105
|
+
specification_version: 4
|
104
106
|
summary: Rake library to build DMG files
|
105
|
-
test_files:
|
106
|
-
|
107
|
+
test_files:
|
108
|
+
- spec/dmg_spec.rb
|
109
|
+
- spec/spec_helper.rb
|
data/Manifest
DELETED
data/spec/spec.opts
DELETED