jplugin 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -7,7 +7,7 @@
7
7
  <title><%= name %> demo</title>
8
8
 
9
9
  <script src="http://www.google.com/jsapi?key="></script>
10
- <script type="text/javascript">
10
+ <script>
11
11
  google.load("jquery", "1");
12
12
  </script>
13
13
  <script src="<%= name %>-min.js"></script>
@@ -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",".min.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
- git_status = run( '[[ $(git diff --shortstat 2> /dev/null | tail -n1) != "" ]] && echo "dirty"', :capture => true )
85
+ say( 'Your git branch is not clean', :red )
83
86
 
84
87
  end
85
88
  end
@@ -1,3 +1,3 @@
1
1
  module Jplugin
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.3"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jplugin
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: