happy_seed 0.0.9 → 0.0.10
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 +4 -4
- data/Rakefile +11 -0
- data/bin/happy_seed +2 -4
- data/happy_seed.rb +41 -1
- data/lib/generators/happy_seed/admin/templates/docs/README.07.admin.rdoc +1 -1
- data/lib/generators/happy_seed/base/templates/docs/README.00.base.rdoc +6 -6
- data/lib/generators/happy_seed/bootstrap/bootstrap_generator.rb +1 -2
- data/lib/generators/happy_seed/facebook/templates/docs/README.06.facebook.rdoc +1 -1
- data/lib/generators/happy_seed/instagram/templates/docs/README.05.instagram.rdoc +1 -1
- data/lib/generators/happy_seed/jazz_hands/templates/docs/README.12.jazz_hands.rdoc +1 -1
- data/lib/generators/happy_seed/omniauth/templates/docs/README.04.omniauth.rdoc +2 -2
- data/lib/generators/happy_seed/plugin/plugin_generator.rb +4 -2
- data/lib/generators/happy_seed/splash/templates/docs/README.02.splash.rdoc +1 -1
- data/lib/generators/happy_seed/static/static_generator.rb +19 -0
- data/lib/generators/happy_seed/static/templates/.gitignore +18 -0
- data/lib/generators/happy_seed/static/templates/Gemfile +21 -0
- data/lib/generators/happy_seed/static/templates/config.rb +55 -0
- data/lib/generators/happy_seed/static/templates/data/site.yml +4 -0
- data/lib/generators/happy_seed/static/templates/source/images/.gitkeep +0 -0
- data/lib/generators/happy_seed/static/templates/source/index.html.haml +68 -0
- data/lib/generators/happy_seed/static/templates/source/javascripts/all.js +3 -0
- data/lib/generators/happy_seed/static/templates/source/layouts/_footer.haml +7 -0
- data/lib/generators/happy_seed/static/templates/source/layouts/_javascripts.erb +9 -0
- data/lib/generators/happy_seed/static/templates/source/layouts/_main_header.haml +16 -0
- data/lib/generators/happy_seed/static/templates/source/layouts/layout.haml +19 -0
- data/lib/generators/happy_seed/static/templates/source/stylesheets/animate.css +3158 -0
- data/lib/generators/happy_seed/static/templates/source/stylesheets/application.css.scss +24 -0
- data/lib/generators/happy_seed/static/templates/source/stylesheets/fonts/socicon-webfont.eot +0 -0
- data/lib/generators/happy_seed/static/templates/source/stylesheets/fonts/socicon-webfont.svg +90 -0
- data/lib/generators/happy_seed/static/templates/source/stylesheets/fonts/socicon-webfont.ttf +0 -0
- data/lib/generators/happy_seed/static/templates/source/stylesheets/fonts/socicon-webfont.woff +0 -0
- data/lib/generators/happy_seed/static/templates/source/stylesheets/socicons.css +124 -0
- data/lib/generators/happy_seed/static_blog/static_blog_generator.rb +19 -0
- data/lib/generators/happy_seed/static_blog/templates/.gitignore +18 -0
- data/lib/generators/happy_seed/static_blog/templates/Gemfile +23 -0
- data/lib/generators/happy_seed/static_blog/templates/Gemfile.lock +166 -0
- data/lib/generators/happy_seed/static_blog/templates/config.rb +83 -0
- data/lib/generators/happy_seed/static_blog/templates/data/site.yml +13 -0
- data/lib/generators/happy_seed/static_blog/templates/source/2014-10-21-this-is-a-published-post.html.markdown +8 -0
- data/lib/generators/happy_seed/static_blog/templates/source/2014-11-25-post-2.html.markdown +9 -0
- data/lib/generators/happy_seed/static_blog/templates/source/about.html.haml +8 -0
- data/lib/generators/happy_seed/static_blog/templates/source/calendar.html.haml +34 -0
- data/lib/generators/happy_seed/static_blog/templates/source/drafts/this-is-a-draft-post.html.markdown +9 -0
- data/lib/generators/happy_seed/static_blog/templates/source/images/.gitkeep +0 -0
- data/lib/generators/happy_seed/static_blog/templates/source/index.html.haml +19 -0
- data/lib/generators/happy_seed/static_blog/templates/source/javascripts/all.js +3 -0
- data/lib/generators/happy_seed/static_blog/templates/source/layouts/_article_footer.erb +22 -0
- data/lib/generators/happy_seed/static_blog/templates/source/layouts/_article_header.haml +15 -0
- data/lib/generators/happy_seed/static_blog/templates/source/layouts/_footer.haml +12 -0
- data/lib/generators/happy_seed/static_blog/templates/source/layouts/_javascripts.erb +9 -0
- data/lib/generators/happy_seed/static_blog/templates/source/layouts/_main_header.haml +17 -0
- data/lib/generators/happy_seed/static_blog/templates/source/layouts/article_layout.haml +26 -0
- data/lib/generators/happy_seed/static_blog/templates/source/layouts/layout.haml +19 -0
- data/lib/generators/happy_seed/static_blog/templates/source/stylesheets/animate.css +3158 -0
- data/lib/generators/happy_seed/static_blog/templates/source/stylesheets/application.css.scss +229 -0
- data/lib/generators/happy_seed/static_blog/templates/source/stylesheets/fonts/socicon-webfont.eot +0 -0
- data/lib/generators/happy_seed/static_blog/templates/source/stylesheets/fonts/socicon-webfont.svg +90 -0
- data/lib/generators/happy_seed/static_blog/templates/source/stylesheets/fonts/socicon-webfont.ttf +0 -0
- data/lib/generators/happy_seed/static_blog/templates/source/stylesheets/fonts/socicon-webfont.woff +0 -0
- data/lib/generators/happy_seed/static_blog/templates/source/stylesheets/socicons.css +124 -0
- data/lib/generators/happy_seed/static_blog/templates/source/tag.html.haml +23 -0
- data/lib/generators/happy_seed/twitter/templates/docs/README.05.twitter.rdoc +6 -2
- data/lib/generators/happy_seed/twitter/twitter_generator.rb +2 -1
- data/lib/happy_seed.rb +2 -0
- data/lib/happy_seed/cli.rb +44 -0
- data/lib/happy_seed/version.rb +1 -1
- metadata +65 -4
- data/bin/happy_seed_plugin +0 -14
@@ -0,0 +1,23 @@
|
|
1
|
+
---
|
2
|
+
title: Tags
|
3
|
+
---
|
4
|
+
.timeline
|
5
|
+
.post
|
6
|
+
.post-date
|
7
|
+
.post-title
|
8
|
+
%h2= "#{tagname.capitalize} articles"
|
9
|
+
- page_articles.each do |article|
|
10
|
+
.post
|
11
|
+
.post-date
|
12
|
+
- unless article.is_a? ::Middleman::Blog::Drafts::DraftArticle
|
13
|
+
%p= article.date.strftime( '%b %e' )
|
14
|
+
- else
|
15
|
+
%p.draft Draft
|
16
|
+
- if data['site'].disqus_shortname
|
17
|
+
%p.disqus-comment-count{ "data-disqus-identifier" => (article.data['disqus_id'] || article.path ) }
|
18
|
+
.post-title
|
19
|
+
%p.title= link_to article.title, article
|
20
|
+
- if article.data['subtitle']
|
21
|
+
%p.subtitle= article.data['subtitle']
|
22
|
+
- article.tags.sort.each do |tag|
|
23
|
+
.tag= link_to tag, tag_path( tag )
|
@@ -3,7 +3,7 @@ HappySeed Twitter Install
|
|
3
3
|
|
4
4
|
### What does this do?
|
5
5
|
|
6
|
-
The happy_seed:twitter depends upon happy_seed:omniauth and
|
6
|
+
The `happy_seed:twitter` depends upon `happy_seed:omniauth` and
|
7
7
|
|
8
8
|
* Installs twitter authentication
|
9
9
|
* Installs links in the nav bar and use signup/signin pages
|
@@ -23,4 +23,8 @@ If you want to have the user connect via twitter, this is the one line command f
|
|
23
23
|
|
24
24
|
Go to twitter.com and sign up for an application. Since you need to set the callbacks as urls, you'll need to create one app for local development and another app for production. (Possibly one for staging as well.)
|
25
25
|
|
26
|
-
https://dev.twitter.com
|
26
|
+
https://dev.twitter.com
|
27
|
+
|
28
|
+
Also see more:
|
29
|
+
|
30
|
+
http://willschenk.com/scripting-twitter/
|
data/lib/happy_seed.rb
CHANGED
@@ -0,0 +1,44 @@
|
|
1
|
+
require 'thor'
|
2
|
+
|
3
|
+
module HappySeed
|
4
|
+
class Cli < Thor
|
5
|
+
desc "rails APPNAME", "Generate a new rails application"
|
6
|
+
def rails( *args )
|
7
|
+
file = gem_file_path( "happy_seed.rb")
|
8
|
+
system( "rails new -m #{file} #{args.join( " " )}" )
|
9
|
+
end
|
10
|
+
|
11
|
+
desc "plugin NAME", "Generate a new rails plugin"
|
12
|
+
def plugin( *args )
|
13
|
+
require 'generators/happy_seed/plugin/plugin_generator'
|
14
|
+
HappySeed::Generators::PluginGenerator.start
|
15
|
+
end
|
16
|
+
|
17
|
+
desc "engine NAME", "Generate a new rails engine"
|
18
|
+
def engine( *args )
|
19
|
+
require 'generators/happy_seed/plugin/plugin_generator'
|
20
|
+
ARGV << "--mountable"
|
21
|
+
HappySeed::Generators::PluginGenerator.start
|
22
|
+
end
|
23
|
+
|
24
|
+
desc "static NAME", "Generate a new middleman static project"
|
25
|
+
def static( name )
|
26
|
+
require 'generators/happy_seed/static/static_generator'
|
27
|
+
HappySeed::Generators::StaticGenerator.start
|
28
|
+
end
|
29
|
+
|
30
|
+
desc "static_blog NAME", "Generate a new middleman static blog project"
|
31
|
+
def static_blog( name )
|
32
|
+
require 'generators/happy_seed/static/static_blog_generator'
|
33
|
+
HappySeed::Generators::StaticBlogGenerator.start
|
34
|
+
end
|
35
|
+
|
36
|
+
private
|
37
|
+
def gem_file_path( filename )
|
38
|
+
spec = Gem::Specification.find_by_name("happy_seed")
|
39
|
+
gem_root = spec.gem_dir
|
40
|
+
|
41
|
+
File.join( gem_root, filename )
|
42
|
+
end
|
43
|
+
end
|
44
|
+
end
|
data/lib/happy_seed/version.rb
CHANGED
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.
|
4
|
+
version: 0.0.10
|
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: 2014-
|
12
|
+
date: 2014-11-28 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rails
|
@@ -25,6 +25,20 @@ dependencies:
|
|
25
25
|
- - ~>
|
26
26
|
- !ruby/object:Gem::Version
|
27
27
|
version: 4.1.4
|
28
|
+
- !ruby/object:Gem::Dependency
|
29
|
+
name: thor
|
30
|
+
requirement: !ruby/object:Gem::Requirement
|
31
|
+
requirements:
|
32
|
+
- - '>='
|
33
|
+
- !ruby/object:Gem::Version
|
34
|
+
version: '0'
|
35
|
+
type: :runtime
|
36
|
+
prerelease: false
|
37
|
+
version_requirements: !ruby/object:Gem::Requirement
|
38
|
+
requirements:
|
39
|
+
- - '>='
|
40
|
+
- !ruby/object:Gem::Version
|
41
|
+
version: '0'
|
28
42
|
- !ruby/object:Gem::Dependency
|
29
43
|
name: sqlite3
|
30
44
|
requirement: !ruby/object:Gem::Requirement
|
@@ -45,14 +59,12 @@ email:
|
|
45
59
|
- will@happyfuncorp.com
|
46
60
|
executables:
|
47
61
|
- happy_seed
|
48
|
-
- happy_seed_plugin
|
49
62
|
extensions: []
|
50
63
|
extra_rdoc_files: []
|
51
64
|
files:
|
52
65
|
- MIT-LICENSE
|
53
66
|
- Rakefile
|
54
67
|
- bin/happy_seed
|
55
|
-
- bin/happy_seed_plugin
|
56
68
|
- happy_seed.rb
|
57
69
|
- lib/generators/happy_seed/admin/admin_generator.rb
|
58
70
|
- lib/generators/happy_seed/admin/templates/app/admin/campaigns.rb
|
@@ -149,9 +161,58 @@ files:
|
|
149
161
|
- lib/generators/happy_seed/splash/templates/docs/README.02.splash.rdoc
|
150
162
|
- lib/generators/happy_seed/splash/templates/spec/controllers/splash_controller_spec.rb
|
151
163
|
- lib/generators/happy_seed/splash/templates/vendor/assets/javascripts/scrollReveal.js
|
164
|
+
- lib/generators/happy_seed/static/static_generator.rb
|
165
|
+
- lib/generators/happy_seed/static/templates/.gitignore
|
166
|
+
- lib/generators/happy_seed/static/templates/Gemfile
|
167
|
+
- lib/generators/happy_seed/static/templates/config.rb
|
168
|
+
- lib/generators/happy_seed/static/templates/data/site.yml
|
169
|
+
- lib/generators/happy_seed/static/templates/source/images/.gitkeep
|
170
|
+
- lib/generators/happy_seed/static/templates/source/index.html.haml
|
171
|
+
- lib/generators/happy_seed/static/templates/source/javascripts/all.js
|
172
|
+
- lib/generators/happy_seed/static/templates/source/layouts/_footer.haml
|
173
|
+
- lib/generators/happy_seed/static/templates/source/layouts/_javascripts.erb
|
174
|
+
- lib/generators/happy_seed/static/templates/source/layouts/_main_header.haml
|
175
|
+
- lib/generators/happy_seed/static/templates/source/layouts/layout.haml
|
176
|
+
- lib/generators/happy_seed/static/templates/source/stylesheets/animate.css
|
177
|
+
- lib/generators/happy_seed/static/templates/source/stylesheets/application.css.scss
|
178
|
+
- lib/generators/happy_seed/static/templates/source/stylesheets/fonts/socicon-webfont.eot
|
179
|
+
- lib/generators/happy_seed/static/templates/source/stylesheets/fonts/socicon-webfont.svg
|
180
|
+
- lib/generators/happy_seed/static/templates/source/stylesheets/fonts/socicon-webfont.ttf
|
181
|
+
- lib/generators/happy_seed/static/templates/source/stylesheets/fonts/socicon-webfont.woff
|
182
|
+
- lib/generators/happy_seed/static/templates/source/stylesheets/socicons.css
|
183
|
+
- lib/generators/happy_seed/static_blog/static_blog_generator.rb
|
184
|
+
- lib/generators/happy_seed/static_blog/templates/.gitignore
|
185
|
+
- lib/generators/happy_seed/static_blog/templates/Gemfile
|
186
|
+
- lib/generators/happy_seed/static_blog/templates/Gemfile.lock
|
187
|
+
- lib/generators/happy_seed/static_blog/templates/config.rb
|
188
|
+
- lib/generators/happy_seed/static_blog/templates/data/site.yml
|
189
|
+
- lib/generators/happy_seed/static_blog/templates/source/2014-10-21-this-is-a-published-post.html.markdown
|
190
|
+
- lib/generators/happy_seed/static_blog/templates/source/2014-11-25-post-2.html.markdown
|
191
|
+
- lib/generators/happy_seed/static_blog/templates/source/about.html.haml
|
192
|
+
- lib/generators/happy_seed/static_blog/templates/source/calendar.html.haml
|
193
|
+
- lib/generators/happy_seed/static_blog/templates/source/drafts/this-is-a-draft-post.html.markdown
|
194
|
+
- lib/generators/happy_seed/static_blog/templates/source/images/.gitkeep
|
195
|
+
- lib/generators/happy_seed/static_blog/templates/source/index.html.haml
|
196
|
+
- lib/generators/happy_seed/static_blog/templates/source/javascripts/all.js
|
197
|
+
- lib/generators/happy_seed/static_blog/templates/source/layouts/_article_footer.erb
|
198
|
+
- lib/generators/happy_seed/static_blog/templates/source/layouts/_article_header.haml
|
199
|
+
- lib/generators/happy_seed/static_blog/templates/source/layouts/_footer.haml
|
200
|
+
- lib/generators/happy_seed/static_blog/templates/source/layouts/_javascripts.erb
|
201
|
+
- lib/generators/happy_seed/static_blog/templates/source/layouts/_main_header.haml
|
202
|
+
- lib/generators/happy_seed/static_blog/templates/source/layouts/article_layout.haml
|
203
|
+
- lib/generators/happy_seed/static_blog/templates/source/layouts/layout.haml
|
204
|
+
- lib/generators/happy_seed/static_blog/templates/source/stylesheets/animate.css
|
205
|
+
- lib/generators/happy_seed/static_blog/templates/source/stylesheets/application.css.scss
|
206
|
+
- lib/generators/happy_seed/static_blog/templates/source/stylesheets/fonts/socicon-webfont.eot
|
207
|
+
- lib/generators/happy_seed/static_blog/templates/source/stylesheets/fonts/socicon-webfont.svg
|
208
|
+
- lib/generators/happy_seed/static_blog/templates/source/stylesheets/fonts/socicon-webfont.ttf
|
209
|
+
- lib/generators/happy_seed/static_blog/templates/source/stylesheets/fonts/socicon-webfont.woff
|
210
|
+
- lib/generators/happy_seed/static_blog/templates/source/stylesheets/socicons.css
|
211
|
+
- lib/generators/happy_seed/static_blog/templates/source/tag.html.haml
|
152
212
|
- lib/generators/happy_seed/twitter/templates/docs/README.05.twitter.rdoc
|
153
213
|
- lib/generators/happy_seed/twitter/twitter_generator.rb
|
154
214
|
- lib/happy_seed.rb
|
215
|
+
- lib/happy_seed/cli.rb
|
155
216
|
- lib/happy_seed/version.rb
|
156
217
|
- lib/tasks/seed_tasks.rake
|
157
218
|
- test/dummy/README.rdoc
|
data/bin/happy_seed_plugin
DELETED
@@ -1,14 +0,0 @@
|
|
1
|
-
#!/usr/bin/env ruby -wU
|
2
|
-
|
3
|
-
spec = Gem::Specification.find_by_name("happy_seed")
|
4
|
-
gem_root = spec.gem_dir
|
5
|
-
|
6
|
-
file = File.join( ENV['SEED_DEVELOPMENT'] || gem_root, "lib/generators/happy_seed/plugin/plugin_generator.rb" )
|
7
|
-
|
8
|
-
# app_name = ARGV.shift
|
9
|
-
|
10
|
-
puts "Generating new plugin"
|
11
|
-
|
12
|
-
require file
|
13
|
-
|
14
|
-
HappySeed::Generators::PluginGenerator.start
|