yupi 0.1.3 → 0.1.4

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: f2a425da02a19ca50fc7bf4fd530379bffb69860
4
- data.tar.gz: bdb368a80b12d9f87a3c3c7e5a0d6e4c478ecf8f
3
+ metadata.gz: 428147794641c0c091a2d2734782c270bd5741dc
4
+ data.tar.gz: fa71b93661ddb31106379aca9c5de04c156120e9
5
5
  SHA512:
6
- metadata.gz: f20ab6d9ca37e7c8f23018888663adecc9233698fff34fd9a1c918bade7c0bb2e93961f5c01ea0cc3a85a51620a3a7dad1fd87d885cbd1189e78068d5e603ecc
7
- data.tar.gz: a0952c7f47dc027407a8c1268dd8df87c33735e9cff15e835af3ba72cab373114598d4f62b6df766c9532802a9cfc3b21bba6fed571b2edc882173a95642588a
6
+ metadata.gz: 55b045a30ae6c712674dca2d2cc3d6092dc792228d16a7e69c8ea103810dcf227418c0a5608fd79ec766ffcefc5bc4cbe56014fa5d3b6ba1e89a17423fde15c0
7
+ data.tar.gz: e046965ae2aef9f6578c46900313bb9362b078a083d99692ad96d09adc54b39e8d6452b71421df57b4c29ae322b1af8b18a890033a2ec86f32b2d21f7f1d49dd
@@ -123,29 +123,29 @@ module Yupi
123
123
  def create_partials
124
124
  empty_directory 'app/views/application'
125
125
 
126
- copy_file 'views/application/_flashes.html.erb',
127
- 'app/views/application/_flashes.html.erb'
128
- copy_file 'views/application/_javascript.html.erb',
129
- 'app/views/application/_javascript.html.erb'
130
- copy_file 'views/application/_navigation.html.erb',
131
- 'app/views/application/_navigation.html.erb'
132
- copy_file 'views/application/_navigation_links.html.erb',
133
- 'app/views/application/_navigation_links.html.erb'
134
- copy_file 'views/application/_analytics.html.erb',
135
- 'app/views/application/_analytics.html.erb'
136
- copy_file 'views/application/_footer.html.erb',
137
- 'app/views/application/_footer.html.erb'
126
+ copy_file 'views/application/_flashes.html.haml',
127
+ 'app/views/application/_flashes.html.haml'
128
+ copy_file 'views/application/_javascript.html.haml',
129
+ 'app/views/application/_javascript.html.haml'
130
+ copy_file 'views/application/_navigation.html.haml',
131
+ 'app/views/application/_navigation.html.haml'
132
+ copy_file 'views/application/_navigation_links.html.haml',
133
+ 'app/views/application/_navigation_links.html.haml'
134
+ copy_file 'views/application/_analytics.html.haml',
135
+ 'app/views/application/_analytics.html.haml'
136
+ copy_file 'views/application/_footer.html.haml',
137
+ 'app/views/application/_footer.html.haml'
138
138
  end
139
139
 
140
140
  def create_home_page
141
- copy_file 'views/pages/home.html.erb',
142
- 'app/views/pages/home.html.erb'
141
+ copy_file 'views/pages/home.html.haml',
142
+ 'app/views/pages/home.html.haml'
143
143
  end
144
144
 
145
145
  def create_application_layout
146
- template 'views/layouts/application.html.erb.erb',
147
- 'app/views/layouts/application.html.erb',
148
- force: true
146
+ remove_file 'app/views/layouts/application.html.erb'
147
+ copy_file 'views/layouts/application.html.haml',
148
+ 'app/views/layouts/application.html.haml'
149
149
  end
150
150
 
151
151
  def use_postgres_config_template
@@ -1,5 +1,5 @@
1
1
  module Yupi
2
2
  RAILS_VERSION = "4.2.1"
3
3
  RUBY_VERSION = IO.read("#{File.dirname(__FILE__)}/../../.ruby-version").strip
4
- VERSION = "0.1.3"
4
+ VERSION = "0.1.4"
5
5
  end
@@ -1,6 +1,6 @@
1
1
  require 'spec_helper'
2
2
 
3
- feature 'Build a new project with default configuration' do
3
+ RSpec.feature 'Build a new project with default configuration' do
4
4
  scenario 'specs pass', :smoke do
5
5
  run_yupi
6
6
 
@@ -7,6 +7,7 @@ gem "coffee-rails", "~> 4.1.0"
7
7
  gem "delayed_job_active_record"
8
8
  gem "email_validator"
9
9
  gem "figaro"
10
+ gem "haml-rails"
10
11
  gem "high_voltage"
11
12
  gem "i18n-tasks"
12
13
  gem "jquery-rails"
@@ -42,6 +43,7 @@ group :test do
42
43
  gem "launchy"
43
44
  gem "poltergeist"
44
45
  gem "shoulda-matchers", require: false
46
+ gem "simplecov", require: false
45
47
  gem "timecop"
46
48
  gem "webmock"
47
49
  end
@@ -1,18 +1,24 @@
1
+ if ENV.fetch("COVERAGE", false)
2
+ require "simplecov"
3
+ SimpleCov.start "rails"
4
+ end
5
+
1
6
  require "webmock/rspec"
2
7
 
3
8
  # http://rubydoc.info/gems/rspec-core/RSpec/Core/Configuration
4
9
  RSpec.configure do |config|
5
10
  config.expect_with :rspec do |expectations|
11
+ expectations.syntax = :expect
6
12
  expectations.include_chain_clauses_in_custom_matcher_descriptions = true
7
13
  end
8
14
 
9
15
  config.mock_with :rspec do |mocks|
16
+ mocks.syntax = :expect
10
17
  mocks.verify_partial_doubles = true
11
18
  end
12
19
 
13
20
  config.filter_run :focus
14
21
  config.run_all_when_everything_filtered = true
15
- config.disable_monkey_patching!
16
22
 
17
23
  if config.files_to_run.one?
18
24
  config.default_formatter = 'doc'
@@ -1,7 +1,5 @@
1
- <% if ENV.key?("SEGMENT_KEY") %>
2
- <script type="text/javascript">
1
+ - if ENV.key?("SEGMENT_KEY")
2
+ :javascript
3
3
  window.analytics=window.analytics||[],window.analytics.methods=["identify","group","track","page","pageview","alias","ready","on","once","off","trackLink","trackForm","trackClick","trackSubmit"],window.analytics.factory=function(t){return function(){var a=Array.prototype.slice.call(arguments);return a.unshift(t),window.analytics.push(a),window.analytics}};for(var i=0;i<window.analytics.methods.length;i++){var key=window.analytics.methods[i];window.analytics[key]=window.analytics.factory(key)}window.analytics.load=function(t){if(!document.getElementById("analytics-js")){var a=document.createElement("script");a.type="text/javascript",a.id="analytics-js",a.async=!0,a.src=("https:"===document.location.protocol?"https://":"http://")+"cdn.segment.com/analytics.js/v1/"+t+"/analytics.min.js";var n=document.getElementsByTagName("script")[0];n.parentNode.insertBefore(a,n)}},window.analytics.SNIPPET_VERSION="2.0.9",
4
- window.analytics.load("<%= ENV["SEGMENT_KEY"] %>");
4
+ window.analytics.load("#{ENV["SEGMENT_KEY"]}");
5
5
  window.analytics.page();
6
- </script>
7
- <% end %>
@@ -0,0 +1,4 @@
1
+ - flash.each do |name, msg|
2
+ %div{:class => "alert alert-#{name == "notice" ? "success" : "danger"}"}
3
+ %button.close{"aria-hidden" => "true", "data-dismiss" => "alert", :type => "button"} ×
4
+ = content_tag :div, msg, :id => "flash_#{name}"
@@ -0,0 +1,9 @@
1
+ #footer
2
+ .container
3
+ .row.footer-first-row
4
+ .col-xs-12.text-center
5
+ %p
6
+ %small
7
+ © #{Time.now.year} - Yourself!
8
+ %br/
9
+ Assembled with #{link_to "Yupi", "https://github.com/Anadea/yupi"}
@@ -0,0 +1,8 @@
1
+ = javascript_include_tag :application
2
+ = yield :javascript
3
+ = render "analytics"
4
+
5
+ - if Rails.env.test?
6
+ = javascript_tag do
7
+ $.fx.off = true;
8
+ $.ajaxSetup({ async: false });
@@ -0,0 +1,12 @@
1
+ %nav.navbar.navbar-default
2
+ .container
3
+ .navbar-header
4
+ %button.navbar-toggle{"data-target" => ".navbar-collapse", "data-toggle" => "collapse", :type => "button"}
5
+ %span.sr-only Toggle navigation
6
+ %span.icon-bar
7
+ %span.icon-bar
8
+ %span.icon-bar
9
+ = link_to 'Home', root_path, class: 'navbar-brand'
10
+ .collapse.navbar-collapse
11
+ %ul.nav.navbar-nav
12
+ = render 'navigation_links'
@@ -0,0 +1,2 @@
1
+ %li= link_to "Link 1", "#"
2
+ %li= link_to "Link 2", "#"
@@ -0,0 +1,23 @@
1
+ !!!
2
+ %html
3
+ %head
4
+ %meta{:content => "text/html; charset=UTF-8", "http-equiv" => "Content-Type"}/
5
+ %meta{:charset => "utf-8"}/
6
+ %meta{:content => "NOODP", :name => "ROBOTS"}/
7
+ %meta{:content => "initial-scale=1", :name => "viewport"}/
8
+ %title= title
9
+ = stylesheet_link_tag :application, media: "all"
10
+ = csrf_meta_tags
11
+ %body
12
+ #wrap
13
+ %header
14
+ = render 'navigation'
15
+ .container
16
+ .row
17
+ .col-sm-6.col-sm-offset-3.text-center
18
+ = render 'flashes'
19
+ .row
20
+ .col-sm-12
21
+ = yield
22
+ = render 'footer'
23
+ = render 'javascript'
@@ -0,0 +1,4 @@
1
+ %h1
2
+ %i.fa.fa-home
3
+ Home Page
4
+ %small views/pages/home.html.erb
@@ -30,6 +30,6 @@ to build something amazing; don't use it if you like missing deadlines.
30
30
  s.add_dependency 'bundler', '~> 1.3'
31
31
  s.add_dependency 'rails', Yupi::RAILS_VERSION
32
32
 
33
- s.add_development_dependency 'rspec', '~> 2.0'
33
+ s.add_development_dependency 'rspec', '>= 3.2.0', '<4'
34
34
  s.add_development_dependency 'capybara', '~> 2.2', '>= 2.2.0'
35
35
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: yupi
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - anadea
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-04-05 00:00:00.000000000 Z
11
+ date: 2015-04-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -42,16 +42,22 @@ dependencies:
42
42
  name: rspec
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - "~>"
45
+ - - ">="
46
+ - !ruby/object:Gem::Version
47
+ version: 3.2.0
48
+ - - "<"
46
49
  - !ruby/object:Gem::Version
47
- version: '2.0'
50
+ version: '4'
48
51
  type: :development
49
52
  prerelease: false
50
53
  version_requirements: !ruby/object:Gem::Requirement
51
54
  requirements:
52
- - - "~>"
55
+ - - ">="
56
+ - !ruby/object:Gem::Version
57
+ version: 3.2.0
58
+ - - "<"
53
59
  - !ruby/object:Gem::Version
54
- version: '2.0'
60
+ version: '4'
55
61
  - !ruby/object:Gem::Dependency
56
62
  name: capybara
57
63
  requirement: !ruby/object:Gem::Requirement
@@ -131,14 +137,14 @@ files:
131
137
  - templates/spec/support/i18n.rb
132
138
  - templates/tasks/bundler_audit.rake
133
139
  - templates/tasks/development_seeds.rake
134
- - templates/views/application/_analytics.html.erb
135
- - templates/views/application/_flashes.html.erb
136
- - templates/views/application/_footer.html.erb
137
- - templates/views/application/_javascript.html.erb
138
- - templates/views/application/_navigation.html.erb
139
- - templates/views/application/_navigation_links.html.erb
140
- - templates/views/layouts/application.html.erb.erb
141
- - templates/views/pages/home.html.erb
140
+ - templates/views/application/_analytics.html.haml
141
+ - templates/views/application/_flashes.html.haml
142
+ - templates/views/application/_footer.html.haml
143
+ - templates/views/application/_javascript.html.haml
144
+ - templates/views/application/_navigation.html.haml
145
+ - templates/views/application/_navigation_links.html.haml
146
+ - templates/views/layouts/application.html.haml
147
+ - templates/views/pages/home.html.haml
142
148
  - yupi.gemspec
143
149
  homepage: http://github.com/Anadea/yupi
144
150
  licenses:
@@ -1,6 +0,0 @@
1
- <% flash.each do |name, msg| %>
2
- <div class="alert alert-<%= name == "notice" ? "success" : "danger" %>">
3
- <button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button>
4
- <%= content_tag :div, msg, :id => "flash_#{name}" %>
5
- </div>
6
- <% end %>
@@ -1,17 +0,0 @@
1
- <div id="footer">
2
- <div class="container">
3
-
4
- <div class="row footer-first-row">
5
-
6
- <div class="col-xs-12 text-center">
7
- <p><small>
8
- &copy; <%= Time.now.year %> - Yourself!
9
- <br/>
10
- Assembled with <%= link_to "Yupi", "https://github.com/Anadea/yupi" %>
11
- </small></p>
12
- </div>
13
-
14
- </div>
15
-
16
- </div>
17
- </div>
@@ -1,12 +0,0 @@
1
- <%= javascript_include_tag :application %>
2
-
3
- <%= yield :javascript %>
4
-
5
- <%= render "analytics" %>
6
-
7
- <% if Rails.env.test? %>
8
- <%= javascript_tag do %>
9
- $.fx.off = true;
10
- $.ajaxSetup({ async: false });
11
- <% end %>
12
- <% end %>
@@ -1,18 +0,0 @@
1
- <nav class="navbar navbar-default">
2
- <div class="container">
3
- <div class="navbar-header">
4
- <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
5
- <span class="sr-only">Toggle navigation</span>
6
- <span class="icon-bar"></span>
7
- <span class="icon-bar"></span>
8
- <span class="icon-bar"></span>
9
- </button>
10
- <%= link_to 'Home', root_path, class: 'navbar-brand' %>
11
- </div>
12
- <div class="collapse navbar-collapse">
13
- <ul class="nav navbar-nav">
14
- <%= render 'navigation_links' %>
15
- </ul>
16
- </div>
17
- </div>
18
- </nav>
@@ -1,2 +0,0 @@
1
- <li><%= link_to "Link 1", "#" %></li>
2
- <li><%= link_to "Link 2", "#" %></li>
@@ -1,43 +0,0 @@
1
- <!DOCTYPE html>
2
- <html>
3
- <head>
4
- <meta charset="utf-8" />
5
- <meta name="ROBOTS" content="NOODP" />
6
- <meta name="viewport" content="initial-scale=1" />
7
- <%%#
8
- Configure default and controller-, and view-specific titles in
9
- config/locales/en.yml. For more see:
10
- https://github.com/calebthompson/title#usage
11
- %>
12
- <title><%%= title %></title>
13
- <%%= stylesheet_link_tag :application, media: "all" %>
14
- <%%= csrf_meta_tags %>
15
- </head>
16
-
17
- <body>
18
- <div id="wrap">
19
- <header>
20
- <%%= render 'navigation' %>
21
- </header>
22
-
23
- <div class="container">
24
-
25
- <div class="row">
26
- <div class="col-sm-6 col-sm-offset-3 text-center">
27
- <%%= render 'flashes' %>
28
- </div>
29
- </div>
30
-
31
- <div class="row">
32
- <div class="col-sm-12">
33
- <%%= yield %>
34
- </div>
35
- </div>
36
-
37
- </div>
38
- </div>
39
-
40
- <%%= render 'footer' %>
41
- <%%= render 'javascript' %>
42
- </body>
43
- </html>
@@ -1 +0,0 @@
1
- <h1><i class="fa fa-home"></i> Home Page <small>views/pages/home.html.erb</small></h1>