guides 0.6.6 → 0.6.7

Sign up to get free protection for your applications and to get access to all the features.
data/Rakefile CHANGED
@@ -1,7 +1,3 @@
1
- require "bundler/setup"
2
- require "guides/version"
3
- require "erb"
4
-
5
1
  file "Guides/local/guides/bundle" => "Gemfile" do
6
2
  require "rbconfig"
7
3
 
@@ -47,79 +43,13 @@ file "Guides/bin/guides" => "bin/guides" do
47
43
 
48
44
  sh "mkdir -p Guides/bin"
49
45
  File.open("Guides/bin/guides", "w") { |file| file.puts guides }
50
- File.chmod 0755, "Guides/bin/guides"
51
46
  end
52
47
 
53
48
  desc "Prep the release for PackageMaker"
54
- task :make_pkg => ["Guides/local/guides/bundle", "Guides/local/guides/lib", "Guides/bin/guides"]
49
+ task :pkg => ["Guides/local/guides/bundle", "Guides/local/guides/lib", "Guides/bin/guides"]
55
50
 
56
51
  task :rm do
57
52
  rm_rf "Guides"
58
53
  end
59
54
 
60
- directory "guides-pkg/Resources"
61
- directory "guides-pkg/guides.pkg"
62
-
63
- pkg_dependencies = [:make_pkg, "guides-pkg/Resources", "guides-pkg/guides.pkg",
64
- "guides-pkg/Distribution", "guides-pkg/guides.pkg/Bom",
65
- "guides-pkg/guides.pkg/PackageInfo", "guides-pkg/guides.pkg/Payload"]
66
-
67
- def details
68
- @details ||= begin
69
- total_size, files = 0, 0
70
-
71
- Dir["Guides/**/*"].each do |file|
72
- files += 1
73
-
74
- next if File.directory?(file)
75
-
76
- total_size += File.size(file)
77
- end
78
-
79
- [total_size, files]
80
- end
81
- end
82
-
83
- file "guides-pkg/Distribution" do
84
- src = File.read File.expand_path("../build/Distribution.erb", __FILE__)
85
- erb = ERB.new(src)
86
-
87
- total_size, files = details
88
-
89
- kbytes = total_size / 1024
90
- version = Guides::VERSION
91
-
92
- File.open("guides-pkg/Distribution", "w") do |file|
93
- file.puts erb.result(binding)
94
- end
95
- end
96
-
97
- file "guides-pkg/guides.pkg/PackageInfo" do
98
- src = File.read File.expand_path("../build/PackageInfo.erb", __FILE__)
99
- erb = ERB.new(src)
100
-
101
- total_size, num_files = details
102
-
103
- kbytes = total_size / 1024
104
- version = Guides::VERSION
105
-
106
- File.open("guides-pkg/guides.pkg/PackageInfo", "w") do |file|
107
- file.puts erb.result(binding)
108
- end
109
- end
110
-
111
- file "guides-pkg/guides.pkg/Bom" do
112
- sh "mkbom -s Guides guides-pkg/guides.pkg/Bom"
113
- end
114
-
115
- file "guides-pkg/guides.pkg/Payload" do
116
- sh "cd Guides && pax -wz -x cpio . > ../guides-pkg/guides.pkg/Payload"
117
- end
118
-
119
- file "Guides.pkg" => pkg_dependencies do
120
- sh "pkgutil --flatten guides-pkg Guides.pkg"
121
- end
122
-
123
- task :pkg => "Guides.pkg"
124
-
125
55
  task :clean => [:rm, :pkg]
@@ -27,7 +27,7 @@ module Guides
27
27
  when "/"
28
28
  env["PATH_INFO"] = "/index.html"
29
29
  return call(env)
30
- when /\/(.*).html/
30
+ when /\/(.*)\.html$/
31
31
  name = $1
32
32
  generator = Guides::Generator.new({})
33
33
  source_file = Dir["#{source_templates}/#{name}.{html.erb,textile}"].first
@@ -1,3 +1,3 @@
1
1
  module Guides
2
- VERSION = "0.6.6"
2
+ VERSION = "0.6.7"
3
3
  end
metadata CHANGED
@@ -1,12 +1,8 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: guides
3
3
  version: !ruby/object:Gem::Version
4
- prerelease: false
5
- segments:
6
- - 0
7
- - 6
8
- - 6
9
- version: 0.6.6
4
+ prerelease:
5
+ version: 0.6.7
10
6
  platform: ruby
11
7
  authors:
12
8
  - Yehuda Katz
@@ -14,7 +10,7 @@ autorequire:
14
10
  bindir: bin
15
11
  cert_chain: []
16
12
 
17
- date: 2011-02-02 00:00:00 -08:00
13
+ date: 2011-02-25 00:00:00 -08:00
18
14
  default_executable: guides
19
15
  dependencies:
20
16
  - !ruby/object:Gem::Dependency
@@ -25,10 +21,6 @@ dependencies:
25
21
  requirements:
26
22
  - - ~>
27
23
  - !ruby/object:Gem::Version
28
- segments:
29
- - 3
30
- - 0
31
- - 0
32
24
  version: 3.0.0
33
25
  type: :runtime
34
26
  version_requirements: *id001
@@ -40,10 +32,6 @@ dependencies:
40
32
  requirements:
41
33
  - - ~>
42
34
  - !ruby/object:Gem::Version
43
- segments:
44
- - 3
45
- - 0
46
- - 0
47
35
  version: 3.0.0
48
36
  type: :runtime
49
37
  version_requirements: *id002
@@ -55,10 +43,6 @@ dependencies:
55
43
  requirements:
56
44
  - - ~>
57
45
  - !ruby/object:Gem::Version
58
- segments:
59
- - 1
60
- - 2
61
- - 1
62
46
  version: 1.2.1
63
47
  type: :runtime
64
48
  version_requirements: *id003
@@ -70,10 +54,6 @@ dependencies:
70
54
  requirements:
71
55
  - - ~>
72
56
  - !ruby/object:Gem::Version
73
- segments:
74
- - 4
75
- - 1
76
- - 1
77
57
  version: 4.1.1
78
58
  type: :runtime
79
59
  version_requirements: *id004
@@ -85,10 +65,6 @@ dependencies:
85
65
  requirements:
86
66
  - - ~>
87
67
  - !ruby/object:Gem::Version
88
- segments:
89
- - 0
90
- - 6
91
- - 0
92
68
  version: 0.6.0
93
69
  type: :runtime
94
70
  version_requirements: *id005
@@ -100,10 +76,6 @@ dependencies:
100
76
  requirements:
101
77
  - - ~>
102
78
  - !ruby/object:Gem::Version
103
- segments:
104
- - 0
105
- - 14
106
- - 6
107
79
  version: 0.14.6
108
80
  type: :runtime
109
81
  version_requirements: *id006
@@ -115,10 +87,6 @@ dependencies:
115
87
  requirements:
116
88
  - - ~>
117
89
  - !ruby/object:Gem::Version
118
- segments:
119
- - 1
120
- - 2
121
- - 7
122
90
  version: 1.2.7
123
91
  type: :runtime
124
92
  version_requirements: *id007
@@ -272,23 +240,17 @@ required_ruby_version: !ruby/object:Gem::Requirement
272
240
  requirements:
273
241
  - - ">="
274
242
  - !ruby/object:Gem::Version
275
- segments:
276
- - 0
277
243
  version: "0"
278
244
  required_rubygems_version: !ruby/object:Gem::Requirement
279
245
  none: false
280
246
  requirements:
281
247
  - - ">="
282
248
  - !ruby/object:Gem::Version
283
- segments:
284
- - 1
285
- - 3
286
- - 6
287
249
  version: 1.3.6
288
250
  requirements: []
289
251
 
290
252
  rubyforge_project: guides
291
- rubygems_version: 1.3.7
253
+ rubygems_version: 1.5.2
292
254
  signing_key:
293
255
  specification_version: 3
294
256
  summary: Extracting the Rails Guides framework for the rest of us