right-rails 1.0.5 → 1.0.6

Sign up to get free protection for your applications and to get access to all the features.
@@ -3,17 +3,17 @@
3
3
  #
4
4
 
5
5
  class RightRailsGenerator < Rails::Generator::Base
6
-
6
+
7
7
  def manifest
8
8
  source_path = File.dirname(__FILE__)
9
- images_path = "#{source_path}/../../public/images"
9
+ images_path = "#{source_path}/../../public/images/rightjs-ui"
10
10
  javascripts_path = "#{source_path}/../../public/javascripts"
11
-
11
+
12
12
  record do |m|
13
13
  # creating the javascript directories
14
14
  m.directory 'public/javascripts/right'
15
15
  m.directory 'public/javascripts/right/i18n'
16
-
16
+
17
17
  Dir["#{javascripts_path}/**/*.js"].each do |filename|
18
18
  m.file(
19
19
  filename.gsub("#{javascripts_path}/", "../../../public/javascripts/"),
@@ -21,26 +21,26 @@ class RightRailsGenerator < Rails::Generator::Base
21
21
  :chmod => 0644
22
22
  )
23
23
  end
24
-
24
+
25
25
  # creating the iframed uploads layout
26
26
  m.file "iframed.html.erb", "app/views/layouts/iframed.html.erb"
27
-
27
+
28
28
  # copying the images in place
29
29
  m.directory "public/images/rightjs-ui"
30
-
30
+
31
31
  Dir["#{images_path}/*"].each do |filename|
32
32
  m.file(
33
- filename.gsub("#{images_path}/", "../../../public/images/"),
33
+ filename.gsub("#{images_path}/", "../../../public/images/rightjs-ui/"),
34
34
  "public/images/rightjs-ui/#{filename.gsub("#{images_path}/", '')}",
35
35
  :chmod => 0644
36
36
  )
37
37
  end
38
38
  end
39
39
  end
40
-
41
-
40
+
41
+
42
42
  def banner
43
43
  "Usage: #{$0} right_rails"
44
44
  end
45
-
45
+
46
46
  end
@@ -4,10 +4,10 @@
4
4
  # Kudos to Jose Fernández (http://github.com/magec)
5
5
  #
6
6
  class RightRailsGenerator < Rails::Generators::Base
7
-
7
+
8
8
  def manifest
9
9
  source_path = File.dirname(__FILE__)
10
- images_path = "#{source_path}/../../../public/images"
10
+ images_path = "#{source_path}/../../../public/images/rightjs-ui"
11
11
  javascripts_path = "#{source_path}/../../../public/javascripts"
12
12
 
13
13
  # copying the javascript javascript files
@@ -15,13 +15,13 @@ class RightRailsGenerator < Rails::Generators::Base
15
15
 
16
16
  # creating the iframed uploads layout
17
17
  copy_file source_path + "/templates/iframed.html.erb", "app/views/layouts/iframed.html.erb"
18
-
18
+
19
19
  # copying the images in place
20
20
  directory images_path, "public/images/rightjs-ui"
21
21
  end
22
-
22
+
23
23
  def banner
24
24
  "Usage: #{$0} right_rails"
25
25
  end
26
-
26
+
27
27
  end
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: 29
4
+ hash: 27
5
5
  prerelease: false
6
6
  segments:
7
7
  - 1
8
8
  - 0
9
- - 5
10
- version: 1.0.5
9
+ - 6
10
+ version: 1.0.6
11
11
  platform: ruby
12
12
  authors:
13
13
  - Nikolay Nemshilov