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.
@@ -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
@@ -0,0 +1 @@
1
+ Gemfile.lock
data/.rspec ADDED
@@ -0,0 +1,2 @@
1
+ --colour
2
+ --format documentation
@@ -0,0 +1 @@
1
+ language: ruby
data/Gemfile ADDED
@@ -0,0 +1,2 @@
1
+ source 'https://rubygems.org'
2
+ gemspec
@@ -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 'echoe'
3
- require 'lib/rake/dmg'
2
+ require 'bundler/setup'
4
3
 
5
- Echoe.new('rake_dmg', Rake::DmgTask::VERSION) do |s|
6
- s.author = 'Emanuele Vicentini'
7
- s.email = 'emanuele.vicentini@gmail.com'
8
- s.summary = 'Rake library to build DMG files'
9
- s.runtime_dependencies = ['rake']
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
- require 'spec/rake/spectask'
10
+ RSpec::Core::RakeTask.new :spec
11
+ task :default => :spec
20
12
 
21
- Spec::Rake::SpecTask.new do |t|
22
- t.spec_opts = %w(-o spec/spec.opts)
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
@@ -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.
@@ -35,8 +35,7 @@ module Rake
35
35
  # end
36
36
  #
37
37
  class DmgTask
38
- # This library's version number.
39
- VERSION = '0.0.2'
38
+ include Rake::DSL
40
39
 
41
40
  # Name of the disk image (required).
42
41
  attr_accessor :name
@@ -0,0 +1,5 @@
1
+ module Rake
2
+ class DmgTask
3
+ VERSION = '0.0.3'
4
+ end
5
+ end
@@ -1,103 +1,37 @@
1
- --- !ruby/object:Gem::Specification
2
- name: rake_dmg
3
- version: !ruby/object:Gem::Version
4
- version: 0.0.2
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
- date: 2009-01-05 00:00:00 +01:00
12
- default_executable:
13
- dependencies:
14
- - !ruby/object:Gem::Dependency
15
- name: rake
16
- type: :runtime
17
- version_requirement:
18
- version_requirements: !ruby/object:Gem::Requirement
19
- requirements:
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
- extensions: []
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
- extra_rdoc_files:
61
- - LICENSE.rdoc
62
- - README.rdoc
63
- files:
64
- - lib/rake/dmg.rb
65
- - LICENSE.rdoc
66
- - Manifest
67
- - rake_dmg.gemspec
68
- - Rakefile
69
- - README.rdoc
70
- - spec/dmg_spec.rb
71
- - spec/spec.opts
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
- rubyforge_project: rakedmg
100
- rubygems_version: 1.3.1
101
- specification_version: 2
102
- summary: Rake library to build DMG files
103
- test_files: []
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
@@ -1,4 +1,4 @@
1
- require File.dirname(__FILE__) + '/spec_helper.rb'
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 be_false
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 be_true
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 be_false
166
+ @rose.admin_rights.should be_falsey
167
167
  @rose.admin_rights = true
168
- @rose.admin_rights.should be_true
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
@@ -1,48 +1,32 @@
1
1
  require 'rubygems'
2
- require 'spec'
3
- require File.dirname(__FILE__) + '/../lib/rake/dmg'
2
+ require 'rspec'
4
3
 
5
- module RakeTaskMatchers
6
- class BeDefined
7
- def matches?(task_name)
8
- @task_name = task_name
9
- Rake::Task.task_defined?(task_name)
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
- def be_defined
20
- BeDefined.new
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
- class HavePrerequisites
24
- def initialize(prereq_tasks)
25
- @prereq_tasks = prereq_tasks
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
- def have_prerequisites(*prereq_tasks)
42
- HavePrerequisites.new prereq_tasks
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
- Spec::Runner.configure do |conf|
47
- conf.include RakeTaskMatchers
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.2
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
- date: 2009-01-05 00:00:00 +01:00
13
- default_executable:
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
- type: :runtime
18
- version_requirement:
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: "0"
24
- version:
25
- - !ruby/object:Gem::Dependency
26
- name: echoe
27
- type: :development
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: "0"
34
- version:
35
- - !ruby/object:Gem::Dependency
36
- name: rake
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
- version_requirement:
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: 0.8.2
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
- version_requirement:
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: "0"
54
- version:
53
+ - !ruby/object:Gem::Version
54
+ version: 2.4.2
55
55
  description: Rake library to build DMG files
56
- email: emanuele.vicentini@gmail.com
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
- - lib/rake/dmg.rb
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
- has_rdoc: true
75
- homepage: http://github.com/baldowl/rake_dmg
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
- - Rake_dmg
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: "0"
91
- version:
92
- required_rubygems_version: !ruby/object:Gem::Requirement
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: "1.2"
97
- version:
99
+ - !ruby/object:Gem::Version
100
+ version: '0'
98
101
  requirements: []
99
-
100
- rubyforge_project: rakedmg
101
- rubygems_version: 1.3.1
102
+ rubyforge_project:
103
+ rubygems_version: 2.4.8
102
104
  signing_key:
103
- specification_version: 2
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
@@ -1,9 +0,0 @@
1
- lib/rake/dmg.rb
2
- LICENSE.rdoc
3
- Manifest
4
- rake_dmg.gemspec
5
- Rakefile
6
- README.rdoc
7
- spec/dmg_spec.rb
8
- spec/spec.opts
9
- spec/spec_helper.rb
@@ -1,2 +0,0 @@
1
- -c
2
- -fn