falkorlib 0.6.6 → 0.6.7
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/README.md +1 -1
- data/lib/falkorlib/bootstrap/base.rb +12 -2
- data/lib/falkorlib/version.rb +1 -1
- data/templates/README/header_readme.erb +13 -2
- data/templates/README/readme_git.erb +0 -4
- data/templates/README/readme_gitflow.erb +1 -1
- data/templates/README/readme_issues.erb +3 -0
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 69d6da4ea0df7c70d04ef5b74a00d0e2e4c1650d
|
4
|
+
data.tar.gz: 95d491943922754d53bfb824045c21225c473841
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 53e2258b6e48fca7a1572a918f6b6189a029ff5b9747e0dacd7f4f17585a3ba8bef83749a40a32a949388209569622f40d9a06818929a51e12417c48718dd047
|
7
|
+
data.tar.gz: 06b48ac7fb8fee671faaec11d34644b090bfe079dcb088f215ac9ee2969300d643f3caed1b54f6fc6732adc296364857e6fff8b216b854db97ddd3b54a647f02
|
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
@@ -14,7 +14,7 @@
|
|
14
14
|
|_| \__,_|_|_|\_\___/|_| |_____|_|_.__/
|
15
15
|
|
16
16
|
|
17
|
-
Copyright (c) 2012-
|
17
|
+
Copyright (c) 2012-2016 Sebastien Varrette <Sebastien.Varrette@uni.lu>
|
18
18
|
|
19
19
|
Sebastien Varrette aka Falkor's Common library to share Ruby code and `{rake,cap}`
|
20
20
|
tasks.
|
@@ -1,6 +1,6 @@
|
|
1
1
|
# -*- encoding: utf-8 -*-
|
2
2
|
################################################################################
|
3
|
-
# Time-stamp: <
|
3
|
+
# Time-stamp: <Thu 2016-02-04 00:39 svarrette>
|
4
4
|
################################################################################
|
5
5
|
# Interface for the main Bootstrapping operations
|
6
6
|
#
|
@@ -201,6 +201,16 @@ module FalkorLib
|
|
201
201
|
exit_status = (File.exists?(file) and `cat #{file}`.chomp == g) ? 0 : 1
|
202
202
|
FalkorLib::Git.add(File.join(rootdir, files[:gemsetfile])) if use_git
|
203
203
|
end
|
204
|
+
# ==== Gemfile ===
|
205
|
+
gemfile = File.join(rootdir, 'Gemfile')
|
206
|
+
unless File.exists?( gemfile )
|
207
|
+
run %{ bundle init }
|
208
|
+
info " ==> configuring Gemfile with Falkorlib"
|
209
|
+
File.open( gemfile, 'a') do |f|
|
210
|
+
f.puts "gem 'falkorlib' #, :path => '~/git/github.com/Falkor/falkorlib'"
|
211
|
+
end
|
212
|
+
FalkorLib::Git.add(gemfile) if use_git
|
213
|
+
end
|
204
214
|
exit_status
|
205
215
|
end # rvm
|
206
216
|
|
@@ -393,7 +403,6 @@ module FalkorLib
|
|
393
403
|
else
|
394
404
|
config[:name] = ask("\tProject name: ", name) unless options[:name]
|
395
405
|
end
|
396
|
-
|
397
406
|
# Type of project
|
398
407
|
config[:type] << :latex if options[:latex]
|
399
408
|
if config[:type].empty?
|
@@ -461,6 +470,7 @@ module FalkorLib
|
|
461
470
|
[ :latex ].each do |type|
|
462
471
|
erbfiles << "readme_#{type}.erb" if options[type.to_sym] and File.exist?( File.join(templatedir, "readme_#{type}.erb"))
|
463
472
|
end
|
473
|
+
erbfiles << "readme_issues.erb"
|
464
474
|
erbfiles << "readme_git.erb" if FalkorLib::Git.init?(dir)
|
465
475
|
erbfiles << "readme_gitflow.erb" if FalkorLib::GitFlow.init?(dir)
|
466
476
|
erbfiles << "readme_rvm.erb" if config[:type].include?(:rvm)
|
data/lib/falkorlib/version.rb
CHANGED
@@ -5,7 +5,7 @@
|
|
5
5
|
<% end %>
|
6
6
|
![By <%= config[:by] %>](https://img.shields.io/badge/by-<%= config[:by] %>-blue.svg) [![<%= config[:forge] %>](https://img.shields.io/badge/git-<%= config[:forge] %>-lightgray.svg)](<%= config[:source] %>) [![Issues](https://img.shields.io/badge/issues-<%= config[:forge] %>-green.svg)](<%= config[:issues_url] %>)
|
7
7
|
|
8
|
-
Time-stamp: <
|
8
|
+
Time-stamp: <Thu 2016-02-04 00:34 svarrette>
|
9
9
|
|
10
10
|
<%= ::Artii::Base.new().asciify( config[:name] ).split("\n").join("\n ") %>
|
11
11
|
Copyright (c) <%= Time.now.year %> <%= config[:author] %> <<%= config[:mail] %>>
|
@@ -29,13 +29,24 @@ This repository is hosted on [<%= FalkorLib::Config::Bootstrap::DEFAULTS[:forge]
|
|
29
29
|
$> cd ~/git/<%= FalkorLib::Config::Bootstrap::DEFAULTS[:forge][ config[:forge].to_sym ][:url] %>/<%= config[:by] %>
|
30
30
|
$> git clone <%= config[:origin] %>
|
31
31
|
|
32
|
+
<% if config[:type].include?( :rvm ) %>
|
33
|
+
Now ensure [RVM](https://rvm.io/) is correctly configured for this repository:
|
34
|
+
|
35
|
+
$> rvm current
|
36
|
+
|
37
|
+
Configure the dependencies detailed in the [`Gemfile`](Gemfile) through the [Bundler](http://bundler.io/):
|
38
|
+
|
39
|
+
$> gem install bundler
|
40
|
+
$> bundle install
|
41
|
+
$> rake -T # should work ;)
|
42
|
+
<% end %>
|
43
|
+
|
32
44
|
**`/!\ IMPORTANT`**: Once cloned, initiate your local copy of the repository by running:
|
33
45
|
|
34
46
|
$> cd <%= name.downcase %>
|
35
47
|
<% if options[:make] %>
|
36
48
|
$> make setup
|
37
49
|
<% else %>
|
38
|
-
$> gem install rake # the very first time
|
39
50
|
$> rake setup
|
40
51
|
<% end %>
|
41
52
|
|
@@ -35,7 +35,7 @@ For more information on the version, run:
|
|
35
35
|
|
36
36
|
If a new version number such be bumped, you simply have to run:
|
37
37
|
|
38
|
-
$> <%= options[:make] ? 'make start_bump_{major,minor,patch}' : 'rake version:{major,minor,patch}' %>
|
38
|
+
$> <%= options[:make] ? 'make start_bump_{major,minor,patch}' : 'rake version:bump:{major,minor,patch}' %>
|
39
39
|
|
40
40
|
This will start the release process for you using `git-flow`.
|
41
41
|
Once you have finished to commit your last changes, make the release effective by running:
|
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.6.
|
4
|
+
version: 0.6.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sebastien Varrette
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-02-
|
11
|
+
date: 2016-02-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|
@@ -409,6 +409,7 @@ files:
|
|
409
409
|
- templates/README/readme_gem.erb
|
410
410
|
- templates/README/readme_git.erb
|
411
411
|
- templates/README/readme_gitflow.erb
|
412
|
+
- templates/README/readme_issues.erb
|
412
413
|
- templates/README/readme_latex.erb
|
413
414
|
- templates/README/readme_rvm.erb
|
414
415
|
- templates/Rakefile/footer_rakefile.erb
|