diff --git a/nodejs/attributes/default.rb b/nodejs/attributes/default.rb index 912c725..9db5c17 100644 --- a/nodejs/attributes/default.rb +++ b/nodejs/attributes/default.rb @@ -17,6 +17,6 @@ # limitations under the License. # -default.nodejs[:version] = "0.2.2" +default.nodejs[:version] = "0.2.4" default.nodejs[:dir] = "/usr/local" -default.nodejs[:npm] = "0.1.27-12" +default.nodejs[:npm] = "0.2.5-1" diff --git a/nodejs/metadata.json b/nodejs/metadata.json index ca6afe3..0f031a4 100644 --- a/nodejs/metadata.json +++ b/nodejs/metadata.json @@ -1,34 +1,34 @@ { - "recipes": { - "nodejs::npm": "Installs npm - a package manager for node", - "nodejs": "Installs Node.JS from source" - }, - "replacing": { - }, - "attributes": { - }, - "maintainer_email": "marius@promethost.com", - "groupings": { - }, - "dependencies": { - "build-essential": [ + "conflicting": { + }, + "long_description": "= DESCRIPTION:\n\nInstalls Node.JS from source.\n\n= REQUIREMENTS:\n\n== Platform:\n\nTested on Debian Lenny. Should work fine on Ubuntu, Centos, etc.\n\n== Cookbooks:\n\nOpscode cookbooks (http://github.com/opscode/cookbooks/tree/master)\n\n* build-essential\n\n= ATTRIBUTES:\n\n* nodejs[:version] - release version of node to install\n* nodejs[:dir] - location where node will be installed, default /usr/local\n* nodejs[:npm] - version of npm to install\n\n= USAGE:\n\nInclude the nodejs recipe to install node from source on your system:\n\n include_recipe \"nodejs\"\n\nInclude the npm recipe to install npm:\n \n include_recipe \"nodejs::npm\"\n\n= LICENSE and AUTHOR:\n\nAuthor:: Marius Ducea (marius@promethost.com)\n\nCopyright:: 2010, Promet Solutions\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n", + "recipes": { + "nodejs::npm": "Installs npm - a package manager for node", + "nodejs": "Installs Node.JS from source" + }, + "attributes": { + }, + "providing": { + }, + "dependencies": { + "build-essential": [ - ] - }, - "recommendations": { - }, - "long_description": "= DESCRIPTION:\n\nInstalls Node.JS from source.\n\n= REQUIREMENTS:\n\n== Platform:\n\nTested on Debian Lenny. Should work fine on Ubuntu, Centos, etc.\n\n== Cookbooks:\n\nOpscode cookbooks (http://github.com/opscode/cookbooks/tree/master)\n\n* build-essential\n\n= ATTRIBUTES:\n\n* nodejs[:version] - release version of node to install\n* nodejs[:dir] - location where node will be installed, default /usr/local\n* nodejs[:npm] - version of npm to install\n\n= USAGE:\n\nInclude the nodejs recipe to install node from source on your system:\n\n include_recipe \"nodejs\"\n\nInclude the npm recipe to install npm:\n \n include_recipe \"nodejs::npm\"\n\n= LICENSE and AUTHOR:\n\nAuthor:: Marius Ducea (marius@promethost.com)\n\nCopyright:: 2010, Promet Solutions\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n", - "suggestions": { - }, - "platforms": { - }, - "license": "Apache 2.0", - "version": "0.1.1", - "conflicting": { - }, - "name": "nodejs", - "providing": { - }, - "description": "Installs/Configures nodejs", - "maintainer": "Promet Solutions" - } \ No newline at end of file + ] + }, + "maintainer": "Promet Solutions", + "replacing": { + }, + "platforms": { + }, + "license": "Apache 2.0", + "maintainer_email": "marius@promethost.com", + "version": "0.2.0", + "groupings": { + }, + "recommendations": { + }, + "name": "nodejs", + "suggestions": { + }, + "description": "Installs/Configures nodejs" +} \ No newline at end of file diff --git a/nodejs/metadata.rb b/nodejs/metadata.rb index 0eccb00..c64b639 100644 --- a/nodejs/metadata.rb +++ b/nodejs/metadata.rb @@ -3,7 +3,7 @@ license "Apache 2.0" description "Installs/Configures nodejs" long_description IO.read(File.join(File.dirname(__FILE__), 'README.rdoc')) -version "0.1.3" +version "0.2.0" recipe "nodejs", "Installs Node.JS from source" recipe "nodejs::npm", "Installs npm - a package manager for node" diff --git a/nodejs/recipes/default.rb b/nodejs/recipes/default.rb index e881c04..b278c89 100644 --- a/nodejs/recipes/default.rb +++ b/nodejs/recipes/default.rb @@ -38,6 +38,6 @@ make && \ make install EOH - not_if {File.exists?("/usr/local/src/node-v#{node[:nodejs][:version]}/node")} + not_if do `#{node[:nodejs][:dir]}/bin/node -v`.include? "v#{node[:nodejs][:version]}" end end diff --git a/nodejs/recipes/npm.rb b/nodejs/recipes/npm.rb index e79cefb..8f89193 100644 --- a/nodejs/recipes/npm.rb +++ b/nodejs/recipes/npm.rb @@ -29,6 +29,6 @@ curl -L http://github.com/isaacs/npm/tarball/v#{node[:nodejs][:npm]} | tar xzf - --strip-components=1 && \ make uninstall install EOH - not_if {File.exists?("/usr/local/bin/npm-#{node[:nodejs][:npm]}")} + not_if {File.exists?("/usr/local/bin/npm@#{node[:nodejs][:npm]}")} end