falkorlib 0.2.13 → 0.2.14
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/falkorlib/tasks.rb +31 -10
- data/lib/falkorlib/tasks/git.rake +7 -1
- data/lib/falkorlib/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8cc5627deb8b83f3ed313ad7b626c6457e6fb6ff
|
4
|
+
data.tar.gz: dd1479d4c151e34ad9e47d8c66501cd12c880858
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ee60291bf3174e2f78f20ed0eff59bbc4710c5f76361910a404e550c59a77ce37708b362746063cdffb1d456f5be70523ed5d5c271f033c93d0dee9930e61cd1
|
7
|
+
data.tar.gz: 57175ba8f39b1e3b218e2d16f0159ae14d003b86c0b3125a562b6d21aedbf35cbb9ff12ddb62a1b0a7cd4ba96b1dfea886869e65a824860de11d0e8a9ea91914
|
data/Gemfile.lock
CHANGED
data/lib/falkorlib/tasks.rb
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# -*- encoding: utf-8 -*-
|
2
2
|
################################################################################
|
3
|
-
# Time-stamp: <
|
3
|
+
# Time-stamp: <Mer 2014-08-20 16:55 svarrette>
|
4
4
|
################################################################################
|
5
5
|
#
|
6
6
|
# Default FalkorLib rake tasks
|
@@ -25,21 +25,42 @@ end # namespace falkorlib
|
|
25
25
|
|
26
26
|
|
27
27
|
#.....................
|
28
|
-
namespace :
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
info "#{t.comment}"
|
28
|
+
namespace :bootstrap do
|
29
|
+
########### bootstrap:bundler ###########
|
30
|
+
task :bundler do
|
31
|
+
info "Bootstrap Bundler -- see http://bundler.io/"
|
32
|
+
error "Unable to find the 'bundle' command" unless command?('bundle')
|
34
33
|
run %{ bundle }
|
35
|
-
end
|
34
|
+
end
|
35
|
+
|
36
|
+
########### rvm ###########
|
37
|
+
task :rvm do
|
38
|
+
info "Boostrap RVM for this repository -- see https://rvm.io"
|
39
|
+
error "RVM is not installed -- see https://rvm.io/rvm/install for instructions" unless command?('rvm')
|
40
|
+
['version', 'gemset'].each do |t|
|
41
|
+
error "unable to find the .ruby-#{t} file" unless File.exists?(".ruby-#{t}")
|
42
|
+
end
|
43
|
+
info "=> initialize RVM -- see http://rvm.io"
|
44
|
+
run %{ rvm install `cat .ruby-version` }
|
45
|
+
|
46
|
+
#rvmenv = %x( rvm env --path -- `cat .ruby-version`@`cat .ruby-gemset`)
|
47
|
+
info "=> Force reloading RVM configuration within $PWD"
|
48
|
+
run %{
|
49
|
+
bash -l -c 'rvm use `cat .ruby-version`'
|
50
|
+
bash -l -c 'rvm gemset use `cat .ruby-gemset`'
|
51
|
+
bash -l -c 'rvm list && rvm gemset list'
|
52
|
+
}
|
53
|
+
|
54
|
+
info "=> installing the Bundler gem -- see http://bundler.io"
|
55
|
+
run %{ gem install bundler }
|
56
|
+
end
|
36
57
|
|
58
|
+
end # namespace bootstrap
|
37
59
|
|
38
|
-
end # namespace bundle
|
39
60
|
|
40
61
|
########### setup ###########
|
41
62
|
desc "Setup the repository"
|
42
|
-
task :setup => [ '
|
63
|
+
task :setup => ['bootstrap:rvm', 'bootstrap:bundler']
|
43
64
|
|
44
65
|
|
45
66
|
# Empty task debug
|
@@ -1,7 +1,7 @@
|
|
1
1
|
# -*- encoding: utf-8 -*-
|
2
2
|
################################################################################
|
3
3
|
# git.rake - Special tasks for the management of Git operations
|
4
|
-
# Time-stamp: <
|
4
|
+
# Time-stamp: <Mer 2014-08-20 17:17 svarrette>
|
5
5
|
#
|
6
6
|
# Copyright (c) 2014 Sebastien Varrette <Sebastien.Varrette@uni.lu>
|
7
7
|
# http://varrette.gforge.uni.lu
|
@@ -123,3 +123,9 @@ namespace :git do
|
|
123
123
|
end # namespace git
|
124
124
|
|
125
125
|
task :setup => [ 'git:init' ]
|
126
|
+
unless FalkorLib.config.git[:submodules].empty?
|
127
|
+
task :setup => [ 'git:submodules:init' ]
|
128
|
+
end
|
129
|
+
unless FalkorLib.config.git[:subtrees].empty?
|
130
|
+
task :setup => [ 'git:subtrees:init' ]
|
131
|
+
end
|
data/lib/falkorlib/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: falkorlib
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.14
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sebastien Varrette
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-08-
|
11
|
+
date: 2014-08-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|