scaffoldhub 0.0.6 → 0.0.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/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- scaffoldhub (0.0.6)
4
+ scaffoldhub (0.0.7)
5
5
  rails
6
6
 
7
7
  GEM
@@ -78,7 +78,7 @@ GEM
78
78
  thor (0.14.6)
79
79
  treetop (1.4.9)
80
80
  polyglot (>= 0.3.1)
81
- tzinfo (0.3.26)
81
+ tzinfo (0.3.27)
82
82
 
83
83
  PLATFORMS
84
84
  ruby
@@ -2,7 +2,7 @@ require 'rails/generators/erb/scaffold/scaffold_generator'
2
2
  require 'rails/generators/rails/scaffold_controller/scaffold_controller_generator'
3
3
  require 'rails/generators/active_record/model/model_generator'
4
4
 
5
- class NewScaffoldhubGenerator < Rails::Generators::NamedBase
5
+ class NewScaffoldGenerator < Rails::Generators::NamedBase
6
6
 
7
7
  def self.source_root
8
8
  File.expand_path('../templates', __FILE__)
@@ -1,30 +1,30 @@
1
1
  Scaffoldhub::Specification.new do
2
2
 
3
- # Github URL where you will post your scaffold - the speciied folder must contain this file
3
+ # Github URL where you will post your scaffold - the specified folder must contain this file
4
4
  base_url 'https://github.com/your_name/your_repo'
5
5
 
6
6
  # The name of your new scaffold: should be a single word
7
7
  name '<%= singular_name %>'
8
8
 
9
- # Metadata about this scaffold - this info is only used for display on scaffoldhub.org:
9
+ # Metadata about this scaffold - these values are only used for display on scaffoldhub.org:
10
10
  metadata do
11
11
 
12
12
  # A short paragraph describing what this scaffold does
13
13
  description 'The <%= singular_name %> scaffold.'
14
14
 
15
15
  # 4x3 aspect ratio screen shot
16
- screenshot 'screenshot.png'
16
+ screenshot '<%= singular_name %>_screenshot.png'
17
17
 
18
18
  # Tag(s) to help scaffoldhub.org users find your scaffold
19
19
  tag 'jquery'
20
20
  tag 'autocomplete'
21
- end
22
21
 
23
- # Optionally specify an example of a scaffold parameter
24
- parameter_example 'FIELD_NAME'
22
+ # Optionally specify an example of a scaffold parameter
23
+ parameter_example 'FIELD_NAME'
25
24
 
26
- # Optionally post a link to an article you write explaining how the scaffold works.
27
- blog_post 'http://patshaughnessy.net/2011/3/13/view-mapper-for-rails-3-scaffoldhub'
25
+ # Optionally post a link to an article you write explaining how the scaffold works.
26
+ blog_post 'http://patshaughnessy.net/2011/3/13/view-mapper-for-rails-3-scaffoldhub'
27
+ end
28
28
 
29
29
  # Define a model template - this ERB file will be used to generate a new
30
30
  # model class with this path & filename: app/models/NAME.rb
@@ -39,6 +39,8 @@ Scaffoldhub::Specification.new do
39
39
  controller 'templates/controller.rb'
40
40
 
41
41
  # You can use "with_options" to specify the same source folder for a series of templates:
42
+ # You can also specify the same destination folder using the :dest option,
43
+ # or just use the :src and :dest options on each keyword.
42
44
  with_options :src => 'templates' do
43
45
  view '_form.html.erb'
44
46
  view 'new.html.erb'
@@ -46,4 +48,14 @@ Scaffoldhub::Specification.new do
46
48
  view 'index.html.erb'
47
49
  view 'show.html.erb'
48
50
  end
51
+
52
+ # Other keywords available are:
53
+
54
+ # Define any other generic template - this ERB file will be used to generate
55
+ # a new file - the dest option is required to indicate where to put the new file
56
+ # template 'xyz.html.erb', :dest => 'path/to/xyz.html'
57
+
58
+ # Copy any file without running an ERB transformation
59
+ # file 'xyz.html', :dest => 'path/to/xyz.html'
60
+
49
61
  end
data/lib/scaffoldhub.rb CHANGED
@@ -6,6 +6,6 @@ require 'scaffoldhub/helper'
6
6
  require 'scaffoldhub/runner'
7
7
 
8
8
  module Scaffoldhub
9
- VERSION = '0.0.6'
9
+ VERSION = '0.0.7'
10
10
  SCAFFOLD_HUB_SERVER = 'scaffoldhub.org'
11
11
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: scaffoldhub
3
3
  version: !ruby/object:Gem::Version
4
- hash: 19
4
+ hash: 17
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 6
10
- version: 0.0.6
9
+ - 7
10
+ version: 0.0.7
11
11
  platform: ruby
12
12
  authors:
13
13
  - Pat Shaughnessy
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-04-29 00:00:00 -04:00
18
+ date: 2011-04-30 00:00:00 -04:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency
@@ -98,9 +98,9 @@ files:
98
98
  - bin/scaffoldhub
99
99
  - lib/generators/active_record/scaffoldhub_generator.rb
100
100
  - lib/generators/erb/scaffoldhub_generator.rb
101
- - lib/generators/new_scaffoldhub/new_scaffoldhub_generator.rb
102
- - lib/generators/new_scaffoldhub/templates/scaffold_spec.rb.erb
103
- - lib/generators/new_scaffoldhub/templates/screenshot.png
101
+ - lib/generators/new_scaffold/new_scaffold_generator.rb
102
+ - lib/generators/new_scaffold/templates/scaffold_spec.rb.erb
103
+ - lib/generators/new_scaffold/templates/screenshot.png
104
104
  - lib/generators/scaffold_controller/scaffoldhub_generator.rb
105
105
  - lib/generators/scaffoldhub/scaffoldhub_generator.rb
106
106
  - lib/scaffoldhub.rb