Skip to content

Commit 6857ecc

Browse files
committed
Undo that name change
1 parent b7b32d4 commit 6857ecc

File tree

4 files changed

+9
-9
lines changed

4 files changed

+9
-9
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ Rails Script is a Rails-centric, object oriented, featherweight framework for wr
66

77
Add this line to your application's Gemfile:
88

9-
gem 'rails-script'
9+
gem 'rails_script'
1010

1111
And then execute:
1212

lib/generators/rails_script/install/install_generator.rb

+5-5
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,12 @@ def insert_layout_javascript
2626
2727
ERB:
2828
<script>
29-
jQuery(function() {
30-
window.$this = new (App.\#{controller_path.split(/\/|_/).map(&:capitalize).join('')} || App.Base)();
31-
if (typeof $this.\#{action_name} === 'function') {
32-
return $this.\#{action_name}.call();
29+
jQuery(function() {
30+
window.$this = new (App.<%= controller_path.split(/\/|_/).map(&:capitalize).join('') %> || App.Base)();
31+
if (typeof $this.<%= action_name %> === 'function') {
32+
return $this.<%= action_name%>.call();
3333
}
34-
});
34+
});
3535
</script>
3636
3737
HAML:

lib/templates/coffee/assets/javascript.js.coffee

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
window.App ||= {}
2-
class App.<%= class_name %> extends App.Base
2+
class App.<%= class_name %> extends App.Base
33

44
constructor: ->
55
super

rails_script.gemspec

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
44
require 'rails_script/version'
55

66
Gem::Specification.new do |spec|
7-
spec.name = 'rails-script'
7+
spec.name = 'rails_script'
88
spec.version = RailsScript::VERSION
99
spec.authors = ['Kevin Pheasey']
1010
spec.email = ['[email protected]']
@@ -21,5 +21,5 @@ Gem::Specification.new do |spec|
2121
spec.add_development_dependency 'bundler', '~> 1.6'
2222
spec.add_development_dependency 'rake', '~> 0'
2323

24-
spec.add_runtime_dependency 'coffee-rails', '~> 4.0', '>= 4.0.0'
24+
spec.add_dependency 'coffee-rails', '~> 4.0', '>= 4.0.0'
2525
end

0 commit comments

Comments
 (0)