nanoc 3.1.4 → 3.1.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/bin/nanoc CHANGED
@@ -2,7 +2,7 @@
2
2
  # encoding: utf-8
3
3
 
4
4
  # Find version
5
- version_file_path = File.expand_path('~/.nanoc-select-version')
5
+ version_file_path = File.join(ENV['APPDATA'] || ENV['HOME'], '.nanoc-select-version')
6
6
  if !File.exist?(version_file_path)
7
7
  version = 3
8
8
  else
@@ -80,6 +80,7 @@ if !NanocSelect::VERSIONS.include?(version)
80
80
  end
81
81
 
82
82
  # Switch
83
- version_file_path = File.expand_path('~/.nanoc-select-version')
83
+ version_file_path = File.join(ENV['APPDATA'] || ENV['HOME'], '.nanoc-select-version')
84
+ p version_file_path
84
85
  File.open(version_file_path, 'w') { |io| io.write(version.to_s + "\n") }
85
86
  puts "Switched to nanoc version #{version}."
@@ -3,7 +3,7 @@
3
3
  module NanocSelect
4
4
 
5
5
  # The current version of `nanoc-select`.
6
- VERSION = '3.1.4'
6
+ VERSION = '3.1.5'
7
7
 
8
8
  # The list of possible versions to choose from.
9
9
  VERSIONS = [ 2, 3 ]
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: nanoc
3
3
  version: !ruby/object:Gem::Version
4
- hash: 11
4
+ hash: 9
5
5
  prerelease: false
6
6
  segments:
7
7
  - 3
8
8
  - 1
9
- - 4
10
- version: 3.1.4
9
+ - 5
10
+ version: 3.1.5
11
11
  platform: ruby
12
12
  authors:
13
13
  - Denis Defreyne
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2010-07-25 00:00:00 +02:00
18
+ date: 2010-08-24 00:00:00 +02:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency
@@ -26,12 +26,12 @@ dependencies:
26
26
  requirements:
27
27
  - - ">="
28
28
  - !ruby/object:Gem::Version
29
- hash: 11
29
+ hash: 9
30
30
  segments:
31
31
  - 3
32
32
  - 1
33
- - 4
34
- version: 3.1.4
33
+ - 5
34
+ version: 3.1.5
35
35
  type: :runtime
36
36
  version_requirements: *id001
37
37
  description: a web publishing system written in Ruby for building small to medium-sized websites.