happy_seed 0.0.18 → 0.0.19

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 503098e01060d7f004b591f7dfe749e1136b34de
4
- data.tar.gz: 6c168f1188afcc1d56980c1cfa0cbf0400c2954a
3
+ metadata.gz: 7ce168810cf5914cec904a4c838472cd15dee97a
4
+ data.tar.gz: 4f133d41711bf8053d618d6b096626182e4ef9e1
5
5
  SHA512:
6
- metadata.gz: 129752402fc21adc1a913d5734667c114a825ab6efc4416fe39ed8309bdf918f451f713329ce02e41d512fee1a4b8c1d2cc0c74ca00940f30f944f20fd2b5bd2
7
- data.tar.gz: c930e14bcd12a43f384ef098d89f812762dd56c4e8f7b2b5d4292d1ea62eab496ca46cadd448822e63a600d9af71ba68637fb24ebef234b336b326b10bc90fb6
6
+ metadata.gz: b53b4d77c1df370c471a1284cd0850d41160ac145dfb0ee2e9c236a2c15c2928c4140dca171ceb6f5061a1ae196bdf0120bb0b58169f4325cb05980875fe5fcc
7
+ data.tar.gz: 3239f63daa6f272e6c684a5e7b76278d1d59f98a731b2d3baa9146283da93a1c93128caa642da639adb23013b21b2e0fa6751f1a1225f520d302152fa9ab2bf2
@@ -9,6 +9,12 @@ The `happy_seed:base` generator installs `dotenv-rails`, `puma`, http site authe
9
9
 
10
10
  /setup is used to see the `happy_seed` documentation for each of the installed generators, and copies things into the rails doc directory. The `setup_controller` is only visible locally.
11
11
 
12
+ ## Walkthrough
13
+
14
+ <div class="embed-responsive embed-responsive-16by9">
15
+ <iframe src="https://www.youtube.com/embed/Pn2ehV8EDFM?rel=0" allowfullscreen></iframe>
16
+ </div>
17
+
12
18
  ### Why do you want this?
13
19
 
14
20
  Haml is great and we like it better than balancing out closing tags. meta-tags makes it easy to flesh out SEO.
@@ -1,11 +1,17 @@
1
1
  module ApplicationHelper
2
2
  def flash_class(level)
3
3
  case level.to_sym
4
- when :notice then "alert-info"
5
- when :success then "alert-success"
6
- when :alert then "alert-warning"
7
- when :error then "alert-danger"
8
- else "alert-danger"
4
+ # allow either standard rails flash category symbols...
5
+ when :notice then "info"
6
+ when :success then "success"
7
+ when :alert then "warning"
8
+ when :error then "danger"
9
+ # ... or bootstrap class symbols
10
+ when :info then "info"
11
+ when :warning then "warning"
12
+ when :danger then "danger"
13
+ # and default to being alarming
14
+ else "danger"
9
15
  end
10
16
  end
11
17
 
@@ -12,13 +12,14 @@ class SplashController < ApplicationController
12
12
  else
13
13
  begin
14
14
 
15
- gb = Gibbon::API.new
15
+ gb = Gibbon::Request.new(api_key: ENV['MAILCHIMP_API_KEY'])
16
16
 
17
- gb.lists.subscribe({
18
- :id => ENV['MAILCHIMP_SPLASH_SIGNUP_LIST_ID'],
19
- :email => {:email => params[:signup_email]},
20
- :double_optin => true
21
- })
17
+ gb.lists(ENV['MAILCHIMP_SPLASH_SIGNUP_LIST_ID']).members.create(
18
+ body: {
19
+ email_address: params[:signup_email],
20
+ status: "pending"
21
+ }
22
+ )
22
23
 
23
24
  @message = 'Thanks for signing up!'
24
25
 
@@ -37,7 +38,7 @@ class SplashController < ApplicationController
37
38
 
38
39
 
39
40
  private
40
-
41
+
41
42
  def gem_available?(name)
42
43
  Gem::Specification.find_by_name(name)
43
44
  rescue Gem::LoadError
@@ -15,6 +15,13 @@ This is a quick framework to get up a marketing page for your application, and a
15
15
 
16
16
  The splash controller uses a seperate splash layout, which lets you isolate the design of the splash page from the overall content and look and feel of your application.
17
17
 
18
+ ## Walkthrough
19
+
20
+ <div class="embed-responsive embed-responsive-16by9">
21
+ <iframe src="https://www.youtube.com/embed/wb51M6I3I8g?rel=0" allowfullscreen></iframe>
22
+ </div>
23
+
24
+
18
25
  ### Environment Variables
19
26
 
20
27
  This is for the mailchimp signup form.
@@ -26,6 +33,10 @@ This is for the mailchimp signup form.
26
33
 
27
34
  ### What needs to be done?
28
35
 
29
- Style the page by editing assets/stylesheets/slash.css.scss, views/splash/index.html.haml, and views/layouts/splash
36
+ Style the page by editing assets/stylesheets/slash.css.scss, views/splash/index.html.haml, and views/layouts/splash.html.haml
30
37
 
31
- Sign up for mailchimp, get your api key, create a mailing list and setup the environment.
38
+ 1. Signup for mailchimp: https://login.mailchimp.com/signup
39
+ 2. Activate your account
40
+ 3. Create a mailing list: List -> Create List
41
+ 4. Get list ID (Settings -> List name and defaults) for MAILCHIMP_SPLASH_SIGNUP_LIST_ID
42
+ 5. Get MAILCHIMP_API_KEY (Your name -> Account -> Extras -> API Keys)
@@ -1,7 +1,13 @@
1
+ require 'happy_seed/version'
1
2
  require 'thor'
2
3
 
3
4
  module HappySeed
4
5
  class Cli < Thor
6
+ desc "version", "Prints out the current version"
7
+ def version
8
+ puts "You are running seed version #{HappySeed::VERSION}"
9
+ end
10
+
5
11
  desc "rails APPNAME", "Generate a new rails application"
6
12
  def rails( *args )
7
13
  seedrb = gem_file_path( "happy_seed.rb")
@@ -33,6 +39,11 @@ module HappySeed
33
39
  HappySeed::Generators::StaticBlogGenerator.start
34
40
  end
35
41
 
42
+ desc "reference", "Quick generator Reference"
43
+ def reference
44
+ puts File.read( File.expand_path( "../../happy_seed.txt", File.dirname( __FILE__ ) ) )
45
+ end
46
+
36
47
  private
37
48
  def gem_file_path( filename )
38
49
  spec = Gem::Specification.find_by_name("happy_seed")
@@ -41,4 +52,4 @@ module HappySeed
41
52
  File.join( gem_root, filename )
42
53
  end
43
54
  end
44
- end
55
+ end
@@ -1,3 +1,3 @@
1
1
  module HappySeed
2
- VERSION = "0.0.18"
2
+ VERSION = "0.0.19"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: happy_seed
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.18
4
+ version: 0.0.19
5
5
  platform: ruby
6
6
  authors:
7
7
  - Will Schenk
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2015-09-17 00:00:00.000000000 Z
12
+ date: 2015-10-08 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails