muck-engine 0.2.26 → 0.2.27

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -12,6 +12,11 @@ jQuery(document).ready(function() {
12
12
  var tip_text = field.siblings('.tip-text').html();
13
13
  var tip_title = field.siblings('.tip-title').html();
14
14
  var tip_position = field.siblings('.tip-position').html();
15
+ if(tip_text == null){
16
+ tip_text = field.parent().siblings('.tip-text').html();
17
+ tip_title = field.parent().siblings('.tip-title').html();
18
+ tip_position = field.parent().siblings('.tip-position').html();
19
+ }
15
20
  if (!tip_position) { tip_position = 'right'; }
16
21
  show_tip(control_id, tip_title, tip_text, tip_position);
17
22
  jQuery("#" + help_id + "-container").addClass("active");
@@ -0,0 +1,4 @@
1
+ class User < ActiveRecord::Base
2
+ acts_as_authentic
3
+ acts_as_muck_user
4
+ end
@@ -0,0 +1,2 @@
1
+ class UserSession < Authlogic::Session::Base
2
+ end
@@ -1,4 +1,4 @@
1
- RAILS_GEM_VERSION = '2.3.4' unless defined? RAILS_GEM_VERSION
1
+ RAILS_GEM_VERSION = '2.3.5' unless defined? RAILS_GEM_VERSION
2
2
 
3
3
  require File.join(File.dirname(__FILE__), 'boot')
4
4
 
@@ -16,5 +16,7 @@ end
16
16
  Rails::Initializer.run do |config|
17
17
  config.time_zone = 'UTC'
18
18
  config.gem "will_paginate"
19
+ config.gem 'overlord'
20
+ config.gem 'muck-users', :lib => 'muck_users'
19
21
  config.plugin_locators << TestGemLocator
20
22
  end
@@ -12,6 +12,11 @@ jQuery(document).ready(function() {
12
12
  var tip_text = field.siblings('.tip-text').html();
13
13
  var tip_title = field.siblings('.tip-title').html();
14
14
  var tip_position = field.siblings('.tip-position').html();
15
+ if(tip_text == null){
16
+ tip_text = field.parent().siblings('.tip-text').html();
17
+ tip_title = field.parent().siblings('.tip-title').html();
18
+ tip_position = field.parent().siblings('.tip-position').html();
19
+ }
15
20
  if (!tip_position) { tip_position = 'right'; }
16
21
  show_tip(control_id, tip_title, tip_text, tip_position);
17
22
  jQuery("#" + help_id + "-container").addClass("active");
@@ -6,6 +6,8 @@ class Admin::Muck::DefaultControllerTest < ActionController::TestCase
6
6
 
7
7
  context "GET to admin index" do
8
8
  setup do
9
+ @user = stub(:display_name => 'test')
10
+ @controller.stubs(:current_user).returns(@user)
9
11
  @controller.stubs(:login_required).returns(true)
10
12
  @controller.stubs(:admin_access_required).returns(true)
11
13
  get :index
@@ -24,4 +26,4 @@ class Admin::Muck::DefaultControllerTest < ActionController::TestCase
24
26
  # should_respond_with :redirect
25
27
  # end
26
28
 
27
- end
29
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: muck-engine
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.26
4
+ version: 0.2.27
5
5
  platform: ruby
6
6
  authors:
7
7
  - Justin Ball
@@ -10,7 +10,7 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
 
13
- date: 2010-01-14 00:00:00 -07:00
13
+ date: 2010-01-20 00:00:00 -07:00
14
14
  default_executable:
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
@@ -43,6 +43,16 @@ dependencies:
43
43
  - !ruby/object:Gem::Version
44
44
  version: "0"
45
45
  version:
46
+ - !ruby/object:Gem::Dependency
47
+ name: shoulda
48
+ type: :development
49
+ version_requirement:
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ">="
53
+ - !ruby/object:Gem::Version
54
+ version: "0"
55
+ version:
46
56
  description: The base engine for the muck system. Contains common tables, custom for, css and javascript.
47
57
  email: justin@tatemae.com
48
58
  executables: []
@@ -101,6 +111,7 @@ files:
101
111
  - db/migrate/20090426041103_create_states.rb
102
112
  - install.rb
103
113
  - lib/action_controller/muck_application.rb
114
+ - lib/action_mailer/muck_mailer.rb
104
115
  - lib/active_record/muck_model.rb
105
116
  - lib/muck_engine.rb
106
117
  - lib/muck_engine/initialize_routes.rb
@@ -746,6 +757,8 @@ files:
746
757
  - test/rails_root/app/controllers/default_controller.rb
747
758
  - test/rails_root/app/helpers/application_helper.rb
748
759
  - test/rails_root/app/models/.keep
760
+ - test/rails_root/app/models/user.rb
761
+ - test/rails_root/app/models/user_session.rb
749
762
  - test/rails_root/app/views/admin/default/index.html.erb
750
763
  - test/rails_root/app/views/default/index.html.erb
751
764
  - test/rails_root/app/views/layouts/default.html.erb
@@ -1365,6 +1378,8 @@ test_files:
1365
1378
  - test/rails_root/app/controllers/application_controller.rb
1366
1379
  - test/rails_root/app/controllers/default_controller.rb
1367
1380
  - test/rails_root/app/helpers/application_helper.rb
1381
+ - test/rails_root/app/models/user.rb
1382
+ - test/rails_root/app/models/user_session.rb
1368
1383
  - test/rails_root/config/boot.rb
1369
1384
  - test/rails_root/config/environment.rb
1370
1385
  - test/rails_root/config/environments/development.rb