trusty-layouts-extension 1.1.0 → 2.0.0.pre.beta
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/Gemfile +2 -0
- data/Gemfile.lock +12 -0
- data/Rakefile +138 -135
- data/config/trustygems.yml +2 -0
- data/trusty-layouts-extension.gemspec +2 -2
- metadata +6 -3
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
MWNiYjBhNzkwZTIxZGMwMjM0ZDM4OGNmYjFiYzVmMGM4NzBhZTRlMg==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
YTAwM2Y1NTZmMWE0OWU3NzJhNjIzNmM4ZTA4OTNhM2E2MTM2MWJlZA==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
NTFmYjQ2M2JjMzg5ZWYxMDMwNzYyMWMxMTc1N2VlZWYwMjcyNDg3NzE4NmE5
|
10
|
+
YTk4NThmNjVmNmFjY2UxMzgyMmY0NzI4ZTcwOWFhMDI1YjJmOWIxODBhNjgw
|
11
|
+
NzBiOTVkNDQ3ZThlM2FmZGFiNTRkMTE3MWJiNjU5YTU4N2YzZmE=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
MzBmYWM5ZWZiMTU0MWNhODM4ZjUwMjJmZWMzZWEzYTY3ODYwOWRjNTM2ZmVm
|
14
|
+
MzZhYzI3OTJjZjM2Njc0NGI1N2NjZWU4ZTI3YjE2OTIwZDQ2MThiNDFhNTgz
|
15
|
+
NjQzMjE0MTljMDFiMWE0OWU5YTBiNTZiMjhjNWQyN2FlYzM3NDU=
|
data/Gemfile
ADDED
data/Gemfile.lock
ADDED
data/Rakefile
CHANGED
@@ -1,144 +1,147 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
# In rails 1.2, plugins aren't available in the path until they're loaded.
|
4
|
-
# Check to see if the rspec plugin is installed first and require
|
5
|
-
# it if it is. If not, use the gem version.
|
1
|
+
require 'trustygems'
|
6
2
|
|
7
|
-
# Determine where the RSpec plugin is by loading the boot
|
8
|
-
unless defined? TRUSTY_CMS_ROOT
|
9
|
-
ENV["RAILS_ENV"] = "test"
|
10
|
-
case
|
11
|
-
when ENV["TRUSTY_ENV_FILE"]
|
12
|
-
require File.dirname(ENV["TRUSTY_ENV_FILE"]) + "/boot"
|
13
|
-
when File.dirname(__FILE__) =~ %r{vendor/trusty_cms/vendor/extensions}
|
14
|
-
require "#{File.expand_path(File.dirname(__FILE__) + "/../../../../../")}/config/boot"
|
15
|
-
else
|
16
|
-
require "#{File.expand_path(File.dirname(__FILE__) + "/../../../")}/config/boot"
|
17
|
-
end
|
18
|
-
end
|
19
3
|
|
20
|
-
|
21
|
-
require 'rake/rdoctask'
|
22
|
-
require 'rake/testtask'
|
4
|
+
# I think this is the one that should be moved to the extension Rakefile template
|
23
5
|
|
24
6
|
# In rails 1.2, plugins aren't available in the path until they're loaded.
|
25
7
|
# Check to see if the rspec plugin is installed first and require
|
26
8
|
# it if it is. If not, use the gem version.
|
27
9
|
|
28
|
-
# Determine where the
|
29
|
-
unless defined? TRUSTY_CMS_ROOT
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
end
|
40
|
-
|
41
|
-
require 'rake'
|
42
|
-
require 'rake/rdoctask'
|
43
|
-
require 'rake/testtask'
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
10
|
+
# Determine where the RSpec plugin is by loading the boot
|
11
|
+
# unless defined? TRUSTY_CMS_ROOT
|
12
|
+
# ENV["RAILS_ENV"] = "test"
|
13
|
+
# case
|
14
|
+
# when ENV["TRUSTY_ENV_FILE"]
|
15
|
+
# require File.dirname(ENV["TRUSTY_ENV_FILE"]) + "/boot"
|
16
|
+
# when File.dirname(__FILE__) =~ %r{vendor/trusty_cms/vendor/extensions}
|
17
|
+
# require "#{File.expand_path(File.dirname(__FILE__) + "/../../../../../")}/config/boot"
|
18
|
+
# else
|
19
|
+
# require "#{File.expand_path(File.dirname(__FILE__) + "/../../../")}/config/boot"
|
20
|
+
# end
|
21
|
+
# end
|
22
|
+
#
|
23
|
+
# require 'rake'
|
24
|
+
# require 'rake/rdoctask'
|
25
|
+
# require 'rake/testtask'
|
26
|
+
#
|
27
|
+
# # In rails 1.2, plugins aren't available in the path until they're loaded.
|
28
|
+
# # Check to see if the rspec plugin is installed first and require
|
29
|
+
# # it if it is. If not, use the gem version.
|
30
|
+
#
|
31
|
+
# # Determine where the TRUSTY_CMS_ROOT plugin is by loading the boot
|
32
|
+
# unless defined? TRUSTY_CMS_ROOT
|
33
|
+
# ENV["RAILS_ENV"] = "test"
|
34
|
+
# case
|
35
|
+
# when ENV["TRUSTY_ENV_FILE"]
|
36
|
+
# require File.dirname(ENV["TRUSTY_ENV_FILE"]) + "/boot"
|
37
|
+
# when File.dirname(__FILE__) =~ %r{vendor/trusty/vendor/extensions}
|
38
|
+
# require "#{File.expand_path(File.dirname(__FILE__) + "/../../../../../")}/config/boot"
|
39
|
+
# else
|
40
|
+
# require "#{File.expand_path(File.dirname(__FILE__) + "/../../../")}/config/boot"
|
41
|
+
# end
|
42
|
+
# end
|
43
|
+
#
|
44
|
+
# require 'rake'
|
45
|
+
# require 'rake/rdoctask'
|
46
|
+
# require 'rake/testtask'
|
47
|
+
#
|
48
|
+
# rspec_base = File.expand_path(TRUSTY_CMS_ROOT + '/vendor/plugins/rspec/lib')
|
49
|
+
# $LOAD_PATH.unshift(rspec_base) if File.exist?(rspec_base)
|
50
|
+
# require 'spec/rake/spectask'
|
51
|
+
# require 'cucumber'
|
52
|
+
# require 'cucumber/rake/task'
|
50
53
|
|
51
54
|
# Cleanup the TRUSTY_CMS_ROOT constant so specs will load the environment
|
52
|
-
Object.send(:remove_const, :TRUSTY_CMS_ROOT)
|
53
|
-
|
54
|
-
extension_root = File.expand_path(File.dirname(__FILE__))
|
55
|
-
|
56
|
-
task :default => :spec
|
57
|
-
task :stats => "spec:statsetup"
|
58
|
-
|
59
|
-
desc "Run all specs in spec directory"
|
60
|
-
Spec::Rake::SpecTask.new(:spec) do |t|
|
61
|
-
|
62
|
-
|
63
|
-
end
|
64
|
-
|
65
|
-
task :features => 'spec:integration'
|
66
|
-
|
67
|
-
namespace :spec do
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
end
|
125
|
-
|
126
|
-
desc 'Generate documentation for the layouts extension.'
|
127
|
-
Rake::RDocTask.new(:rdoc) do |rdoc|
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
end
|
134
|
-
|
135
|
-
# For extensions that are in transition
|
136
|
-
desc 'Test the Layout extension.'
|
137
|
-
Rake::TestTask.new(:test) do |t|
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
end
|
142
|
-
|
143
|
-
# Load any custom rakefiles for extension
|
144
|
-
Dir[File.dirname(__FILE__) + '/tasks/*.rake'].sort.each { |f| require f }
|
55
|
+
# Object.send(:remove_const, :TRUSTY_CMS_ROOT)
|
56
|
+
#
|
57
|
+
# extension_root = File.expand_path(File.dirname(__FILE__))
|
58
|
+
#
|
59
|
+
# task :default => :spec
|
60
|
+
# task :stats => "spec:statsetup"
|
61
|
+
#
|
62
|
+
# desc "Run all specs in spec directory"
|
63
|
+
# Spec::Rake::SpecTask.new(:spec) do |t|
|
64
|
+
# t.spec_opts = ['--options', "\"#{extension_root}/spec/spec.opts\""]
|
65
|
+
# t.spec_files = FileList['spec/**/*_spec.rb']
|
66
|
+
# end
|
67
|
+
#
|
68
|
+
# task :features => 'spec:integration'
|
69
|
+
#
|
70
|
+
# namespace :spec do
|
71
|
+
# desc "Run all specs in spec directory with RCov"
|
72
|
+
# Spec::Rake::SpecTask.new(:rcov) do |t|
|
73
|
+
# t.spec_opts = ['--options', "\"#{extension_root}/spec/spec.opts\""]
|
74
|
+
# t.spec_files = FileList['spec/**/*_spec.rb']
|
75
|
+
# t.rcov = true
|
76
|
+
# t.rcov_opts = ['--exclude', 'spec', '--rails']
|
77
|
+
# end
|
78
|
+
#
|
79
|
+
# desc "Print Specdoc for all specs"
|
80
|
+
# Spec::Rake::SpecTask.new(:doc) do |t|
|
81
|
+
# t.spec_opts = ["--format", "specdoc", "--dry-run"]
|
82
|
+
# t.spec_files = FileList['spec/**/*_spec.rb']
|
83
|
+
# end
|
84
|
+
#
|
85
|
+
# [:models, :controllers, :views, :helpers].each do |sub|
|
86
|
+
# desc "Run the specs under spec/#{sub}"
|
87
|
+
# Spec::Rake::SpecTask.new(sub) do |t|
|
88
|
+
# t.spec_opts = ['--options', "\"#{extension_root}/spec/spec.opts\""]
|
89
|
+
# t.spec_files = FileList["spec/#{sub}/**/*_spec.rb"]
|
90
|
+
# end
|
91
|
+
# end
|
92
|
+
#
|
93
|
+
# desc "Run the Cucumber features"
|
94
|
+
# Cucumber::Rake::Task.new(:integration) do |t|
|
95
|
+
# t.fork = true
|
96
|
+
# t.cucumber_opts = ['--format', (ENV['CUCUMBER_FORMAT'] || 'pretty')]
|
97
|
+
# # t.feature_pattern = "#{extension_root}/features/**/*.feature"
|
98
|
+
# t.profile = "default"
|
99
|
+
# end
|
100
|
+
#
|
101
|
+
# # Setup specs for stats
|
102
|
+
# task :statsetup do
|
103
|
+
# require 'code_statistics'
|
104
|
+
# ::STATS_DIRECTORIES << %w(Model\ specs spec/models)
|
105
|
+
# ::STATS_DIRECTORIES << %w(View\ specs spec/views)
|
106
|
+
# ::STATS_DIRECTORIES << %w(Controller\ specs spec/controllers)
|
107
|
+
# ::STATS_DIRECTORIES << %w(Helper\ specs spec/views)
|
108
|
+
# ::CodeStatistics::TEST_TYPES << "Model specs"
|
109
|
+
# ::CodeStatistics::TEST_TYPES << "View specs"
|
110
|
+
# ::CodeStatistics::TEST_TYPES << "Controller specs"
|
111
|
+
# ::CodeStatistics::TEST_TYPES << "Helper specs"
|
112
|
+
# ::STATS_DIRECTORIES.delete_if {|a| a[0] =~ /test/}
|
113
|
+
# end
|
114
|
+
#
|
115
|
+
# namespace :db do
|
116
|
+
# namespace :fixtures do
|
117
|
+
# desc "Load fixtures (from spec/fixtures) into the current environment's database. Load specific fixtures using FIXTURES=x,y"
|
118
|
+
# task :load => :environment do
|
119
|
+
# require 'active_record/fixtures'
|
120
|
+
# ActiveRecord::Base.establish_connection(RAILS_ENV.to_sym)
|
121
|
+
# (ENV['FIXTURES'] ? ENV['FIXTURES'].split(/,/) : Dir.glob(File.join(RAILS_ROOT, 'spec', 'fixtures', '*.{yml,csv}'))).each do |fixture_file|
|
122
|
+
# Fixtures.create_fixtures('spec/fixtures', File.basename(fixture_file, '.*'))
|
123
|
+
# end
|
124
|
+
# end
|
125
|
+
# end
|
126
|
+
# end
|
127
|
+
# end
|
128
|
+
#
|
129
|
+
# desc 'Generate documentation for the layouts extension.'
|
130
|
+
# Rake::RDocTask.new(:rdoc) do |rdoc|
|
131
|
+
# rdoc.rdoc_dir = 'rdoc'
|
132
|
+
# rdoc.title = 'LayoutsExtension'
|
133
|
+
# rdoc.options << '--line-numbers' << '--inline-source'
|
134
|
+
# rdoc.rdoc_files.include('README')
|
135
|
+
# rdoc.rdoc_files.include('lib/**/*.rb')
|
136
|
+
# end
|
137
|
+
#
|
138
|
+
# # For extensions that are in transition
|
139
|
+
# desc 'Test the Layout extension.'
|
140
|
+
# Rake::TestTask.new(:test) do |t|
|
141
|
+
# t.libs << 'lib'
|
142
|
+
# t.pattern = 'test/**/*_test.rb'
|
143
|
+
# t.verbose = true
|
144
|
+
# end
|
145
|
+
#
|
146
|
+
# # Load any custom rakefiles for extension
|
147
|
+
# Dir[File.dirname(__FILE__) + '/tasks/*.rake'].sort.each { |f| require f }
|
@@ -3,7 +3,7 @@ $:.push File.expand_path("../lib", __FILE__)
|
|
3
3
|
require "trusty-layouts-extension"
|
4
4
|
Gem::Specification.new do |s|
|
5
5
|
s.name = %q{trusty-layouts-extension}
|
6
|
-
s.version = "
|
6
|
+
s.version = "2.0.0-beta"
|
7
7
|
|
8
8
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
9
9
|
s.authors = ["Eric Sipple", "Michael Klett", "Jim Gay", "William Ross", "Tony Issakov", "Dirk Kelly"]
|
@@ -25,7 +25,7 @@ Gem::Specification.new do |s|
|
|
25
25
|
# s.executables = Dir['bin/*'] - ignores
|
26
26
|
s.require_paths = ["lib"]
|
27
27
|
|
28
|
-
s.add_dependency 'trusty-cms', '~>
|
28
|
+
s.add_dependency 'trusty-cms', '~> 2.0.0-beta'
|
29
29
|
|
30
30
|
end
|
31
31
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: trusty-layouts-extension
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 2.0.0.pre.beta
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Eric Sipple
|
@@ -21,14 +21,14 @@ dependencies:
|
|
21
21
|
requirements:
|
22
22
|
- - ~>
|
23
23
|
- !ruby/object:Gem::Version
|
24
|
-
version:
|
24
|
+
version: 2.0.0.pre.beta
|
25
25
|
type: :runtime
|
26
26
|
prerelease: false
|
27
27
|
version_requirements: !ruby/object:Gem::Requirement
|
28
28
|
requirements:
|
29
29
|
- - ~>
|
30
30
|
- !ruby/object:Gem::Version
|
31
|
-
version:
|
31
|
+
version: 2.0.0.pre.beta
|
32
32
|
description: Extends Trusty CMS Layouts to support nesting, sharing with Rails Controllers
|
33
33
|
and rendering HAML
|
34
34
|
email: sipple@trustarts.org
|
@@ -37,6 +37,8 @@ extensions: []
|
|
37
37
|
extra_rdoc_files:
|
38
38
|
- README.md
|
39
39
|
files:
|
40
|
+
- Gemfile
|
41
|
+
- Gemfile.lock
|
40
42
|
- MIT-LICENSE
|
41
43
|
- README.md
|
42
44
|
- Rakefile
|
@@ -46,6 +48,7 @@ files:
|
|
46
48
|
- app/views/layouts/trusty.html.haml
|
47
49
|
- config/initializers/trusty_config.rb
|
48
50
|
- config/routes.rb
|
51
|
+
- config/trustygems.yml
|
49
52
|
- layouts_extension.rb
|
50
53
|
- lib/haml_layouts/models/layout.rb
|
51
54
|
- lib/haml_layouts/models/page.rb
|