rotten-generators 0.9.5 → 0.9.6

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/VERSION CHANGED
@@ -1 +1 @@
1
- 0.9.5
1
+ 0.9.6
data/generators.gemspec CHANGED
@@ -2,11 +2,11 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{generators}
5
- s.version = "0.9.5"
5
+ s.version = "0.9.6"
6
6
 
7
7
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
8
8
  s.authors = ["Peter Coulton"]
9
- s.date = %q{2009-06-26}
9
+ s.date = %q{2009-07-26}
10
10
  s.email = %q{peter@petercoulton.com}
11
11
  s.extra_rdoc_files = [
12
12
  "LICENSE",
@@ -104,11 +104,10 @@ Gem::Specification.new do |s|
104
104
  "spec/spec.opts",
105
105
  "spec/spec_helper.rb"
106
106
  ]
107
- s.has_rdoc = true
108
107
  s.homepage = %q{http://github.com/rotten/generators}
109
108
  s.rdoc_options = ["--charset=UTF-8"]
110
109
  s.require_paths = ["lib"]
111
- s.rubygems_version = %q{1.3.1}
110
+ s.rubygems_version = %q{1.3.4}
112
111
  s.summary = %q{Collection of rails generators}
113
112
  s.test_files = [
114
113
  "spec/rotten_spec.rb",
@@ -117,7 +116,7 @@ Gem::Specification.new do |s|
117
116
 
118
117
  if s.respond_to? :specification_version then
119
118
  current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
120
- s.specification_version = 2
119
+ s.specification_version = 3
121
120
 
122
121
  if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
123
122
  else
@@ -19,16 +19,16 @@ module LayoutHelper
19
19
  end
20
20
 
21
21
  def version
22
- tag, commits, sha = `git describe`.split('-')
23
- major, minor, patch = tag[1..-1].split('.')
24
- [major, minor, patch].each { |e| e.chomp! }
25
22
 
26
- version = "v#{major}.#{minor}.#{patch}"
27
- unless commits.nil?
28
- version += "-#{commits}" unless commits.nil?
29
- version += "-#{sha.chomp}" unless sha.nil?
23
+ major, minor, patch, commits, objname, objname2 = `git describe --always`.scan(/\Av(\d*)\.(\d*).(\d*)?-?(\d*)?-?([\d\w]{7})?\z|([\d\w]{7})/)[0]
24
+
25
+ if major == nil
26
+ return "Commit: #{objname2}"
27
+ else
28
+ version = "v#{major}.#{minor}.#{patch}"
29
+ version += " +#{commits}" unless commits == ""
30
+ return version
30
31
  end
31
- version += "-#{ENV['RAILS_ENV']}"
32
32
  end
33
33
 
34
34
  end
@@ -94,8 +94,18 @@ a:hover
94
94
  :background
95
95
  :color= !content_background
96
96
 
97
- h2
98
- :background-color #CDE
97
+ h2
98
+ :background-color #CDE
99
+
100
+ h5, h6
101
+ :border 0
102
+ :bottom 1px #000
103
+
104
+ h5
105
+ :border-style solid
106
+
107
+ h6
108
+ :border-style dotted
99
109
 
100
110
 
101
111
  .sidebar .content
@@ -107,25 +107,33 @@ h1, h2, h3, h4, h5, h6
107
107
  :letter-spacing 0
108
108
  :margin-bottom 0.667em
109
109
 
110
- h1, h2, h3
110
+ h1, h2, h3, h4
111
111
  :font
112
112
  :family = !fs_large_headings
113
- :size = !px16
114
113
 
115
- h4, h5, h6
114
+ h5, h6
116
115
  :font
117
116
  :family = !fs_small_headings
118
- :size = !px16
119
117
 
120
118
  h1
121
- :font-size 5em
119
+ :font-size= !px72
122
120
  :margin-bottom 0
123
121
 
124
122
  h2
125
- :font-size 3em
123
+ :font-size= !px48
126
124
 
127
125
  h3
128
- :font-size 2em
126
+ :font-size= !px36
127
+
128
+ h4
129
+ :font-size= !px24
130
+
131
+ h5
132
+ :font-size= !px18
133
+
134
+ h6
135
+ :font-size= !px16
136
+
129
137
 
130
138
 
131
139
  //================================================================== +BASIC TEXT
@@ -159,7 +167,6 @@ p
159
167
  #hd
160
168
 
161
169
  h1
162
-
163
170
  .beta
164
171
  :font-size 40%
165
172
 
@@ -170,15 +177,20 @@ p
170
177
  .main
171
178
  .content
172
179
 
173
- h2, h3, h4, h5, h6
174
-
175
180
  h2
176
181
  :padding 0.2em
177
182
  :margin
178
- :left -0.67em
179
- :right -0.67em
183
+ :left -0.55em
184
+ :right -0.55em
180
185
  :bottom 0.25em
181
-
186
+
187
+ h3
188
+ :margin-bottom 0.4em
189
+
190
+ h5, h6
191
+ :margin-bottom 0.4em
192
+ :padding-bottom 0.2em
193
+
182
194
  .sidebar
183
195
  .content
184
196
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rotten-generators
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.5
4
+ version: 0.9.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Peter Coulton
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-06-26 00:00:00 -07:00
12
+ date: 2009-07-26 00:00:00 -07:00
13
13
  default_executable:
14
14
  dependencies: []
15
15
 
@@ -113,7 +113,7 @@ files:
113
113
  - spec/rotten_spec.rb
114
114
  - spec/spec.opts
115
115
  - spec/spec_helper.rb
116
- has_rdoc: true
116
+ has_rdoc: false
117
117
  homepage: http://github.com/rotten/generators
118
118
  post_install_message:
119
119
  rdoc_options:
@@ -137,7 +137,7 @@ requirements: []
137
137
  rubyforge_project:
138
138
  rubygems_version: 1.2.0
139
139
  signing_key:
140
- specification_version: 2
140
+ specification_version: 3
141
141
  summary: Collection of rails generators
142
142
  test_files:
143
143
  - spec/rotten_spec.rb