trusty-layouts-extension 1.0.2 → 1.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +15 -0
- data/lib/tasks/layouts_extension_tasks.rake +4 -4
- data/trusty-layouts-extension.gemspec +1 -1
- metadata +8 -29
- data/vendor/plugins/rails_upgrade/MIT-LICENSE +0 -20
- data/vendor/plugins/rails_upgrade/README.rdoc +0 -26
- data/vendor/plugins/rails_upgrade/Rakefile +0 -22
- data/vendor/plugins/rails_upgrade/init.rb +0 -2
- data/vendor/plugins/rails_upgrade/install.rb +0 -38
- data/vendor/plugins/rails_upgrade/lib/application_checker.rb +0 -506
- data/vendor/plugins/rails_upgrade/lib/gemfile_generator.rb +0 -95
- data/vendor/plugins/rails_upgrade/lib/new_configuration_generator.rb +0 -59
- data/vendor/plugins/rails_upgrade/lib/rails_upgrade.rb +0 -0
- data/vendor/plugins/rails_upgrade/lib/routes_upgrader.rb +0 -344
- data/vendor/plugins/rails_upgrade/lib/tasks/rails_upgrade_tasks.rake +0 -79
- data/vendor/plugins/rails_upgrade/test/application_checker_test.rb +0 -344
- data/vendor/plugins/rails_upgrade/test/gemfile_generator_test.rb +0 -72
- data/vendor/plugins/rails_upgrade/test/new_configuration_generator_test.rb +0 -63
- data/vendor/plugins/rails_upgrade/test/routes_upgrader_test.rb +0 -218
- data/vendor/plugins/rails_upgrade/test/test_helper.rb +0 -5
- data/vendor/plugins/rails_upgrade/uninstall.rb +0 -1
checksums.yaml
ADDED
@@ -0,0 +1,15 @@
|
|
1
|
+
---
|
2
|
+
!binary "U0hBMQ==":
|
3
|
+
metadata.gz: !binary |-
|
4
|
+
MTYwNjA2YTM5M2Y5ZjcyNDMzMDYyYWUwZTY1NjZhNjI1MDlkNjNjZQ==
|
5
|
+
data.tar.gz: !binary |-
|
6
|
+
NGJmNTM2MjljNDEyZjA2NTgyMmFhYTI5ZTQ2N2UwZjBmMzkzODE1YQ==
|
7
|
+
SHA512:
|
8
|
+
metadata.gz: !binary |-
|
9
|
+
MTVmOGQ3NzIwZTI3NmJiOTdkODZiY2JjM2JjNjE1ZmYyYTRiMDg5ZTBjYjFl
|
10
|
+
YWVmNzExMDI2YmRhMjM1NDZiOTE4MGJjMjkwYTRlYzkzYTNjMTAyOGU0ODY2
|
11
|
+
MjkyYjc5YzI2YWI1Y2Q2YzY0NzRlNmM0MDY2MzljY2Y4NjM2YmI=
|
12
|
+
data.tar.gz: !binary |-
|
13
|
+
NmQ5MTdlNjZkODNlZjJkMjdhYTQwMzU3NzY1NTJlNTIyMjY5N2M3ODA4NWZl
|
14
|
+
MGI3ZDBhMTJhY2I1ODkzZmY3NDUxOGM3ZDBiYjIwMmIzOTFlNjllNmI3YzVm
|
15
|
+
MjcxYTMwM2E1YjdiOWRiMWM2YmQ4MzI0NjVjNDg0MmRhYTE1MzM=
|
@@ -21,12 +21,12 @@ namespace :trusty_cms do
|
|
21
21
|
Dir[LayoutsExtension.root + "/public/**/*"].reject(&is_svn_or_dir).each do |file|
|
22
22
|
path = file.sub(LayoutsExtension.root, '')
|
23
23
|
directory = File.dirname(path)
|
24
|
-
mkdir_p Rails.root + directory, :verbose => false
|
25
|
-
cp file, Rails.root + path, :verbose => false
|
24
|
+
mkdir_p Rails.root.to_s + directory, :verbose => false
|
25
|
+
cp file, Rails.root.to_s + path, :verbose => false
|
26
26
|
end
|
27
|
-
unless LayoutsExtension.root.starts_with? Rails.root # don't need to copy vendored tasks
|
27
|
+
unless LayoutsExtension.root.starts_with? Rails.root.to_s # don't need to copy vendored tasks
|
28
28
|
puts "Copying rake tasks from LayoutsExtension"
|
29
|
-
local_tasks_path = File.join(Rails.root, %w(lib tasks))
|
29
|
+
local_tasks_path = File.join(Rails.root.to_s, %w(lib tasks))
|
30
30
|
mkdir_p local_tasks_path, :verbose => false
|
31
31
|
Dir[File.join LayoutsExtension.root, %w(lib tasks *.rake)].each do |file|
|
32
32
|
cp file, local_tasks_path, :verbose => false
|
@@ -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.0.
|
6
|
+
s.version = "1.0.3"
|
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"]
|
metadata
CHANGED
@@ -1,8 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: trusty-layouts-extension
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
5
|
-
prerelease:
|
4
|
+
version: 1.0.3
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- Eric Sipple
|
@@ -19,7 +18,6 @@ dependencies:
|
|
19
18
|
- !ruby/object:Gem::Dependency
|
20
19
|
name: trusty-cms
|
21
20
|
requirement: !ruby/object:Gem::Requirement
|
22
|
-
none: false
|
23
21
|
requirements:
|
24
22
|
- - ~>
|
25
23
|
- !ruby/object:Gem::Version
|
@@ -27,7 +25,6 @@ dependencies:
|
|
27
25
|
type: :runtime
|
28
26
|
prerelease: false
|
29
27
|
version_requirements: !ruby/object:Gem::Requirement
|
30
|
-
none: false
|
31
28
|
requirements:
|
32
29
|
- - ~>
|
33
30
|
- !ruby/object:Gem::Version
|
@@ -40,6 +37,10 @@ extensions: []
|
|
40
37
|
extra_rdoc_files:
|
41
38
|
- README.md
|
42
39
|
files:
|
40
|
+
- MIT-LICENSE
|
41
|
+
- README.md
|
42
|
+
- Rakefile
|
43
|
+
- VERSION
|
43
44
|
- app/models/haml_filter.rb
|
44
45
|
- app/models/rails_page.rb
|
45
46
|
- app/views/layouts/trusty.html.haml
|
@@ -54,9 +55,6 @@ files:
|
|
54
55
|
- lib/share_layouts/helpers/action_view.rb
|
55
56
|
- lib/tasks/layouts_extension_tasks.rake
|
56
57
|
- lib/trusty-layouts-extension.rb
|
57
|
-
- MIT-LICENSE
|
58
|
-
- Rakefile
|
59
|
-
- README.md
|
60
58
|
- spec/controllers/share_controller_spec.rb
|
61
59
|
- spec/datasets/layouts_layouts.rb
|
62
60
|
- spec/datasets/layouts_pages.rb
|
@@ -73,47 +71,28 @@ files:
|
|
73
71
|
- spec/spec.opts
|
74
72
|
- spec/spec_helper.rb
|
75
73
|
- trusty-layouts-extension.gemspec
|
76
|
-
- vendor/plugins/rails_upgrade/init.rb
|
77
|
-
- vendor/plugins/rails_upgrade/install.rb
|
78
|
-
- vendor/plugins/rails_upgrade/lib/application_checker.rb
|
79
|
-
- vendor/plugins/rails_upgrade/lib/gemfile_generator.rb
|
80
|
-
- vendor/plugins/rails_upgrade/lib/new_configuration_generator.rb
|
81
|
-
- vendor/plugins/rails_upgrade/lib/rails_upgrade.rb
|
82
|
-
- vendor/plugins/rails_upgrade/lib/routes_upgrader.rb
|
83
|
-
- vendor/plugins/rails_upgrade/lib/tasks/rails_upgrade_tasks.rake
|
84
|
-
- vendor/plugins/rails_upgrade/MIT-LICENSE
|
85
|
-
- vendor/plugins/rails_upgrade/Rakefile
|
86
|
-
- vendor/plugins/rails_upgrade/README.rdoc
|
87
|
-
- vendor/plugins/rails_upgrade/test/application_checker_test.rb
|
88
|
-
- vendor/plugins/rails_upgrade/test/gemfile_generator_test.rb
|
89
|
-
- vendor/plugins/rails_upgrade/test/new_configuration_generator_test.rb
|
90
|
-
- vendor/plugins/rails_upgrade/test/routes_upgrader_test.rb
|
91
|
-
- vendor/plugins/rails_upgrade/test/test_helper.rb
|
92
|
-
- vendor/plugins/rails_upgrade/uninstall.rb
|
93
|
-
- VERSION
|
94
74
|
homepage: https://github.com/pgharts/trusty-share-layouts-extension
|
95
75
|
licenses: []
|
76
|
+
metadata: {}
|
96
77
|
post_install_message:
|
97
78
|
rdoc_options: []
|
98
79
|
require_paths:
|
99
80
|
- lib
|
100
81
|
required_ruby_version: !ruby/object:Gem::Requirement
|
101
|
-
none: false
|
102
82
|
requirements:
|
103
83
|
- - ! '>='
|
104
84
|
- !ruby/object:Gem::Version
|
105
85
|
version: '0'
|
106
86
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
107
|
-
none: false
|
108
87
|
requirements:
|
109
88
|
- - ! '>='
|
110
89
|
- !ruby/object:Gem::Version
|
111
90
|
version: '0'
|
112
91
|
requirements: []
|
113
92
|
rubyforge_project:
|
114
|
-
rubygems_version:
|
93
|
+
rubygems_version: 2.4.5
|
115
94
|
signing_key:
|
116
|
-
specification_version:
|
95
|
+
specification_version: 4
|
117
96
|
summary: Extends Trusty CMS Layouts to support nesting, sharing with Rails Controllers
|
118
97
|
and rendering HAML
|
119
98
|
test_files:
|
@@ -1,20 +0,0 @@
|
|
1
|
-
Copyright (c) 2010 Jeremy McAnally
|
2
|
-
|
3
|
-
Permission is hereby granted, free of charge, to any person obtaining
|
4
|
-
a copy of this software and associated documentation files (the
|
5
|
-
"Software"), to deal in the Software without restriction, including
|
6
|
-
without limitation the rights to use, copy, modify, merge, publish,
|
7
|
-
distribute, sublicense, and/or sell copies of the Software, and to
|
8
|
-
permit persons to whom the Software is furnished to do so, subject to
|
9
|
-
the following conditions:
|
10
|
-
|
11
|
-
The above copyright notice and this permission notice shall be
|
12
|
-
included in all copies or substantial portions of the Software.
|
13
|
-
|
14
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
15
|
-
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
16
|
-
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
17
|
-
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
18
|
-
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
19
|
-
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
20
|
-
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
@@ -1,26 +0,0 @@
|
|
1
|
-
= rails-upgrade
|
2
|
-
|
3
|
-
A simple battery of scripts for upgrading Rails app/checking them for required updates. This application should work on Rails 2.x and 3.0, with a focus on upgrading to 3.0.
|
4
|
-
|
5
|
-
== Usage
|
6
|
-
|
7
|
-
You need to install this plugin first:
|
8
|
-
|
9
|
-
script/plugin install git://github.com/rails/rails_upgrade.git
|
10
|
-
|
11
|
-
Then you can run its rake tasks to check your application:
|
12
|
-
|
13
|
-
# Check your app for required upgrades
|
14
|
-
rake rails:upgrade:check
|
15
|
-
|
16
|
-
# Backup your likely modified files that might be overwritten by the generator
|
17
|
-
rake rails:upgrade:backup
|
18
|
-
|
19
|
-
# Generate a new route file
|
20
|
-
rake rails:upgrade:routes
|
21
|
-
|
22
|
-
# Generate a Gemfile from your config.gem directives
|
23
|
-
rake rails:upgrade:gems
|
24
|
-
|
25
|
-
# Generate code for a new config/application.rb from your environment.rb
|
26
|
-
rake rails:upgrade:configuration
|
@@ -1,22 +0,0 @@
|
|
1
|
-
require 'rake'
|
2
|
-
require 'rake/testtask'
|
3
|
-
require 'rake/rdoctask'
|
4
|
-
|
5
|
-
desc 'Default: run unit tests.'
|
6
|
-
task :default => :test
|
7
|
-
|
8
|
-
Rake::TestTask.new do |t|
|
9
|
-
t.libs << 'lib'
|
10
|
-
t.libs << 'test'
|
11
|
-
t.test_files = FileList['test/*_test.rb']
|
12
|
-
t.verbose = true
|
13
|
-
end
|
14
|
-
|
15
|
-
desc 'Generate documentation for the rails_upgrade plugin.'
|
16
|
-
Rake::RDocTask.new(:rdoc) do |rdoc|
|
17
|
-
rdoc.rdoc_dir = 'rdoc'
|
18
|
-
rdoc.title = 'Rails-upgrade'
|
19
|
-
rdoc.options << '--line-numbers' << '--inline-source'
|
20
|
-
rdoc.rdoc_files.include('README')
|
21
|
-
rdoc.rdoc_files.include('lib/**/*.rb')
|
22
|
-
end
|
@@ -1,38 +0,0 @@
|
|
1
|
-
puts "Thanks for installing the Rails upgrade plugin. This is a set of generators and analysis tools to help you upgrade your application to Rails 3. It consists of three tasks...
|
2
|
-
|
3
|
-
To get a feel for what you'll need to change to get your app running, run the application analysis:
|
4
|
-
|
5
|
-
rake rails:upgrade:check
|
6
|
-
|
7
|
-
This should give you an idea of the manual changes that need to be done, but you'll probably want to upgrade some of those automatically. The fastest way to do this is to run 'rails .', which will simply generate a new app on top of your existing code. But this generation also has the effect of replacing some existing files, some of which you might not want to replace. To back those up, first run:
|
8
|
-
|
9
|
-
rake rails:upgrade:backup
|
10
|
-
|
11
|
-
That will backup files you've probably edited that will be replaced in the upgrade; if you finish the upgrade and find that you don't need the old copies, just delete them. Otherwise, copy their contents back into the new files or run one of the following upgraders...
|
12
|
-
|
13
|
-
Routes upgrader
|
14
|
-
===============
|
15
|
-
|
16
|
-
To generate a new routes file from your existing routes file, simply run the following Rake task:
|
17
|
-
|
18
|
-
rake rails:upgrade:routes
|
19
|
-
|
20
|
-
This will output a new routes file that you can copy and paste or pipe into a new, Rails 3 compatible config/routes.rb.
|
21
|
-
|
22
|
-
Gemfile generator
|
23
|
-
=================
|
24
|
-
|
25
|
-
Creating a new Gemfile is as simple as running:
|
26
|
-
|
27
|
-
rake rails:upgrade:gems
|
28
|
-
|
29
|
-
This task will extract your config.gem calls and generate code you can put into a bundler compatible Gemfile.
|
30
|
-
|
31
|
-
Configuration generator
|
32
|
-
=======================
|
33
|
-
|
34
|
-
Much of the configuration information that lived in environment.rb now belongs in a new file named config/application.rb; use the following task to generate code you can put into config/application.rb from your existing config/environment.rb:
|
35
|
-
|
36
|
-
rake rails:upgrade:configuration
|
37
|
-
|
38
|
-
"
|