jumbler 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGELOG.md CHANGED
@@ -1,12 +1,19 @@
1
+ ## 0.0.3 - December 21, 2012
2
+
3
+ - Added ability to specify path to java executable
4
+ - Added ability specify input path
5
+ - Added ability to specify output file name and directory
6
+ - Added help and version
7
+ - Corrected dependencies for cross platform installation
8
+
1
9
  ## 0.0.2 - December 18, 2012
2
10
 
3
11
  - Added Rake
4
12
  - Added Bundle
5
13
  - Added version file
6
- - Corrected dependencies for corss platform installation
7
14
 
8
15
  ## 0.0.1 - December 17, 2012
9
16
 
10
17
  ### Bug Fix
11
18
 
12
- - Google Closure Compiler is now included with gem
19
+ - Google Closure Compiler is now included with gem
data/TODO.md CHANGED
@@ -1,7 +1,6 @@
1
- ## 0.0.3
1
+ ## 0.0.4
2
2
 
3
3
  - Add ignore list
4
- - Add ability specify input path
5
- - Add ability to specify output file name and directory
6
4
  - Add tests
7
- - Refine output messages
5
+ - Refine output messages
6
+ - Fix delete all files fatal error
data/jumbler.gemspec CHANGED
@@ -10,7 +10,11 @@ Gem::Specification.new do |gemspec|
10
10
  gemspec.version = Jumbler::VERSION
11
11
  gemspec.date = Date.today
12
12
  gemspec.summary = "Jumbler JS Combiner"
13
- gemspec.description = "Uses Googles Closure Compiler to combine JS files into a single, better formed javascript"
13
+ gemspec.description = "Jumbler is an application used to watch folders containg javascript
14
+ and pass them to Googles closure compiler upon modification
15
+ resulting in a minified, better formed javascript file in a specified directory
16
+
17
+ Inspired by Compass and Google's Closure Compiler"
14
18
  gemspec.authors = ["Adam Cox"]
15
19
  gemspec.email = "adamdama@hotmail.com"
16
20
  gemspec.homepage = "https://github.com/adamdama/jumbler"
@@ -22,6 +26,7 @@ Gem::Specification.new do |gemspec|
22
26
 
23
27
  gemspec.add_dependency "listen", "~> 0.6.0"
24
28
  gemspec.add_dependency "rake"
29
+ gemspec.add_dependency "trollop"
25
30
 
26
31
  # OS specific listen dependencies
27
32
  gemspec.add_dependency 'rb-kqueue', '~> 0.2' if RbConfig::CONFIG['target_os'] =~ /freebsd/i
data/lib/jumbler.rb CHANGED
@@ -11,31 +11,26 @@
11
11
  # Requires java to be add to PATH
12
12
  #
13
13
 
14
- # require bundler
15
- require "rubygems"
16
- require "bundler/setup"
17
-
18
14
  # application requirements
19
- Bundler.require(:default, :development)
20
15
  require "listen"
21
16
  require "find"
22
- #require "debugger"
23
17
 
24
18
  require "jumbler/version"
25
19
 
26
20
  class Jumbler
27
21
  # initialize jumbler
28
- def initialize args
22
+ def initialize args
29
23
  @gcc_path = File.join(File.dirname(__FILE__),"gcc","compiler.jar")
30
- @java_exec = "java"
24
+ @java_exec = args.java_exec
31
25
 
32
26
  @current_dir = Dir.pwd
33
- @watch_dir = @current_dir
34
- @output_file = File.join(@watch_dir, "jumbled.min.js")
27
+ @watch_dir = args.watch_folder
28
+ @output_file = args.output_file
29
+
35
30
  # get all js files to be comiled
36
31
  @js_file_paths = self.get_js @watch_dir
37
32
 
38
- puts "Jumbler is now looking for changes"
33
+ puts "jumbler is now looking for changes"
39
34
  # listen to the specified folder for changes to js files
40
35
  @listener = Listen.to(@watch_dir, :relative_paths => true, :filter => /\.js$/, :ignore => %r{ignored/path/}) do |modified, added, removed|
41
36
  puts "changes detected"
@@ -1,3 +1,3 @@
1
1
  class Jumbler
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.3"
3
3
  end
data/readme.md CHANGED
@@ -2,11 +2,11 @@
2
2
 
3
3
  Jumbler is an application used to watch folders containg javascript
4
4
  and pass them to Googles closure compiler upon modification
5
- resulting in a minified file in a specified directory
5
+ resulting in a minified, better formed javascript file in a specified directory
6
6
 
7
7
  Inspired by Compass and Google's Closure Compiler
8
8
 
9
- ##Uses
9
+ ## Uses
10
10
 
11
11
  * [Listen](http://github.com/guard/listen)
12
12
  * [Google Closure Compiler](http://google.com/closure/compiler)
@@ -14,7 +14,6 @@ Inspired by Compass and Google's Closure Compiler
14
14
  ## Requirements
15
15
 
16
16
  * Java
17
- * java must be accessible from command line i.e. added to PATH
18
17
 
19
18
  ## Install
20
19
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jumbler
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:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-12-18 00:00:00.000000000 Z
12
+ date: 2013-01-07 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: listen
@@ -43,6 +43,22 @@ dependencies:
43
43
  - - ! '>='
44
44
  - !ruby/object:Gem::Version
45
45
  version: '0'
46
+ - !ruby/object:Gem::Dependency
47
+ name: trollop
48
+ requirement: !ruby/object:Gem::Requirement
49
+ none: false
50
+ requirements:
51
+ - - ! '>='
52
+ - !ruby/object:Gem::Version
53
+ version: '0'
54
+ type: :runtime
55
+ prerelease: false
56
+ version_requirements: !ruby/object:Gem::Requirement
57
+ none: false
58
+ requirements:
59
+ - - ! '>='
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
46
62
  - !ruby/object:Gem::Dependency
47
63
  name: wdm
48
64
  requirement: !ruby/object:Gem::Requirement
@@ -91,8 +107,14 @@ dependencies:
91
107
  - - ! '>='
92
108
  - !ruby/object:Gem::Version
93
109
  version: '0'
94
- description: Uses Googles Closure Compiler to combine JS files into a single, better
95
- formed javascript
110
+ description: ! 'Jumbler is an application used to watch folders containg javascript
111
+
112
+ and pass them to Googles closure compiler upon modification
113
+
114
+ resulting in a minified, better formed javascript file in a specified directory
115
+
116
+
117
+ Inspired by Compass and Google''s Closure Compiler'
96
118
  email: adamdama@hotmail.com
97
119
  executables:
98
120
  - jumbler