jabe 0.5.1 → 0.5.2

Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile CHANGED
@@ -1,6 +1,5 @@
1
1
  source 'http://rubygems.org'
2
2
 
3
- gem 'rails', '~> 3.0.3'
4
3
  gem 'devise'
5
4
  gem 'friendly_id', '3.1.8'
6
5
  gem 'formtastic', '>= 1.2.3.beta'
@@ -12,6 +11,7 @@ gem 'sass', '>= 3.1.0.alpha.206'
12
11
  gem 'will_paginate', ">= 3.0.pre2"
13
12
 
14
13
  group :development, :test do
14
+ gem 'rails', '~> 3.0.3'
15
15
  gem 'autotest'
16
16
  gem 'autotest-fsevent' if RUBY_PLATFORM =~ /darwin/
17
17
  gem 'autotest-growl' if RUBY_PLATFORM =~ /darwin/
data/Rakefile CHANGED
@@ -21,6 +21,8 @@ Jeweler::Tasks.new do |gem|
21
21
  gem.authors = ['Michael Moen a.k.a. UnderpantsGnome', 'Neil Heinrich']
22
22
  gem.files.exclude 'test/dummy'
23
23
  gem.files.exclude 'spec'
24
+ gem.files.exclude 'features'
25
+ gem.test_files += Dir.glob('features/**/*')
24
26
  # Include your dependencies below. Runtime dependencies are required when using your gem,
25
27
  # and development dependencies are only needed for development (ie running rake tasks, tests, etc)
26
28
  # gem.add_runtime_dependency 'jabber4r', '> 0.1'
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.5.1
1
+ 0.5.2
File without changes
File without changes
@@ -15,8 +15,7 @@
15
15
  %meta{:content => "width=device-width, initial-scale=1.0", :name => "viewport"}/
16
16
  %link{:href => "/favicon.ico", :rel => "shortcut icon"}/
17
17
  %link{:href => "/apple-touch-icon.png", :rel => "apple-touch-icon"}/
18
- = stylesheet_link_tag 'style', 'grid', 'application'
19
- = formtastic_stylesheet_link_tag
18
+ = stylesheet_link_tag 'grid', 'boilerplate', 'jabe', 'application'
20
19
  = javascript_include_tag 'libs/modernizr-1.6.min.js'
21
20
  %body
22
21
  #container.container_12
@@ -1,12 +1,9 @@
1
- require 'rails/generators'
2
- require 'rails/generators/migration'
3
-
4
1
  module Jabe
5
2
  module Generators
6
3
  class MigrationsGenerator < Rails::Generators::Base
7
4
  include Rails::Generators::Migration
8
5
 
9
- self.source_root(File.expand_path(JABE_DIR, 'templates', 'migrations')))
6
+ self.source_root(File.expand_path(File.join(Jabe::Engine.root, 'templates', 'migrations')))
10
7
 
11
8
  desc "run this generator to create the necessary migrations"
12
9
 
@@ -0,0 +1,9 @@
1
+ module Jabe
2
+ module Generators
3
+ class StylesheetsGenerator < Rails::Generators::Base
4
+ %w( grid boilerplate handheld jabe ).each do |sheet|
5
+ system("bundle exec sass #{Jabe::Engine.root}/app/stylesheets/#{sheet}.scss public/stylesheets/#{sheet}.css")
6
+ end
7
+ end
8
+ end
9
+ end
data/lib/jabe.rb CHANGED
@@ -10,6 +10,9 @@ module Jabe
10
10
  app.middleware.use ::ActionDispatch::Static, "#{root}/public"
11
11
  ::ActionController::Base.send(:helper, :jabe)
12
12
  end
13
+
14
+ def self.root
15
+ JABE_DIR
16
+ end
13
17
  end
14
18
  end
15
-
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jabe
3
3
  version: !ruby/object:Gem::Version
4
- hash: 9
4
+ hash: 15
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 5
9
- - 1
10
- version: 0.5.1
9
+ - 2
10
+ version: 0.5.2
11
11
  platform: ruby
12
12
  authors:
13
13
  - Michael Moen a.k.a. UnderpantsGnome
@@ -16,30 +16,14 @@ autorequire:
16
16
  bindir: bin
17
17
  cert_chain: []
18
18
 
19
- date: 2010-12-29 00:00:00 -06:00
19
+ date: 2010-12-30 00:00:00 -06:00
20
20
  default_executable:
21
21
  dependencies:
22
- - !ruby/object:Gem::Dependency
23
- prerelease: false
24
- type: :runtime
25
- name: rails
26
- version_requirements: &id001 !ruby/object:Gem::Requirement
27
- none: false
28
- requirements:
29
- - - ~>
30
- - !ruby/object:Gem::Version
31
- hash: 1
32
- segments:
33
- - 3
34
- - 0
35
- - 3
36
- version: 3.0.3
37
- requirement: *id001
38
22
  - !ruby/object:Gem::Dependency
39
23
  prerelease: false
40
24
  type: :runtime
41
25
  name: devise
42
- version_requirements: &id002 !ruby/object:Gem::Requirement
26
+ version_requirements: &id001 !ruby/object:Gem::Requirement
43
27
  none: false
44
28
  requirements:
45
29
  - - ">="
@@ -48,12 +32,12 @@ dependencies:
48
32
  segments:
49
33
  - 0
50
34
  version: "0"
51
- requirement: *id002
35
+ requirement: *id001
52
36
  - !ruby/object:Gem::Dependency
53
37
  prerelease: false
54
38
  type: :runtime
55
39
  name: friendly_id
56
- version_requirements: &id003 !ruby/object:Gem::Requirement
40
+ version_requirements: &id002 !ruby/object:Gem::Requirement
57
41
  none: false
58
42
  requirements:
59
43
  - - "="
@@ -64,12 +48,12 @@ dependencies:
64
48
  - 1
65
49
  - 8
66
50
  version: 3.1.8
67
- requirement: *id003
51
+ requirement: *id002
68
52
  - !ruby/object:Gem::Dependency
69
53
  prerelease: false
70
54
  type: :runtime
71
55
  name: formtastic
72
- version_requirements: &id004 !ruby/object:Gem::Requirement
56
+ version_requirements: &id003 !ruby/object:Gem::Requirement
73
57
  none: false
74
58
  requirements:
75
59
  - - ">="
@@ -81,12 +65,12 @@ dependencies:
81
65
  - 3
82
66
  - beta
83
67
  version: 1.2.3.beta
84
- requirement: *id004
68
+ requirement: *id003
85
69
  - !ruby/object:Gem::Dependency
86
70
  prerelease: false
87
71
  type: :runtime
88
72
  name: haml
89
- version_requirements: &id005 !ruby/object:Gem::Requirement
73
+ version_requirements: &id004 !ruby/object:Gem::Requirement
90
74
  none: false
91
75
  requirements:
92
76
  - - ">="
@@ -97,12 +81,12 @@ dependencies:
97
81
  - 0
98
82
  - 23
99
83
  version: 3.0.23
100
- requirement: *id005
84
+ requirement: *id004
101
85
  - !ruby/object:Gem::Dependency
102
86
  prerelease: false
103
87
  type: :runtime
104
88
  name: haml-rails
105
- version_requirements: &id006 !ruby/object:Gem::Requirement
89
+ version_requirements: &id005 !ruby/object:Gem::Requirement
106
90
  none: false
107
91
  requirements:
108
92
  - - ">="
@@ -111,12 +95,12 @@ dependencies:
111
95
  segments:
112
96
  - 0
113
97
  version: "0"
114
- requirement: *id006
98
+ requirement: *id005
115
99
  - !ruby/object:Gem::Dependency
116
100
  prerelease: false
117
101
  type: :runtime
118
102
  name: jquery-rails
119
- version_requirements: &id007 !ruby/object:Gem::Requirement
103
+ version_requirements: &id006 !ruby/object:Gem::Requirement
120
104
  none: false
121
105
  requirements:
122
106
  - - ">="
@@ -125,12 +109,12 @@ dependencies:
125
109
  segments:
126
110
  - 0
127
111
  version: "0"
128
- requirement: *id007
112
+ requirement: *id006
129
113
  - !ruby/object:Gem::Dependency
130
114
  prerelease: false
131
115
  type: :runtime
132
116
  name: RedCloth
133
- version_requirements: &id008 !ruby/object:Gem::Requirement
117
+ version_requirements: &id007 !ruby/object:Gem::Requirement
134
118
  none: false
135
119
  requirements:
136
120
  - - ">="
@@ -139,12 +123,12 @@ dependencies:
139
123
  segments:
140
124
  - 0
141
125
  version: "0"
142
- requirement: *id008
126
+ requirement: *id007
143
127
  - !ruby/object:Gem::Dependency
144
128
  prerelease: false
145
129
  type: :runtime
146
130
  name: sass
147
- version_requirements: &id009 !ruby/object:Gem::Requirement
131
+ version_requirements: &id008 !ruby/object:Gem::Requirement
148
132
  none: false
149
133
  requirements:
150
134
  - - ">="
@@ -157,12 +141,12 @@ dependencies:
157
141
  - alpha
158
142
  - 206
159
143
  version: 3.1.0.alpha.206
160
- requirement: *id009
144
+ requirement: *id008
161
145
  - !ruby/object:Gem::Dependency
162
146
  prerelease: false
163
147
  type: :runtime
164
148
  name: will_paginate
165
- version_requirements: &id010 !ruby/object:Gem::Requirement
149
+ version_requirements: &id009 !ruby/object:Gem::Requirement
166
150
  none: false
167
151
  requirements:
168
152
  - - ">="
@@ -173,6 +157,22 @@ dependencies:
173
157
  - 0
174
158
  - pre2
175
159
  version: 3.0.pre2
160
+ requirement: *id009
161
+ - !ruby/object:Gem::Dependency
162
+ prerelease: false
163
+ type: :development
164
+ name: rails
165
+ version_requirements: &id010 !ruby/object:Gem::Requirement
166
+ none: false
167
+ requirements:
168
+ - - ~>
169
+ - !ruby/object:Gem::Version
170
+ hash: 1
171
+ segments:
172
+ - 3
173
+ - 0
174
+ - 3
175
+ version: 3.0.3
176
176
  requirement: *id010
177
177
  - !ruby/object:Gem::Dependency
178
178
  prerelease: false
@@ -474,10 +474,10 @@ files:
474
474
  - app/models/entry.rb
475
475
  - app/models/settings.rb
476
476
  - app/stylesheets/_will_paginate.scss
477
- - app/stylesheets/application.scss
477
+ - app/stylesheets/boilerplate.scss
478
478
  - app/stylesheets/grid.scss
479
479
  - app/stylesheets/handheld.scss
480
- - app/stylesheets/style.scss
480
+ - app/stylesheets/jabe.scss
481
481
  - app/views/admin/entries/_form.html.haml
482
482
  - app/views/admin/entries/edit.html.haml
483
483
  - app/views/admin/entries/index.html.haml
@@ -495,16 +495,8 @@ files:
495
495
  - config/initializers/settings.rb
496
496
  - config/initializers/time_formats.rb
497
497
  - config/routes.rb
498
- - features/admin.feature
499
- - features/entries.feature
500
- - features/step_definitions/admin_steps.rb
501
- - features/step_definitions/entry_steps.rb
502
- - features/step_definitions/support_steps.rb
503
- - features/step_definitions/web_steps.rb
504
- - features/support/blueprints.rb
505
- - features/support/env.rb
506
- - features/support/paths.rb
507
498
  - lib/generators/jabe/migrations/migrations_generator.rb
499
+ - lib/generators/jabe/stylesheets/stylesheets_generator.rb
508
500
  - lib/generators/jabe/templates/migrations/create_comments.rb
509
501
  - lib/generators/jabe/templates/migrations/create_entries.rb
510
502
  - lib/generators/jabe/templates/migrations/create_settings.rb
@@ -534,6 +526,15 @@ files:
534
526
  - public/javascripts/rails.js
535
527
  - public/nginx.conf
536
528
  - public/robots.txt
529
+ - features/admin.feature
530
+ - features/entries.feature
531
+ - features/step_definitions/admin_steps.rb
532
+ - features/step_definitions/entry_steps.rb
533
+ - features/step_definitions/support_steps.rb
534
+ - features/step_definitions/web_steps.rb
535
+ - features/support/blueprints.rb
536
+ - features/support/env.rb
537
+ - features/support/paths.rb
537
538
  - spec/support/blueprints.rb
538
539
  - test/dummy/app/controllers/application_controller.rb
539
540
  - test/dummy/app/helpers/application_helper.rb
@@ -597,6 +598,15 @@ signing_key:
597
598
  specification_version: 3
598
599
  summary: Just Another Blog Engine
599
600
  test_files:
601
+ - features/admin.feature
602
+ - features/entries.feature
603
+ - features/step_definitions/admin_steps.rb
604
+ - features/step_definitions/entry_steps.rb
605
+ - features/step_definitions/support_steps.rb
606
+ - features/step_definitions/web_steps.rb
607
+ - features/support/blueprints.rb
608
+ - features/support/env.rb
609
+ - features/support/paths.rb
600
610
  - spec/support/blueprints.rb
601
611
  - test/dummy/app/controllers/application_controller.rb
602
612
  - test/dummy/app/helpers/application_helper.rb