refinerycms-core 0.9.9.7 → 0.9.9.8

Sign up to get free protection for your applications and to get access to all the features.
data/lib/gemspec.rb CHANGED
@@ -21,11 +21,11 @@ Gem::Specification.new do |s|
21
21
 
22
22
  s.add_dependency 'refinerycms-base', '~> #{::Refinery::Version}'
23
23
  s.add_dependency 'refinerycms-settings', '~> #{::Refinery::Version}'
24
- s.add_dependency 'refinerycms-generators', '~> 0.9.9.3'
24
+ s.add_dependency 'refinerycms-generators', '~> 1.0'
25
25
  s.add_dependency 'acts_as_indexed', '~> 0.7'
26
26
  s.add_dependency 'friendly_id_globalize3', '~> 3.2.1'
27
27
  s.add_dependency 'globalize3', '>= 0.1.0.beta'
28
- s.add_dependency 'moretea-awesome_nested_set', '= 1.4.3.1'
28
+ s.add_dependency 'moretea-awesome_nested_set', '~> 1.4'
29
29
  s.add_dependency 'rails', '~> 3.0.5'
30
30
  s.add_dependency 'rdoc', '>= 2.5.11' # helps fix ubuntu
31
31
  s.add_dependency 'truncate_html', '~> 0.5'
@@ -21,16 +21,16 @@ class RefinerycmsGenerator < ::Refinery::Generators::EngineInstaller
21
21
  self.options = new_options
22
22
  end
23
23
 
24
- # First, effectively move / rename files that get in the way of Refinery CMS
25
- %w(public/index.html config/cucumber.yml app/views/layouts/application.html.erb public/javascripts/rails.js).each do |roadblock|
26
- if (roadblock_path = Rails.root.join(roadblock)).file?
27
- create_file "#{roadblock}.backup",
28
- :verbose => true do roadblock_path.read end
29
- remove_file roadblock_path, :verbose => true
24
+ unless self.options[:update]
25
+ # First, effectively move / rename files that get in the way of Refinery CMS
26
+ %w(public/index.html app/views/layouts/application.html.erb public/javascripts/rails.js).each do |roadblock|
27
+ if (roadblock_path = Rails.root.join(roadblock)).file?
28
+ create_file "#{roadblock}.backup",
29
+ :verbose => true do roadblock_path.read end
30
+ remove_file roadblock_path, :verbose => true
31
+ end
30
32
  end
31
- end
32
33
 
33
- unless self.options[:update]
34
34
  # Copy asset files (JS, CSS) so they're ready to use.
35
35
  %w(application.css formatting.css home.css theme.css).map{ |ss|
36
36
  Refinery.roots('core').join('public', 'stylesheets', ss)
@@ -165,7 +165,7 @@ init_interface = function() {
165
165
  });
166
166
 
167
167
  $('.form-actions .form-actions-left input:submit#submit_button').click(function(e) {
168
- $("<img src='/images/refinery/icons/ajax-loader.gif' width='16' height='16' class='save-loader' />").appendTo($(this).parent());
168
+ $("<img src='/images/refinery/ajax-loader.gif' width='16' height='16' class='save-loader' />").appendTo($(this).parent());
169
169
  });
170
170
 
171
171
  $('a.suppress').live('click', function(e){
@@ -437,14 +437,14 @@ var link_tester = {
437
437
  loader_img.insertAfter($(textbox_id));
438
438
  result_span.insertAfter(loader_img);
439
439
 
440
- $(textbox_id).bind('paste keypress',function(){
440
+ $(textbox_id).bind('paste blur',function(){
441
441
  $(textbox_id).stop(true); // Clear the current queue; if we weren't checking yet, cancel it.
442
442
  $(textbox_id + '_test_loader').hide();
443
443
  $(textbox_id + '_test_result').hide();
444
444
  $(textbox_id + '_test_result').removeClass('success_icon').removeClass('failure_icon');
445
445
 
446
- // Wait one second before checking.
447
- $(textbox_id).delay(1000).queue(function () {
446
+ // Wait 300ms before checking.
447
+ $(textbox_id).delay(300).queue(function () {
448
448
  $(textbox_id + '_test_loader').show();
449
449
  $(textbox_id + '_test_result').hide();
450
450
  $(textbox_id + '_test_result').removeClass('success_icon').removeClass('failure_icon');
@@ -11,8 +11,15 @@ init_flash_messages = function(){
11
11
  , 'visibility':'visible'
12
12
  }).animate({'opacity': '1'}, 550);
13
13
  $('#flash_close').click(function(e) {
14
- $('#flash').animate({'opacity': 0, 'visibility': 'toggle'}, 330);
15
- e.preventDefault();
14
+ try {
15
+ $('#flash').animate({
16
+ 'opacity': 0,
17
+ 'visibility': 'hidden'
18
+ }, 330);
19
+ } catch(ex) {
20
+ $('#flash').hide();
21
+ }
22
+ e.preventDefault();
16
23
  });
17
24
  $('#flash.flash_message').prependTo('#records');
18
25
  };
@@ -7,7 +7,7 @@ $(document).ready(function(){
7
7
  $('nav#actions.multilist > ul:not(.search_list) li > a').not('.not_a_link a').each(function(i,a){
8
8
  if ($(this).data('dialog-title') == null) {
9
9
  $(this).bind('click', function(){
10
- $(this).css('background-image', "url('/images/refinery/icons/ajax-loader.gif') !important");
10
+ $(this).css('background-image', "url('/images/refinery/ajax-loader.gif') !important");
11
11
  });
12
12
  }
13
13
  });
@@ -46,4 +46,4 @@ $(document).ready(function(){
46
46
  }, $(this)));
47
47
  e.preventDefault();
48
48
  });
49
- });
49
+ });
@@ -623,7 +623,7 @@ label.stripped {
623
623
  .record .title span {
624
624
  line-height: 30px;
625
625
  }
626
- #records.files .record .title, #dialog_main #resource_file_area #pages_list ul li a.page_link {
626
+ #records.files .record .title, #dialog_main #resource_file_area .pages_list ul li a.page_link {
627
627
  display:inline-block;
628
628
  padding-left:24px;
629
629
  min-height:16px;
@@ -631,29 +631,29 @@ label.stripped {
631
631
  background-position:left;
632
632
  background-image: url('/images/refinery/icons/folder_page_white.png');
633
633
  }
634
- #dialog_main #resource_file_area #pages_list ul li a.page_link{
634
+ #dialog_main #resource_file_area .pages_list ul li a.page_link{
635
635
  background-position:5px center;
636
636
  display:block;
637
637
  }
638
- #records.files .record .title.pdf, #dialog_main #resource_file_area #pages_list ul li a.page_link.pdf {
638
+ #records.files .record .title.pdf, #dialog_main #resource_file_area .pages_list ul li a.page_link.pdf {
639
639
  background-image: url('/images/refinery/icons/pdf.png');
640
640
  }
641
- #records.files .record .title.jpg, #records.files .record .title.gif, #records.files .record .title.jpeg, #records.files .record .title.png, #records.files .record .title.tiff, #dialog_main #resource_file_area #pages_list ul li a.page_link.jpg, #dialog_main #resource_file_area #pages_list ul li a.page_link.jpeg, #dialog_main #resource_file_area #pages_list ul li a.page_link.gif, #dialog_main #resource_file_area #pages_list ul li a.page_link.png, #dialog_main #resource_file_area #pages_list ul li a.page_link.tiff {
641
+ #records.files .record .title.jpg, #records.files .record .title.gif, #records.files .record .title.jpeg, #records.files .record .title.png, #records.files .record .title.tiff, #dialog_main #resource_file_area .pages_list ul li a.page_link.jpg, #dialog_main #resource_file_area .pages_list ul li a.page_link.jpeg, #dialog_main #resource_file_area .pages_list ul li a.page_link.gif, #dialog_main #resource_file_area .pages_list ul li a.page_link.png, #dialog_main #resource_file_area .pages_list ul li a.page_link.tiff {
642
642
  background-image: url('/images/refinery/icons/img.png');
643
643
  }
644
- #records.files .record .title.doc, #records.files .record .title.pages, #records.files .record .title.docx, #dialog_main #resource_file_area #pages_list ul li a.page_link.doc, #dialog_main #resource_file_area #pages_list ul li a.page_link.docx, #dialog_main #resource_file_area #pages_list ul li a.page_link.pages {
644
+ #records.files .record .title.doc, #records.files .record .title.pages, #records.files .record .title.docx, #dialog_main #resource_file_area .pages_list ul li a.page_link.doc, #dialog_main #resource_file_area .pages_list ul li a.page_link.docx, #dialog_main #resource_file_area .pages_list ul li a.page_link.pages {
645
645
  background-image: url('/images/refinery/icons/doc.png');
646
646
  }
647
- #records.files .record .title.ppt, #records.files .record .title.keynote, #dialog_main #resource_file_area #pages_list ul li a.page_link.ppt, #dialog_main #resource_file_area #pages_list ul li a.page_link.keynote {
647
+ #records.files .record .title.ppt, #records.files .record .title.keynote, #dialog_main #resource_file_area .pages_list ul li a.page_link.ppt, #dialog_main #resource_file_area .pages_list ul li a.page_link.keynote {
648
648
  background-image: url('/images/refinery/icons/ppt.png');
649
649
  }
650
- #records.files .record .title.xls, #records.files .record .title.numbers, #dialog_main #resource_file_area #pages_list ul li a.page_link.xls, #dialog_main #resource_file_area #pages_list ul li a.page_link.numbers {
650
+ #records.files .record .title.xls, #records.files .record .title.numbers, #dialog_main #resource_file_area .pages_list ul li a.page_link.xls, #dialog_main #resource_file_area .pages_list ul li a.page_link.numbers {
651
651
  background-image: url('/images/refinery/icons/xls.png');
652
652
  }
653
- #records.files .record .title.zip, #records.files .record .title.rar, #dialog_main #resource_file_area #pages_list ul li a.page_link.zip, #dialog_main #resource_file_area #pages_list ul li a.page_link.rar {
653
+ #records.files .record .title.zip, #records.files .record .title.rar, #dialog_main #resource_file_area .pages_list ul li a.page_link.zip, #dialog_main #resource_file_area .pages_list ul li a.page_link.rar {
654
654
  background-image: url('/images/refinery/icons/zip.png');
655
655
  }
656
- #records.files .record .title.mp3, #records.files .record .title.wav, #records.files .record .title.aiff, #records.files .record .title.m4a, #dialog_main #resource_file_area #pages_list ul li a.page_link.mp3, #dialog_main #resource_file_area #pages_list ul li a.page_link.wav, #dialog_main #resource_file_area #pages_list ul li a.page_link.aiff, #dialog_main #resource_file_area #pages_list ul li a.page_link.m4a {
656
+ #records.files .record .title.mp3, #records.files .record .title.wav, #records.files .record .title.aiff, #records.files .record .title.m4a, #dialog_main #resource_file_area .pages_list ul li a.page_link.mp3, #dialog_main #resource_file_area .pages_list ul li a.page_link.wav, #dialog_main #resource_file_area .pages_list ul li a.page_link.aiff, #dialog_main #resource_file_area .pages_list ul li a.page_link.m4a {
657
657
  background-image: url('/images/refinery/icons/music.png');
658
658
  }
659
659
  #records .actions {
@@ -875,59 +875,59 @@ body.dialog form {
875
875
  width: 940px;
876
876
  padding: 6px;
877
877
  }
878
- #dialog_main #pages_list {
878
+ #dialog_main .pages_list {
879
879
  width: 100%;
880
880
  padding-bottom: 40px;
881
881
  }
882
- #dialog_main #pages_list ul {
882
+ #dialog_main .pages_list ul {
883
883
  margin: 0px 12px 0px 12px;
884
884
  padding: 0px;
885
885
  }
886
- #dialog_main #pages_list ul li {
886
+ #dialog_main .pages_list ul li {
887
887
  cursor: pointer;
888
888
  line-height: 24px;
889
889
  list-style: none;
890
890
  }
891
- #dialog_main #pages_list li.child a {
891
+ #dialog_main .pages_list li.child a {
892
892
  padding-left: 27px;
893
893
  }
894
- #dialog_main #pages_list li.child1 a {
894
+ #dialog_main .pages_list li.child1 a {
895
895
  padding-left: 47px;
896
896
  }
897
- #dialog_main #pages_list li.child2 a {
897
+ #dialog_main .pages_list li.child2 a {
898
898
  padding-left: 67px;
899
899
  }
900
- #dialog_main #pages_list li.child3 a {
900
+ #dialog_main .pages_list li.child3 a {
901
901
  padding-left: 87px;
902
902
  }
903
- #dialog_main #pages_list li.child4 a {
903
+ #dialog_main .pages_list li.child4 a {
904
904
  padding-left: 107px;
905
905
  }
906
906
  /*
907
- #dialog_main #pages_list ul li span {
907
+ #dialog_main .pages_list ul li span {
908
908
  display: block;
909
909
  padding: 3px;
910
910
  margin-left: 24px;
911
911
  }*/
912
- #dialog_main #pages_list ul li a {
912
+ #dialog_main .pages_list ul li a {
913
913
  display: block;
914
914
  padding: 3px 3px 3px 27px;
915
915
  text-decoration: none;
916
916
  border-bottom: none;
917
917
  border: 1px solid transparent;
918
918
  }
919
- #dialog_main #pages_list li a:hover {
919
+ #dialog_main .pages_list li a:hover {
920
920
  background-color: #C9DAE2;
921
921
  }
922
922
  #dialog_main .actions {
923
923
  margin-right: 48px;
924
924
  }
925
- #dialog_main #pages_list .linked a, #dialog_main #pages_list .linked a:hover {
925
+ #dialog_main .pages_list .linked a, #dialog_main .pages_list .linked a:hover {
926
926
  border: 1px solid #00A017;
927
927
  color: #00A017;
928
928
  background: 7px 7px no-repeat url('/images/refinery/icons/accept.png') #E0F5E0;
929
929
  }
930
- #dialog_main #pages_list .linked a em {
930
+ #dialog_main .pages_list .linked a em {
931
931
  color: #00A017;
932
932
  }
933
933
  #dialog_main #web_address_area, #dialog_main #email_address_area {
@@ -2,10 +2,10 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{refinerycms-core}
5
- s.version = %q{0.9.9.7}
5
+ s.version = %q{0.9.9.8}
6
6
  s.summary = %q{Core engine for Refinery CMS}
7
7
  s.description = %q{The core of Refinery CMS. This handles the common functionality and is required by most engines}
8
- s.date = %q{2011-03-10}
8
+ s.date = %q{2011-03-11}
9
9
  s.email = %q{info@refinerycms.com}
10
10
  s.homepage = %q{http://refinerycms.com}
11
11
  s.rubyforge_project = %q{refinerycms}
@@ -14,13 +14,13 @@ Gem::Specification.new do |s|
14
14
  s.require_paths = %w(lib)
15
15
  s.executables = %w()
16
16
 
17
- s.add_dependency 'refinerycms-base', '~> 0.9.9.7'
18
- s.add_dependency 'refinerycms-settings', '~> 0.9.9.7'
19
- s.add_dependency 'refinerycms-generators', '~> 0.9.9.3'
17
+ s.add_dependency 'refinerycms-base', '~> 0.9.9.8'
18
+ s.add_dependency 'refinerycms-settings', '~> 0.9.9.8'
19
+ s.add_dependency 'refinerycms-generators', '~> 1.0'
20
20
  s.add_dependency 'acts_as_indexed', '~> 0.7'
21
21
  s.add_dependency 'friendly_id_globalize3', '~> 3.2.1'
22
22
  s.add_dependency 'globalize3', '>= 0.1.0.beta'
23
- s.add_dependency 'moretea-awesome_nested_set', '= 1.4.3.1'
23
+ s.add_dependency 'moretea-awesome_nested_set', '~> 1.4'
24
24
  s.add_dependency 'rails', '~> 3.0.5'
25
25
  s.add_dependency 'rdoc', '>= 2.5.11' # helps fix ubuntu
26
26
  s.add_dependency 'truncate_html', '~> 0.5'
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: refinerycms-core
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.9.9.7
5
+ version: 0.9.9.8
6
6
  platform: ruby
7
7
  authors:
8
8
  - Resolve Digital
@@ -13,7 +13,7 @@ autorequire:
13
13
  bindir: bin
14
14
  cert_chain: []
15
15
 
16
- date: 2011-03-10 00:00:00 +13:00
16
+ date: 2011-03-11 00:00:00 +13:00
17
17
  default_executable:
18
18
  dependencies:
19
19
  - !ruby/object:Gem::Dependency
@@ -24,7 +24,7 @@ dependencies:
24
24
  requirements:
25
25
  - - ~>
26
26
  - !ruby/object:Gem::Version
27
- version: 0.9.9.7
27
+ version: 0.9.9.8
28
28
  type: :runtime
29
29
  version_requirements: *id001
30
30
  - !ruby/object:Gem::Dependency
@@ -35,7 +35,7 @@ dependencies:
35
35
  requirements:
36
36
  - - ~>
37
37
  - !ruby/object:Gem::Version
38
- version: 0.9.9.7
38
+ version: 0.9.9.8
39
39
  type: :runtime
40
40
  version_requirements: *id002
41
41
  - !ruby/object:Gem::Dependency
@@ -46,7 +46,7 @@ dependencies:
46
46
  requirements:
47
47
  - - ~>
48
48
  - !ruby/object:Gem::Version
49
- version: 0.9.9.3
49
+ version: "1.0"
50
50
  type: :runtime
51
51
  version_requirements: *id003
52
52
  - !ruby/object:Gem::Dependency
@@ -88,9 +88,9 @@ dependencies:
88
88
  requirement: &id007 !ruby/object:Gem::Requirement
89
89
  none: false
90
90
  requirements:
91
- - - "="
91
+ - - ~>
92
92
  - !ruby/object:Gem::Version
93
- version: 1.4.3.1
93
+ version: "1.4"
94
94
  type: :runtime
95
95
  version_requirements: *id007
96
96
  - !ruby/object:Gem::Dependency