Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Comparing changes

Choose two branches to see what's changed or to start a new pull request. If you need to, you can also compare across forks.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also compare across forks.
base fork: mdxp/nodejs-cookbook
base: f43824f3b4
...
head fork: mdxp/nodejs-cookbook
compare: ba42f141ec
Checking mergeability… Don't worry, you can still create the pull request.
  • 2 commits
  • 2 files changed
  • 0 commit comments
  • 2 contributors
Showing with 10 additions and 10 deletions.
  1. +2 −10 attributes/default.rb
  2. +8 −0 recipes/install_from_source.rb
View
12 attributes/default.rb
@@ -18,15 +18,7 @@
#
default['nodejs']['install_method'] = 'source'
-default['nodejs']['version'] = '0.8.2'
+default['nodejs']['version'] = '0.6.11'
default['nodejs']['checksum'] = '94bbdb2d62645fd2ad5b96e41cfec68abf004fd03fabaaf7d71c48b39013cbd1'
default['nodejs']['dir'] = '/usr/local'
-default['nodejs']['npm'] = '1.1.39'
-
-nodejs_tar_path = "node-v#{node['nodejs']['version']}.tar.gz"
-if node['nodejs']['version'].split('.')[1].to_i >= 5
- nodejs_tar_path = "v#{node['nodejs']['version']}/#{nodejs_tar_path}"
-end
-
-default['nodejs']['src_url'] = "http://nodejs.org/dist/#{nodejs_tar_path}"
-default['nodejs']['npm_src_url'] = "http://registry.npmjs.org/npm/-/npm-#{node['nodejs']['npm']}.tgz"
+default['nodejs']['npm'] = '1.1.2'
View
8 recipes/install_from_source.rb
@@ -20,6 +20,14 @@
include_recipe "build-essential"
+nodejs_tar_path = "node-v#{node['nodejs']['version']}.tar.gz"
+if node['nodejs']['version'].split('.')[1].to_i >= 5
+ nodejs_tar_path = "v#{node['nodejs']['version']}/#{nodejs_tar_path}"
+end
+
+node.set['nodejs']['src_url'] = "http://nodejs.org/dist/#{nodejs_tar_path}"
+node.set['nodejs']['npm_src_url'] = "http://registry.npmjs.org/npm/-/npm-#{node['nodejs']['npm']}.tgz"
+
case node['platform']
when 'centos','redhat','fedora','amazon','scientific'
package "openssl-devel"

No commit comments for this range

Something went wrong with that request. Please try again.