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 CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- MzRhOTM1MmUzZTNkNmRkZDc3M2MwZmQyZjEyMTZjNmUxZGY0Mjg5Zg==
4
+ MWNiYjBhNzkwZTIxZGMwMjM0ZDM4OGNmYjFiYzVmMGM4NzBhZTRlMg==
5
5
  data.tar.gz: !binary |-
6
- M2VhN2Y4NzAyYjU0ZDZjOWUwZGZmODYyZTRiNjI5OTNhN2JmMTRiOQ==
6
+ YTAwM2Y1NTZmMWE0OWU3NzJhNjIzNmM4ZTA4OTNhM2E2MTM2MWJlZA==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- MTcyYjgxZWY4NGQ4MTI1ZDgxOGVkMjFkMTJkNWU3ZjdhN2VjYmMxMWExMmMw
10
- OTE2YjY3MTVhNGU5MmI5ZTAzYTUxNjRmZTRkZTlkNTdhNTAwZjk5ZmRjMGU2
11
- OWYxNGM3NDEzMGNiMWVjZDM1NDUwMmYxNzg3NTU2YjNhYTcyNzA=
9
+ NTFmYjQ2M2JjMzg5ZWYxMDMwNzYyMWMxMTc1N2VlZWYwMjcyNDg3NzE4NmE5
10
+ YTk4NThmNjVmNmFjY2UxMzgyMmY0NzI4ZTcwOWFhMDI1YjJmOWIxODBhNjgw
11
+ NzBiOTVkNDQ3ZThlM2FmZGFiNTRkMTE3MWJiNjU5YTU4N2YzZmE=
12
12
  data.tar.gz: !binary |-
13
- ZTIzYTJhN2Q2ZjdjNmRhNTYwOGFmMzcyMjY3OGRhNWM2MTI0ODllYzRiZTM4
14
- ZjQ0ODg1OWY0NTgzMTAwZGJiMzI2YjA3MTYzNWM0YzU1Yjk2ZTBjODkxNjkz
15
- YmYyNDNlOWNkZjBiN2Y0OWNjNjFiMjE2MDE3ZmI1NzAzMzM1NGY=
13
+ MzBmYWM5ZWZiMTU0MWNhODM4ZjUwMjJmZWMzZWEzYTY3ODYwOWRjNTM2ZmVm
14
+ MzZhYzI3OTJjZjM2Njc0NGI1N2NjZWU4ZTI3YjE2OTIwZDQ2MThiNDFhNTgz
15
+ NjQzMjE0MTljMDFiMWE0OWU5YTBiNTZiMjhjNWQyN2FlYzM3NDU=
data/Gemfile ADDED
@@ -0,0 +1,2 @@
1
+ source 'https://rubygems.org'
2
+ gem 'trustygems', '~> 0.1.0'
data/Gemfile.lock ADDED
@@ -0,0 +1,12 @@
1
+ GEM
2
+ remote: https://rubygems.org/
3
+ specs:
4
+ rake (10.4.2)
5
+ trustygems (0.1.0)
6
+ rake
7
+
8
+ PLATFORMS
9
+ ruby
10
+
11
+ DEPENDENCIES
12
+ trustygems (~> 0.1.0)
data/Rakefile CHANGED
@@ -1,144 +1,147 @@
1
- # I think this is the one that should be moved to the extension Rakefile template
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
- require 'rake'
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 TRUSTY_CMS_ROOT plugin is by loading the boot
29
- unless defined? TRUSTY_CMS_ROOT
30
- ENV["RAILS_ENV"] = "test"
31
- case
32
- when ENV["TRUSTY_ENV_FILE"]
33
- require File.dirname(ENV["TRUSTY_ENV_FILE"]) + "/boot"
34
- when File.dirname(__FILE__) =~ %r{vendor/trusty/vendor/extensions}
35
- require "#{File.expand_path(File.dirname(__FILE__) + "/../../../../../")}/config/boot"
36
- else
37
- require "#{File.expand_path(File.dirname(__FILE__) + "/../../../")}/config/boot"
38
- end
39
- end
40
-
41
- require 'rake'
42
- require 'rake/rdoctask'
43
- require 'rake/testtask'
44
-
45
- rspec_base = File.expand_path(TRUSTY_CMS_ROOT + '/vendor/plugins/rspec/lib')
46
- $LOAD_PATH.unshift(rspec_base) if File.exist?(rspec_base)
47
- require 'spec/rake/spectask'
48
- require 'cucumber'
49
- require 'cucumber/rake/task'
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
- t.spec_opts = ['--options', "\"#{extension_root}/spec/spec.opts\""]
62
- t.spec_files = FileList['spec/**/*_spec.rb']
63
- end
64
-
65
- task :features => 'spec:integration'
66
-
67
- namespace :spec do
68
- desc "Run all specs in spec directory with RCov"
69
- Spec::Rake::SpecTask.new(:rcov) do |t|
70
- t.spec_opts = ['--options', "\"#{extension_root}/spec/spec.opts\""]
71
- t.spec_files = FileList['spec/**/*_spec.rb']
72
- t.rcov = true
73
- t.rcov_opts = ['--exclude', 'spec', '--rails']
74
- end
75
-
76
- desc "Print Specdoc for all specs"
77
- Spec::Rake::SpecTask.new(:doc) do |t|
78
- t.spec_opts = ["--format", "specdoc", "--dry-run"]
79
- t.spec_files = FileList['spec/**/*_spec.rb']
80
- end
81
-
82
- [:models, :controllers, :views, :helpers].each do |sub|
83
- desc "Run the specs under spec/#{sub}"
84
- Spec::Rake::SpecTask.new(sub) do |t|
85
- t.spec_opts = ['--options', "\"#{extension_root}/spec/spec.opts\""]
86
- t.spec_files = FileList["spec/#{sub}/**/*_spec.rb"]
87
- end
88
- end
89
-
90
- desc "Run the Cucumber features"
91
- Cucumber::Rake::Task.new(:integration) do |t|
92
- t.fork = true
93
- t.cucumber_opts = ['--format', (ENV['CUCUMBER_FORMAT'] || 'pretty')]
94
- # t.feature_pattern = "#{extension_root}/features/**/*.feature"
95
- t.profile = "default"
96
- end
97
-
98
- # Setup specs for stats
99
- task :statsetup do
100
- require 'code_statistics'
101
- ::STATS_DIRECTORIES << %w(Model\ specs spec/models)
102
- ::STATS_DIRECTORIES << %w(View\ specs spec/views)
103
- ::STATS_DIRECTORIES << %w(Controller\ specs spec/controllers)
104
- ::STATS_DIRECTORIES << %w(Helper\ specs spec/views)
105
- ::CodeStatistics::TEST_TYPES << "Model specs"
106
- ::CodeStatistics::TEST_TYPES << "View specs"
107
- ::CodeStatistics::TEST_TYPES << "Controller specs"
108
- ::CodeStatistics::TEST_TYPES << "Helper specs"
109
- ::STATS_DIRECTORIES.delete_if {|a| a[0] =~ /test/}
110
- end
111
-
112
- namespace :db do
113
- namespace :fixtures do
114
- desc "Load fixtures (from spec/fixtures) into the current environment's database. Load specific fixtures using FIXTURES=x,y"
115
- task :load => :environment do
116
- require 'active_record/fixtures'
117
- ActiveRecord::Base.establish_connection(RAILS_ENV.to_sym)
118
- (ENV['FIXTURES'] ? ENV['FIXTURES'].split(/,/) : Dir.glob(File.join(RAILS_ROOT, 'spec', 'fixtures', '*.{yml,csv}'))).each do |fixture_file|
119
- Fixtures.create_fixtures('spec/fixtures', File.basename(fixture_file, '.*'))
120
- end
121
- end
122
- end
123
- end
124
- end
125
-
126
- desc 'Generate documentation for the layouts extension.'
127
- Rake::RDocTask.new(:rdoc) do |rdoc|
128
- rdoc.rdoc_dir = 'rdoc'
129
- rdoc.title = 'LayoutsExtension'
130
- rdoc.options << '--line-numbers' << '--inline-source'
131
- rdoc.rdoc_files.include('README')
132
- rdoc.rdoc_files.include('lib/**/*.rb')
133
- end
134
-
135
- # For extensions that are in transition
136
- desc 'Test the Layout extension.'
137
- Rake::TestTask.new(:test) do |t|
138
- t.libs << 'lib'
139
- t.pattern = 'test/**/*_test.rb'
140
- t.verbose = true
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 }
@@ -0,0 +1,2 @@
1
+ gemspec: trusty-layouts-extension.gemspec
2
+ deploy_command: gem push
@@ -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 = "1.1.0"
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', '~> 1.2'
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: 1.1.0
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: '1.2'
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: '1.2'
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