spree_static_content 0.60.1 → 0.70.3

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.
Files changed (44) hide show
  1. data/README.md +45 -0
  2. data/app/controllers/static_content_controller.rb +2 -2
  3. data/app/models/page.rb +8 -5
  4. data/app/overrides/static_content_admin_tab.rb +4 -0
  5. data/app/views/admin/pages/_form.html.erb +1 -2
  6. data/app/views/admin/pages/edit.html.erb +1 -1
  7. data/lib/generators/spree_static_content/install_generator.rb +13 -8
  8. data/lib/spree_static_content.rb +8 -2
  9. metadata +64 -77
  10. data/.gitignore +0 -2
  11. data/CONTRIBUTORS.textile +0 -7
  12. data/README.rdoc +0 -34
  13. data/Rakefile +0 -113
  14. data/VERSION +0 -1
  15. data/Versionfile +0 -3
  16. data/config/locales/de-CH.yml +0 -23
  17. data/config/locales/en-AU.yml +0 -23
  18. data/config/locales/en-GB.yml +0 -23
  19. data/config/locales/en.yml +0 -32
  20. data/config/locales/es-ES.yml +0 -18
  21. data/config/locales/fr-FR.yml +0 -23
  22. data/config/locales/nl-BE.yml +0 -23
  23. data/config/locales/nl-NL.yml +0 -23
  24. data/config/locales/pl.yml +0 -21
  25. data/config/locales/pt-BR.yml +0 -15
  26. data/config/locales/ru.yml +0 -33
  27. data/config/routes.rb +0 -9
  28. data/lib/generators/templates/db/migrate/20081216193152_create_pages.rb +0 -15
  29. data/lib/generators/templates/db/migrate/20090625125735_extend_pages.rb +0 -21
  30. data/lib/generators/templates/db/migrate/20090814113100_add_visible_to_pages.rb +0 -10
  31. data/lib/generators/templates/db/migrate/20090814142845_add_default_true_to_visible_for_page.rb +0 -8
  32. data/lib/generators/templates/db/migrate/20090829000527_add_index_for_page.rb +0 -10
  33. data/lib/generators/templates/db/migrate/20091219021134_add_meta_fields_to_pages.rb +0 -9
  34. data/lib/generators/templates/db/migrate/20100204105222_add_layout_to_pages.rb +0 -9
  35. data/lib/generators/templates/db/migrate/20100323085528_add_show_in_sidebar_option_to_pages.rb +0 -9
  36. data/lib/generators/templates/public/stylesheets/formtastic.css +0 -145
  37. data/lib/generators/templates/public/stylesheets/formtastic_changes.css +0 -14
  38. data/lib/spree_static_content_hooks.rb +0 -5
  39. data/spec/controllers/admin/pages_controller_spec.rb +0 -5
  40. data/spec/controllers/content_controller_spec.rb +0 -18
  41. data/spec/models/page_spec.rb +0 -20
  42. data/spec/spec.opts +0 -3
  43. data/spec/spec_helper.rb +0 -28
  44. data/spree_static_content.gemspec +0 -96
@@ -1,14 +0,0 @@
1
- form.formtastic fieldset > ol > li label { float: none; width: auto; }
2
- form.formtastic fieldset > ol > li.boolean label { padding-left: 0; }
3
- form.formtastic input[type=text] { padding: 5px; }
4
- form.formtastic .numeric input[type=text] { width: 5em; }
5
- form.formtastic fieldset > ol > li p.inline-errors { margin-left: 0 }
6
- form.formtastic .required label { color: black; }
7
- form.formtastic .required label abbr { color: red; padding-left: 3px; }
8
- form.formtastic li.error {
9
- background-color: #FDE4E4;
10
- background-image: url(/images/admin/bg/red-stripes.png);
11
- }
12
- form.formtastic fieldset > ol > li {
13
- padding-left: 1em;
14
- }
@@ -1,5 +0,0 @@
1
- class SpreeStaticContentHooks < Spree::ThemeSupport::HookListener
2
- insert_after :admin_tabs do
3
- %(<%= tab(:pages) %>)
4
- end
5
- end
@@ -1,5 +0,0 @@
1
- require File.dirname(__FILE__) + '/../../spec_helper'
2
-
3
- describe Admin::PagesController do
4
-
5
- end
@@ -1,18 +0,0 @@
1
- require File.dirname(__FILE__) + '/../spec_helper'
2
-
3
- describe ContentController do
4
-
5
- before(:each) do
6
- @page = mock("page")
7
-
8
- # Generally, prefer stub! over should_receive in setup.
9
- @page.stub!(:slug).and_return('/test')
10
- @page.stub!(:title).and_return('Testing 123')
11
- @page.stub!(:body).and_return('This is a test... cooool')
12
- end
13
-
14
- it "should use the catch all route to place path in path variable" do
15
- params_from(:get, "/foobar").should == {:controller => "content", :action => "show", :path=>["foobar"]}
16
- end
17
-
18
- end
@@ -1,20 +0,0 @@
1
- require File.dirname(__FILE__) + '/../spec_helper'
2
-
3
- describe Page do
4
- before(:each) do
5
- @page = Page.create(
6
- :title => 'test page',
7
- :slug => 'test-page',
8
- :body => 'this is a test page'
9
- )
10
- end
11
-
12
- it "should be valid" do
13
- @page.should be_valid
14
- end
15
-
16
- it "should add an / to the slug" do
17
- @page.slug.should == "/test-page"
18
- end
19
-
20
- end
data/spec/spec.opts DELETED
@@ -1,3 +0,0 @@
1
- --colour
2
- --format
3
- progress
data/spec/spec_helper.rb DELETED
@@ -1,28 +0,0 @@
1
- # This file is copied to ~/spec when you run 'ruby script/generate rspec'
2
- # from the project root directory.
3
- ENV["RAILS_ENV"] ||= 'test'
4
- require File.expand_path("#{::Rails.root}/config/environment", __FILE__)
5
- require 'rspec/rails'
6
- require 'fabrication'
7
-
8
- # Requires supporting files with custom matchers and macros, etc,
9
- # in ./support/ and its subdirectories.
10
- Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each {|f| require f}
11
-
12
- RSpec.configure do |config|
13
- # == Mock Framework
14
- #
15
- # If you prefer to use mocha, flexmock or RR, uncomment the appropriate line:
16
- #
17
- # config.mock_with :mocha
18
- # config.mock_with :flexmock
19
- # config.mock_with :rr
20
- config.mock_with :rspec
21
-
22
- config.fixture_path = "#{::Rails.root}/spec/fixtures"
23
-
24
- # If you're not using ActiveRecord, or you'd prefer not to run each of your
25
- # examples within a transaction, comment the following line or assign false
26
- # instead of true.
27
- config.use_transactional_fixtures = true
28
- end
@@ -1,96 +0,0 @@
1
- # Generated by jeweler
2
- # DO NOT EDIT THIS FILE DIRECTLY
3
- # Instead, edit Jeweler::Tasks in Rakefile, and run the gemspec command
4
- # -*- encoding: utf-8 -*-
5
-
6
- Gem::Specification.new do |s|
7
- s.name = %q{spree_static_content}
8
- s.version = "0.60.1"
9
-
10
- s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
- s.authors = ["Peter Berkenbosch", "Roman Smirnov"]
12
- s.date = %q{2011-06-25}
13
- s.description = %q{Extention to manage the static pages for your Spree shop.}
14
- s.extra_rdoc_files = [
15
- "README.rdoc"
16
- ]
17
- s.files = [
18
- ".gitignore",
19
- "CONTRIBUTORS.textile",
20
- "README.rdoc",
21
- "Rakefile",
22
- "VERSION",
23
- "Versionfile",
24
- "app/controllers/admin/pages_controller.rb",
25
- "app/controllers/spree/base_controller_decorator.rb",
26
- "app/controllers/static_content_controller.rb",
27
- "app/models/page.rb",
28
- "app/views/admin/pages/_form.html.erb",
29
- "app/views/admin/pages/edit.html.erb",
30
- "app/views/admin/pages/index.html.erb",
31
- "app/views/admin/pages/new.html.erb",
32
- "app/views/static_content/show.html.erb",
33
- "config/locales/de-CH.yml",
34
- "config/locales/en-AU.yml",
35
- "config/locales/en-GB.yml",
36
- "config/locales/en.yml",
37
- "config/locales/es-ES.yml",
38
- "config/locales/fr-FR.yml",
39
- "config/locales/nl-BE.yml",
40
- "config/locales/nl-NL.yml",
41
- "config/locales/pl.yml",
42
- "config/locales/pt-BR.yml",
43
- "config/locales/ru.yml",
44
- "config/routes.rb",
45
- "lib/generators/spree_static_content/install_generator.rb",
46
- "lib/generators/templates/db/migrate/20081216193152_create_pages.rb",
47
- "lib/generators/templates/db/migrate/20090625125735_extend_pages.rb",
48
- "lib/generators/templates/db/migrate/20090814113100_add_visible_to_pages.rb",
49
- "lib/generators/templates/db/migrate/20090814142845_add_default_true_to_visible_for_page.rb",
50
- "lib/generators/templates/db/migrate/20090829000527_add_index_for_page.rb",
51
- "lib/generators/templates/db/migrate/20091219021134_add_meta_fields_to_pages.rb",
52
- "lib/generators/templates/db/migrate/20100204105222_add_layout_to_pages.rb",
53
- "lib/generators/templates/db/migrate/20100323085528_add_show_in_sidebar_option_to_pages.rb",
54
- "lib/generators/templates/public/stylesheets/formtastic.css",
55
- "lib/generators/templates/public/stylesheets/formtastic_changes.css",
56
- "lib/spree_static_content.rb",
57
- "lib/spree_static_content_hooks.rb",
58
- "spec/controllers/admin/pages_controller_spec.rb",
59
- "spec/controllers/content_controller_spec.rb",
60
- "spec/models/page_spec.rb",
61
- "spec/spec.opts",
62
- "spec/spec_helper.rb",
63
- "spree_static_content.gemspec"
64
- ]
65
- s.homepage = %q{http://github.com/spree/spree-static-content}
66
- s.rdoc_options = ["--charset=UTF-8"]
67
- s.require_paths = ["lib"]
68
- s.rubygems_version = %q{1.3.6}
69
- s.summary = %q{Extention to manage the static pages for your Spree shop.}
70
- s.test_files = [
71
- "spec/models/page_spec.rb",
72
- "spec/spec_helper.rb",
73
- "spec/controllers/content_controller_spec.rb",
74
- "spec/controllers/admin/pages_controller_spec.rb"
75
- ]
76
-
77
- if s.respond_to? :specification_version then
78
- current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
79
- s.specification_version = 3
80
-
81
- if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
82
- s.add_runtime_dependency(%q<spree_core>, [">= 0.60.0"])
83
- s.add_runtime_dependency(%q<spree_editor>, [">= 0.50.0"])
84
- s.add_runtime_dependency(%q<formtastic>, ["~> 1.2.3"])
85
- else
86
- s.add_dependency(%q<spree_core>, [">= 0.60.0"])
87
- s.add_dependency(%q<spree_editor>, [">= 0.50.0"])
88
- s.add_dependency(%q<formtastic>, ["~> 1.2.3"])
89
- end
90
- else
91
- s.add_dependency(%q<spree_core>, [">= 0.60.0"])
92
- s.add_dependency(%q<spree_editor>, [">= 0.50.0"])
93
- s.add_dependency(%q<formtastic>, ["~> 1.2.3"])
94
- end
95
- end
96
-