fullstack 0.1.6 → 0.1.7

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.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.6
1
+ 0.1.7
data/fullstack.gemspec CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "fullstack"
8
- s.version = "0.1.6"
8
+ s.version = "0.1.7"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["mcasimir"]
@@ -29,7 +29,7 @@ Gem::Specification.new do |s|
29
29
  "lib/generators/fullstack/install_generator.rb",
30
30
  "lib/generators/fullstack/locale_generator.rb",
31
31
  "lib/generators/fullstack/templates/config/assets.yml",
32
- "lib/generators/fullstack/templates/config/settings.yml",
32
+ "lib/generators/fullstack/templates/config/settings.yml.tt",
33
33
  "lib/generators/fullstack/templates/lib/remote.rake"
34
34
  ]
35
35
  s.homepage = "http://github.com/mcasimir/fullstack"
@@ -1,9 +1,19 @@
1
1
  module Fullstack
2
2
  class InstallGenerator < Rails::Generators::Base
3
3
  source_root File.expand_path('../templates', __FILE__)
4
+
5
+ #
6
+ # These options are for levels above to completely customize stubs generated by fullstack
7
+ #
8
+
9
+ class_option :host, :default => "remotehost"
10
+ class_option :user, :default => "ror"
11
+ class_option :title, :default => "title"
12
+ class_option :slogan, :default => "slogan"
4
13
 
5
14
  def devise
6
- generate "devise:install"
15
+ generate "devise:install"
16
+ generate "remoting:install"
7
17
  end
8
18
 
9
19
  def gitignore
@@ -12,6 +22,7 @@ module Fullstack
12
22
  .DS_Store
13
23
  /public/uploads
14
24
  /public/attachments
25
+ /public/assets
15
26
  *.tmproj
16
27
  tmtags
17
28
 
@@ -23,7 +34,7 @@ eos
23
34
  inject_into_file("config/environments/production.rb", :after => "Application.configure do\n") do
24
35
  <<-eos
25
36
 
26
- config.action_mailer.default_url_options = { :host => "%{host}" }
37
+ config.action_mailer.default_url_options = { :host => "#{host}" }
27
38
  config.action_mailer.delivery_method = :sendmail
28
39
  config.action_mailer.raise_delivery_errors = false
29
40
 
@@ -36,5 +47,31 @@ eos
36
47
  directory "lib", Rails.root.join("lib")
37
48
  end
38
49
 
50
+ protected
51
+
52
+ def host
53
+ options[:host]
54
+ end
55
+
56
+ def user
57
+ options[:user]
58
+ end
59
+
60
+ def app
61
+ Rails.application.class.to_s.split("::").first.underscore
62
+ end
63
+
64
+ def email
65
+ "info@#{host}"
66
+ end
67
+
68
+ def title
69
+ options[:title]
70
+ end
71
+
72
+ def slogan
73
+ options[:slogan]
74
+ end
75
+
39
76
  end
40
77
  end
@@ -1,6 +1 @@
1
- ---
2
- # example:
3
- # - admin/admin.css
4
- # - admin/admin.js
5
- # - site/site.css
6
- # - site/site.js
1
+ ---
@@ -0,0 +1,4 @@
1
+ site:
2
+ title: "<%= title %>"
3
+ slogan: "<%= slogan %>"
4
+ email: "<%= email %>"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fullstack
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.6
4
+ version: 0.1.7
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -399,7 +399,7 @@ files:
399
399
  - lib/generators/fullstack/install_generator.rb
400
400
  - lib/generators/fullstack/locale_generator.rb
401
401
  - lib/generators/fullstack/templates/config/assets.yml
402
- - lib/generators/fullstack/templates/config/settings.yml
402
+ - lib/generators/fullstack/templates/config/settings.yml.tt
403
403
  - lib/generators/fullstack/templates/lib/remote.rake
404
404
  homepage: http://github.com/mcasimir/fullstack
405
405
  licenses:
@@ -416,7 +416,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
416
416
  version: '0'
417
417
  segments:
418
418
  - 0
419
- hash: 980259520214119705
419
+ hash: -3253060240703146381
420
420
  required_rubygems_version: !ruby/object:Gem::Requirement
421
421
  none: false
422
422
  requirements:
@@ -1,5 +0,0 @@
1
- site:
2
- title: "%{site_title}"
3
- slogan: "%{site_slogan}"
4
- email: "%{site_email}"
5
- domain: "%{site_domain}"