refinerycms 1.0.11 → 2.0.0

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/refinerycms.gemspec DELETED
@@ -1,85 +0,0 @@
1
- # Encoding: UTF-8
2
- # DO NOT EDIT THIS FILE DIRECTLY! Instead, use lib/gemspec.rb to generate it.
3
-
4
- Gem::Specification.new do |s|
5
- s.name = %q{refinerycms}
6
- s.version = %q{1.0.11}
7
- s.description = %q{A Ruby on Rails CMS that supports Rails 3. It's easy to extend and sticks to 'the Rails way' where possible.}
8
- s.date = %q{2012-05-18}
9
- s.summary = %q{A Ruby on Rails CMS that supports Rails 3}
10
- s.email = %q{info@refinerycms.com}
11
- s.homepage = %q{http://refinerycms.com}
12
- s.rubyforge_project = %q{refinerycms}
13
- s.authors = ['Resolve Digital', 'Philip Arndt', 'David Jones', 'Steven Heidel', 'Uģis Ozols']
14
- s.license = %q{MIT}
15
- s.require_paths = %w(lib)
16
- s.executables = %w(refinerycms)
17
-
18
- # Bundler
19
- s.add_dependency 'bundler', '~> 1.0'
20
-
21
- # Refinery CMS
22
- s.add_dependency 'refinerycms-authentication', '= 1.0.11'
23
- s.add_dependency 'refinerycms-base', '= 1.0.11'
24
- s.add_dependency 'refinerycms-core', '= 1.0.11'
25
- s.add_dependency 'refinerycms-dashboard', '= 1.0.11'
26
- s.add_dependency 'refinerycms-images', '= 1.0.11'
27
- s.add_dependency 'refinerycms-pages', '= 1.0.11'
28
- s.add_dependency 'refinerycms-resources', '= 1.0.11'
29
- s.add_dependency 'refinerycms-settings', '= 1.0.11'
30
-
31
- s.files = [
32
- '.gitignore',
33
- '.rspec',
34
- '.yardopts',
35
- 'Gemfile',
36
- 'Gemfile',
37
- 'Gemfile.lock',
38
- 'Guardfile',
39
- 'Rakefile',
40
- 'app',
41
- 'app/views',
42
- 'app/views/sitemap',
43
- 'app/views/sitemap/index.xml.builder',
44
- 'autotest',
45
- 'autotest/autotest.rb',
46
- 'autotest/discover.rb',
47
- 'bin',
48
- 'bin/refinerycms',
49
- 'changelog.md',
50
- 'changelog.md',
51
- 'config',
52
- 'config/cucumber.yml',
53
- 'config/database.yml.mysql',
54
- 'config/database.yml.postgresql',
55
- 'config/database.yml.sqlite3',
56
- 'config/environments',
57
- 'config/environments/development.rb',
58
- 'config/environments/production.rb',
59
- 'config/environments/test.rb',
60
- 'config.ru',
61
- 'features',
62
- 'features/support',
63
- 'features/support/paths.rb',
64
- 'lib',
65
- 'lib/load_path_analyzer.rb',
66
- 'lib/refinery.rb',
67
- 'lib/refinerycms',
68
- 'lib/refinerycms/all.rb',
69
- 'lib/refinerycms.rb',
70
- 'license.md',
71
- 'license.md',
72
- 'public',
73
- 'public/javascripts',
74
- 'public/javascripts/translations.js',
75
- 'readme.md',
76
- 'readme.md',
77
- 'refinerycms.gemspec',
78
- 'spec',
79
- 'spec/rcov.opts',
80
- 'spec/spec_helper.rb',
81
- 'spec/support',
82
- 'spec/support/refinery',
83
- 'spec/support/refinery/controller_macros.rb'
84
- ]
85
- end
data/spec/rcov.opts DELETED
@@ -1,2 +0,0 @@
1
- --exclude "spec/*,gems/*"
2
- --rails
data/spec/spec_helper.rb DELETED
@@ -1,96 +0,0 @@
1
- require 'rbconfig'
2
- require 'factory_girl'
3
- require File.expand_path('../support/refinery/controller_macros', __FILE__)
4
-
5
- def setup_environment
6
- # This file is copied to ~/spec when you run 'rails generate rspec'
7
- # from the project root directory.
8
- ENV["RAILS_ENV"] ||= 'test'
9
- require File.expand_path("../../config/environment", __FILE__)
10
- require 'rspec/rails'
11
- require 'capybara/rspec'
12
-
13
- Capybara.javascript_driver = :webkit
14
- # Requires supporting files with custom matchers and macros, etc,
15
- # in ./support/ and its subdirectories.
16
- Dir[File.expand_path('../support/**/*.rb', __FILE__)].each {|f| require f}
17
-
18
- engines = [
19
- 'authentication',
20
- 'images',
21
- ]
22
- engines.each do |engine|
23
- require "#{Rails.root}/#{engine}/features/support/factories.rb"
24
- end
25
-
26
- RSpec.configure do |config|
27
- # == Mock Framework
28
- #
29
- # If you prefer to use mocha, flexmock or RR, uncomment the appropriate line:
30
- #
31
- # config.mock_with :mocha
32
- # config.mock_with :flexmock
33
- # config.mock_with :rr
34
- config.mock_with :rspec
35
-
36
- config.fixture_path = ::Rails.root.join('spec', 'fixtures').to_s
37
-
38
- config.treat_symbols_as_metadata_keys_with_true_values = true
39
- config.filter_run :focus => true
40
- config.run_all_when_everything_filtered = true
41
- # If you're not using ActiveRecord, or you'd prefer not to run each of your
42
- # examples within a transaction, comment the following line or assign false
43
- # instead of true.
44
- config.use_transactional_fixtures = true
45
- config.use_instantiated_fixtures = false
46
-
47
- config.include ::Devise::TestHelpers, :type => :controller
48
- config.extend ::Refinery::ControllerMacros, :type => :controller
49
- end
50
- end
51
-
52
- def each_run
53
- end
54
-
55
- require 'rubygems'
56
- # If spork is available in the Gemfile it'll be used but we don't force it.
57
- unless (begin; require 'spork'; rescue LoadError; nil end).nil?
58
-
59
- Spork.prefork do
60
- # Loading more in this block will cause your tests to run faster. However,
61
- # if you change any configuration or code from libraries loaded here, you'll
62
- # need to restart spork for it take effect.
63
- setup_environment
64
- end
65
-
66
- Spork.each_run do
67
- # This code will be run each time you run your specs.
68
- each_run
69
- end
70
-
71
- # --- Instructions ---
72
- # - Sort through your spec_helper file. Place as much environment loading
73
- # code that you don't normally modify during development in the
74
- # Spork.prefork block.
75
- # - Place the rest under Spork.each_run block
76
- # - Any code that is left outside of the blocks will be ran during preforking
77
- # and during each_run!
78
- # - These instructions should self-destruct in 10 seconds. If they don't,
79
- # feel free to delete them.
80
- #
81
- else
82
- setup_environment
83
- each_run
84
- end
85
-
86
- def capture_stdout(stdin_str = '')
87
- begin
88
- require 'stringio'
89
- $o_stdin, $o_stdout, $o_stderr = $stdin, $stdout, $stderr
90
- $stdin, $stdout, $stderr = StringIO.new(stdin_str), StringIO.new, StringIO.new
91
- yield
92
- {:stdout => $stdout.string, :stderr => $stderr.string}
93
- ensure
94
- $stdin, $stdout, $stderr = $o_stdin, $o_stdout, $o_stderr
95
- end
96
- end
@@ -1,27 +0,0 @@
1
- module Refinery
2
- module ControllerMacros
3
- def login_user
4
- before (:each) do
5
- @user = Factory(:user)
6
- @request.env["devise.mapping"] = Devise.mappings[:admin]
7
- sign_in @user
8
- end
9
- end
10
-
11
- def login_refinery_user
12
- before (:each) do
13
- @refinery_user = Factory(:refinery_user)
14
- @request.env["devise.mapping"] = Devise.mappings[:admin]
15
- sign_in @refinery_user
16
- end
17
- end
18
-
19
- def login_refinery_translator
20
- before (:each) do
21
- @refinery_translator = Factory(:refinery_translator)
22
- @request.env["devise.mapping"] = Devise.mappings[:admin]
23
- sign_in @refinery_translator
24
- end
25
- end
26
- end
27
- end