right-rails 1.0.0 → 1.0.1

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.
@@ -7,8 +7,8 @@ module RightRails::Helpers::Rails
7
7
  # Overloading the rails method so it loaded
8
8
  # RightJS by default
9
9
  #
10
- def include_javascript_tag(first, *others)
11
- if (first == :default)
10
+ def javascript_include_tag(first, *others)
11
+ if (first == :defaults)
12
12
  rightjs_scripts *others
13
13
  else
14
14
  super first, *others
@@ -53,10 +53,10 @@ describe RightRails::Helpers::Rails do
53
53
  RightRails::Config.reset!
54
54
  end
55
55
 
56
- describe "#include_javascript_tag" do
56
+ describe "#javascript_include_tag" do
57
57
  it "should load the RightJS scripts by default" do
58
58
  should_receive(:rightjs_scripts).and_return('right.js')
59
- include_javascript_tag(:default).should == 'right.js'
59
+ javascript_include_tag(:defaults).should == 'right.js'
60
60
  end
61
61
  end
62
62
 
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: right-rails
3
3
  version: !ruby/object:Gem::Version
4
- hash: 23
4
+ hash: 21
5
5
  prerelease: false
6
6
  segments:
7
7
  - 1
8
8
  - 0
9
- - 0
10
- version: 1.0.0
9
+ - 1
10
+ version: 1.0.1
11
11
  platform: ruby
12
12
  authors:
13
13
  - Nikolay Nemshilov
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2010-09-06 00:00:00 +04:00
18
+ date: 2010-09-07 00:00:00 +04:00
19
19
  default_executable:
20
20
  dependencies: []
21
21
 
@@ -125,9 +125,7 @@ has_rdoc: true
125
125
  homepage: http://github.com/MadRabbit/right-rails
126
126
  licenses: []
127
127
 
128
- post_install_message: "\n\
129
- <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< RIGHT RAILS >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>\n\n Please run the following command to copy RightJS scripts and modules in place\n \n script/generate right_rails\n \n \e[5m\e[31mNOTE\e[0m\e[0m: will copy over the RightJS 2.0 files!!!\n\n\
130
- <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< RIGHT RAILS >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>\n "
128
+ post_install_message:
131
129
  rdoc_options: []
132
130
 
133
131
  require_paths: