nake 0.0.2 → 0.0.3.pre
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG +3 -0
- data/examples/configuration.rb +1 -1
- data/lib/nake.rb +1 -1
- data/lib/nake/helpers.rb +9 -7
- data/lib/nake/tasks/release.rb +1 -1
- data/lib/nake/tasks/spec.rb +1 -1
- metadata +5 -6
data/CHANGELOG
CHANGED
data/examples/configuration.rb
CHANGED
data/lib/nake.rb
CHANGED
data/lib/nake/helpers.rb
CHANGED
@@ -1,17 +1,19 @@
|
|
1
1
|
# encoding: utf-8
|
2
2
|
|
3
3
|
require "fileutils"
|
4
|
-
require "open3"
|
5
4
|
|
6
5
|
module Nake
|
7
6
|
module TaskHelpers
|
8
7
|
include FileUtils
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
8
|
+
alias_method :run, :`
|
9
|
+
|
10
|
+
# return true if process suceeded, false otherwise
|
11
|
+
# sh "ls -a"
|
12
|
+
# sh "ls", "-a"
|
13
|
+
def sh(*parts)
|
14
|
+
puts "#{"$".magenta} #{parts.join(" ").cyan}"
|
15
|
+
run "#{parts.shift} #{parts.join(" ")}"
|
16
|
+
$?.success?
|
15
17
|
end
|
16
18
|
end
|
17
19
|
end
|
data/lib/nake/tasks/release.rb
CHANGED
@@ -7,7 +7,7 @@ require "nake/tasks/gem"
|
|
7
7
|
task(:release, "release:tag", "release:gemcutter").tap do |task|
|
8
8
|
task.description = "Release current version version"
|
9
9
|
task.define do
|
10
|
-
puts "Version #{version} was successfuly published. Don't forget to increase VERSION constant!"
|
10
|
+
puts "Version #{task.config[:version]} was successfuly published. Don't forget to increase VERSION constant!"
|
11
11
|
end
|
12
12
|
end
|
13
13
|
|
data/lib/nake/tasks/spec.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: nake
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.3.pre
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- "Jakub \xC5\xA0\xC5\xA5astn\xC3\xBD aka Botanicus"
|
@@ -76,9 +76,8 @@ has_rdoc: true
|
|
76
76
|
homepage: http://github.com/botanicus/nake
|
77
77
|
licenses: []
|
78
78
|
|
79
|
-
post_install_message:
|
80
|
-
|
81
|
-
- Support for configuration
|
79
|
+
post_install_message: "=== Changes in the last Nake ===\n\
|
80
|
+
- "
|
82
81
|
rdoc_options: []
|
83
82
|
|
84
83
|
require_paths:
|
@@ -91,9 +90,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
91
90
|
version:
|
92
91
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
93
92
|
requirements:
|
94
|
-
- - "
|
93
|
+
- - ">"
|
95
94
|
- !ruby/object:Gem::Version
|
96
|
-
version:
|
95
|
+
version: 1.3.1
|
97
96
|
version:
|
98
97
|
requirements: []
|
99
98
|
|