rails_apps_pages 0.3.0 → 0.3.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3a501014f68698e0c208353d76d36a60ccd07c9d
4
- data.tar.gz: 920fa94f90863e0f65649932aa75b818260741e9
3
+ metadata.gz: 03fc6d91be1dca2c164be97d52039af7b3518e3d
4
+ data.tar.gz: c83034a7176c60ef6f8be7653a6525ddf7fcf229
5
5
  SHA512:
6
- metadata.gz: 97f13a1161917f139dcac16bb369e33da3a23645b4ae2dfdb6d7648327d1cee8b97fd3f43cf949addccd469125f56447aa69443a2681793c6792936127a4ea47
7
- data.tar.gz: 27a597fe4d658940d0d7458dc14ec2510d8989a9211ab3082ef95f254a48ae95b64457f7afd6930490f84563bce9d0f54083a12a862035268f870135f7173b08
6
+ metadata.gz: 6c78088130cdbfb04799dcaaf8996be589081403189d191a7e7eafbea5ebc1b9f52b1fad6c00ce5b13c25b45af6775def44410acaecc66db9513f7d87e438b5f
7
+ data.tar.gz: 69c9442c4e53fb139cc0c6dddfc9d8d3b44cdde56e11eeafaa5cc0218ca26713bae08d91b9c421c505a3daec573b810f50ef2fffefc42f59beb88f52eabfb869
data/CHANGELOG.textile CHANGED
@@ -1,5 +1,9 @@
1
1
  h1. CHANGELOG
2
2
 
3
+ h3. 0.3.1 May 2, 2014
4
+
5
+ * add a generator for an 'About' page
6
+
3
7
  h3. 0.3.0 May 1, 2014
4
8
 
5
9
  * add Devise registrations controller for 'users' and 'authorized' generators
@@ -0,0 +1,16 @@
1
+ require 'rails/generators'
2
+
3
+ module Pages
4
+ module Generators
5
+ class AboutGenerator < ::Rails::Generators::Base
6
+ source_root File.expand_path("../templates", __FILE__)
7
+
8
+ desc "Create an about page (requires the high_voltage gem)"
9
+
10
+ def create_page
11
+ copy_file 'about.html.erb', 'app/views/pages/about.html.erb'
12
+ end
13
+
14
+ end
15
+ end
16
+ end
@@ -0,0 +1,3 @@
1
+ <% content_for :title do %>About<% end %>
2
+ <h3>About the Website</h3>
3
+ <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.</p>
@@ -1,3 +1,3 @@
1
1
  module RailsAppsPages
2
- VERSION = "0.3.0"
2
+ VERSION = "0.3.1"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rails_apps_pages
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Daniel Kehoe
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-05-02 00:00:00.000000000 Z
11
+ date: 2014-05-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -56,6 +56,8 @@ files:
56
56
  - Rakefile
57
57
  - lib/generators/clean/gemfile_generator.rb
58
58
  - lib/generators/clean/routes_generator.rb
59
+ - lib/generators/pages/about/about_generator.rb
60
+ - lib/generators/pages/about/templates/about.html.erb
59
61
  - lib/generators/pages/authorized/authorized_generator.rb
60
62
  - lib/generators/pages/authorized/templates/registrations_controller.rb
61
63
  - lib/generators/pages/authorized/templates/user_policy.rb