guides 0.7.1 → 0.7.2

Sign up to get free protection for your applications and to get access to all the features.
data/.gitignore CHANGED
@@ -1,9 +1,7 @@
1
1
  Gemfile.lock
2
- tmp
3
- vendor/cache
4
- devbin
5
- bundle
6
- Guides
2
+ /tmp
3
+ /devbin
4
+ /.bundle
7
5
  *.pmdoc
8
6
  *.gem
9
7
  *.pkg
@@ -141,10 +141,10 @@ module Guides
141
141
  File.open(File.join(output_dir, output_file), 'w') do |f|
142
142
  view = ActionView::Base.new(source_dir, :edge => edge, :production => @production)
143
143
  view.extend(Helpers)
144
+ view.render("sections")
144
145
 
145
146
  if guide =~ /\.html\.erb$/
146
147
  # Generate the special pages like the home.
147
- view.render("sections")
148
148
  type = @edge ? "edge" : "normal"
149
149
  result = view.render(:layout => 'layout', :file => guide, :locals => {:guide_type => type})
150
150
  else
@@ -9,6 +9,9 @@ authors:
9
9
  - name: Yehuda Katz
10
10
  nick: wycats
11
11
  description: Yehuda wrote the Rails guides gem.
12
+ - name: Peter Wagenet
13
+ nick: pwagenet
14
+ description: Peter has been a regular contributor and co-maintainer for the guides gem.
12
15
  Designers:
13
16
  - name: Jason Zimdars
14
17
  nick: jz
@@ -1,3 +1,3 @@
1
1
  module Guides
2
- VERSION = "0.7.1"
2
+ VERSION = "0.7.2"
3
3
  end
@@ -40,7 +40,10 @@ describe "guides build" do
40
40
  end
41
41
 
42
42
  it "creates index.html" do
43
- File.read("output/index.html").should =~ /<a href="article_one.html">/
43
+ index = File.read("output/index.html")
44
+ index.should =~ /<a href="article_one.html">/
45
+ # Test _sections.html.erb with .html.erb templates
46
+ index.should =~ /This work is licensed under/
44
47
  end
45
48
 
46
49
  it "should not show under-construction articles in index" do
@@ -50,6 +53,8 @@ describe "guides build" do
50
53
  it "creates contribute.html" do
51
54
  contribute = File.read("output/contribute.html")
52
55
  contribute.should =~ /<h2>Contribute<\/h2>/
56
+ # Test _sections.html.erb with .textile templates
57
+ contribute.should =~ /This work is licensed under/
53
58
  end
54
59
 
55
60
  it "creates normal article" do
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: guides
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.1
4
+ version: 0.7.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2011-09-28 00:00:00.000000000Z
12
+ date: 2011-10-22 00:00:00.000000000Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: actionpack
16
- requirement: &70130271901280 !ruby/object:Gem::Requirement
16
+ requirement: &70269707513420 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ~>
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: 3.0.0
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *70130271901280
24
+ version_requirements: *70269707513420
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: activesupport
27
- requirement: &70130271900820 !ruby/object:Gem::Requirement
27
+ requirement: &70269707512960 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ~>
@@ -32,10 +32,10 @@ dependencies:
32
32
  version: 3.0.0
33
33
  type: :runtime
34
34
  prerelease: false
35
- version_requirements: *70130271900820
35
+ version_requirements: *70269707512960
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: rack
38
- requirement: &70130271900360 !ruby/object:Gem::Requirement
38
+ requirement: &70269707512500 !ruby/object:Gem::Requirement
39
39
  none: false
40
40
  requirements:
41
41
  - - ~>
@@ -43,10 +43,10 @@ dependencies:
43
43
  version: 1.2.1
44
44
  type: :runtime
45
45
  prerelease: false
46
- version_requirements: *70130271900360
46
+ version_requirements: *70269707512500
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: RedCloth
49
- requirement: &70130271899900 !ruby/object:Gem::Requirement
49
+ requirement: &70269707512040 !ruby/object:Gem::Requirement
50
50
  none: false
51
51
  requirements:
52
52
  - - ~>
@@ -54,10 +54,10 @@ dependencies:
54
54
  version: 4.2.7
55
55
  type: :runtime
56
56
  prerelease: false
57
- version_requirements: *70130271899900
57
+ version_requirements: *70269707512040
58
58
  - !ruby/object:Gem::Dependency
59
59
  name: maruku
60
- requirement: &70130271899440 !ruby/object:Gem::Requirement
60
+ requirement: &70269707511580 !ruby/object:Gem::Requirement
61
61
  none: false
62
62
  requirements:
63
63
  - - ~>
@@ -65,10 +65,10 @@ dependencies:
65
65
  version: 0.6.0
66
66
  type: :runtime
67
67
  prerelease: false
68
- version_requirements: *70130271899440
68
+ version_requirements: *70269707511580
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: thor
71
- requirement: &70130271898980 !ruby/object:Gem::Requirement
71
+ requirement: &70269707511120 !ruby/object:Gem::Requirement
72
72
  none: false
73
73
  requirements:
74
74
  - - ~>
@@ -76,10 +76,10 @@ dependencies:
76
76
  version: 0.14.6
77
77
  type: :runtime
78
78
  prerelease: false
79
- version_requirements: *70130271898980
79
+ version_requirements: *70269707511120
80
80
  - !ruby/object:Gem::Dependency
81
81
  name: thin
82
- requirement: &70130271898520 !ruby/object:Gem::Requirement
82
+ requirement: &70269707510660 !ruby/object:Gem::Requirement
83
83
  none: false
84
84
  requirements:
85
85
  - - ~>
@@ -87,10 +87,10 @@ dependencies:
87
87
  version: 1.2.7
88
88
  type: :runtime
89
89
  prerelease: false
90
- version_requirements: *70130271898520
90
+ version_requirements: *70269707510660
91
91
  - !ruby/object:Gem::Dependency
92
92
  name: eventmachine
93
- requirement: &70130271898060 !ruby/object:Gem::Requirement
93
+ requirement: &70269707510200 !ruby/object:Gem::Requirement
94
94
  none: false
95
95
  requirements:
96
96
  - - ~>
@@ -98,10 +98,10 @@ dependencies:
98
98
  version: 1.0.0.beta.4
99
99
  type: :runtime
100
100
  prerelease: false
101
- version_requirements: *70130271898060
101
+ version_requirements: *70269707510200
102
102
  - !ruby/object:Gem::Dependency
103
103
  name: rspec
104
- requirement: &70130271897600 !ruby/object:Gem::Requirement
104
+ requirement: &70269707509740 !ruby/object:Gem::Requirement
105
105
  none: false
106
106
  requirements:
107
107
  - - ~>
@@ -109,10 +109,10 @@ dependencies:
109
109
  version: '2.0'
110
110
  type: :development
111
111
  prerelease: false
112
- version_requirements: *70130271897600
112
+ version_requirements: *70269707509740
113
113
  - !ruby/object:Gem::Dependency
114
114
  name: faraday
115
- requirement: &70130271897140 !ruby/object:Gem::Requirement
115
+ requirement: &70269707509280 !ruby/object:Gem::Requirement
116
116
  none: false
117
117
  requirements:
118
118
  - - ~>
@@ -120,10 +120,10 @@ dependencies:
120
120
  version: 0.5.0
121
121
  type: :development
122
122
  prerelease: false
123
- version_requirements: *70130271897140
123
+ version_requirements: *70269707509280
124
124
  - !ruby/object:Gem::Dependency
125
125
  name: packager
126
- requirement: &70130271896760 !ruby/object:Gem::Requirement
126
+ requirement: &70269707508900 !ruby/object:Gem::Requirement
127
127
  none: false
128
128
  requirements:
129
129
  - - ! '>='
@@ -131,7 +131,7 @@ dependencies:
131
131
  version: '0'
132
132
  type: :development
133
133
  prerelease: false
134
- version_requirements: *70130271896760
134
+ version_requirements: *70269707508900
135
135
  description: A tool for creating version controlled guides for open source projects,
136
136
  based on the Rails Guides framework
137
137
  email:
@@ -310,3 +310,4 @@ test_files:
310
310
  - spec/support/cli.rb
311
311
  - spec/support/rack.rb
312
312
  - spec/textile_transformer_spec.rb
313
+ has_rdoc: