not-quite-submodules 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- data/.document +5 -0
- data/Gemfile +18 -0
- data/Gemfile.lock +57 -0
- data/LICENSE.txt +20 -0
- data/README.md +103 -0
- data/Rakefile +36 -0
- data/VERSION +1 -0
- data/lib/not-quite-submodules.rb +152 -0
- data/not-quite-submodules.gemspec +69 -0
- metadata +188 -0
data/.document
ADDED
data/Gemfile
ADDED
@@ -0,0 +1,18 @@
|
|
1
|
+
source "http://rubygems.org"
|
2
|
+
# Add dependencies required to use your gem here.
|
3
|
+
# Example:
|
4
|
+
# gem "activesupport", ">= 2.3.5"
|
5
|
+
|
6
|
+
gem "versionomy", "~> 0.4.4"
|
7
|
+
|
8
|
+
# Add dependencies to develop your gem here.
|
9
|
+
# Include everything needed to run rake, tests, features, etc.
|
10
|
+
group :development do
|
11
|
+
gem "rspec", "~> 2.8.0"
|
12
|
+
gem "yard", "~> 0.7"
|
13
|
+
gem "rdoc", "~> 3.12"
|
14
|
+
gem "bundler", "~> 1.2.0"
|
15
|
+
gem "jeweler", "~> 1.8.4"
|
16
|
+
gem "simplecov", ">= 0"
|
17
|
+
gem "reek", "~> 1.2.8"
|
18
|
+
end
|
data/Gemfile.lock
ADDED
@@ -0,0 +1,57 @@
|
|
1
|
+
GEM
|
2
|
+
remote: http://rubygems.org/
|
3
|
+
specs:
|
4
|
+
blockenspiel (0.4.5)
|
5
|
+
diff-lcs (1.1.3)
|
6
|
+
git (1.2.5)
|
7
|
+
jeweler (1.8.4)
|
8
|
+
bundler (~> 1.0)
|
9
|
+
git (>= 1.2.5)
|
10
|
+
rake
|
11
|
+
rdoc
|
12
|
+
json (1.7.6)
|
13
|
+
multi_json (1.5.0)
|
14
|
+
rake (10.0.3)
|
15
|
+
rdoc (3.12)
|
16
|
+
json (~> 1.4)
|
17
|
+
reek (1.2.13)
|
18
|
+
ripper_ruby_parser (~> 0.0.7)
|
19
|
+
ruby2ruby (~> 1.2.5)
|
20
|
+
ruby_parser (~> 2.0)
|
21
|
+
sexp_processor (~> 3.0)
|
22
|
+
ripper_ruby_parser (0.0.8)
|
23
|
+
sexp_processor (~> 3.0)
|
24
|
+
rspec (2.8.0)
|
25
|
+
rspec-core (~> 2.8.0)
|
26
|
+
rspec-expectations (~> 2.8.0)
|
27
|
+
rspec-mocks (~> 2.8.0)
|
28
|
+
rspec-core (2.8.0)
|
29
|
+
rspec-expectations (2.8.0)
|
30
|
+
diff-lcs (~> 1.1.2)
|
31
|
+
rspec-mocks (2.8.0)
|
32
|
+
ruby2ruby (1.2.5)
|
33
|
+
ruby_parser (~> 2.0)
|
34
|
+
sexp_processor (~> 3.0)
|
35
|
+
ruby_parser (2.3.1)
|
36
|
+
sexp_processor (~> 3.0)
|
37
|
+
sexp_processor (3.2.0)
|
38
|
+
simplecov (0.7.1)
|
39
|
+
multi_json (~> 1.0)
|
40
|
+
simplecov-html (~> 0.7.1)
|
41
|
+
simplecov-html (0.7.1)
|
42
|
+
versionomy (0.4.4)
|
43
|
+
blockenspiel (>= 0.4.5)
|
44
|
+
yard (0.8.3)
|
45
|
+
|
46
|
+
PLATFORMS
|
47
|
+
ruby
|
48
|
+
|
49
|
+
DEPENDENCIES
|
50
|
+
bundler (~> 1.2.0)
|
51
|
+
jeweler (~> 1.8.4)
|
52
|
+
rdoc (~> 3.12)
|
53
|
+
reek (~> 1.2.8)
|
54
|
+
rspec (~> 2.8.0)
|
55
|
+
simplecov
|
56
|
+
versionomy (~> 0.4.4)
|
57
|
+
yard (~> 0.7)
|
data/LICENSE.txt
ADDED
@@ -0,0 +1,20 @@
|
|
1
|
+
Copyright (c) 2013 Lucas Jenss
|
2
|
+
|
3
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
4
|
+
a copy of this software and associated documentation files (the
|
5
|
+
"Software"), to deal in the Software without restriction, including
|
6
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
7
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
8
|
+
permit persons to whom the Software is furnished to do so, subject to
|
9
|
+
the following conditions:
|
10
|
+
|
11
|
+
The above copyright notice and this permission notice shall be
|
12
|
+
included in all copies or substantial portions of the Software.
|
13
|
+
|
14
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
15
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
16
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
17
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
18
|
+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
19
|
+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
20
|
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,103 @@
|
|
1
|
+
# not-quite-submodules
|
2
|
+
|
3
|
+
This gem can be used to automatically check out and update a git repository pretty much anywhere. I wrote it because I wanted to be able to clone a project repository, and then automatically fetch some deployment capistrano tasks, keeping them up to date whenever I run a `cap` command. But you can use it anywhere else as well, it's not limited to capistrano or even being inside a git repository.
|
4
|
+
|
5
|
+
|
6
|
+
|
7
|
+
## How it works
|
8
|
+
|
9
|
+
not-quite-submodules simply clones the specified repository, checks out the latest tag (by version number!) and copies the content to the specified `config_dir`.
|
10
|
+
|
11
|
+
There _must_ be at least one tag in the configuration repository, otherwise the update will fail. The version comparison/ordering is done using the [Versionomy](https://github.com/dazuma/versionomy) gem, for example:
|
12
|
+
|
13
|
+
v1.0 < v1.0.1 < v1.1 < v1.1.1 < ...
|
14
|
+
|
15
|
+
For your convenience, not-quite-submodules also generates a `.gitignore` file in the `config_dir` which ignores all content copied from the configuration repository.
|
16
|
+
|
17
|
+
By default, the gem will try to update the configuration repository once every 24 hours. You may force an update by setting the `FORCE_UPDATE` environment variable to a truthy value. From the command line, for example:
|
18
|
+
|
19
|
+
FORCE_UPDATE=1 cap deploy
|
20
|
+
|
21
|
+
|
22
|
+
|
23
|
+
## How to set up for capistrano?
|
24
|
+
|
25
|
+
You'll need a new git repository containing your configuration. Lets say you currently use the following directory structure in your projects:
|
26
|
+
|
27
|
+
project/
|
28
|
+
Cap
|
29
|
+
config/
|
30
|
+
capistrano/
|
31
|
+
deploy.rb
|
32
|
+
util/
|
33
|
+
important.rb
|
34
|
+
stuff.rb
|
35
|
+
project.rb
|
36
|
+
stages/
|
37
|
+
production.rb
|
38
|
+
staging.rb
|
39
|
+
[...]
|
40
|
+
|
41
|
+
Let us also assume that everything in the `util/` folder as well as `deploy.rb` is never modified, that is, the project specific configuration resides solely in `stages/` and `project.rb`. You'd now create a new git repository containing the following:
|
42
|
+
|
43
|
+
deploy.rb
|
44
|
+
util/
|
45
|
+
important.rb
|
46
|
+
stuff.rb
|
47
|
+
|
48
|
+
Then you'd simply remove these files from your project structure, resulting in:
|
49
|
+
|
50
|
+
project/
|
51
|
+
Cap
|
52
|
+
config/
|
53
|
+
capistrano/
|
54
|
+
project.rb
|
55
|
+
stages/
|
56
|
+
production.rb
|
57
|
+
staging.rb
|
58
|
+
[...]
|
59
|
+
|
60
|
+
Now you want to add the following lines to the beginning of your `Cap` file:
|
61
|
+
|
62
|
+
require 'not-quite-submodules'
|
63
|
+
NotQuiteSubmodules.initialize(
|
64
|
+
"git@github.com:you-on-github/capistrano-configuration.git",
|
65
|
+
:target_path => "config/capistrano",
|
66
|
+
:temp_path => "config/.config_repo"
|
67
|
+
)
|
68
|
+
|
69
|
+
|
70
|
+
|
71
|
+
## The `#initialize` method
|
72
|
+
|
73
|
+
`initialize` is pretty much everything you'll ever see of not-quite-submodules. It takes the repository to be cloned as its first parameter and allows you to specify the following configuration parameters:
|
74
|
+
|
75
|
+
* `:target_path` => This is where you'd like the files from the repository to end up in the end.
|
76
|
+
* `:temp_path` => The directory to which the repository is cloned. Note that this directory is not deleted after the files have been updated so that the entire repository does not need to be cloned again next time. Therefore it might be a good idea to add it to your `.gitignore` file.
|
77
|
+
|
78
|
+
|
79
|
+
|
80
|
+
## Caveats
|
81
|
+
|
82
|
+
* not-quite-submodules does not currently **delete** any files, it only overwrites updated files or creates newly created ones.
|
83
|
+
|
84
|
+
|
85
|
+
|
86
|
+
## TODO
|
87
|
+
|
88
|
+
* Support file deletion
|
89
|
+
|
90
|
+
|
91
|
+
|
92
|
+
|
93
|
+
## Boring legal stuff (read: License)
|
94
|
+
|
95
|
+
Copyright (C) 2013 Lucas Jenß
|
96
|
+
|
97
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
98
|
+
|
99
|
+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
100
|
+
|
101
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
102
|
+
|
103
|
+
|
data/Rakefile
ADDED
@@ -0,0 +1,36 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
|
3
|
+
require 'rubygems'
|
4
|
+
require 'bundler'
|
5
|
+
begin
|
6
|
+
Bundler.setup(:default, :development)
|
7
|
+
rescue Bundler::BundlerError => e
|
8
|
+
$stderr.puts e.message
|
9
|
+
$stderr.puts "Run `bundle install` to install missing gems"
|
10
|
+
exit e.status_code
|
11
|
+
end
|
12
|
+
require 'rake'
|
13
|
+
|
14
|
+
require 'jeweler'
|
15
|
+
Jeweler::Tasks.new do |gem|
|
16
|
+
# gem is a Gem::Specification... see http://docs.rubygems.org/read/chapter/20 for more options
|
17
|
+
gem.name = "not-quite-submodules"
|
18
|
+
gem.homepage = "http://github.com/x3ro/not-quite-submodules"
|
19
|
+
gem.license = "MIT"
|
20
|
+
gem.summary = %Q{This gem can be used to automatically clone and update a git repository.}
|
21
|
+
gem.description = %Q{This gem can be used to automatically clone an update a git repository, relying on tags to see if a newer version of the repository is available.}
|
22
|
+
gem.email = "lucas@x3ro.de"
|
23
|
+
gem.authors = ["Lucas Jenss"]
|
24
|
+
# dependencies defined in Gemfile
|
25
|
+
end
|
26
|
+
Jeweler::RubygemsDotOrgTasks.new
|
27
|
+
|
28
|
+
require 'reek/rake/task'
|
29
|
+
Reek::Rake::Task.new do |t|
|
30
|
+
t.fail_on_error = true
|
31
|
+
t.verbose = false
|
32
|
+
t.source_files = 'lib/**/*.rb'
|
33
|
+
end
|
34
|
+
|
35
|
+
require 'yard'
|
36
|
+
YARD::Rake::YardocTask.new
|
data/VERSION
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
0.2.0
|
@@ -0,0 +1,152 @@
|
|
1
|
+
require 'fileutils'
|
2
|
+
require 'versionomy'
|
3
|
+
require 'tmpdir'
|
4
|
+
require 'digest/sha1'
|
5
|
+
|
6
|
+
class NotQuiteSubmodules
|
7
|
+
class << self
|
8
|
+
# Update configuration repository every day
|
9
|
+
UPDATE_INTERVAL = 60 * 60 * 24
|
10
|
+
|
11
|
+
def initialize(repository, target_path, args = {})
|
12
|
+
args[:target_path] = target_path
|
13
|
+
|
14
|
+
if args[:temp_path].nil?
|
15
|
+
tmp_name = (Digest::SHA1.hexdigest repository)
|
16
|
+
args[:temp_path] = "#{Dir.tmpdir}/#{tmp_name[0..8]}"
|
17
|
+
end
|
18
|
+
|
19
|
+
if !File.directory? args[:temp_path]
|
20
|
+
clone_repository(repository, args[:temp_path])
|
21
|
+
elsif repository_needs_update?(args[:temp_path])
|
22
|
+
update_repository(args[:temp_path])
|
23
|
+
end
|
24
|
+
|
25
|
+
tags = get_repository_tags(args[:temp_path]).map { |x| Versionomy.parse(x) }.sort
|
26
|
+
if configuration_needs_update?(args[:temp_path], tags)
|
27
|
+
update_target_path(args[:temp_path], args[:target_path], tags)
|
28
|
+
end
|
29
|
+
end
|
30
|
+
|
31
|
+
private
|
32
|
+
|
33
|
+
def configuration_needs_update?(temp_path, tags)
|
34
|
+
return true if !ENV["FORCE_UPDATE"].nil?
|
35
|
+
current_tag = get_current_tag(temp_path)
|
36
|
+
return true if current_tag.nil?
|
37
|
+
current_tag < tags.last
|
38
|
+
end
|
39
|
+
|
40
|
+
# Checks out the latest tag and copies all files to the target path.
|
41
|
+
def update_target_path(temp_path, target_path, tags)
|
42
|
+
update_to = tags.last
|
43
|
+
tell("About to update target path to tag '#{update_to}'")
|
44
|
+
|
45
|
+
in_dir_do(temp_path) do
|
46
|
+
execute_command("git checkout #{update_to}")
|
47
|
+
end
|
48
|
+
set_current_tag(temp_path, update_to)
|
49
|
+
tell("Updated to '#{update_to}'")
|
50
|
+
|
51
|
+
tell("Copying updated files to '#{target_path}'")
|
52
|
+
execute_command("cp -rf #{temp_path}/* #{target_path}")
|
53
|
+
|
54
|
+
write_gitignore(temp_path, target_path)
|
55
|
+
|
56
|
+
tell("Finished updating '#{target_path}' to '#{update_to}'")
|
57
|
+
end
|
58
|
+
|
59
|
+
# Writes a .gitignore file which ignores all files copied from the repository.
|
60
|
+
def write_gitignore(temp_path, target_path)
|
61
|
+
tell("Updating #{target_path}/.gitignore")
|
62
|
+
files = in_dir_do(temp_path) { Dir.glob("*") }
|
63
|
+
files.push(".gitignore")
|
64
|
+
in_dir_do(target_path) do
|
65
|
+
File.open(".gitignore", 'w+') { |f| f.write(files.join("\n")) }
|
66
|
+
end
|
67
|
+
end
|
68
|
+
|
69
|
+
# The file that contains the currently checked out tag (that is, the last tag
|
70
|
+
# whose contents where copied to the configuration directory)
|
71
|
+
def tag_file(temp_path)
|
72
|
+
"#{temp_path}/.CURRENT_TAG"
|
73
|
+
end
|
74
|
+
|
75
|
+
def get_current_tag(temp_path)
|
76
|
+
dir = tag_file(temp_path)
|
77
|
+
return nil if !File.exists?(dir)
|
78
|
+
lines = File.read(dir).split("\n")
|
79
|
+
return nil if lines.length < 1
|
80
|
+
Versionomy.parse(lines.first)
|
81
|
+
end
|
82
|
+
|
83
|
+
def set_current_tag(temp_path, tag)
|
84
|
+
File.open(tag_file(temp_path), 'w+') { |f| f.write(tag) }
|
85
|
+
end
|
86
|
+
|
87
|
+
# Returns an array of tags specified for the cloned configuration repository
|
88
|
+
def get_repository_tags(temp_path)
|
89
|
+
in_dir_do(temp_path) do
|
90
|
+
out = execute_command("git tag")
|
91
|
+
raise "Repository in path #{temp_path} is not a valid Git repository" if $? != 0
|
92
|
+
|
93
|
+
tags = out.split("\n")
|
94
|
+
raise "Repository in path #{temp_path} does not contain any tags!" if tags.length < 1
|
95
|
+
|
96
|
+
tags
|
97
|
+
end
|
98
|
+
end
|
99
|
+
|
100
|
+
def clone_repository(repository, temp_path)
|
101
|
+
tell "Cloning repository #{repository} to #{temp_path}"
|
102
|
+
execute_command("git clone #{repository} #{temp_path}")
|
103
|
+
end
|
104
|
+
|
105
|
+
# Determines if the repository needs to be updated by checking when it was last
|
106
|
+
# touched (by the #update_repository method)
|
107
|
+
def repository_needs_update?(temp_path)
|
108
|
+
return true if !ENV["FORCE_UPDATE"].nil?
|
109
|
+
(Time.now - File.mtime(temp_path)) > UPDATE_INTERVAL
|
110
|
+
end
|
111
|
+
|
112
|
+
# Pull the latest contents (including tags) for the repository
|
113
|
+
def update_repository(temp_path)
|
114
|
+
in_dir_do(temp_path) do
|
115
|
+
tell "Updating local configuration repository at '#{temp_path}'"
|
116
|
+
execute_command("git checkout master")
|
117
|
+
execute_command("git pull origin master --tags")
|
118
|
+
|
119
|
+
head = execute_command("git rev-parse HEAD")[0,8]
|
120
|
+
tell("Updated local configuration repository to #{head}")
|
121
|
+
end
|
122
|
+
execute_command("touch #{temp_path}")
|
123
|
+
end
|
124
|
+
|
125
|
+
def tell(text)
|
126
|
+
if @wrote_banner.nil?
|
127
|
+
puts "[NotQuiteSubmodules]"
|
128
|
+
@wrote_banner = true
|
129
|
+
end
|
130
|
+
|
131
|
+
puts "\t=> #{text}"
|
132
|
+
end
|
133
|
+
|
134
|
+
# Switches to the specified directory, executes the given block and then
|
135
|
+
# switches the working directory back to where it was before.
|
136
|
+
def in_dir_do(temp_path, &block)
|
137
|
+
cwd = Dir.pwd
|
138
|
+
Dir.chdir(temp_path)
|
139
|
+
out = block.call
|
140
|
+
Dir.chdir(cwd)
|
141
|
+
out
|
142
|
+
end
|
143
|
+
|
144
|
+
# Executes the given shell command in the current working directory, and throws an
|
145
|
+
# exception in case the command failed (exit status != 0)
|
146
|
+
def execute_command(command)
|
147
|
+
out = `#{command} 2>&1`
|
148
|
+
raise "There was an error executing '#{command}'. Output: \n #{out} \n" if $? != 0
|
149
|
+
out
|
150
|
+
end
|
151
|
+
end
|
152
|
+
end
|
@@ -0,0 +1,69 @@
|
|
1
|
+
# Generated by jeweler
|
2
|
+
# DO NOT EDIT THIS FILE DIRECTLY
|
3
|
+
# Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
|
4
|
+
# -*- encoding: utf-8 -*-
|
5
|
+
|
6
|
+
Gem::Specification.new do |s|
|
7
|
+
s.name = "not-quite-submodules"
|
8
|
+
s.version = "0.2.0"
|
9
|
+
|
10
|
+
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
|
+
s.authors = ["Lucas Jenss"]
|
12
|
+
s.date = "2013-04-05"
|
13
|
+
s.description = "This gem can be used to automatically clone an update a git repository, relying on tags to see if a newer version of the repository is available."
|
14
|
+
s.email = "lucas@x3ro.de"
|
15
|
+
s.extra_rdoc_files = [
|
16
|
+
"LICENSE.txt",
|
17
|
+
"README.md"
|
18
|
+
]
|
19
|
+
s.files = [
|
20
|
+
".document",
|
21
|
+
"Gemfile",
|
22
|
+
"Gemfile.lock",
|
23
|
+
"LICENSE.txt",
|
24
|
+
"README.md",
|
25
|
+
"Rakefile",
|
26
|
+
"VERSION",
|
27
|
+
"lib/not-quite-submodules.rb",
|
28
|
+
"not-quite-submodules.gemspec"
|
29
|
+
]
|
30
|
+
s.homepage = "http://github.com/x3ro/not-quite-submodules"
|
31
|
+
s.licenses = ["MIT"]
|
32
|
+
s.require_paths = ["lib"]
|
33
|
+
s.rubygems_version = "1.8.24"
|
34
|
+
s.summary = "This gem can be used to automatically clone and update a git repository."
|
35
|
+
|
36
|
+
if s.respond_to? :specification_version then
|
37
|
+
s.specification_version = 3
|
38
|
+
|
39
|
+
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
40
|
+
s.add_runtime_dependency(%q<versionomy>, ["~> 0.4.4"])
|
41
|
+
s.add_development_dependency(%q<rspec>, ["~> 2.8.0"])
|
42
|
+
s.add_development_dependency(%q<yard>, ["~> 0.7"])
|
43
|
+
s.add_development_dependency(%q<rdoc>, ["~> 3.12"])
|
44
|
+
s.add_development_dependency(%q<bundler>, ["~> 1.2.0"])
|
45
|
+
s.add_development_dependency(%q<jeweler>, ["~> 1.8.4"])
|
46
|
+
s.add_development_dependency(%q<simplecov>, [">= 0"])
|
47
|
+
s.add_development_dependency(%q<reek>, ["~> 1.2.8"])
|
48
|
+
else
|
49
|
+
s.add_dependency(%q<versionomy>, ["~> 0.4.4"])
|
50
|
+
s.add_dependency(%q<rspec>, ["~> 2.8.0"])
|
51
|
+
s.add_dependency(%q<yard>, ["~> 0.7"])
|
52
|
+
s.add_dependency(%q<rdoc>, ["~> 3.12"])
|
53
|
+
s.add_dependency(%q<bundler>, ["~> 1.2.0"])
|
54
|
+
s.add_dependency(%q<jeweler>, ["~> 1.8.4"])
|
55
|
+
s.add_dependency(%q<simplecov>, [">= 0"])
|
56
|
+
s.add_dependency(%q<reek>, ["~> 1.2.8"])
|
57
|
+
end
|
58
|
+
else
|
59
|
+
s.add_dependency(%q<versionomy>, ["~> 0.4.4"])
|
60
|
+
s.add_dependency(%q<rspec>, ["~> 2.8.0"])
|
61
|
+
s.add_dependency(%q<yard>, ["~> 0.7"])
|
62
|
+
s.add_dependency(%q<rdoc>, ["~> 3.12"])
|
63
|
+
s.add_dependency(%q<bundler>, ["~> 1.2.0"])
|
64
|
+
s.add_dependency(%q<jeweler>, ["~> 1.8.4"])
|
65
|
+
s.add_dependency(%q<simplecov>, [">= 0"])
|
66
|
+
s.add_dependency(%q<reek>, ["~> 1.2.8"])
|
67
|
+
end
|
68
|
+
end
|
69
|
+
|
metadata
ADDED
@@ -0,0 +1,188 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: not-quite-submodules
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.2.0
|
5
|
+
prerelease:
|
6
|
+
platform: ruby
|
7
|
+
authors:
|
8
|
+
- Lucas Jenss
|
9
|
+
autorequire:
|
10
|
+
bindir: bin
|
11
|
+
cert_chain: []
|
12
|
+
date: 2013-04-05 00:00:00.000000000 Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
15
|
+
name: versionomy
|
16
|
+
requirement: !ruby/object:Gem::Requirement
|
17
|
+
none: false
|
18
|
+
requirements:
|
19
|
+
- - ~>
|
20
|
+
- !ruby/object:Gem::Version
|
21
|
+
version: 0.4.4
|
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: 0.4.4
|
30
|
+
- !ruby/object:Gem::Dependency
|
31
|
+
name: rspec
|
32
|
+
requirement: !ruby/object:Gem::Requirement
|
33
|
+
none: false
|
34
|
+
requirements:
|
35
|
+
- - ~>
|
36
|
+
- !ruby/object:Gem::Version
|
37
|
+
version: 2.8.0
|
38
|
+
type: :development
|
39
|
+
prerelease: false
|
40
|
+
version_requirements: !ruby/object:Gem::Requirement
|
41
|
+
none: false
|
42
|
+
requirements:
|
43
|
+
- - ~>
|
44
|
+
- !ruby/object:Gem::Version
|
45
|
+
version: 2.8.0
|
46
|
+
- !ruby/object:Gem::Dependency
|
47
|
+
name: yard
|
48
|
+
requirement: !ruby/object:Gem::Requirement
|
49
|
+
none: false
|
50
|
+
requirements:
|
51
|
+
- - ~>
|
52
|
+
- !ruby/object:Gem::Version
|
53
|
+
version: '0.7'
|
54
|
+
type: :development
|
55
|
+
prerelease: false
|
56
|
+
version_requirements: !ruby/object:Gem::Requirement
|
57
|
+
none: false
|
58
|
+
requirements:
|
59
|
+
- - ~>
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '0.7'
|
62
|
+
- !ruby/object:Gem::Dependency
|
63
|
+
name: rdoc
|
64
|
+
requirement: !ruby/object:Gem::Requirement
|
65
|
+
none: false
|
66
|
+
requirements:
|
67
|
+
- - ~>
|
68
|
+
- !ruby/object:Gem::Version
|
69
|
+
version: '3.12'
|
70
|
+
type: :development
|
71
|
+
prerelease: false
|
72
|
+
version_requirements: !ruby/object:Gem::Requirement
|
73
|
+
none: false
|
74
|
+
requirements:
|
75
|
+
- - ~>
|
76
|
+
- !ruby/object:Gem::Version
|
77
|
+
version: '3.12'
|
78
|
+
- !ruby/object:Gem::Dependency
|
79
|
+
name: bundler
|
80
|
+
requirement: !ruby/object:Gem::Requirement
|
81
|
+
none: false
|
82
|
+
requirements:
|
83
|
+
- - ~>
|
84
|
+
- !ruby/object:Gem::Version
|
85
|
+
version: 1.2.0
|
86
|
+
type: :development
|
87
|
+
prerelease: false
|
88
|
+
version_requirements: !ruby/object:Gem::Requirement
|
89
|
+
none: false
|
90
|
+
requirements:
|
91
|
+
- - ~>
|
92
|
+
- !ruby/object:Gem::Version
|
93
|
+
version: 1.2.0
|
94
|
+
- !ruby/object:Gem::Dependency
|
95
|
+
name: jeweler
|
96
|
+
requirement: !ruby/object:Gem::Requirement
|
97
|
+
none: false
|
98
|
+
requirements:
|
99
|
+
- - ~>
|
100
|
+
- !ruby/object:Gem::Version
|
101
|
+
version: 1.8.4
|
102
|
+
type: :development
|
103
|
+
prerelease: false
|
104
|
+
version_requirements: !ruby/object:Gem::Requirement
|
105
|
+
none: false
|
106
|
+
requirements:
|
107
|
+
- - ~>
|
108
|
+
- !ruby/object:Gem::Version
|
109
|
+
version: 1.8.4
|
110
|
+
- !ruby/object:Gem::Dependency
|
111
|
+
name: simplecov
|
112
|
+
requirement: !ruby/object:Gem::Requirement
|
113
|
+
none: false
|
114
|
+
requirements:
|
115
|
+
- - ! '>='
|
116
|
+
- !ruby/object:Gem::Version
|
117
|
+
version: '0'
|
118
|
+
type: :development
|
119
|
+
prerelease: false
|
120
|
+
version_requirements: !ruby/object:Gem::Requirement
|
121
|
+
none: false
|
122
|
+
requirements:
|
123
|
+
- - ! '>='
|
124
|
+
- !ruby/object:Gem::Version
|
125
|
+
version: '0'
|
126
|
+
- !ruby/object:Gem::Dependency
|
127
|
+
name: reek
|
128
|
+
requirement: !ruby/object:Gem::Requirement
|
129
|
+
none: false
|
130
|
+
requirements:
|
131
|
+
- - ~>
|
132
|
+
- !ruby/object:Gem::Version
|
133
|
+
version: 1.2.8
|
134
|
+
type: :development
|
135
|
+
prerelease: false
|
136
|
+
version_requirements: !ruby/object:Gem::Requirement
|
137
|
+
none: false
|
138
|
+
requirements:
|
139
|
+
- - ~>
|
140
|
+
- !ruby/object:Gem::Version
|
141
|
+
version: 1.2.8
|
142
|
+
description: This gem can be used to automatically clone an update a git repository,
|
143
|
+
relying on tags to see if a newer version of the repository is available.
|
144
|
+
email: lucas@x3ro.de
|
145
|
+
executables: []
|
146
|
+
extensions: []
|
147
|
+
extra_rdoc_files:
|
148
|
+
- LICENSE.txt
|
149
|
+
- README.md
|
150
|
+
files:
|
151
|
+
- .document
|
152
|
+
- Gemfile
|
153
|
+
- Gemfile.lock
|
154
|
+
- LICENSE.txt
|
155
|
+
- README.md
|
156
|
+
- Rakefile
|
157
|
+
- VERSION
|
158
|
+
- lib/not-quite-submodules.rb
|
159
|
+
- not-quite-submodules.gemspec
|
160
|
+
homepage: http://github.com/x3ro/not-quite-submodules
|
161
|
+
licenses:
|
162
|
+
- MIT
|
163
|
+
post_install_message:
|
164
|
+
rdoc_options: []
|
165
|
+
require_paths:
|
166
|
+
- lib
|
167
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
168
|
+
none: false
|
169
|
+
requirements:
|
170
|
+
- - ! '>='
|
171
|
+
- !ruby/object:Gem::Version
|
172
|
+
version: '0'
|
173
|
+
segments:
|
174
|
+
- 0
|
175
|
+
hash: -4333987324619040065
|
176
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
177
|
+
none: false
|
178
|
+
requirements:
|
179
|
+
- - ! '>='
|
180
|
+
- !ruby/object:Gem::Version
|
181
|
+
version: '0'
|
182
|
+
requirements: []
|
183
|
+
rubyforge_project:
|
184
|
+
rubygems_version: 1.8.24
|
185
|
+
signing_key:
|
186
|
+
specification_version: 3
|
187
|
+
summary: This gem can be used to automatically clone and update a git repository.
|
188
|
+
test_files: []
|