trusty-reorder-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 +121 -119
- data/config/trustygems.yml +2 -0
- data/lib/reorder/page_extensions.rb +1 -1
- data/trusty-reorder-extension.gemspec +3 -4
- metadata +9 -4
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
M2IyMGU4YzRjZTJiZWU4M2M1NWEzYWUyYzlmYWRiYjkyYjFlNjY3Mg==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
NDUzZDZhNzFkMGNjMmQ0ODllZDgxOTk5NmFhZTljMTNmYWRlZmQxOQ==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
ZWM3YzFiMTQ4N2YxZjM3N2M1NjNjY2RmMWFjNGJkNDlhZjdmYTVkNjUxZjU1
|
10
|
+
ZWU4ZjYxYWIzMmUwMzFkZmNiNDU5NTI5NmJkMDhjNzIzYTYxNzZjNWY2NDli
|
11
|
+
MjQ1NDNlNmMwYmU2ODJjMmI3MTdlYmIwOTc4NTM0NzgyODVhNmI=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
NzhiOTIxY2EzYmRkYTVkNjBlNWIxNGNiY2Y4ZmEwMjYzYjY1NjQyY2I5MDU1
|
14
|
+
ZTA0OTJmZjlhODljNTE3NTAyMGNiMmRiZGE4YTliMzlmYTMzMDUyODA2ODk2
|
15
|
+
YzNkZWQxOGY2ZDExYTJlMjYyZjNhOWYzOWRhZmJjZjI4ZjRkZjI=
|
data/Gemfile
ADDED
data/Gemfile.lock
ADDED
data/Rakefile
CHANGED
@@ -1,120 +1,122 @@
|
|
1
|
-
|
1
|
+
require 'trustygems'
|
2
2
|
|
3
|
-
#
|
4
|
-
#
|
5
|
-
#
|
6
|
-
|
7
|
-
#
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
require 'rake
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
#
|
28
|
-
|
29
|
-
#
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
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
|
-
end
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
#
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
#
|
120
|
-
|
3
|
+
# # I think this is the one that should be moved to the extension Rakefile template
|
4
|
+
#
|
5
|
+
# # In rails 1.2, plugins aren't available in the path until they're loaded.
|
6
|
+
# # Check to see if the rspec plugin is installed first and require
|
7
|
+
# # it if it is. If not, use the gem version.
|
8
|
+
#
|
9
|
+
# # Determine where the RSpec plugin is by loading the boot
|
10
|
+
# unless defined? RADIANT_ROOT
|
11
|
+
# ENV["RAILS_ENV"] = "test"
|
12
|
+
# case
|
13
|
+
# when ENV["RADIANT_ENV_FILE"]
|
14
|
+
# require File.dirname(ENV["RADIANT_ENV_FILE"]) + "/boot"
|
15
|
+
# when File.dirname(__FILE__) =~ %r{vendor/radiant/vendor/extensions}
|
16
|
+
# require "#{File.expand_path(File.dirname(__FILE__) + "/../../../../../")}/config/boot"
|
17
|
+
# else
|
18
|
+
# require "#{File.expand_path(File.dirname(__FILE__) + "/../../../")}/config/boot"
|
19
|
+
# end
|
20
|
+
# end
|
21
|
+
#
|
22
|
+
# require 'rake'
|
23
|
+
# require 'rdoc/task'
|
24
|
+
# require 'rake/testtask'
|
25
|
+
#
|
26
|
+
# rspec_base = File.expand_path(RADIANT_ROOT + '/vendor/plugins/rspec/lib')
|
27
|
+
# $LOAD_PATH.unshift(rspec_base) if File.exist?(rspec_base)
|
28
|
+
# require 'spec/rake/spectask'
|
29
|
+
# # require 'spec/translator'
|
30
|
+
#
|
31
|
+
# # Cleanup the RADIANT_ROOT constant so specs will load the environment
|
32
|
+
# Object.send(:remove_const, :RADIANT_ROOT)
|
33
|
+
#
|
34
|
+
# extension_root = File.expand_path(File.dirname(__FILE__))
|
35
|
+
#
|
36
|
+
# task :default => :spec
|
37
|
+
# task :stats => "spec:statsetup"
|
38
|
+
#
|
39
|
+
# desc "Run all specs in spec directory"
|
40
|
+
# Spec::Rake::SpecTask.new(:spec) do |t|
|
41
|
+
# t.spec_opts = ['--options', "\"#{extension_root}/spec/spec.opts\""]
|
42
|
+
# t.spec_files = FileList['spec/**/*_spec.rb']
|
43
|
+
# end
|
44
|
+
#
|
45
|
+
# namespace :spec do
|
46
|
+
# desc "Run all specs in spec directory with RCov"
|
47
|
+
# Spec::Rake::SpecTask.new(:rcov) do |t|
|
48
|
+
# t.spec_opts = ['--options', "\"#{extension_root}/spec/spec.opts\""]
|
49
|
+
# t.spec_files = FileList['spec/**/*_spec.rb']
|
50
|
+
# t.rcov = true
|
51
|
+
# t.rcov_opts = ['--exclude', 'spec', '--rails']
|
52
|
+
# end
|
53
|
+
#
|
54
|
+
# desc "Print Specdoc for all specs"
|
55
|
+
# Spec::Rake::SpecTask.new(:doc) do |t|
|
56
|
+
# t.spec_opts = ["--format", "specdoc", "--dry-run"]
|
57
|
+
# t.spec_files = FileList['spec/**/*_spec.rb']
|
58
|
+
# end
|
59
|
+
#
|
60
|
+
# [:models, :controllers, :views, :helpers].each do |sub|
|
61
|
+
# desc "Run the specs under spec/#{sub}"
|
62
|
+
# Spec::Rake::SpecTask.new(sub) do |t|
|
63
|
+
# t.spec_opts = ['--options', "\"#{extension_root}/spec/spec.opts\""]
|
64
|
+
# t.spec_files = FileList["spec/#{sub}/**/*_spec.rb"]
|
65
|
+
# end
|
66
|
+
# end
|
67
|
+
#
|
68
|
+
# # Hopefully no one has written their extensions in pre-0.9 style
|
69
|
+
# # desc "Translate specs from pre-0.9 to 0.9 style"
|
70
|
+
# # task :translate do
|
71
|
+
# # translator = ::Spec::Translator.new
|
72
|
+
# # dir = RAILS_ROOT + '/spec'
|
73
|
+
# # translator.translate(dir, dir)
|
74
|
+
# # end
|
75
|
+
#
|
76
|
+
# # Setup specs for stats
|
77
|
+
# task :statsetup do
|
78
|
+
# require 'code_statistics'
|
79
|
+
# ::STATS_DIRECTORIES << %w(Model\ specs spec/models)
|
80
|
+
# ::STATS_DIRECTORIES << %w(View\ specs spec/views)
|
81
|
+
# ::STATS_DIRECTORIES << %w(Controller\ specs spec/controllers)
|
82
|
+
# ::STATS_DIRECTORIES << %w(Helper\ specs spec/views)
|
83
|
+
# ::CodeStatistics::TEST_TYPES << "Model specs"
|
84
|
+
# ::CodeStatistics::TEST_TYPES << "View specs"
|
85
|
+
# ::CodeStatistics::TEST_TYPES << "Controller specs"
|
86
|
+
# ::CodeStatistics::TEST_TYPES << "Helper specs"
|
87
|
+
# ::STATS_DIRECTORIES.delete_if {|a| a[0] =~ /test/}
|
88
|
+
# end
|
89
|
+
#
|
90
|
+
# namespace :db do
|
91
|
+
# namespace :fixtures do
|
92
|
+
# desc "Load fixtures (from spec/fixtures) into the current environment's database. Load specific fixtures using FIXTURES=x,y"
|
93
|
+
# task :load => :environment do
|
94
|
+
# require 'active_record/fixtures'
|
95
|
+
# ActiveRecord::Base.establish_connection(RAILS_ENV.to_sym)
|
96
|
+
# (ENV['FIXTURES'] ? ENV['FIXTURES'].split(/,/) : Dir.glob(File.join(RAILS_ROOT, 'spec', 'fixtures', '*.{yml,csv}'))).each do |fixture_file|
|
97
|
+
# Fixtures.create_fixtures('spec/fixtures', File.basename(fixture_file, '.*'))
|
98
|
+
# end
|
99
|
+
# end
|
100
|
+
# end
|
101
|
+
# end
|
102
|
+
# end
|
103
|
+
#
|
104
|
+
# desc 'Generate documentation for the upcoming_events extension.'
|
105
|
+
# Rake::RDocTask.new(:rdoc) do |rdoc|
|
106
|
+
# rdoc.rdoc_dir = 'rdoc'
|
107
|
+
# rdoc.title = 'UpcomingEventsExtension'
|
108
|
+
# rdoc.options << '--line-numbers' << '--inline-source'
|
109
|
+
# rdoc.rdoc_files.include('README')
|
110
|
+
# rdoc.rdoc_files.include('lib/**/*.rb')
|
111
|
+
# end
|
112
|
+
#
|
113
|
+
# # For extensions that are in transition
|
114
|
+
# desc 'Test the upcoming_events extension.'
|
115
|
+
# Rake::TestTask.new(:test) do |t|
|
116
|
+
# t.libs << 'lib'
|
117
|
+
# t.pattern = 'test/**/*_test.rb'
|
118
|
+
# t.verbose = true
|
119
|
+
# end
|
120
|
+
#
|
121
|
+
# # Load any custom rakefiles for extension
|
122
|
+
# Dir[File.dirname(__FILE__) + '/tasks/*.rake'].sort.each { |f| require f }
|
@@ -2,7 +2,7 @@ module Reorder::PageExtensions
|
|
2
2
|
def self.included(base)
|
3
3
|
base.class_eval {
|
4
4
|
acts_as_list :scope => :parent_id
|
5
|
-
self.reflections[
|
5
|
+
self.reflections["children"].options[:order] = "position ASC"
|
6
6
|
}
|
7
7
|
|
8
8
|
if defined?(Page::NONDRAFT_FIELDS)
|
@@ -4,10 +4,9 @@ require "trusty-reorder-extension"
|
|
4
4
|
|
5
5
|
Gem::Specification.new do |s|
|
6
6
|
s.name = "trusty-reorder-extension"
|
7
|
-
s.version = "
|
7
|
+
s.version = "2.0.0-beta"
|
8
8
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
9
|
-
s.authors = ["Eric Sipple"]
|
10
|
-
s.date = %q{2014-10-07}
|
9
|
+
s.authors = ["Sean Cribbs", "Eric Sipple", "Danielle Greaves"]
|
11
10
|
s.description = %q{Extends Trusty CMS to allow page ordering}
|
12
11
|
s.email = %q{sipple@trustarts.org}
|
13
12
|
s.homepage = %q{https://github.com/pgharts/trusty-reorder-extension}
|
@@ -26,5 +25,5 @@ Gem::Specification.new do |s|
|
|
26
25
|
# s.executables = Dir['bin/*'] - ignores
|
27
26
|
s.require_paths = ["lib"]
|
28
27
|
s.add_dependency "acts_as_list", "0.4.0"
|
29
|
-
s.add_dependency "trusty-cms", "~>
|
28
|
+
s.add_dependency "trusty-cms", "~> 2.0.0-beta"
|
30
29
|
end
|
metadata
CHANGED
@@ -1,14 +1,16 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: trusty-reorder-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
|
+
- Sean Cribbs
|
7
8
|
- Eric Sipple
|
9
|
+
- Danielle Greaves
|
8
10
|
autorequire:
|
9
11
|
bindir: bin
|
10
12
|
cert_chain: []
|
11
|
-
date:
|
13
|
+
date: 2015-07-21 00:00:00.000000000 Z
|
12
14
|
dependencies:
|
13
15
|
- !ruby/object:Gem::Dependency
|
14
16
|
name: acts_as_list
|
@@ -30,14 +32,14 @@ dependencies:
|
|
30
32
|
requirements:
|
31
33
|
- - ~>
|
32
34
|
- !ruby/object:Gem::Version
|
33
|
-
version:
|
35
|
+
version: 2.0.0.pre.beta
|
34
36
|
type: :runtime
|
35
37
|
prerelease: false
|
36
38
|
version_requirements: !ruby/object:Gem::Requirement
|
37
39
|
requirements:
|
38
40
|
- - ~>
|
39
41
|
- !ruby/object:Gem::Version
|
40
|
-
version:
|
42
|
+
version: 2.0.0.pre.beta
|
41
43
|
description: Extends Trusty CMS to allow page ordering
|
42
44
|
email: sipple@trustarts.org
|
43
45
|
executables: []
|
@@ -45,6 +47,8 @@ extensions: []
|
|
45
47
|
extra_rdoc_files:
|
46
48
|
- README.md
|
47
49
|
files:
|
50
|
+
- Gemfile
|
51
|
+
- Gemfile.lock
|
48
52
|
- README.md
|
49
53
|
- Rakefile
|
50
54
|
- app/assets/images/admin/move_higher.png
|
@@ -56,6 +60,7 @@ files:
|
|
56
60
|
- app/views/admin/pages/_order.html.haml
|
57
61
|
- app/views/admin/pages/_order_header.html.haml
|
58
62
|
- config/routes.rb
|
63
|
+
- config/trustygems.yml
|
59
64
|
- db/migrate/01_add_position_to_pages.rb
|
60
65
|
- lib/reorder/engine.rb
|
61
66
|
- lib/reorder/page_extensions.rb
|