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 CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- NmEzYTQ1MjRlMDNjNDZjODU4NDY3ZTAyNjNkY2EzMjA2ODIyOGMzYQ==
4
+ M2IyMGU4YzRjZTJiZWU4M2M1NWEzYWUyYzlmYWRiYjkyYjFlNjY3Mg==
5
5
  data.tar.gz: !binary |-
6
- M2EzNTE2YTE3MDMxZjYzMzNhZjJhMWI3MTdkMjVmN2Q0MzdkNGE5ZQ==
6
+ NDUzZDZhNzFkMGNjMmQ0ODllZDgxOTk5NmFhZTljMTNmYWRlZmQxOQ==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- OWY4YmUzNzU2MjFjYTBhODQ1NmZhMTA4MWFkNGUzNDA3NWU2MjlmMDM4MGJj
10
- MDFiZTI4NDFlNjQxMzcxYjExZTgwN2E3NGQzMzE2M2Q3NzdiMDhjZjEzYTk5
11
- ZDEwNWFiNmEwNTdlOWVjNmIzMDg1MWQyZjE3NTJjOGNmNjlkZWM=
9
+ ZWM3YzFiMTQ4N2YxZjM3N2M1NjNjY2RmMWFjNGJkNDlhZjdmYTVkNjUxZjU1
10
+ ZWU4ZjYxYWIzMmUwMzFkZmNiNDU5NTI5NmJkMDhjNzIzYTYxNzZjNWY2NDli
11
+ MjQ1NDNlNmMwYmU2ODJjMmI3MTdlYmIwOTc4NTM0NzgyODVhNmI=
12
12
  data.tar.gz: !binary |-
13
- NDFlNjM5ZWIzMDdkNzVlMmUxM2U4MjJiOGQyZTA4MmEzZWI1ZmM0NGYxMTYz
14
- MDRkZTU5YjcxOGFkYzc3YzZhNDQwM2QyNDYwMmRjMDRlYzFmNWE0ZGYxNWUy
15
- YTljMmRhODQ0ZjE4NDkyYTlkZmQ3MDhkNDQ5ZTZjNmI1YjkwZDY=
13
+ NzhiOTIxY2EzYmRkYTVkNjBlNWIxNGNiY2Y4ZmEwMjYzYjY1NjQyY2I5MDU1
14
+ ZTA0OTJmZjlhODljNTE3NTAyMGNiMmRiZGE4YTliMzlmYTMzMDUyODA2ODk2
15
+ YzNkZWQxOGY2ZDExYTJlMjYyZjNhOWYzOWRhZmJjZjI4ZjRkZjI=
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,120 +1,122 @@
1
- # I think this is the one that should be moved to the extension Rakefile template
1
+ require 'trustygems'
2
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.
6
-
7
- # Determine where the RSpec plugin is by loading the boot
8
- unless defined? RADIANT_ROOT
9
- ENV["RAILS_ENV"] = "test"
10
- case
11
- when ENV["RADIANT_ENV_FILE"]
12
- require File.dirname(ENV["RADIANT_ENV_FILE"]) + "/boot"
13
- when File.dirname(__FILE__) =~ %r{vendor/radiant/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
-
20
- require 'rake'
21
- require 'rdoc/task'
22
- require 'rake/testtask'
23
-
24
- rspec_base = File.expand_path(RADIANT_ROOT + '/vendor/plugins/rspec/lib')
25
- $LOAD_PATH.unshift(rspec_base) if File.exist?(rspec_base)
26
- require 'spec/rake/spectask'
27
- # require 'spec/translator'
28
-
29
- # Cleanup the RADIANT_ROOT constant so specs will load the environment
30
- Object.send(:remove_const, :RADIANT_ROOT)
31
-
32
- extension_root = File.expand_path(File.dirname(__FILE__))
33
-
34
- task :default => :spec
35
- task :stats => "spec:statsetup"
36
-
37
- desc "Run all specs in spec directory"
38
- Spec::Rake::SpecTask.new(:spec) do |t|
39
- t.spec_opts = ['--options', "\"#{extension_root}/spec/spec.opts\""]
40
- t.spec_files = FileList['spec/**/*_spec.rb']
41
- end
42
-
43
- namespace :spec do
44
- desc "Run all specs in spec directory with RCov"
45
- Spec::Rake::SpecTask.new(:rcov) do |t|
46
- t.spec_opts = ['--options', "\"#{extension_root}/spec/spec.opts\""]
47
- t.spec_files = FileList['spec/**/*_spec.rb']
48
- t.rcov = true
49
- t.rcov_opts = ['--exclude', 'spec', '--rails']
50
- end
51
-
52
- desc "Print Specdoc for all specs"
53
- Spec::Rake::SpecTask.new(:doc) do |t|
54
- t.spec_opts = ["--format", "specdoc", "--dry-run"]
55
- t.spec_files = FileList['spec/**/*_spec.rb']
56
- end
57
-
58
- [:models, :controllers, :views, :helpers].each do |sub|
59
- desc "Run the specs under spec/#{sub}"
60
- Spec::Rake::SpecTask.new(sub) do |t|
61
- t.spec_opts = ['--options', "\"#{extension_root}/spec/spec.opts\""]
62
- t.spec_files = FileList["spec/#{sub}/**/*_spec.rb"]
63
- end
64
- end
65
-
66
- # Hopefully no one has written their extensions in pre-0.9 style
67
- # desc "Translate specs from pre-0.9 to 0.9 style"
68
- # task :translate do
69
- # translator = ::Spec::Translator.new
70
- # dir = RAILS_ROOT + '/spec'
71
- # translator.translate(dir, dir)
72
- # end
73
-
74
- # Setup specs for stats
75
- task :statsetup do
76
- require 'code_statistics'
77
- ::STATS_DIRECTORIES << %w(Model\ specs spec/models)
78
- ::STATS_DIRECTORIES << %w(View\ specs spec/views)
79
- ::STATS_DIRECTORIES << %w(Controller\ specs spec/controllers)
80
- ::STATS_DIRECTORIES << %w(Helper\ specs spec/views)
81
- ::CodeStatistics::TEST_TYPES << "Model specs"
82
- ::CodeStatistics::TEST_TYPES << "View specs"
83
- ::CodeStatistics::TEST_TYPES << "Controller specs"
84
- ::CodeStatistics::TEST_TYPES << "Helper specs"
85
- ::STATS_DIRECTORIES.delete_if {|a| a[0] =~ /test/}
86
- end
87
-
88
- namespace :db do
89
- namespace :fixtures do
90
- desc "Load fixtures (from spec/fixtures) into the current environment's database. Load specific fixtures using FIXTURES=x,y"
91
- task :load => :environment do
92
- require 'active_record/fixtures'
93
- ActiveRecord::Base.establish_connection(RAILS_ENV.to_sym)
94
- (ENV['FIXTURES'] ? ENV['FIXTURES'].split(/,/) : Dir.glob(File.join(RAILS_ROOT, 'spec', 'fixtures', '*.{yml,csv}'))).each do |fixture_file|
95
- Fixtures.create_fixtures('spec/fixtures', File.basename(fixture_file, '.*'))
96
- end
97
- end
98
- end
99
- end
100
- end
101
-
102
- desc 'Generate documentation for the upcoming_events extension.'
103
- Rake::RDocTask.new(:rdoc) do |rdoc|
104
- rdoc.rdoc_dir = 'rdoc'
105
- rdoc.title = 'UpcomingEventsExtension'
106
- rdoc.options << '--line-numbers' << '--inline-source'
107
- rdoc.rdoc_files.include('README')
108
- rdoc.rdoc_files.include('lib/**/*.rb')
109
- end
110
-
111
- # For extensions that are in transition
112
- desc 'Test the upcoming_events extension.'
113
- Rake::TestTask.new(:test) do |t|
114
- t.libs << 'lib'
115
- t.pattern = 'test/**/*_test.rb'
116
- t.verbose = true
117
- end
118
-
119
- # Load any custom rakefiles for extension
120
- Dir[File.dirname(__FILE__) + '/tasks/*.rake'].sort.each { |f| require f }
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 }
@@ -0,0 +1,2 @@
1
+ gemspec: trusty-reorder-extension.gemspec
2
+ deploy_command: gem push
@@ -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[:children].options[:order] = "position ASC"
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 = "1.1.0"
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", "~> 1.2"
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: 1.1.0
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: 2014-10-07 00:00:00.000000000 Z
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: '1.2'
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: '1.2'
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