kuhsaft 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (97) hide show
  1. data/.gitignore +13 -3
  2. data/.rspec +4 -0
  3. data/.rvmrc +47 -0
  4. data/Gemfile +1 -3
  5. data/Guardfile +25 -0
  6. data/Rakefile +28 -2
  7. data/app/controllers/kuhsaft/admin/assets_controller.rb +41 -0
  8. data/app/controllers/kuhsaft/admin/pages_controller.rb +54 -0
  9. data/app/controllers/kuhsaft/pages_controller.rb +11 -0
  10. data/app/models/kuhsaft/asset.rb +4 -0
  11. data/app/models/kuhsaft/localized_page.rb +19 -0
  12. data/app/models/kuhsaft/page.rb +113 -0
  13. data/app/models/kuhsaft/page_part.rb +12 -0
  14. data/app/models/kuhsaft/page_parts/base.rb +26 -0
  15. data/app/models/kuhsaft/page_parts/content.rb +8 -0
  16. data/app/models/kuhsaft/page_parts/markdown.rb +7 -0
  17. data/app/stylesheets/kuhsaft/admin/ie.sass +0 -0
  18. data/app/stylesheets/kuhsaft/admin/partials/_assets.sass +12 -0
  19. data/app/stylesheets/kuhsaft/admin/partials/_buttons.sass +216 -0
  20. data/app/stylesheets/kuhsaft/admin/partials/_generic.sass +29 -0
  21. data/app/stylesheets/kuhsaft/admin/partials/_pages.sass +38 -0
  22. data/app/stylesheets/kuhsaft/admin/print.sass +0 -0
  23. data/app/stylesheets/kuhsaft/admin/screen.sass +8 -0
  24. data/app/uploaders/kuhsaft/asset_uploader.rb +47 -0
  25. data/app/views/kuhsaft/admin/assets/_form.html.haml +3 -0
  26. data/app/views/kuhsaft/admin/assets/_list.html.haml +7 -0
  27. data/app/views/kuhsaft/admin/assets/edit.html.haml +1 -0
  28. data/app/views/kuhsaft/admin/assets/index.html.haml +3 -0
  29. data/app/views/kuhsaft/admin/assets/new.html.haml +1 -0
  30. data/app/views/kuhsaft/admin/pages/_branch.html.haml +10 -0
  31. data/app/views/kuhsaft/admin/pages/_form.html.haml +11 -0
  32. data/app/views/kuhsaft/admin/pages/edit.html.haml +1 -0
  33. data/app/views/kuhsaft/admin/pages/index.html.haml +17 -0
  34. data/app/views/kuhsaft/admin/pages/new.html.haml +1 -0
  35. data/app/views/kuhsaft/admin/pages/show.html.haml +0 -0
  36. data/app/views/kuhsaft/pages/index.html.haml +0 -0
  37. data/app/views/kuhsaft/pages/show.html.haml +0 -0
  38. data/app/views/layouts/kuhsaft/admin.html.haml +21 -0
  39. data/config/initializers/compass.rb +3 -0
  40. data/config/initializers/generators.rb +7 -0
  41. data/config/locales/kuhsaft.en.yml +20 -0
  42. data/config/routes.rb +9 -0
  43. data/db/migrate/20110302101530_create_kuhsaft_pages.rb +14 -0
  44. data/db/migrate/20110302113020_create_kuhsaft_localized_pages.rb +19 -0
  45. data/db/migrate/20110302125123_create_page_part_contents.rb +14 -0
  46. data/db/migrate/20110307162621_create_assets.rb +12 -0
  47. data/kuhsaft.gemspec +19 -2
  48. data/lib/kuhsaft.rb +3 -1
  49. data/lib/kuhsaft/engine.rb +19 -0
  50. data/lib/kuhsaft/version.rb +1 -1
  51. data/public/images/css3buttons_backgrounds.png +0 -0
  52. data/public/images/css3buttons_icons.png +0 -0
  53. data/public/images/drag-handle.png +0 -0
  54. data/public/javascripts/kuhsaft/admin/jquery-1.4.4.js +7179 -0
  55. data/public/javascripts/kuhsaft/admin/jquery-ui-1.8.10.custom.min.js +110 -0
  56. data/public/javascripts/kuhsaft/admin/rails.js +157 -0
  57. data/spec/controllers/admin_assets_controller_spec.rb +26 -0
  58. data/spec/controllers/admin_pages_controller_spec.rb +33 -0
  59. data/spec/controllers/pages_controller_spec.rb +18 -0
  60. data/spec/dummy/Rakefile +7 -0
  61. data/spec/dummy/app/controllers/application_controller.rb +8 -0
  62. data/spec/dummy/app/helpers/application_helper.rb +2 -0
  63. data/spec/dummy/app/views/layouts/application.html.erb +13 -0
  64. data/spec/dummy/config.ru +4 -0
  65. data/spec/dummy/config/application.rb +45 -0
  66. data/spec/dummy/config/boot.rb +10 -0
  67. data/spec/dummy/config/database.yml +22 -0
  68. data/spec/dummy/config/environment.rb +5 -0
  69. data/spec/dummy/config/environments/development.rb +26 -0
  70. data/spec/dummy/config/environments/production.rb +49 -0
  71. data/spec/dummy/config/environments/test.rb +35 -0
  72. data/spec/dummy/config/initializers/backtrace_silencers.rb +7 -0
  73. data/spec/dummy/config/initializers/inflections.rb +10 -0
  74. data/spec/dummy/config/initializers/mime_types.rb +5 -0
  75. data/spec/dummy/config/initializers/secret_token.rb +7 -0
  76. data/spec/dummy/config/initializers/session_store.rb +8 -0
  77. data/spec/dummy/config/locales/en.yml +5 -0
  78. data/spec/dummy/config/routes.rb +58 -0
  79. data/spec/dummy/db/migrate/.gitkeep +0 -0
  80. data/spec/dummy/public/404.html +26 -0
  81. data/spec/dummy/public/422.html +26 -0
  82. data/spec/dummy/public/500.html +26 -0
  83. data/spec/dummy/public/favicon.ico +0 -0
  84. data/spec/dummy/public/images/spec-image.png +0 -0
  85. data/spec/dummy/script/rails +6 -0
  86. data/spec/factories.rb +26 -0
  87. data/spec/integration/navigation_spec.rb +9 -0
  88. data/spec/kuhsaft_spec.rb +7 -0
  89. data/spec/models/asset_spec.rb +23 -0
  90. data/spec/models/localized_page_spec.rb +67 -0
  91. data/spec/models/page_part_content_spec.rb +22 -0
  92. data/spec/models/page_part_spec.rb +17 -0
  93. data/spec/models/page_spec.rb +144 -0
  94. data/spec/routing/assets_routing_spec.rb +56 -0
  95. data/spec/routing/pages_routing_spec.rb +79 -0
  96. data/spec/spec_helper.rb +52 -0
  97. metadata +390 -9
@@ -0,0 +1,22 @@
1
+ require 'spec_helper'
2
+
3
+ describe Kuhsaft::PagePart::Content do
4
+
5
+ before :each do
6
+ @page_part = Factory.build :page_part
7
+ end
8
+
9
+ it 'should serialize it\'s content when saved' do
10
+ @page_part.content.should_receive(:to_yaml)
11
+ @page_part.save
12
+ end
13
+
14
+ it 'should deserialize it\'s content when loaded' do
15
+ @page_part.save
16
+ @page_part.content.should be_a(Kuhsaft::PagePart::Base)
17
+ end
18
+
19
+ it 'should have a text in the default markdown PagePart' do
20
+ @page_part.content.text.should == 'h1. Hello world!'
21
+ end
22
+ end
@@ -0,0 +1,17 @@
1
+ require 'spec_helper'
2
+
3
+ describe Kuhsaft::PagePart do
4
+ context 'knows its page part types' do
5
+ it 'keeps known page parts as an array' do
6
+ Kuhsaft::PagePart.all.should be_a Array
7
+ end
8
+
9
+ it 'references page part types as symbols' do
10
+ Kuhsaft::PagePart.all.should be_all { |p| p.should be_a Symbol }
11
+ end
12
+
13
+ it 'can load the corresponding modules' do
14
+ lambda { Kuhsaft::PagePart.all.each { |p| p.to_s.camelize.constantize } }.should_not raise_error NameError
15
+ end
16
+ end
17
+ end
@@ -0,0 +1,144 @@
1
+ require 'spec_helper'
2
+
3
+ describe Kuhsaft::Page do
4
+
5
+ before do
6
+ Kuhsaft::Page.translation_locales = ['en', 'de']
7
+ end
8
+
9
+ before :each do
10
+ Kuhsaft::Page.all.each { |p| p.destroy }
11
+ @page = Factory.create :page
12
+ end
13
+
14
+ it 'should have many localized_pages' do
15
+ @page.localized_pages.count.should >= 1
16
+ end
17
+
18
+ it 'should have child pages' do
19
+ p = Factory.create(:page)
20
+ @page.childs << p
21
+ @page.childs.count.should >= 1
22
+ end
23
+
24
+ it 'should be the root page' do
25
+ @page.root?.should be(true)
26
+ end
27
+
28
+ it 'should have a parent page' do
29
+ child = Factory.create(:page)
30
+ @page.childs << child
31
+ child.parent.id.should be(@page.id)
32
+ end
33
+
34
+ it 'should have a list of root pages' do
35
+ root_page = Factory.create :page
36
+ root_page.childs << Factory.create(:page)
37
+ root_page.childs << Factory.create(:page)
38
+ Kuhsaft::Page.root_pages.count.should >= 1
39
+ end
40
+
41
+ it 'should increment it\'s position by 1' do
42
+ page = Factory.create :page
43
+ position = page.position
44
+ page.increment_position
45
+ page.position.should == (position + 1)
46
+ end
47
+
48
+ it 'should decrement it\'s position by 1' do
49
+ page = Factory.create :page
50
+ position = page.position
51
+ page.decrement_position
52
+ page.position.should == (position - 1)
53
+ end
54
+
55
+ it 'should find the position of a page' do
56
+ page = Factory.create :page
57
+ position = page.position
58
+ Kuhsaft::Page.position_of(page.id).should == position
59
+ end
60
+
61
+ it 'should find the predecing sibling' do
62
+ page1 = Factory.create :page
63
+ page2 = Factory.create :page
64
+ page3 = Factory.create :page
65
+ page3.preceding_sibling.id.should == page2.id
66
+ end
67
+
68
+ it 'should find the succeeding sibling' do
69
+ page1 = Factory.create :page
70
+ page2 = Factory.create :page
71
+ page3 = Factory.create :page
72
+ page2.succeeding_sibling.id.should == page3.id
73
+ end
74
+
75
+ it 'should reposition before a page' do
76
+ page1 = Factory.create :page
77
+ page2 = Factory.create :page
78
+ page3 = Factory.create :page
79
+ page3.reposition page1.id
80
+ page3.preceding_sibling.id.should == page1.id
81
+ end
82
+
83
+ it 'should reposition before all siblings' do
84
+ page1 = Factory.create :page
85
+ page2 = Factory.create :page
86
+ page2.reposition nil
87
+ page2.position.should == 1
88
+ end
89
+
90
+ it 'should save the localized_page when saved' do
91
+ @page.localized_page.title = 'some localized title'
92
+ @page.should_receive(:save_translation)
93
+ @page.save
94
+ end
95
+
96
+ it 'should provide an array of translation locales' do
97
+ Kuhsaft::Page.translation_locales.should be_a(Array)
98
+ end
99
+
100
+ it 'should have :en as minimal translation locale' do
101
+ Kuhsaft::Page.translation_locales.include?(:en).should be_true
102
+ end
103
+
104
+ it 'should have the current translation locale' do
105
+ Kuhsaft::Page.current_translation_locale = 'de'
106
+ Kuhsaft::Page.current_translation_locale.should be(:de)
107
+ end
108
+
109
+ it 'should only contain symbolized locales' do
110
+ Kuhsaft::Page.translation_locales = ['de']
111
+ Kuhsaft::Page.translation_locales.first.should be(:de)
112
+ end
113
+
114
+ describe 'should delegate property' do
115
+ it 'should have a localized_page to delegate to' do
116
+ @page.localized_page.should be_a(Kuhsaft::LocalizedPage)
117
+ end
118
+
119
+ it 'should delegate the title to the localized_page' do
120
+ @page.title = 'Hello'
121
+ @page.localized_page.title.should == 'Hello'
122
+ end
123
+
124
+ it 'should delegate the slug to the localized_page' do
125
+ @page.slug = 'my-slug'
126
+ @page.localized_page.slug.should == 'my-slug'
127
+ end
128
+
129
+ it 'should delegate the keywords to the localized_page' do
130
+ @page.keywords = 'my keywords are superb'
131
+ @page.localized_page.keywords.should == 'my keywords are superb'
132
+ end
133
+
134
+ it 'should delegate the description to the localized_page' do
135
+ @page.description = 'my description'
136
+ @page.localized_page.description.should == 'my description'
137
+ end
138
+
139
+ it 'should delegate the locale to the localized_page' do
140
+ @page.locale = 'de'
141
+ @page.localized_page.locale.should == :de
142
+ end
143
+ end
144
+ end
@@ -0,0 +1,56 @@
1
+ require 'spec_helper'
2
+
3
+ describe 'routing to Kuhsaft::Admin::AssetsController' do
4
+ it 'routes /admin/assets to admin/assets#index' do
5
+ { :get => '/admin/assets' }.should route_to(
6
+ :controller => 'kuhsaft/admin/assets',
7
+ :action => 'index'
8
+ )
9
+ end
10
+
11
+ it 'routes POST /admin/assets to admin/assets#create' do
12
+ { :post => '/admin/assets' }.should route_to(
13
+ :controller => 'kuhsaft/admin/assets',
14
+ :action => 'create'
15
+ )
16
+ end
17
+
18
+ it 'routes PUT /admin/assets/:id to admin/assets#update' do
19
+ { :put => '/admin/assets/1' }.should route_to(
20
+ :controller => 'kuhsaft/admin/assets',
21
+ :action => 'update',
22
+ :id => '1'
23
+ )
24
+ end
25
+
26
+ it 'routes DELETE /admin/assets/:id to admin/assets#destroy' do
27
+ { :delete => '/admin/assets/1' }.should route_to(
28
+ :controller => 'kuhsaft/admin/assets',
29
+ :action => 'destroy',
30
+ :id => '1'
31
+ )
32
+ end
33
+
34
+ it 'routes /admin/assets/:id to admin/assets#show' do
35
+ { :get => '/admin/assets/1' }.should route_to(
36
+ :controller => 'kuhsaft/admin/assets',
37
+ :action => 'show',
38
+ :id => '1'
39
+ )
40
+ end
41
+
42
+ it 'routes /admin/assets/new to admin/assets#new' do
43
+ { :get => '/admin/assets/new' }.should route_to(
44
+ :controller => 'kuhsaft/admin/assets',
45
+ :action => 'new'
46
+ )
47
+ end
48
+
49
+ it 'routes /admin/assets/:id/edit to admin/assets#edit' do
50
+ { :get => '/admin/assets/1/edit' }.should route_to(
51
+ :controller => 'kuhsaft/admin/assets',
52
+ :action => 'edit',
53
+ :id => '1'
54
+ )
55
+ end
56
+ end
@@ -0,0 +1,79 @@
1
+ require 'spec_helper'
2
+
3
+ describe 'routing to Kuhsaft::PagesController' do
4
+ it 'routes /:translation_locale/:slug to pages#show' do
5
+ { :get => '/en/my-slug' }.should route_to(
6
+ :controller => 'kuhsaft/pages',
7
+ :action => 'show',
8
+ :slug => 'my-slug',
9
+ :translation_locale => 'en'
10
+ )
11
+ end
12
+
13
+ it 'does not expose pages#new' do
14
+ { :get => '/pages/new' }.should_not be_routable
15
+ end
16
+
17
+ it 'does not expose pages#edit' do
18
+ { :get => '/pages/1/edit' }.should_not be_routable
19
+ end
20
+
21
+ it 'does not expose pages#destroy' do
22
+ { :get => '/pages/1/destroy' }.should_not be_routable
23
+ end
24
+ end
25
+
26
+ describe 'routing to Kuhsaft::Admin::PagesController' do
27
+ it 'routes /admin/pages to admin/pages#index' do
28
+ { :get => '/admin/pages' }.should route_to(
29
+ :controller => 'kuhsaft/admin/pages',
30
+ :action => 'index'
31
+ )
32
+ end
33
+
34
+ it 'routes POST /admin/pages to admin/pages#create' do
35
+ { :post => '/admin/pages' }.should route_to(
36
+ :controller => 'kuhsaft/admin/pages',
37
+ :action => 'create'
38
+ )
39
+ end
40
+
41
+ it 'routes PUT /admin/pages/:id to admin/pages#update' do
42
+ { :put => '/admin/pages/1' }.should route_to(
43
+ :controller => 'kuhsaft/admin/pages',
44
+ :action => 'update',
45
+ :id => '1'
46
+ )
47
+ end
48
+
49
+ it 'routes DELETE /admin/pages/:id to admin/pages#destroy' do
50
+ { :delete => '/admin/pages/1' }.should route_to(
51
+ :controller => 'kuhsaft/admin/pages',
52
+ :action => 'destroy',
53
+ :id => '1'
54
+ )
55
+ end
56
+
57
+ it 'routes /admin/pages/:id to admin/pages#show' do
58
+ { :get => '/admin/pages/1' }.should route_to(
59
+ :controller => 'kuhsaft/admin/pages',
60
+ :action => 'show',
61
+ :id => '1'
62
+ )
63
+ end
64
+
65
+ it 'routes /admin/pages/new to admin/pages#new' do
66
+ { :get => '/admin/pages/new' }.should route_to(
67
+ :controller => 'kuhsaft/admin/pages',
68
+ :action => 'new'
69
+ )
70
+ end
71
+
72
+ it 'routes /admin/pages/:id/edit to admin/pages#edit' do
73
+ { :get => '/admin/pages/1/edit' }.should route_to(
74
+ :controller => 'kuhsaft/admin/pages',
75
+ :action => 'edit',
76
+ :id => '1'
77
+ )
78
+ end
79
+ end
@@ -0,0 +1,52 @@
1
+ require 'spork'
2
+
3
+ Spork.prefork do
4
+ # Configure Rails Envinronment
5
+ ENV["RAILS_ENV"] = "test"
6
+
7
+ require File.expand_path("../dummy/config/environment.rb", __FILE__)
8
+ require "rails/test_help"
9
+ require "rspec/rails"
10
+ require 'factory_girl'
11
+ require "capybara/rails"
12
+ require 'factories'
13
+
14
+ ActionMailer::Base.delivery_method = :test
15
+ ActionMailer::Base.perform_deliveries = true
16
+ ActionMailer::Base.default_url_options[:host] = "test.com"
17
+
18
+ Rails.backtrace_cleaner.remove_silencers!
19
+
20
+ # Configure capybara for integration testing
21
+ Capybara.default_driver = :rack_test
22
+ Capybara.default_selector = :css
23
+
24
+ # Drop all records and run any available migration
25
+ migrations_source = File.expand_path("../../db/migrate/", __FILE__)
26
+ migrations_destination = File.expand_path("../dummy/db/", __FILE__)
27
+
28
+ system "cp -R #{migrations_source} #{migrations_destination}"
29
+ ActiveRecord::Base.connection.tables.each { |table| ActiveRecord::Base.connection.drop_table(table) }
30
+ ActiveRecord::Migrator.migrate File.expand_path("../dummy/db/migrate/", __FILE__)
31
+
32
+ # Load support files
33
+ Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each { |f| require f }
34
+
35
+ RSpec.configure do |config|
36
+ # Remove this line if you don't want RSpec's should and should_not
37
+ # methods or matchers
38
+ require 'rspec/expectations'
39
+ require 'carrierwave/test/matchers'
40
+
41
+ config.include RSpec::Matchers
42
+ config.include CarrierWave::Test::Matchers
43
+
44
+ # == Mock Framework
45
+ config.mock_with :rspec
46
+ config.use_transactional_fixtures = true
47
+ end
48
+ end
49
+
50
+ Spork.each_run do
51
+
52
+ end
metadata CHANGED
@@ -1,25 +1,243 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kuhsaft
3
3
  version: !ruby/object:Gem::Version
4
- hash: 27
4
+ hash: 25
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 2
10
- version: 0.0.2
9
+ - 3
10
+ version: 0.0.3
11
11
  platform: ruby
12
12
  authors:
13
+ - "Immanuel H\xC3\xA4ussermann"
13
14
  - Felipe Kaufmann
14
15
  - Phil Schilter
15
16
  autorequire:
16
17
  bindir: bin
17
18
  cert_chain: []
18
19
 
19
- date: 2011-02-25 00:00:00 +01:00
20
+ date: 2011-03-10 00:00:00 +01:00
20
21
  default_executable:
21
- dependencies: []
22
-
22
+ dependencies:
23
+ - !ruby/object:Gem::Dependency
24
+ name: rspec-rails
25
+ prerelease: false
26
+ requirement: &id001 !ruby/object:Gem::Requirement
27
+ none: false
28
+ requirements:
29
+ - - ">="
30
+ - !ruby/object:Gem::Version
31
+ hash: 3
32
+ segments:
33
+ - 0
34
+ version: "0"
35
+ type: :development
36
+ version_requirements: *id001
37
+ - !ruby/object:Gem::Dependency
38
+ name: factory_girl_rails
39
+ prerelease: false
40
+ requirement: &id002 !ruby/object:Gem::Requirement
41
+ none: false
42
+ requirements:
43
+ - - ">="
44
+ - !ruby/object:Gem::Version
45
+ hash: 3
46
+ segments:
47
+ - 0
48
+ version: "0"
49
+ type: :development
50
+ version_requirements: *id002
51
+ - !ruby/object:Gem::Dependency
52
+ name: capybara
53
+ prerelease: false
54
+ requirement: &id003 !ruby/object:Gem::Requirement
55
+ none: false
56
+ requirements:
57
+ - - ">="
58
+ - !ruby/object:Gem::Version
59
+ hash: 15
60
+ segments:
61
+ - 0
62
+ - 4
63
+ - 0
64
+ version: 0.4.0
65
+ type: :development
66
+ version_requirements: *id003
67
+ - !ruby/object:Gem::Dependency
68
+ name: ruby-debug
69
+ prerelease: false
70
+ requirement: &id004 !ruby/object:Gem::Requirement
71
+ none: false
72
+ requirements:
73
+ - - ">="
74
+ - !ruby/object:Gem::Version
75
+ hash: 3
76
+ segments:
77
+ - 0
78
+ version: "0"
79
+ type: :development
80
+ version_requirements: *id004
81
+ - !ruby/object:Gem::Dependency
82
+ name: sqlite3-ruby
83
+ prerelease: false
84
+ requirement: &id005 !ruby/object:Gem::Requirement
85
+ none: false
86
+ requirements:
87
+ - - "="
88
+ - !ruby/object:Gem::Version
89
+ hash: 21
90
+ segments:
91
+ - 1
92
+ - 2
93
+ - 5
94
+ version: 1.2.5
95
+ type: :development
96
+ version_requirements: *id005
97
+ - !ruby/object:Gem::Dependency
98
+ name: guard
99
+ prerelease: false
100
+ requirement: &id006 !ruby/object:Gem::Requirement
101
+ none: false
102
+ requirements:
103
+ - - ">="
104
+ - !ruby/object:Gem::Version
105
+ hash: 3
106
+ segments:
107
+ - 0
108
+ version: "0"
109
+ type: :development
110
+ version_requirements: *id006
111
+ - !ruby/object:Gem::Dependency
112
+ name: guard-spork
113
+ prerelease: false
114
+ requirement: &id007 !ruby/object:Gem::Requirement
115
+ none: false
116
+ requirements:
117
+ - - ">="
118
+ - !ruby/object:Gem::Version
119
+ hash: 3
120
+ segments:
121
+ - 0
122
+ version: "0"
123
+ type: :development
124
+ version_requirements: *id007
125
+ - !ruby/object:Gem::Dependency
126
+ name: guard-rspec
127
+ prerelease: false
128
+ requirement: &id008 !ruby/object:Gem::Requirement
129
+ none: false
130
+ requirements:
131
+ - - ">="
132
+ - !ruby/object:Gem::Version
133
+ hash: 3
134
+ segments:
135
+ - 0
136
+ version: "0"
137
+ type: :development
138
+ version_requirements: *id008
139
+ - !ruby/object:Gem::Dependency
140
+ name: growl
141
+ prerelease: false
142
+ requirement: &id009 !ruby/object:Gem::Requirement
143
+ none: false
144
+ requirements:
145
+ - - ">="
146
+ - !ruby/object:Gem::Version
147
+ hash: 3
148
+ segments:
149
+ - 0
150
+ version: "0"
151
+ type: :development
152
+ version_requirements: *id009
153
+ - !ruby/object:Gem::Dependency
154
+ name: rails
155
+ prerelease: false
156
+ requirement: &id010 !ruby/object:Gem::Requirement
157
+ none: false
158
+ requirements:
159
+ - - "="
160
+ - !ruby/object:Gem::Version
161
+ hash: 15
162
+ segments:
163
+ - 3
164
+ - 0
165
+ - 4
166
+ version: 3.0.4
167
+ type: :runtime
168
+ version_requirements: *id010
169
+ - !ruby/object:Gem::Dependency
170
+ name: haml
171
+ prerelease: false
172
+ requirement: &id011 !ruby/object:Gem::Requirement
173
+ none: false
174
+ requirements:
175
+ - - "="
176
+ - !ruby/object:Gem::Version
177
+ hash: 53
178
+ segments:
179
+ - 3
180
+ - 0
181
+ - 25
182
+ version: 3.0.25
183
+ type: :runtime
184
+ version_requirements: *id011
185
+ - !ruby/object:Gem::Dependency
186
+ name: compass
187
+ prerelease: false
188
+ requirement: &id012 !ruby/object:Gem::Requirement
189
+ none: false
190
+ requirements:
191
+ - - ">="
192
+ - !ruby/object:Gem::Version
193
+ hash: 3
194
+ segments:
195
+ - 0
196
+ version: "0"
197
+ type: :runtime
198
+ version_requirements: *id012
199
+ - !ruby/object:Gem::Dependency
200
+ name: simple_form
201
+ prerelease: false
202
+ requirement: &id013 !ruby/object:Gem::Requirement
203
+ none: false
204
+ requirements:
205
+ - - ">="
206
+ - !ruby/object:Gem::Version
207
+ hash: 3
208
+ segments:
209
+ - 0
210
+ version: "0"
211
+ type: :runtime
212
+ version_requirements: *id013
213
+ - !ruby/object:Gem::Dependency
214
+ name: carrierwave
215
+ prerelease: false
216
+ requirement: &id014 !ruby/object:Gem::Requirement
217
+ none: false
218
+ requirements:
219
+ - - ">="
220
+ - !ruby/object:Gem::Version
221
+ hash: 3
222
+ segments:
223
+ - 0
224
+ version: "0"
225
+ type: :runtime
226
+ version_requirements: *id014
227
+ - !ruby/object:Gem::Dependency
228
+ name: rmagick
229
+ prerelease: false
230
+ requirement: &id015 !ruby/object:Gem::Requirement
231
+ none: false
232
+ requirements:
233
+ - - ">="
234
+ - !ruby/object:Gem::Version
235
+ hash: 3
236
+ segments:
237
+ - 0
238
+ version: "0"
239
+ type: :runtime
240
+ version_requirements: *id015
23
241
  description: Kuhsaft is a Rails engine that offers a simple CMS.
24
242
  email: developers@screenconcept.ch
25
243
  executables: []
@@ -30,12 +248,119 @@ extra_rdoc_files: []
30
248
 
31
249
  files:
32
250
  - .gitignore
251
+ - .rspec
252
+ - .rvmrc
33
253
  - Gemfile
254
+ - Guardfile
34
255
  - README
35
256
  - Rakefile
257
+ - app/controllers/kuhsaft/admin/assets_controller.rb
258
+ - app/controllers/kuhsaft/admin/pages_controller.rb
259
+ - app/controllers/kuhsaft/pages_controller.rb
260
+ - app/models/kuhsaft/asset.rb
261
+ - app/models/kuhsaft/localized_page.rb
262
+ - app/models/kuhsaft/page.rb
263
+ - app/models/kuhsaft/page_part.rb
264
+ - app/models/kuhsaft/page_parts/base.rb
265
+ - app/models/kuhsaft/page_parts/content.rb
266
+ - app/models/kuhsaft/page_parts/markdown.rb
267
+ - app/stylesheets/kuhsaft/admin/ie.sass
268
+ - app/stylesheets/kuhsaft/admin/partials/_assets.sass
269
+ - app/stylesheets/kuhsaft/admin/partials/_buttons.sass
270
+ - app/stylesheets/kuhsaft/admin/partials/_generic.sass
271
+ - app/stylesheets/kuhsaft/admin/partials/_pages.sass
272
+ - app/stylesheets/kuhsaft/admin/print.sass
273
+ - app/stylesheets/kuhsaft/admin/screen.sass
274
+ - app/uploaders/kuhsaft/asset_uploader.rb
275
+ - app/views/kuhsaft/admin/assets/_form.html.haml
276
+ - app/views/kuhsaft/admin/assets/_list.html.haml
277
+ - app/views/kuhsaft/admin/assets/edit.html.haml
278
+ - app/views/kuhsaft/admin/assets/index.html.haml
279
+ - app/views/kuhsaft/admin/assets/new.html.haml
280
+ - app/views/kuhsaft/admin/pages/_branch.html.haml
281
+ - app/views/kuhsaft/admin/pages/_form.html.haml
282
+ - app/views/kuhsaft/admin/pages/edit.html.haml
283
+ - app/views/kuhsaft/admin/pages/index.html.haml
284
+ - app/views/kuhsaft/admin/pages/new.html.haml
285
+ - app/views/kuhsaft/admin/pages/show.html.haml
286
+ - app/views/kuhsaft/pages/index.html.haml
287
+ - app/views/kuhsaft/pages/show.html.haml
288
+ - app/views/layouts/kuhsaft/admin.html.haml
289
+ - config/initializers/compass.rb
290
+ - config/initializers/generators.rb
291
+ - config/locales/kuhsaft.en.yml
292
+ - config/routes.rb
293
+ - db/migrate/20110302101530_create_kuhsaft_pages.rb
294
+ - db/migrate/20110302113020_create_kuhsaft_localized_pages.rb
295
+ - db/migrate/20110302125123_create_page_part_contents.rb
296
+ - db/migrate/20110307162621_create_assets.rb
36
297
  - kuhsaft.gemspec
37
298
  - lib/kuhsaft.rb
299
+ - lib/kuhsaft/engine.rb
38
300
  - lib/kuhsaft/version.rb
301
+ - public/images/css3buttons_backgrounds.png
302
+ - public/images/css3buttons_icons.png
303
+ - public/images/drag-handle.png
304
+ - public/javascripts/kuhsaft/admin/jquery-1.4.4.js
305
+ - public/javascripts/kuhsaft/admin/jquery-ui-1.8.10.custom.min.js
306
+ - public/javascripts/kuhsaft/admin/rails.js
307
+ - spec/controllers/admin_assets_controller_spec.rb
308
+ - spec/controllers/admin_pages_controller_spec.rb
309
+ - spec/controllers/pages_controller_spec.rb
310
+ - spec/dummy/Rakefile
311
+ - spec/dummy/app/controllers/application_controller.rb
312
+ - spec/dummy/app/helpers/application_helper.rb
313
+ - spec/dummy/app/views/layouts/application.html.erb
314
+ - spec/dummy/config.ru
315
+ - spec/dummy/config/application.rb
316
+ - spec/dummy/config/boot.rb
317
+ - spec/dummy/config/database.yml
318
+ - spec/dummy/config/environment.rb
319
+ - spec/dummy/config/environments/development.rb
320
+ - spec/dummy/config/environments/production.rb
321
+ - spec/dummy/config/environments/test.rb
322
+ - spec/dummy/config/initializers/backtrace_silencers.rb
323
+ - spec/dummy/config/initializers/inflections.rb
324
+ - spec/dummy/config/initializers/mime_types.rb
325
+ - spec/dummy/config/initializers/secret_token.rb
326
+ - spec/dummy/config/initializers/session_store.rb
327
+ - spec/dummy/config/locales/en.yml
328
+ - spec/dummy/config/routes.rb
329
+ - spec/dummy/db/migrate/.gitkeep
330
+ - spec/dummy/public/404.html
331
+ - spec/dummy/public/422.html
332
+ - spec/dummy/public/500.html
333
+ - spec/dummy/public/favicon.ico
334
+ - spec/dummy/public/images/spec-image.png
335
+ - spec/dummy/public/stylesheets/.gitkeep
336
+ - spec/dummy/public/uploads/tmp/20110307-1640-2790-0366/spec-image.png
337
+ - spec/dummy/public/uploads/tmp/20110307-1640-2790-0366/thumb_spec-image.png
338
+ - spec/dummy/public/uploads/tmp/20110307-1640-2790-1108/spec-image.png
339
+ - spec/dummy/public/uploads/tmp/20110307-1640-2790-1108/thumb_spec-image.png
340
+ - spec/dummy/public/uploads/tmp/20110307-1644-2905-8348/spec-image.png
341
+ - spec/dummy/public/uploads/tmp/20110307-1644-2905-8348/thumb_spec-image.png
342
+ - spec/dummy/public/uploads/tmp/20110307-1644-2905-9118/spec-image.png
343
+ - spec/dummy/public/uploads/tmp/20110307-1644-2905-9118/thumb_spec-image.png
344
+ - spec/dummy/public/uploads/tmp/20110307-1644-2927-2810/spec-image.png
345
+ - spec/dummy/public/uploads/tmp/20110307-1644-2927-2810/thumb_spec-image.png
346
+ - spec/dummy/public/uploads/tmp/20110307-1644-2927-4402/spec-image.png
347
+ - spec/dummy/public/uploads/tmp/20110307-1644-2927-4402/thumb_spec-image.png
348
+ - spec/dummy/public/uploads/tmp/20110307-1701-3131-2776/spec-image.png
349
+ - spec/dummy/public/uploads/tmp/20110307-1701-3131-2776/thumb_spec-image.png
350
+ - spec/dummy/public/uploads/tmp/20110307-1701-3131-3813/spec-image.png
351
+ - spec/dummy/public/uploads/tmp/20110307-1701-3131-3813/thumb_spec-image.png
352
+ - spec/dummy/script/rails
353
+ - spec/factories.rb
354
+ - spec/integration/navigation_spec.rb
355
+ - spec/kuhsaft_spec.rb
356
+ - spec/models/asset_spec.rb
357
+ - spec/models/localized_page_spec.rb
358
+ - spec/models/page_part_content_spec.rb
359
+ - spec/models/page_part_spec.rb
360
+ - spec/models/page_spec.rb
361
+ - spec/routing/assets_routing_spec.rb
362
+ - spec/routing/pages_routing_spec.rb
363
+ - spec/spec_helper.rb
39
364
  has_rdoc: true
40
365
  homepage: http://github.com/screenconcept/kuhsaft
41
366
  licenses: []
@@ -66,9 +391,65 @@ required_rubygems_version: !ruby/object:Gem::Requirement
66
391
  requirements: []
67
392
 
68
393
  rubyforge_project: kuhsaft
69
- rubygems_version: 1.4.1
394
+ rubygems_version: 1.6.1
70
395
  signing_key:
71
396
  specification_version: 3
72
397
  summary: A tool that helps you to manage your content within your app.
73
- test_files: []
74
-
398
+ test_files:
399
+ - spec/controllers/admin_assets_controller_spec.rb
400
+ - spec/controllers/admin_pages_controller_spec.rb
401
+ - spec/controllers/pages_controller_spec.rb
402
+ - spec/dummy/Rakefile
403
+ - spec/dummy/app/controllers/application_controller.rb
404
+ - spec/dummy/app/helpers/application_helper.rb
405
+ - spec/dummy/app/views/layouts/application.html.erb
406
+ - spec/dummy/config.ru
407
+ - spec/dummy/config/application.rb
408
+ - spec/dummy/config/boot.rb
409
+ - spec/dummy/config/database.yml
410
+ - spec/dummy/config/environment.rb
411
+ - spec/dummy/config/environments/development.rb
412
+ - spec/dummy/config/environments/production.rb
413
+ - spec/dummy/config/environments/test.rb
414
+ - spec/dummy/config/initializers/backtrace_silencers.rb
415
+ - spec/dummy/config/initializers/inflections.rb
416
+ - spec/dummy/config/initializers/mime_types.rb
417
+ - spec/dummy/config/initializers/secret_token.rb
418
+ - spec/dummy/config/initializers/session_store.rb
419
+ - spec/dummy/config/locales/en.yml
420
+ - spec/dummy/config/routes.rb
421
+ - spec/dummy/db/migrate/.gitkeep
422
+ - spec/dummy/public/404.html
423
+ - spec/dummy/public/422.html
424
+ - spec/dummy/public/500.html
425
+ - spec/dummy/public/favicon.ico
426
+ - spec/dummy/public/images/spec-image.png
427
+ - spec/dummy/public/stylesheets/.gitkeep
428
+ - spec/dummy/public/uploads/tmp/20110307-1640-2790-0366/spec-image.png
429
+ - spec/dummy/public/uploads/tmp/20110307-1640-2790-0366/thumb_spec-image.png
430
+ - spec/dummy/public/uploads/tmp/20110307-1640-2790-1108/spec-image.png
431
+ - spec/dummy/public/uploads/tmp/20110307-1640-2790-1108/thumb_spec-image.png
432
+ - spec/dummy/public/uploads/tmp/20110307-1644-2905-8348/spec-image.png
433
+ - spec/dummy/public/uploads/tmp/20110307-1644-2905-8348/thumb_spec-image.png
434
+ - spec/dummy/public/uploads/tmp/20110307-1644-2905-9118/spec-image.png
435
+ - spec/dummy/public/uploads/tmp/20110307-1644-2905-9118/thumb_spec-image.png
436
+ - spec/dummy/public/uploads/tmp/20110307-1644-2927-2810/spec-image.png
437
+ - spec/dummy/public/uploads/tmp/20110307-1644-2927-2810/thumb_spec-image.png
438
+ - spec/dummy/public/uploads/tmp/20110307-1644-2927-4402/spec-image.png
439
+ - spec/dummy/public/uploads/tmp/20110307-1644-2927-4402/thumb_spec-image.png
440
+ - spec/dummy/public/uploads/tmp/20110307-1701-3131-2776/spec-image.png
441
+ - spec/dummy/public/uploads/tmp/20110307-1701-3131-2776/thumb_spec-image.png
442
+ - spec/dummy/public/uploads/tmp/20110307-1701-3131-3813/spec-image.png
443
+ - spec/dummy/public/uploads/tmp/20110307-1701-3131-3813/thumb_spec-image.png
444
+ - spec/dummy/script/rails
445
+ - spec/factories.rb
446
+ - spec/integration/navigation_spec.rb
447
+ - spec/kuhsaft_spec.rb
448
+ - spec/models/asset_spec.rb
449
+ - spec/models/localized_page_spec.rb
450
+ - spec/models/page_part_content_spec.rb
451
+ - spec/models/page_part_spec.rb
452
+ - spec/models/page_spec.rb
453
+ - spec/routing/assets_routing_spec.rb
454
+ - spec/routing/pages_routing_spec.rb
455
+ - spec/spec_helper.rb