rake-distribute 1.0.0.20130321034642 → 1.1.0

Sign up to get free protection for your applications and to get access to all the features.
data/.gemtest ADDED
File without changes
data/Gemfile CHANGED
@@ -1,7 +1,13 @@
1
- source "https://rubygems.org"
2
- gemspec
1
+ # -*- ruby -*-
3
2
 
4
- group :development, :test do
5
- gem "minitest", ">= 4.1.0"
6
- gem "turn", ">= 0.8.3"
7
- end
3
+ # DO NOT EDIT THIS FILE. Instead, edit Rakefile, and run `rake bundler:gemfile`.
4
+
5
+ source "https://rubygems.org/"
6
+
7
+ gem "rake", "~>10.0.0"
8
+ gem "diffy", "~>2.0.9"
9
+
10
+ gem "rdoc", "~>3.10", :group => [:development, :test]
11
+ gem "hoe", "~>3.5", :group => [:development, :test]
12
+
13
+ # vim: syntax=ruby
data/Gemfile.lock CHANGED
@@ -1,34 +1,19 @@
1
- PATH
2
- remote: .
3
- specs:
4
- rake-distribute (1.0.0.20121030083712)
5
- diffy (>= 2.0.8)
6
-
7
1
  GEM
8
2
  remote: https://rubygems.org/
9
3
  specs:
10
- ansi (1.4.3)
11
- diffy (2.1.0)
12
- hoe (3.3.1)
4
+ diffy (2.0.10)
5
+ hoe (3.5.2)
13
6
  rake (>= 0.8, < 11.0)
14
- json (1.7.5)
15
- json_pure (1.7.5)
16
- minitest (4.3.1)
17
- rake (10.0.2)
18
- rdoc (3.12)
7
+ json (1.7.7)
8
+ rake (10.0.3)
9
+ rdoc (3.12.2)
19
10
  json (~> 1.4)
20
- rubyforge (2.0.4)
21
- json_pure (>= 1.1.7)
22
- turn (0.9.6)
23
- ansi
24
11
 
25
12
  PLATFORMS
26
13
  ruby
27
14
 
28
15
  DEPENDENCIES
29
- hoe (~> 3.1)
30
- minitest (>= 4.1.0)
31
- rake-distribute!
16
+ diffy (~> 2.0.9)
17
+ hoe (~> 3.5)
18
+ rake (~> 10.0.0)
32
19
  rdoc (~> 3.10)
33
- rubyforge (>= 2.0.4)
34
- turn (>= 0.8.3)
data/Manifest.txt CHANGED
@@ -1,9 +1,8 @@
1
- .autotest
2
1
  Gemfile
3
2
  Gemfile.lock
4
3
  History.txt
5
4
  Manifest.txt
6
- README.txt
5
+ README.md
7
6
  Rakefile
8
7
  lib/rake/distribute.rb
9
8
  lib/rake/distribute/core.rb
@@ -13,5 +12,6 @@ lib/rake/distribute/item.rb
13
12
  lib/rake/distribute/item/erbfile.rb
14
13
  lib/rake/distribute/item/file.rb
15
14
  lib/rake/distribute/version.rb
15
+ rake-distribute.gemspec
16
16
  test/minitest_helper.rb
17
17
  test/test_rake_distribute.rb
data/README.md ADDED
@@ -0,0 +1,58 @@
1
+ # rake-distribute
2
+
3
+ * home :: https://github.com/zhaocai/rake-distribute
4
+ * rdoc :: http://rubydoc.info/gems/rake-distribute/
5
+ * code :: https://github.com/zhaocai/rake-distribute
6
+ * bugs :: https://github.com/zhaocai/rake-distribute/issues
7
+
8
+ ## DESCRIPTION:
9
+
10
+ Generate rake distribute:install, uninstall, and diff tasks to distribute items (files, templates, directories, etc.) to difference locations.
11
+
12
+ It is the saver to use rake tasks to manage 1 -> n file distribution. Commonly applied cases are runcom files, Makefiles, etc. Those files exists in many locations and are almost identical with slight difference.
13
+
14
+
15
+ ## INSTALL:
16
+
17
+ * `gem install rake-distribute`
18
+
19
+ ## SYNOPSIS:
20
+
21
+ ```ruby
22
+ distribute :FileItem do
23
+ from "/path/from"
24
+ to "/path/to"
25
+ end
26
+
27
+ distribute :ErbFile do
28
+ from "/path/from"
29
+ to "/path/to"
30
+ with_context {:a => 1, :b => 2}
31
+ end
32
+ ```
33
+
34
+ ## DEVELOPERS:
35
+
36
+ After checking out the source, run:
37
+
38
+ $ rake newb
39
+
40
+ This task will install any missing dependencies, run the tests/specs,
41
+ and generate the RDoc.
42
+
43
+ ## LICENSE:
44
+
45
+ Copyright (c) 2013 Zhao Cai <caizhaoff@gmail.com>
46
+
47
+ This program is free software: you can redistribute it and/or modify it under
48
+ the terms of the GNU General Public License as published by the Free Software
49
+ Foundation, either version 3 of the License, or (at your option)
50
+ any later version.
51
+
52
+ This program is distributed in the hope that it will be useful, but WITHOUT
53
+ ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
54
+ FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
55
+
56
+ You should have received a copy of the GNU General Public License along with
57
+ this program. If not, see <http://www.gnu.org/licenses/>.
58
+
data/Rakefile CHANGED
@@ -6,29 +6,34 @@ require 'hoe'
6
6
 
7
7
  # $DEBUG = true
8
8
 
9
- Hoe.plugin :gemspec
9
+
10
10
  Hoe.plugin :git
11
+ Hoe.plugin :gemspec
12
+ Hoe.plugin :version
11
13
  Hoe.plugin :bundler
12
14
  Hoe.plugin :test
13
- # Hoe.plugin :rubyforge
14
- # Hoe.plugin :compiler
15
- # Hoe.plugin :email
16
- # Hoe.plugin :gem_prelude_sucks
17
- # Hoe.plugin :inline
18
- # Hoe.plugin :perforce
19
- # Hoe.plugin :racc
20
- # Hoe.plugin :rcov
21
- # Hoe.plugin :seattlerb
22
- Hoe.plugin :rubygems
23
15
 
24
16
  Hoe.spec 'rake-distribute' do
25
- self.rubyforge_name = 'zhaowu'
26
17
  developer 'Zhao Cai', 'caizhaoff@gmail.com'
27
- # self.rubyforge_name = 'rake-distributex' # if different than 'rake-distribute'
28
18
 
29
- # extra_deps << ['diffy', '>= 2.0.9']
19
+ extra_deps << ['rake', '~> 10.0.0']
20
+ extra_deps << ['diffy', '~> 2.0.9']
21
+ end
22
+
23
+
24
+ desc "Bump Major Version and Commit"
25
+ task "bump:major" => ["version:bump:major"] do
26
+ sh "git commit -am '! Bump version to #{ENV["VERSION"]}'"
30
27
  end
31
28
 
29
+ desc "Bump Minor Version and Commit"
30
+ task "bump:minor" => ["version:bump:minor"] do
31
+ sh "git commit -am '* Bump version to #{ENV["VERSION"]}'"
32
+ end
33
+ desc "Bump Patch Version and Commit"
34
+ task "bump:patch" => ["version:bump:patch"] do
35
+ sh "git commit -am 'Bump version to #{ENV["VERSION"]}'"
36
+ end
32
37
 
33
38
 
34
39
  # vim: syntax=ruby
@@ -1,3 +1,3 @@
1
1
  module Rake::Distribute
2
- VERSION = '1.0.0'
2
+ VERSION = '1.1.0'
3
3
  end
@@ -0,0 +1,42 @@
1
+ # -*- encoding: utf-8 -*-
2
+
3
+ Gem::Specification.new do |s|
4
+ s.name = "rake-distribute"
5
+ s.version = "1.1.0.20130325042957"
6
+
7
+ s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
8
+ s.authors = ["Zhao Cai"]
9
+ s.date = "2013-03-25"
10
+ s.description = "Generate rake distribute:install, uninstall, and diff tasks to distribute items (files, templates, directories, etc.) to difference locations.\n\nIt is the saver to use rake tasks to manage 1 -> n file distribution. Commonly applied cases are runcom files, Makefiles, etc. Those files exists in many locations and are almost identical with slight difference."
11
+ s.email = ["caizhaoff@gmail.com"]
12
+ s.extra_rdoc_files = ["History.txt", "Manifest.txt"]
13
+ s.files = ["Gemfile", "Gemfile.lock", "History.txt", "Manifest.txt", "README.md", "Rakefile", "lib/rake/distribute.rb", "lib/rake/distribute/core.rb", "lib/rake/distribute/dsl.rb", "lib/rake/distribute/error.rb", "lib/rake/distribute/item.rb", "lib/rake/distribute/item/erbfile.rb", "lib/rake/distribute/item/file.rb", "lib/rake/distribute/version.rb", "rake-distribute.gemspec", "test/minitest_helper.rb", "test/test_rake_distribute.rb", ".gemtest"]
14
+ s.homepage = "https://github.com/zhaocai/rake-distribute"
15
+ s.rdoc_options = ["--main", "README.md"]
16
+ s.require_paths = ["lib"]
17
+ s.rubyforge_project = "rake-distribute"
18
+ s.rubygems_version = "1.8.24"
19
+ s.summary = "Generate rake distribute:install, uninstall, and diff tasks to distribute items (files, templates, directories, etc.) to difference locations"
20
+ s.test_files = ["test/test_rake_distribute.rb"]
21
+
22
+ if s.respond_to? :specification_version then
23
+ s.specification_version = 3
24
+
25
+ if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
26
+ s.add_runtime_dependency(%q<rake>, ["~> 10.0.0"])
27
+ s.add_runtime_dependency(%q<diffy>, ["~> 2.0.9"])
28
+ s.add_development_dependency(%q<rdoc>, ["~> 3.10"])
29
+ s.add_development_dependency(%q<hoe>, ["~> 3.5"])
30
+ else
31
+ s.add_dependency(%q<rake>, ["~> 10.0.0"])
32
+ s.add_dependency(%q<diffy>, ["~> 2.0.9"])
33
+ s.add_dependency(%q<rdoc>, ["~> 3.10"])
34
+ s.add_dependency(%q<hoe>, ["~> 3.5"])
35
+ end
36
+ else
37
+ s.add_dependency(%q<rake>, ["~> 10.0.0"])
38
+ s.add_dependency(%q<diffy>, ["~> 2.0.9"])
39
+ s.add_dependency(%q<rdoc>, ["~> 3.10"])
40
+ s.add_dependency(%q<hoe>, ["~> 3.5"])
41
+ end
42
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rake-distribute
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0.20130321034642
4
+ version: 1.1.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,8 +9,40 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-03-21 00:00:00.000000000 Z
12
+ date: 2013-03-25 00:00:00.000000000 Z
13
13
  dependencies:
14
+ - !ruby/object:Gem::Dependency
15
+ name: rake
16
+ requirement: !ruby/object:Gem::Requirement
17
+ none: false
18
+ requirements:
19
+ - - ~>
20
+ - !ruby/object:Gem::Version
21
+ version: 10.0.0
22
+ type: :runtime
23
+ prerelease: false
24
+ version_requirements: !ruby/object:Gem::Requirement
25
+ none: false
26
+ requirements:
27
+ - - ~>
28
+ - !ruby/object:Gem::Version
29
+ version: 10.0.0
30
+ - !ruby/object:Gem::Dependency
31
+ name: diffy
32
+ requirement: !ruby/object:Gem::Requirement
33
+ none: false
34
+ requirements:
35
+ - - ~>
36
+ - !ruby/object:Gem::Version
37
+ version: 2.0.9
38
+ type: :runtime
39
+ prerelease: false
40
+ version_requirements: !ruby/object:Gem::Requirement
41
+ none: false
42
+ requirements:
43
+ - - ~>
44
+ - !ruby/object:Gem::Version
45
+ version: 2.0.9
14
46
  - !ruby/object:Gem::Dependency
15
47
  name: rdoc
16
48
  requirement: !ruby/object:Gem::Requirement
@@ -34,7 +66,7 @@ dependencies:
34
66
  requirements:
35
67
  - - ~>
36
68
  - !ruby/object:Gem::Version
37
- version: '3.3'
69
+ version: '3.5'
38
70
  type: :development
39
71
  prerelease: false
40
72
  version_requirements: !ruby/object:Gem::Requirement
@@ -42,9 +74,14 @@ dependencies:
42
74
  requirements:
43
75
  - - ~>
44
76
  - !ruby/object:Gem::Version
45
- version: '3.3'
46
- description: generate rake install/uninstall/diff/... tasks to distribute items (files,
47
- templates, directories, etc.) to difference locations.
77
+ version: '3.5'
78
+ description: ! 'Generate rake distribute:install, uninstall, and diff tasks to distribute
79
+ items (files, templates, directories, etc.) to difference locations.
80
+
81
+
82
+ It is the saver to use rake tasks to manage 1 -> n file distribution. Commonly applied
83
+ cases are runcom files, Makefiles, etc. Those files exists in many locations and
84
+ are almost identical with slight difference.'
48
85
  email:
49
86
  - caizhaoff@gmail.com
50
87
  executables: []
@@ -52,14 +89,12 @@ extensions: []
52
89
  extra_rdoc_files:
53
90
  - History.txt
54
91
  - Manifest.txt
55
- - README.txt
56
92
  files:
57
- - .autotest
58
93
  - Gemfile
59
94
  - Gemfile.lock
60
95
  - History.txt
61
96
  - Manifest.txt
62
- - README.txt
97
+ - README.md
63
98
  - Rakefile
64
99
  - lib/rake/distribute.rb
65
100
  - lib/rake/distribute/core.rb
@@ -69,14 +104,16 @@ files:
69
104
  - lib/rake/distribute/item/erbfile.rb
70
105
  - lib/rake/distribute/item/file.rb
71
106
  - lib/rake/distribute/version.rb
107
+ - rake-distribute.gemspec
72
108
  - test/minitest_helper.rb
73
109
  - test/test_rake_distribute.rb
110
+ - .gemtest
74
111
  homepage: https://github.com/zhaocai/rake-distribute
75
112
  licenses: []
76
113
  post_install_message:
77
114
  rdoc_options:
78
115
  - --main
79
- - README.txt
116
+ - README.md
80
117
  require_paths:
81
118
  - lib
82
119
  required_ruby_version: !ruby/object:Gem::Requirement
@@ -92,11 +129,11 @@ required_rubygems_version: !ruby/object:Gem::Requirement
92
129
  - !ruby/object:Gem::Version
93
130
  version: '0'
94
131
  requirements: []
95
- rubyforge_project: zhaowu
132
+ rubyforge_project: rake-distribute
96
133
  rubygems_version: 1.8.24
97
134
  signing_key:
98
135
  specification_version: 3
99
- summary: generate rake install/uninstall/diff/..
136
+ summary: Generate rake distribute:install, uninstall, and diff tasks to distribute
137
+ items (files, templates, directories, etc.) to difference locations
100
138
  test_files:
101
139
  - test/test_rake_distribute.rb
102
- has_rdoc:
data/.autotest DELETED
@@ -1,23 +0,0 @@
1
- # -*- ruby -*-
2
-
3
- require 'autotest/restart'
4
-
5
- # Autotest.add_hook :initialize do |at|
6
- # at.extra_files << "../some/external/dependency.rb"
7
- #
8
- # at.libs << ":../some/external"
9
- #
10
- # at.add_exception 'vendor'
11
- #
12
- # at.add_mapping(/dependency.rb/) do |f, _|
13
- # at.files_matching(/test_.*rb$/)
14
- # end
15
- #
16
- # %w(TestA TestB).each do |klass|
17
- # at.extra_class_map[klass] = "test/test_misc.rb"
18
- # end
19
- # end
20
-
21
- # Autotest.add_hook :run_command do |at|
22
- # system "rake build"
23
- # end
data/README.txt DELETED
@@ -1,70 +0,0 @@
1
- = rake-distribute
2
-
3
- * https://github.com/zhaocai/rake-distribute
4
-
5
- == DESCRIPTION:
6
-
7
- generate rake install/uninstall/diff/... tasks to distribute items (files, templates, directories, etc.) to difference locations.
8
-
9
- == FEATURES/PROBLEMS:
10
-
11
- * FIX (list of features or problems)
12
-
13
- == SYNOPSIS:
14
-
15
- FIX (code sample of usage)
16
-
17
- == REQUIREMENTS:
18
-
19
- * `bundle install` can handle the required gems
20
-
21
- == INSTALL:
22
-
23
- * gem install rake-distribute
24
-
25
- == USAGE:
26
-
27
- distribute :FileItem do
28
- from "/path/from"
29
- to "/path/to"
30
- end
31
-
32
- distribute :ErbFile do
33
- from "/path/from"
34
- to "/path/to"
35
- with_context {:a => 1, :b => 2}
36
- end
37
-
38
- == DEVELOPERS:
39
-
40
- After checking out the source, run:
41
-
42
- $ rake newb
43
-
44
- This task will install any missing dependencies, run the tests/specs,
45
- and generate the RDoc.
46
-
47
- == LICENSE:
48
-
49
- (The MIT License)
50
-
51
- Copyright (c) 2012, Zhao Cai
52
-
53
- Permission is hereby granted, free of charge, to any person obtaining
54
- a copy of this software and associated documentation files (the
55
- 'Software'), to deal in the Software without restriction, including
56
- without limitation the rights to use, copy, modify, merge, publish,
57
- distribute, sublicense, and/or sell copies of the Software, and to
58
- permit persons to whom the Software is furnished to do so, subject to
59
- the following conditions:
60
-
61
- The above copyright notice and this permission notice shall be
62
- included in all copies or substantial portions of the Software.
63
-
64
- THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
65
- EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
66
- MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
67
- IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
68
- CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
69
- TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
70
- SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.