jplugin 0.0.2 → 0.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -4,7 +4,7 @@ class Jplugin < Thor
|
|
4
4
|
desc "compile", "Compiles js file to public/"
|
5
5
|
def compile
|
6
6
|
relative = '<%= name %>.js'
|
7
|
-
run( "closure --js #{relative} --js_output_file ./public/#{relative.gsub(".js","
|
7
|
+
run( "closure --js #{relative} --js_output_file ./public/#{relative.gsub(".js","-min.js")}" )
|
8
8
|
end
|
9
9
|
|
10
10
|
class Release < self
|
@@ -47,6 +47,7 @@ class Jplugin < Thor
|
|
47
47
|
label, version = *match.split(':', 2)
|
48
48
|
parts = version.strip.split('.')
|
49
49
|
parts[1] = parts[1].to_i + 1
|
50
|
+
parts[2] = 0
|
50
51
|
"#{label}: #{parts.join('.')}"
|
51
52
|
end
|
52
53
|
|
@@ -72,6 +73,8 @@ class Jplugin < Thor
|
|
72
73
|
label, version = *match.split(':', 2)
|
73
74
|
parts = version.strip.split('.')
|
74
75
|
parts[0] = parts[0].to_i + 1
|
76
|
+
parts[1] = 0
|
77
|
+
parts[2] = 0
|
75
78
|
"#{label}: #{parts.join('.')}"
|
76
79
|
end
|
77
80
|
|
@@ -79,7 +82,7 @@ class Jplugin < Thor
|
|
79
82
|
run( "git tag -a v#{parts.join('.')} -m '#{label}: #{parts.join('.')}'")
|
80
83
|
|
81
84
|
else
|
82
|
-
|
85
|
+
say( 'Your git branch is not clean', :red )
|
83
86
|
|
84
87
|
end
|
85
88
|
end
|
data/lib/jplugin/version.rb
CHANGED