fume 0.1.3 → 0.1.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (58) hide show
  1. data/VERSION.yml +1 -1
  2. data/fume.gemspec +56 -55
  3. data/generators/fume/fume_generator.rb +55 -0
  4. data/generators/fume/simple_theme/simple_theme_gen.rb +15 -0
  5. metadata +56 -55
  6. data/generators/fume_simple_theme/fume_simple_theme_generator.rb +0 -41
  7. /data/generators/{fume_simple_theme → fume/simple_theme}/USAGE +0 -0
  8. /data/generators/{fume_simple_theme/templates → fume/simple_theme/templates/public}/images/jquery-ui-1.7.2.ui-darkness/ui-bg_flat_30_cccccc_40x100.png +0 -0
  9. /data/generators/{fume_simple_theme/templates → fume/simple_theme/templates/public}/images/jquery-ui-1.7.2.ui-darkness/ui-bg_flat_50_5c5c5c_40x100.png +0 -0
  10. /data/generators/{fume_simple_theme/templates → fume/simple_theme/templates/public}/images/jquery-ui-1.7.2.ui-darkness/ui-bg_glass_20_555555_1x400.png +0 -0
  11. /data/generators/{fume_simple_theme/templates → fume/simple_theme/templates/public}/images/jquery-ui-1.7.2.ui-darkness/ui-bg_glass_40_0078a3_1x400.png +0 -0
  12. /data/generators/{fume_simple_theme/templates → fume/simple_theme/templates/public}/images/jquery-ui-1.7.2.ui-darkness/ui-bg_glass_40_ffc73d_1x400.png +0 -0
  13. /data/generators/{fume_simple_theme/templates → fume/simple_theme/templates/public}/images/jquery-ui-1.7.2.ui-darkness/ui-bg_gloss-wave_25_333333_500x100.png +0 -0
  14. /data/generators/{fume_simple_theme/templates → fume/simple_theme/templates/public}/images/jquery-ui-1.7.2.ui-darkness/ui-bg_highlight-soft_80_eeeeee_1x100.png +0 -0
  15. /data/generators/{fume_simple_theme/templates → fume/simple_theme/templates/public}/images/jquery-ui-1.7.2.ui-darkness/ui-bg_inset-soft_25_000000_1x100.png +0 -0
  16. /data/generators/{fume_simple_theme/templates → fume/simple_theme/templates/public}/images/jquery-ui-1.7.2.ui-darkness/ui-bg_inset-soft_30_f58400_1x100.png +0 -0
  17. /data/generators/{fume_simple_theme/templates → fume/simple_theme/templates/public}/images/jquery-ui-1.7.2.ui-darkness/ui-icons_222222_256x240.png +0 -0
  18. /data/generators/{fume_simple_theme/templates → fume/simple_theme/templates/public}/images/jquery-ui-1.7.2.ui-darkness/ui-icons_4b8e0b_256x240.png +0 -0
  19. /data/generators/{fume_simple_theme/templates → fume/simple_theme/templates/public}/images/jquery-ui-1.7.2.ui-darkness/ui-icons_a83300_256x240.png +0 -0
  20. /data/generators/{fume_simple_theme/templates → fume/simple_theme/templates/public}/images/jquery-ui-1.7.2.ui-darkness/ui-icons_cccccc_256x240.png +0 -0
  21. /data/generators/{fume_simple_theme/templates → fume/simple_theme/templates/public}/images/jquery-ui-1.7.2.ui-darkness/ui-icons_ffffff_256x240.png +0 -0
  22. /data/generators/{fume_simple_theme/templates → fume/simple_theme/templates/public}/javascripts/jquery-1.3.2.min.js +0 -0
  23. /data/generators/{fume_simple_theme/templates → fume/simple_theme/templates/public}/javascripts/jquery-ui-1.7.2.full.min.js +0 -0
  24. /data/generators/{fume_simple_theme/templates → fume/simple_theme/templates/public}/javascripts/jquery-ui-i18n-1.7.2.js +0 -0
  25. /data/generators/{fume_simple_theme/templates → fume/simple_theme/templates/public}/stylesheets/base.less +0 -0
  26. /data/generators/{fume_simple_theme/templates → fume/simple_theme/templates/public}/stylesheets/blueprint-0.9.1/ie.css +0 -0
  27. /data/generators/{fume_simple_theme/templates → fume/simple_theme/templates/public}/stylesheets/blueprint-0.9.1/plugins/buttons/icons/cross.png +0 -0
  28. /data/generators/{fume_simple_theme/templates → fume/simple_theme/templates/public}/stylesheets/blueprint-0.9.1/plugins/buttons/icons/key.png +0 -0
  29. /data/generators/{fume_simple_theme/templates → fume/simple_theme/templates/public}/stylesheets/blueprint-0.9.1/plugins/buttons/icons/tick.png +0 -0
  30. /data/generators/{fume_simple_theme/templates → fume/simple_theme/templates/public}/stylesheets/blueprint-0.9.1/plugins/buttons/readme.txt +0 -0
  31. /data/generators/{fume_simple_theme/templates → fume/simple_theme/templates/public}/stylesheets/blueprint-0.9.1/plugins/buttons/screen.css +0 -0
  32. /data/generators/{fume_simple_theme/templates → fume/simple_theme/templates/public}/stylesheets/blueprint-0.9.1/plugins/fancy-type/readme.txt +0 -0
  33. /data/generators/{fume_simple_theme/templates → fume/simple_theme/templates/public}/stylesheets/blueprint-0.9.1/plugins/fancy-type/screen.css +0 -0
  34. /data/generators/{fume_simple_theme/templates → fume/simple_theme/templates/public}/stylesheets/blueprint-0.9.1/plugins/link-icons/icons/doc.png +0 -0
  35. /data/generators/{fume_simple_theme/templates → fume/simple_theme/templates/public}/stylesheets/blueprint-0.9.1/plugins/link-icons/icons/email.png +0 -0
  36. /data/generators/{fume_simple_theme/templates → fume/simple_theme/templates/public}/stylesheets/blueprint-0.9.1/plugins/link-icons/icons/external.png +0 -0
  37. /data/generators/{fume_simple_theme/templates → fume/simple_theme/templates/public}/stylesheets/blueprint-0.9.1/plugins/link-icons/icons/feed.png +0 -0
  38. /data/generators/{fume_simple_theme/templates → fume/simple_theme/templates/public}/stylesheets/blueprint-0.9.1/plugins/link-icons/icons/im.png +0 -0
  39. /data/generators/{fume_simple_theme/templates → fume/simple_theme/templates/public}/stylesheets/blueprint-0.9.1/plugins/link-icons/icons/pdf.png +0 -0
  40. /data/generators/{fume_simple_theme/templates → fume/simple_theme/templates/public}/stylesheets/blueprint-0.9.1/plugins/link-icons/icons/visited.png +0 -0
  41. /data/generators/{fume_simple_theme/templates → fume/simple_theme/templates/public}/stylesheets/blueprint-0.9.1/plugins/link-icons/icons/xls.png +0 -0
  42. /data/generators/{fume_simple_theme/templates → fume/simple_theme/templates/public}/stylesheets/blueprint-0.9.1/plugins/link-icons/readme.txt +0 -0
  43. /data/generators/{fume_simple_theme/templates → fume/simple_theme/templates/public}/stylesheets/blueprint-0.9.1/plugins/link-icons/screen.css +0 -0
  44. /data/generators/{fume_simple_theme/templates → fume/simple_theme/templates/public}/stylesheets/blueprint-0.9.1/plugins/rtl/readme.txt +0 -0
  45. /data/generators/{fume_simple_theme/templates → fume/simple_theme/templates/public}/stylesheets/blueprint-0.9.1/plugins/rtl/screen.css +0 -0
  46. /data/generators/{fume_simple_theme/templates → fume/simple_theme/templates/public}/stylesheets/blueprint-0.9.1/print.css +0 -0
  47. /data/generators/{fume_simple_theme/templates → fume/simple_theme/templates/public}/stylesheets/blueprint-0.9.1/screen.css +0 -0
  48. /data/generators/{fume_simple_theme/templates → fume/simple_theme/templates/public}/stylesheets/blueprint-0.9.1/src/forms.css +0 -0
  49. /data/generators/{fume_simple_theme/templates → fume/simple_theme/templates/public}/stylesheets/blueprint-0.9.1/src/grid.css +0 -0
  50. /data/generators/{fume_simple_theme/templates → fume/simple_theme/templates/public}/stylesheets/blueprint-0.9.1/src/grid.png +0 -0
  51. /data/generators/{fume_simple_theme/templates → fume/simple_theme/templates/public}/stylesheets/blueprint-0.9.1/src/ie.css +0 -0
  52. /data/generators/{fume_simple_theme/templates → fume/simple_theme/templates/public}/stylesheets/blueprint-0.9.1/src/print.css +0 -0
  53. /data/generators/{fume_simple_theme/templates → fume/simple_theme/templates/public}/stylesheets/blueprint-0.9.1/src/reset.css +0 -0
  54. /data/generators/{fume_simple_theme/templates → fume/simple_theme/templates/public}/stylesheets/blueprint-0.9.1/src/typography.css +0 -0
  55. /data/generators/{fume_simple_theme/templates → fume/simple_theme/templates/public}/stylesheets/drastic-dark.less +0 -0
  56. /data/generators/{fume_simple_theme/templates → fume/simple_theme/templates/public}/stylesheets/jquery-ui-1.7.2.ui-darkness.css +0 -0
  57. /data/generators/{fume_simple_theme/templates → fume/simple_theme/templates/public}/stylesheets/simple-theme.css +0 -0
  58. /data/generators/{fume_simple_theme/templates → fume/simple_theme/templates/public}/stylesheets/simple-theme.less +0 -0
data/VERSION.yml CHANGED
@@ -1,5 +1,5 @@
1
1
  ---
2
+ :patch: 4
2
3
  :build:
3
4
  :major: 0
4
5
  :minor: 1
5
- :patch: 3
data/fume.gemspec CHANGED
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{fume}
8
- s.version = "0.1.3"
8
+ s.version = "0.1.4"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Sunteya"]
12
- s.date = %q{2009-12-02}
12
+ s.date = %q{2009-12-17}
13
13
  s.email = %q{Sunteya@gmail.com}
14
14
  s.extra_rdoc_files = [
15
15
  "README"
@@ -20,59 +20,60 @@ Gem::Specification.new do |s|
20
20
  "Rakefile",
21
21
  "VERSION.yml",
22
22
  "fume.gemspec",
23
- "generators/fume_simple_theme/USAGE",
24
- "generators/fume_simple_theme/fume_simple_theme_generator.rb",
25
- "generators/fume_simple_theme/templates/images/jquery-ui-1.7.2.ui-darkness/ui-bg_flat_30_cccccc_40x100.png",
26
- "generators/fume_simple_theme/templates/images/jquery-ui-1.7.2.ui-darkness/ui-bg_flat_50_5c5c5c_40x100.png",
27
- "generators/fume_simple_theme/templates/images/jquery-ui-1.7.2.ui-darkness/ui-bg_glass_20_555555_1x400.png",
28
- "generators/fume_simple_theme/templates/images/jquery-ui-1.7.2.ui-darkness/ui-bg_glass_40_0078a3_1x400.png",
29
- "generators/fume_simple_theme/templates/images/jquery-ui-1.7.2.ui-darkness/ui-bg_glass_40_ffc73d_1x400.png",
30
- "generators/fume_simple_theme/templates/images/jquery-ui-1.7.2.ui-darkness/ui-bg_gloss-wave_25_333333_500x100.png",
31
- "generators/fume_simple_theme/templates/images/jquery-ui-1.7.2.ui-darkness/ui-bg_highlight-soft_80_eeeeee_1x100.png",
32
- "generators/fume_simple_theme/templates/images/jquery-ui-1.7.2.ui-darkness/ui-bg_inset-soft_25_000000_1x100.png",
33
- "generators/fume_simple_theme/templates/images/jquery-ui-1.7.2.ui-darkness/ui-bg_inset-soft_30_f58400_1x100.png",
34
- "generators/fume_simple_theme/templates/images/jquery-ui-1.7.2.ui-darkness/ui-icons_222222_256x240.png",
35
- "generators/fume_simple_theme/templates/images/jquery-ui-1.7.2.ui-darkness/ui-icons_4b8e0b_256x240.png",
36
- "generators/fume_simple_theme/templates/images/jquery-ui-1.7.2.ui-darkness/ui-icons_a83300_256x240.png",
37
- "generators/fume_simple_theme/templates/images/jquery-ui-1.7.2.ui-darkness/ui-icons_cccccc_256x240.png",
38
- "generators/fume_simple_theme/templates/images/jquery-ui-1.7.2.ui-darkness/ui-icons_ffffff_256x240.png",
39
- "generators/fume_simple_theme/templates/javascripts/jquery-1.3.2.min.js",
40
- "generators/fume_simple_theme/templates/javascripts/jquery-ui-1.7.2.full.min.js",
41
- "generators/fume_simple_theme/templates/javascripts/jquery-ui-i18n-1.7.2.js",
42
- "generators/fume_simple_theme/templates/stylesheets/base.less",
43
- "generators/fume_simple_theme/templates/stylesheets/blueprint-0.9.1/ie.css",
44
- "generators/fume_simple_theme/templates/stylesheets/blueprint-0.9.1/plugins/buttons/icons/cross.png",
45
- "generators/fume_simple_theme/templates/stylesheets/blueprint-0.9.1/plugins/buttons/icons/key.png",
46
- "generators/fume_simple_theme/templates/stylesheets/blueprint-0.9.1/plugins/buttons/icons/tick.png",
47
- "generators/fume_simple_theme/templates/stylesheets/blueprint-0.9.1/plugins/buttons/readme.txt",
48
- "generators/fume_simple_theme/templates/stylesheets/blueprint-0.9.1/plugins/buttons/screen.css",
49
- "generators/fume_simple_theme/templates/stylesheets/blueprint-0.9.1/plugins/fancy-type/readme.txt",
50
- "generators/fume_simple_theme/templates/stylesheets/blueprint-0.9.1/plugins/fancy-type/screen.css",
51
- "generators/fume_simple_theme/templates/stylesheets/blueprint-0.9.1/plugins/link-icons/icons/doc.png",
52
- "generators/fume_simple_theme/templates/stylesheets/blueprint-0.9.1/plugins/link-icons/icons/email.png",
53
- "generators/fume_simple_theme/templates/stylesheets/blueprint-0.9.1/plugins/link-icons/icons/external.png",
54
- "generators/fume_simple_theme/templates/stylesheets/blueprint-0.9.1/plugins/link-icons/icons/feed.png",
55
- "generators/fume_simple_theme/templates/stylesheets/blueprint-0.9.1/plugins/link-icons/icons/im.png",
56
- "generators/fume_simple_theme/templates/stylesheets/blueprint-0.9.1/plugins/link-icons/icons/pdf.png",
57
- "generators/fume_simple_theme/templates/stylesheets/blueprint-0.9.1/plugins/link-icons/icons/visited.png",
58
- "generators/fume_simple_theme/templates/stylesheets/blueprint-0.9.1/plugins/link-icons/icons/xls.png",
59
- "generators/fume_simple_theme/templates/stylesheets/blueprint-0.9.1/plugins/link-icons/readme.txt",
60
- "generators/fume_simple_theme/templates/stylesheets/blueprint-0.9.1/plugins/link-icons/screen.css",
61
- "generators/fume_simple_theme/templates/stylesheets/blueprint-0.9.1/plugins/rtl/readme.txt",
62
- "generators/fume_simple_theme/templates/stylesheets/blueprint-0.9.1/plugins/rtl/screen.css",
63
- "generators/fume_simple_theme/templates/stylesheets/blueprint-0.9.1/print.css",
64
- "generators/fume_simple_theme/templates/stylesheets/blueprint-0.9.1/screen.css",
65
- "generators/fume_simple_theme/templates/stylesheets/blueprint-0.9.1/src/forms.css",
66
- "generators/fume_simple_theme/templates/stylesheets/blueprint-0.9.1/src/grid.css",
67
- "generators/fume_simple_theme/templates/stylesheets/blueprint-0.9.1/src/grid.png",
68
- "generators/fume_simple_theme/templates/stylesheets/blueprint-0.9.1/src/ie.css",
69
- "generators/fume_simple_theme/templates/stylesheets/blueprint-0.9.1/src/print.css",
70
- "generators/fume_simple_theme/templates/stylesheets/blueprint-0.9.1/src/reset.css",
71
- "generators/fume_simple_theme/templates/stylesheets/blueprint-0.9.1/src/typography.css",
72
- "generators/fume_simple_theme/templates/stylesheets/drastic-dark.less",
73
- "generators/fume_simple_theme/templates/stylesheets/jquery-ui-1.7.2.ui-darkness.css",
74
- "generators/fume_simple_theme/templates/stylesheets/simple-theme.css",
75
- "generators/fume_simple_theme/templates/stylesheets/simple-theme.less",
23
+ "generators/fume/fume_generator.rb",
24
+ "generators/fume/simple_theme/USAGE",
25
+ "generators/fume/simple_theme/simple_theme_gen.rb",
26
+ "generators/fume/simple_theme/templates/public/images/jquery-ui-1.7.2.ui-darkness/ui-bg_flat_30_cccccc_40x100.png",
27
+ "generators/fume/simple_theme/templates/public/images/jquery-ui-1.7.2.ui-darkness/ui-bg_flat_50_5c5c5c_40x100.png",
28
+ "generators/fume/simple_theme/templates/public/images/jquery-ui-1.7.2.ui-darkness/ui-bg_glass_20_555555_1x400.png",
29
+ "generators/fume/simple_theme/templates/public/images/jquery-ui-1.7.2.ui-darkness/ui-bg_glass_40_0078a3_1x400.png",
30
+ "generators/fume/simple_theme/templates/public/images/jquery-ui-1.7.2.ui-darkness/ui-bg_glass_40_ffc73d_1x400.png",
31
+ "generators/fume/simple_theme/templates/public/images/jquery-ui-1.7.2.ui-darkness/ui-bg_gloss-wave_25_333333_500x100.png",
32
+ "generators/fume/simple_theme/templates/public/images/jquery-ui-1.7.2.ui-darkness/ui-bg_highlight-soft_80_eeeeee_1x100.png",
33
+ "generators/fume/simple_theme/templates/public/images/jquery-ui-1.7.2.ui-darkness/ui-bg_inset-soft_25_000000_1x100.png",
34
+ "generators/fume/simple_theme/templates/public/images/jquery-ui-1.7.2.ui-darkness/ui-bg_inset-soft_30_f58400_1x100.png",
35
+ "generators/fume/simple_theme/templates/public/images/jquery-ui-1.7.2.ui-darkness/ui-icons_222222_256x240.png",
36
+ "generators/fume/simple_theme/templates/public/images/jquery-ui-1.7.2.ui-darkness/ui-icons_4b8e0b_256x240.png",
37
+ "generators/fume/simple_theme/templates/public/images/jquery-ui-1.7.2.ui-darkness/ui-icons_a83300_256x240.png",
38
+ "generators/fume/simple_theme/templates/public/images/jquery-ui-1.7.2.ui-darkness/ui-icons_cccccc_256x240.png",
39
+ "generators/fume/simple_theme/templates/public/images/jquery-ui-1.7.2.ui-darkness/ui-icons_ffffff_256x240.png",
40
+ "generators/fume/simple_theme/templates/public/javascripts/jquery-1.3.2.min.js",
41
+ "generators/fume/simple_theme/templates/public/javascripts/jquery-ui-1.7.2.full.min.js",
42
+ "generators/fume/simple_theme/templates/public/javascripts/jquery-ui-i18n-1.7.2.js",
43
+ "generators/fume/simple_theme/templates/public/stylesheets/base.less",
44
+ "generators/fume/simple_theme/templates/public/stylesheets/blueprint-0.9.1/ie.css",
45
+ "generators/fume/simple_theme/templates/public/stylesheets/blueprint-0.9.1/plugins/buttons/icons/cross.png",
46
+ "generators/fume/simple_theme/templates/public/stylesheets/blueprint-0.9.1/plugins/buttons/icons/key.png",
47
+ "generators/fume/simple_theme/templates/public/stylesheets/blueprint-0.9.1/plugins/buttons/icons/tick.png",
48
+ "generators/fume/simple_theme/templates/public/stylesheets/blueprint-0.9.1/plugins/buttons/readme.txt",
49
+ "generators/fume/simple_theme/templates/public/stylesheets/blueprint-0.9.1/plugins/buttons/screen.css",
50
+ "generators/fume/simple_theme/templates/public/stylesheets/blueprint-0.9.1/plugins/fancy-type/readme.txt",
51
+ "generators/fume/simple_theme/templates/public/stylesheets/blueprint-0.9.1/plugins/fancy-type/screen.css",
52
+ "generators/fume/simple_theme/templates/public/stylesheets/blueprint-0.9.1/plugins/link-icons/icons/doc.png",
53
+ "generators/fume/simple_theme/templates/public/stylesheets/blueprint-0.9.1/plugins/link-icons/icons/email.png",
54
+ "generators/fume/simple_theme/templates/public/stylesheets/blueprint-0.9.1/plugins/link-icons/icons/external.png",
55
+ "generators/fume/simple_theme/templates/public/stylesheets/blueprint-0.9.1/plugins/link-icons/icons/feed.png",
56
+ "generators/fume/simple_theme/templates/public/stylesheets/blueprint-0.9.1/plugins/link-icons/icons/im.png",
57
+ "generators/fume/simple_theme/templates/public/stylesheets/blueprint-0.9.1/plugins/link-icons/icons/pdf.png",
58
+ "generators/fume/simple_theme/templates/public/stylesheets/blueprint-0.9.1/plugins/link-icons/icons/visited.png",
59
+ "generators/fume/simple_theme/templates/public/stylesheets/blueprint-0.9.1/plugins/link-icons/icons/xls.png",
60
+ "generators/fume/simple_theme/templates/public/stylesheets/blueprint-0.9.1/plugins/link-icons/readme.txt",
61
+ "generators/fume/simple_theme/templates/public/stylesheets/blueprint-0.9.1/plugins/link-icons/screen.css",
62
+ "generators/fume/simple_theme/templates/public/stylesheets/blueprint-0.9.1/plugins/rtl/readme.txt",
63
+ "generators/fume/simple_theme/templates/public/stylesheets/blueprint-0.9.1/plugins/rtl/screen.css",
64
+ "generators/fume/simple_theme/templates/public/stylesheets/blueprint-0.9.1/print.css",
65
+ "generators/fume/simple_theme/templates/public/stylesheets/blueprint-0.9.1/screen.css",
66
+ "generators/fume/simple_theme/templates/public/stylesheets/blueprint-0.9.1/src/forms.css",
67
+ "generators/fume/simple_theme/templates/public/stylesheets/blueprint-0.9.1/src/grid.css",
68
+ "generators/fume/simple_theme/templates/public/stylesheets/blueprint-0.9.1/src/grid.png",
69
+ "generators/fume/simple_theme/templates/public/stylesheets/blueprint-0.9.1/src/ie.css",
70
+ "generators/fume/simple_theme/templates/public/stylesheets/blueprint-0.9.1/src/print.css",
71
+ "generators/fume/simple_theme/templates/public/stylesheets/blueprint-0.9.1/src/reset.css",
72
+ "generators/fume/simple_theme/templates/public/stylesheets/blueprint-0.9.1/src/typography.css",
73
+ "generators/fume/simple_theme/templates/public/stylesheets/drastic-dark.less",
74
+ "generators/fume/simple_theme/templates/public/stylesheets/jquery-ui-1.7.2.ui-darkness.css",
75
+ "generators/fume/simple_theme/templates/public/stylesheets/simple-theme.css",
76
+ "generators/fume/simple_theme/templates/public/stylesheets/simple-theme.less",
76
77
  "init.rb",
77
78
  "lib/fume.rb",
78
79
  "lib/fume/authlogic.rb",
@@ -0,0 +1,55 @@
1
+ class FumeGenerator < Rails::Generator::Base
2
+
3
+ attr_accessor :gen
4
+ delegate :source_path, :destination_path, :manifest, :after_generate, :replay, :to => :gen
5
+
6
+ def initialize(runtime_args, runtime_options = {})
7
+ super
8
+
9
+ usage if args.empty?
10
+ gen_name = args.shift
11
+
12
+ gen_path = File.join(spec.path, gen_name)
13
+ gen_spec = Fume::Gen::Spec.new(gen_name, gen_path, gen_path)
14
+
15
+ @gen = gen_spec.klass.new(runtime_args, runtime_options)
16
+ end
17
+ end
18
+
19
+
20
+ module Fume
21
+ module Gen
22
+ class Base < Rails::Generator::Base
23
+ def destination_root_pathname
24
+ Pathname.new(self.destination_root)
25
+ end
26
+
27
+ def source_root_pathname
28
+ Pathname.new(self.source_root)
29
+ end
30
+
31
+ def cp_files(m, pattern)
32
+ Pathname.glob(source_root_pathname.join(pattern)) do |source_path|
33
+ relative_path = source_path.relative_path_from(source_root_pathname)
34
+ destination_path = destination_root_pathname.join(relative_path)
35
+
36
+ if source_path.directory?
37
+ m.directory relative_path unless destination_path.exist?
38
+ else
39
+ m.file relative_path.to_s, relative_path.to_s
40
+ end
41
+ end
42
+ end
43
+ end
44
+
45
+ class Spec < Rails::Generator::Spec
46
+ def class_file
47
+ "#{path}/#{name}_gen.rb"
48
+ end
49
+
50
+ def class_name
51
+ "#{name.camelize}Gen"
52
+ end
53
+ end
54
+ end
55
+ end
@@ -0,0 +1,15 @@
1
+ class SimpleThemeGen < Fume::Gen::Base
2
+
3
+ def manifest
4
+ record do |m|
5
+ # generate_images
6
+ cp_files m, File.join("public", "images", "**", "*")
7
+
8
+ # generate_stylesheets
9
+ cp_files m, File.join("public", "stylesheets", "*.css")
10
+
11
+ # generate_javascripts
12
+ cp_files m, File.join("public", "javascripts", "**", "*")
13
+ end
14
+ end
15
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fume
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sunteya
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-12-02 00:00:00 +08:00
12
+ date: 2009-12-17 00:00:00 +08:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
@@ -36,59 +36,60 @@ files:
36
36
  - Rakefile
37
37
  - VERSION.yml
38
38
  - fume.gemspec
39
- - generators/fume_simple_theme/USAGE
40
- - generators/fume_simple_theme/fume_simple_theme_generator.rb
41
- - generators/fume_simple_theme/templates/images/jquery-ui-1.7.2.ui-darkness/ui-bg_flat_30_cccccc_40x100.png
42
- - generators/fume_simple_theme/templates/images/jquery-ui-1.7.2.ui-darkness/ui-bg_flat_50_5c5c5c_40x100.png
43
- - generators/fume_simple_theme/templates/images/jquery-ui-1.7.2.ui-darkness/ui-bg_glass_20_555555_1x400.png
44
- - generators/fume_simple_theme/templates/images/jquery-ui-1.7.2.ui-darkness/ui-bg_glass_40_0078a3_1x400.png
45
- - generators/fume_simple_theme/templates/images/jquery-ui-1.7.2.ui-darkness/ui-bg_glass_40_ffc73d_1x400.png
46
- - generators/fume_simple_theme/templates/images/jquery-ui-1.7.2.ui-darkness/ui-bg_gloss-wave_25_333333_500x100.png
47
- - generators/fume_simple_theme/templates/images/jquery-ui-1.7.2.ui-darkness/ui-bg_highlight-soft_80_eeeeee_1x100.png
48
- - generators/fume_simple_theme/templates/images/jquery-ui-1.7.2.ui-darkness/ui-bg_inset-soft_25_000000_1x100.png
49
- - generators/fume_simple_theme/templates/images/jquery-ui-1.7.2.ui-darkness/ui-bg_inset-soft_30_f58400_1x100.png
50
- - generators/fume_simple_theme/templates/images/jquery-ui-1.7.2.ui-darkness/ui-icons_222222_256x240.png
51
- - generators/fume_simple_theme/templates/images/jquery-ui-1.7.2.ui-darkness/ui-icons_4b8e0b_256x240.png
52
- - generators/fume_simple_theme/templates/images/jquery-ui-1.7.2.ui-darkness/ui-icons_a83300_256x240.png
53
- - generators/fume_simple_theme/templates/images/jquery-ui-1.7.2.ui-darkness/ui-icons_cccccc_256x240.png
54
- - generators/fume_simple_theme/templates/images/jquery-ui-1.7.2.ui-darkness/ui-icons_ffffff_256x240.png
55
- - generators/fume_simple_theme/templates/javascripts/jquery-1.3.2.min.js
56
- - generators/fume_simple_theme/templates/javascripts/jquery-ui-1.7.2.full.min.js
57
- - generators/fume_simple_theme/templates/javascripts/jquery-ui-i18n-1.7.2.js
58
- - generators/fume_simple_theme/templates/stylesheets/base.less
59
- - generators/fume_simple_theme/templates/stylesheets/blueprint-0.9.1/ie.css
60
- - generators/fume_simple_theme/templates/stylesheets/blueprint-0.9.1/plugins/buttons/icons/cross.png
61
- - generators/fume_simple_theme/templates/stylesheets/blueprint-0.9.1/plugins/buttons/icons/key.png
62
- - generators/fume_simple_theme/templates/stylesheets/blueprint-0.9.1/plugins/buttons/icons/tick.png
63
- - generators/fume_simple_theme/templates/stylesheets/blueprint-0.9.1/plugins/buttons/readme.txt
64
- - generators/fume_simple_theme/templates/stylesheets/blueprint-0.9.1/plugins/buttons/screen.css
65
- - generators/fume_simple_theme/templates/stylesheets/blueprint-0.9.1/plugins/fancy-type/readme.txt
66
- - generators/fume_simple_theme/templates/stylesheets/blueprint-0.9.1/plugins/fancy-type/screen.css
67
- - generators/fume_simple_theme/templates/stylesheets/blueprint-0.9.1/plugins/link-icons/icons/doc.png
68
- - generators/fume_simple_theme/templates/stylesheets/blueprint-0.9.1/plugins/link-icons/icons/email.png
69
- - generators/fume_simple_theme/templates/stylesheets/blueprint-0.9.1/plugins/link-icons/icons/external.png
70
- - generators/fume_simple_theme/templates/stylesheets/blueprint-0.9.1/plugins/link-icons/icons/feed.png
71
- - generators/fume_simple_theme/templates/stylesheets/blueprint-0.9.1/plugins/link-icons/icons/im.png
72
- - generators/fume_simple_theme/templates/stylesheets/blueprint-0.9.1/plugins/link-icons/icons/pdf.png
73
- - generators/fume_simple_theme/templates/stylesheets/blueprint-0.9.1/plugins/link-icons/icons/visited.png
74
- - generators/fume_simple_theme/templates/stylesheets/blueprint-0.9.1/plugins/link-icons/icons/xls.png
75
- - generators/fume_simple_theme/templates/stylesheets/blueprint-0.9.1/plugins/link-icons/readme.txt
76
- - generators/fume_simple_theme/templates/stylesheets/blueprint-0.9.1/plugins/link-icons/screen.css
77
- - generators/fume_simple_theme/templates/stylesheets/blueprint-0.9.1/plugins/rtl/readme.txt
78
- - generators/fume_simple_theme/templates/stylesheets/blueprint-0.9.1/plugins/rtl/screen.css
79
- - generators/fume_simple_theme/templates/stylesheets/blueprint-0.9.1/print.css
80
- - generators/fume_simple_theme/templates/stylesheets/blueprint-0.9.1/screen.css
81
- - generators/fume_simple_theme/templates/stylesheets/blueprint-0.9.1/src/forms.css
82
- - generators/fume_simple_theme/templates/stylesheets/blueprint-0.9.1/src/grid.css
83
- - generators/fume_simple_theme/templates/stylesheets/blueprint-0.9.1/src/grid.png
84
- - generators/fume_simple_theme/templates/stylesheets/blueprint-0.9.1/src/ie.css
85
- - generators/fume_simple_theme/templates/stylesheets/blueprint-0.9.1/src/print.css
86
- - generators/fume_simple_theme/templates/stylesheets/blueprint-0.9.1/src/reset.css
87
- - generators/fume_simple_theme/templates/stylesheets/blueprint-0.9.1/src/typography.css
88
- - generators/fume_simple_theme/templates/stylesheets/drastic-dark.less
89
- - generators/fume_simple_theme/templates/stylesheets/jquery-ui-1.7.2.ui-darkness.css
90
- - generators/fume_simple_theme/templates/stylesheets/simple-theme.css
91
- - generators/fume_simple_theme/templates/stylesheets/simple-theme.less
39
+ - generators/fume/fume_generator.rb
40
+ - generators/fume/simple_theme/USAGE
41
+ - generators/fume/simple_theme/simple_theme_gen.rb
42
+ - generators/fume/simple_theme/templates/public/images/jquery-ui-1.7.2.ui-darkness/ui-bg_flat_30_cccccc_40x100.png
43
+ - generators/fume/simple_theme/templates/public/images/jquery-ui-1.7.2.ui-darkness/ui-bg_flat_50_5c5c5c_40x100.png
44
+ - generators/fume/simple_theme/templates/public/images/jquery-ui-1.7.2.ui-darkness/ui-bg_glass_20_555555_1x400.png
45
+ - generators/fume/simple_theme/templates/public/images/jquery-ui-1.7.2.ui-darkness/ui-bg_glass_40_0078a3_1x400.png
46
+ - generators/fume/simple_theme/templates/public/images/jquery-ui-1.7.2.ui-darkness/ui-bg_glass_40_ffc73d_1x400.png
47
+ - generators/fume/simple_theme/templates/public/images/jquery-ui-1.7.2.ui-darkness/ui-bg_gloss-wave_25_333333_500x100.png
48
+ - generators/fume/simple_theme/templates/public/images/jquery-ui-1.7.2.ui-darkness/ui-bg_highlight-soft_80_eeeeee_1x100.png
49
+ - generators/fume/simple_theme/templates/public/images/jquery-ui-1.7.2.ui-darkness/ui-bg_inset-soft_25_000000_1x100.png
50
+ - generators/fume/simple_theme/templates/public/images/jquery-ui-1.7.2.ui-darkness/ui-bg_inset-soft_30_f58400_1x100.png
51
+ - generators/fume/simple_theme/templates/public/images/jquery-ui-1.7.2.ui-darkness/ui-icons_222222_256x240.png
52
+ - generators/fume/simple_theme/templates/public/images/jquery-ui-1.7.2.ui-darkness/ui-icons_4b8e0b_256x240.png
53
+ - generators/fume/simple_theme/templates/public/images/jquery-ui-1.7.2.ui-darkness/ui-icons_a83300_256x240.png
54
+ - generators/fume/simple_theme/templates/public/images/jquery-ui-1.7.2.ui-darkness/ui-icons_cccccc_256x240.png
55
+ - generators/fume/simple_theme/templates/public/images/jquery-ui-1.7.2.ui-darkness/ui-icons_ffffff_256x240.png
56
+ - generators/fume/simple_theme/templates/public/javascripts/jquery-1.3.2.min.js
57
+ - generators/fume/simple_theme/templates/public/javascripts/jquery-ui-1.7.2.full.min.js
58
+ - generators/fume/simple_theme/templates/public/javascripts/jquery-ui-i18n-1.7.2.js
59
+ - generators/fume/simple_theme/templates/public/stylesheets/base.less
60
+ - generators/fume/simple_theme/templates/public/stylesheets/blueprint-0.9.1/ie.css
61
+ - generators/fume/simple_theme/templates/public/stylesheets/blueprint-0.9.1/plugins/buttons/icons/cross.png
62
+ - generators/fume/simple_theme/templates/public/stylesheets/blueprint-0.9.1/plugins/buttons/icons/key.png
63
+ - generators/fume/simple_theme/templates/public/stylesheets/blueprint-0.9.1/plugins/buttons/icons/tick.png
64
+ - generators/fume/simple_theme/templates/public/stylesheets/blueprint-0.9.1/plugins/buttons/readme.txt
65
+ - generators/fume/simple_theme/templates/public/stylesheets/blueprint-0.9.1/plugins/buttons/screen.css
66
+ - generators/fume/simple_theme/templates/public/stylesheets/blueprint-0.9.1/plugins/fancy-type/readme.txt
67
+ - generators/fume/simple_theme/templates/public/stylesheets/blueprint-0.9.1/plugins/fancy-type/screen.css
68
+ - generators/fume/simple_theme/templates/public/stylesheets/blueprint-0.9.1/plugins/link-icons/icons/doc.png
69
+ - generators/fume/simple_theme/templates/public/stylesheets/blueprint-0.9.1/plugins/link-icons/icons/email.png
70
+ - generators/fume/simple_theme/templates/public/stylesheets/blueprint-0.9.1/plugins/link-icons/icons/external.png
71
+ - generators/fume/simple_theme/templates/public/stylesheets/blueprint-0.9.1/plugins/link-icons/icons/feed.png
72
+ - generators/fume/simple_theme/templates/public/stylesheets/blueprint-0.9.1/plugins/link-icons/icons/im.png
73
+ - generators/fume/simple_theme/templates/public/stylesheets/blueprint-0.9.1/plugins/link-icons/icons/pdf.png
74
+ - generators/fume/simple_theme/templates/public/stylesheets/blueprint-0.9.1/plugins/link-icons/icons/visited.png
75
+ - generators/fume/simple_theme/templates/public/stylesheets/blueprint-0.9.1/plugins/link-icons/icons/xls.png
76
+ - generators/fume/simple_theme/templates/public/stylesheets/blueprint-0.9.1/plugins/link-icons/readme.txt
77
+ - generators/fume/simple_theme/templates/public/stylesheets/blueprint-0.9.1/plugins/link-icons/screen.css
78
+ - generators/fume/simple_theme/templates/public/stylesheets/blueprint-0.9.1/plugins/rtl/readme.txt
79
+ - generators/fume/simple_theme/templates/public/stylesheets/blueprint-0.9.1/plugins/rtl/screen.css
80
+ - generators/fume/simple_theme/templates/public/stylesheets/blueprint-0.9.1/print.css
81
+ - generators/fume/simple_theme/templates/public/stylesheets/blueprint-0.9.1/screen.css
82
+ - generators/fume/simple_theme/templates/public/stylesheets/blueprint-0.9.1/src/forms.css
83
+ - generators/fume/simple_theme/templates/public/stylesheets/blueprint-0.9.1/src/grid.css
84
+ - generators/fume/simple_theme/templates/public/stylesheets/blueprint-0.9.1/src/grid.png
85
+ - generators/fume/simple_theme/templates/public/stylesheets/blueprint-0.9.1/src/ie.css
86
+ - generators/fume/simple_theme/templates/public/stylesheets/blueprint-0.9.1/src/print.css
87
+ - generators/fume/simple_theme/templates/public/stylesheets/blueprint-0.9.1/src/reset.css
88
+ - generators/fume/simple_theme/templates/public/stylesheets/blueprint-0.9.1/src/typography.css
89
+ - generators/fume/simple_theme/templates/public/stylesheets/drastic-dark.less
90
+ - generators/fume/simple_theme/templates/public/stylesheets/jquery-ui-1.7.2.ui-darkness.css
91
+ - generators/fume/simple_theme/templates/public/stylesheets/simple-theme.css
92
+ - generators/fume/simple_theme/templates/public/stylesheets/simple-theme.less
92
93
  - init.rb
93
94
  - lib/fume.rb
94
95
  - lib/fume/authlogic.rb
@@ -1,41 +0,0 @@
1
- class FumeSimpleThemeGenerator < Rails::Generator::Base
2
-
3
- def manifest
4
- @manifest_util = Rails::Generator::Manifest.new(self)
5
-
6
- # generate_images
7
- cp_files orig_source_pathname.join("images"), orig_target_pathname.join("public", "images")
8
-
9
- # generate_stylesheets
10
- cp_files orig_source_pathname.join("stylesheets"), orig_target_pathname.join("public", "stylesheets"), [ "*.css" ]
11
-
12
- # generate_javascripts
13
- cp_files orig_source_pathname.join("javascripts"), orig_target_pathname.join("public", "javascripts")
14
-
15
- @manifest_util
16
- end
17
-
18
- def orig_target_pathname
19
- Pathname.new(self.destination_root)
20
- end
21
-
22
- def orig_source_pathname
23
- Pathname.new(self.source_root)
24
- end
25
-
26
- def cp_files(source_pathname, target_pathname, patterns = ["**/*"])
27
- patterns.each do |pattern|
28
- Pathname.glob(source_pathname.join(pattern)) do |source_path|
29
- relative_path = source_path.relative_path_from(source_pathname)
30
- target_path = target_pathname.join(relative_path)
31
-
32
- if source_path.directory?
33
- @manifest_util.directory target_path.relative_path_from(orig_target_pathname) unless target_path.exist?
34
- else
35
- @manifest_util.directory target_path.dirname.relative_path_from(orig_target_pathname) unless target_path.dirname.exist?
36
- @manifest_util.file source_path.relative_path_from(orig_source_pathname).to_s, target_path.relative_path_from(orig_target_pathname).to_s
37
- end
38
- end
39
- end
40
- end
41
- end