jim 0.3.0 → 0.3.1

Sign up to get free protection for your applications and to get access to all the features.
data/HISTORY CHANGED
@@ -1,4 +1,4 @@
1
- == 0.3.0.pre [11-21-10]
1
+ == 0.3.1 [02-28-11]
2
2
 
3
3
  * Major rewrite of the bundler
4
4
  * Jimfile is now a JSON formatted file
@@ -10,6 +10,7 @@
10
10
  * Jim::Rack has tests (thanks collin for the start)
11
11
  * Jim::Rack works with multiple bundles
12
12
  * `jim watch` uses FSSM to watch the directory and re-bundle on changes. (Thanks manalang)
13
+ * `jim update_jimfile` upgrades the jimfile to the new JSON format
13
14
 
14
15
  == 0.2.3 [09-26-10]
15
16
 
data/jim.gemspec CHANGED
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{jim}
8
- s.version = "0.3.0"
8
+ s.version = "0.3.1"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Aaron Quint"]
12
- s.date = %q{2011-02-28}
12
+ s.date = %q{2011-03-01}
13
13
  s.default_executable = %q{jim}
14
14
  s.description = %q{jim is your friendly javascript library manager. He downloads, stores, bundles, vendors and compresses.}
15
15
  s.email = %q{aaron@quirkey.com}
data/lib/jim.rb CHANGED
@@ -5,7 +5,7 @@ require 'version_sorter'
5
5
  require 'digest/md5'
6
6
 
7
7
  module Jim
8
- VERSION = '0.3.0'
8
+ VERSION = '0.3.1'
9
9
 
10
10
  class Error < RuntimeError; end
11
11
  class InstallError < Error; end
data/lib/jim/bundler.rb CHANGED
@@ -83,9 +83,9 @@ module Jim
83
83
  }.merge(options)
84
84
  h['bundles'] = {}
85
85
  self.bundles.each do |bundle_name, requirements|
86
- h['bundles']['bundle_name'] = []
86
+ h['bundles'][bundle_name] = []
87
87
  requirements.each do |name, version|
88
- h['bundles']['bundle_name'] << if version.nil? || version.strip == ''
88
+ h['bundles'][bundle_name] << if version.nil? || version.strip == ''
89
89
  name
90
90
  else
91
91
  [name, version]
data/lib/jim/installer.rb CHANGED
@@ -43,7 +43,7 @@ module Jim
43
43
  # Fetch the file at fetch_path with and stage into a tmp directory.
44
44
  # Returns the staged directory of fetched file(s).
45
45
  def fetch
46
- logger.info "Fetching #{fetch_path}"
46
+ logger.debug "Fetching #{fetch_path}"
47
47
  @fetched_path = Downlow.get(fetch_path, tmp_path, :tmp_dir => tmp_root)
48
48
  logger.debug "Fetched #{@fetched_path}"
49
49
  @fetched_path
@@ -87,10 +87,10 @@ module Jim
87
87
  :package_json => package_json.merge("name" => nil)
88
88
  })
89
89
  Jim.each_path_in_directories([@fetched_path], '.js', IGNORE_DIRS) do |subfile|
90
- logger.info "Found file #{subfile}"
90
+ logger.debug "Found file #{subfile}"
91
91
  installed_paths << Jim::Installer.new(subfile, install_path, sub_options).install
92
92
  end
93
- logger.info "Extracted to #{install_path}, #{installed_paths.length} file(s)"
93
+ logger.debug "Extracted to #{install_path}, #{installed_paths.length} file(s)"
94
94
  return installed_paths
95
95
  end
96
96
 
@@ -100,7 +100,7 @@ module Jim
100
100
  if options[:force]
101
101
  FileUtils.rm_rf(final_path)
102
102
  elsif Digest::MD5.hexdigest(File.read(final_path)) == Digest::MD5.hexdigest(File.read(@fetched_path))
103
- logger.info "Duplicate file, skipping"
103
+ logger.warn "Duplicate file, skipping"
104
104
  return final_path
105
105
  else
106
106
  raise(Jim::FileExists.new(final_path))
@@ -111,7 +111,7 @@ module Jim
111
111
  # install json
112
112
  install_package_json(final_path.dirname + 'package.json') if !options[:shallow]
113
113
  installed = final_path.directory? ? Dir.glob(final_path + '**/*').length : 1
114
- logger.info "Extracted to #{final_path}, #{installed} file(s)"
114
+ logger.debug "Extracted to #{final_path}, #{installed} file(s)"
115
115
  final_path
116
116
  ensure
117
117
  FileUtils.rm_rf(@fetched_path) if @fetched_path && @fetched_path.exist?
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 3
8
- - 0
9
- version: 0.3.0
8
+ - 1
9
+ version: 0.3.1
10
10
  platform: ruby
11
11
  authors:
12
12
  - Aaron Quint
@@ -14,7 +14,7 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2011-02-28 00:00:00 -08:00
17
+ date: 2011-03-01 00:00:00 -08:00
18
18
  default_executable: jim
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
@@ -445,7 +445,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
445
445
  requirements:
446
446
  - - ">="
447
447
  - !ruby/object:Gem::Version
448
- hash: 3683419874421523468
448
+ hash: -1567244794160349576
449
449
  segments:
450
450
  - 0
451
451
  version: "0"