orats 0.9.5 → 0.9.6

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: b087e4b8c21cbfe5c1dcea8b3216f91d1b1631ff
4
- data.tar.gz: efc9b450b01b1f0417fa8eb8a164c169e6d99bce
3
+ metadata.gz: d8d3b5c32852f8387ced21f30ce46cfb09477662
4
+ data.tar.gz: dfa8f11755ba22556f3990112f8928ed89ed9de1
5
5
  SHA512:
6
- metadata.gz: 4715024b5981df05313fb886f2672f456ec8a7c524dbc109e1159ecc76930cd22dc3a61d3ac1adb5387eb9e239cbb7ebdd3273f67be655e2eb88c0f2dc7292b0
7
- data.tar.gz: eb6d7aadc7522f5cc0378ce780debf1e77ce2f60c94c9c6f422f8322c58e286359fef650f70004c567cd950ec2230867a5bd84e91b32280e4c9eb236455f0c60
6
+ metadata.gz: d92d999e5cb58886e5d8bab902fed46f14e054d1db4450e774c473266aa7a6d2a65c9eeaf63e3d653809c83f4c9c5f10734377d79b3f04c441573afcc74e2a14
7
+ data.tar.gz: 2ff29088ba5833ea4029a574890867768f84844d6a6798b8013fa7504573abd5074c58a63292160e8bbf5f5b1ae749a2fe1a26ee12ecc9d6f1ec74ebcbeb45bb
data/README.md CHANGED
@@ -6,7 +6,7 @@ It stands for opinionated rails application templates. The templates include sol
6
6
 
7
7
  ## What version of Rails and Ruby are you targeting?
8
8
 
9
- #### Rails 4.1.x and Ruby 2.1.x
9
+ #### Rails 4.2.x and Ruby 2.1.x
10
10
 
11
11
  Gems will also be updated once they are proven to work on the target rails/ruby versions. The gems are locked using the pessimistic operator `~>` to ensure your installation works over time as long as rubygems.org's API is working.
12
12
 
@@ -43,7 +43,7 @@ Before running orats...
43
43
  - [Postgres](https://wiki.postgresql.org/wiki/Detailed_installation_guides)
44
44
  - [Redis](http://redis.io/topics/quickstart)
45
45
  - Ruby 2.1.x - [chruby](https://github.com/postmodern/chruby) | [rbenv](https://github.com/sstephenson/rbenv) | [rvm](https://rvm.io/)
46
- - Rails 4.1.x - `gem install rails -v '~> 4.1.4'`
46
+ - Rails 4.2.x - `gem install rails -v '~> 4.2.0'`
47
47
 
48
48
  #### You should install
49
49
 
@@ -1,7 +1,7 @@
1
1
  require 'securerandom'
2
2
 
3
3
  # =============================================================================
4
- # template for generating an orats auth project for rails 4.1.x
4
+ # template for generating an orats auth project for rails 4.2.x
5
5
  # =============================================================================
6
6
  # view the task list at the bottom of the file
7
7
  # -----------------------------------------------------------------------------
@@ -59,9 +59,9 @@ def update_gemfile
59
59
  inject_into_file 'Gemfile', before: "\ngem 'kaminari'" do
60
60
  <<-S
61
61
 
62
- gem 'devise', '~> 3.3.0'
62
+ gem 'devise', '~> 3.4.1'
63
63
  gem 'devise-async', '~> 0.9.0'
64
- gem 'pundit', '~> 0.2.3'
64
+ gem 'pundit', '~> 0.3.0'
65
65
  S
66
66
  end
67
67
  commit 'Add authentication related gems'
@@ -1,7 +1,7 @@
1
1
  require 'securerandom'
2
2
 
3
3
  # =============================================================================
4
- # template for generating an orats base project for rails 4.1.x
4
+ # template for generating an orats base project for rails 4.2.x
5
5
  # =============================================================================
6
6
  # view the task list at the bottom of the file
7
7
  # -----------------------------------------------------------------------------
@@ -286,7 +286,7 @@ require 'syslog/logger'
286
286
  end
287
287
 
288
288
  inject_into_file 'config/environments/production.rb',
289
- after: "config.log_level = :info\n" do
289
+ after: "config.log_level = :debug\n" do
290
290
  <<-S
291
291
 
292
292
  # Log to syslog.
@@ -296,21 +296,17 @@ require 'syslog/logger'
296
296
  end
297
297
  commit 'Update the logger to be tagged and sent to syslog'
298
298
 
299
- inject_into_file 'config/environments/production.rb',
299
+ inject_into_file 'config/initializers/assets.rb',
300
300
  after: "%w( search.js )\n" do
301
301
  <<-'S'
302
- config.assets.precompile << Proc.new { |path|
303
- if path =~ /\.(eot|svg|ttf|woff|png)\z/
304
- true
305
- end
306
- }
302
+ Rails.application.config.assets.precompile << Proc.new { |path|
303
+ if path =~ /\.(eot|svg|ttf|woff|png)\z/
304
+ true
305
+ end
306
+ }
307
307
  S
308
308
  end
309
309
  commit 'Update the assets precompiler to include common file types'
310
-
311
- gsub_file 'config/environments/production.rb',
312
- '# config.assets.css_compressor', 'config.assets.css_compressor'
313
- commit 'Add sass asset compression'
314
310
  end
315
311
 
316
312
  def update_routes
@@ -368,7 +364,6 @@ def add_layout_partials
368
364
  gsub_file 'app/views/layouts/_footer.html.erb', 'app_name', app_name
369
365
 
370
366
  orats_to_local 'app/views/layouts/_google_analytics_snippet.html.erb'
371
- orats_to_local 'app/views/layouts/_google_analytics_tracker.html.erb'
372
367
 
373
368
  orats_to_local 'app/views/layouts/_disqus_comments_snippet.html.erb'
374
369
  orats_to_local 'app/views/layouts/_disqus_count_snippet.html.erb'
@@ -392,12 +387,12 @@ def update_sass
392
387
  task __method__
393
388
 
394
389
  run 'mv app/assets/stylesheets/application.css app/assets/stylesheets/' + \
395
- 'application.css.scss'
390
+ 'application.scss'
396
391
 
397
- inject_into_file 'app/assets/stylesheets/application.css.scss',
392
+ inject_into_file 'app/assets/stylesheets/application.scss',
398
393
  " *= require font-awesome\n",
399
394
  before: " *= require_self\n"
400
- append_file 'app/assets/stylesheets/application.css.scss' do
395
+ append_file 'app/assets/stylesheets/application.scss' do
401
396
  <<-S
402
397
 
403
398
  // Core variables and mixins
@@ -467,6 +462,11 @@ img {
467
462
  color: $brand-danger;
468
463
  font-size: $font-size-small;
469
464
  }
465
+
466
+ html.turbolinks-progress-bar::before {
467
+ background-color: #aa0000 !important;
468
+ height: 3px !important;
469
+ }
470
470
  S
471
471
  end
472
472
  commit 'Add font-awesome, bootstrap and a few default styles'
@@ -498,6 +498,10 @@ def update_coffeescript
498
498
  //= require bootstrap/transition
499
499
  S
500
500
  end
501
+
502
+ inject_into_file 'app/assets/javascripts/application.js',
503
+ "\nTurbolinks.enableProgressBar();\n",
504
+ after: "//= require_tree .\n"
501
505
  commit 'Add jquery.turbolinks and bootstrap'
502
506
  end
503
507
 
@@ -1,45 +1,46 @@
1
1
  source 'https://rubygems.org'
2
2
 
3
- gem 'rails', '~> 4.1.4'
4
- gem 'turbolinks', '~> 2.2.2'
5
- gem 'jquery-rails', '~> 3.1.1'
6
- gem 'jquery-turbolinks', '~> 2.0.2'
3
+ gem 'rails', '~> 4.2.0'
4
+ gem 'turbolinks', '~> 2.5.3'
5
+ gem 'jquery-rails', '~> 4.0.1'
6
+ gem 'jquery-turbolinks', '~> 2.1.0'
7
7
  #gem 'jbuilder'
8
8
 
9
- gem 'bootstrap-sass', '~> 3.2.0'
10
- gem 'font-awesome-rails', '~> 4.1.0'
9
+ gem 'font-awesome-rails', '~> 4.2.0'
10
+ gem 'bootstrap-sass', '~> 3.3.1'
11
11
 
12
12
  gem 'pg', '~> 0.17.1'
13
13
  gem 'redis-rails', '~> 4.0.0'
14
14
 
15
15
  gem 'unicorn', '~> 4.8.3'
16
- #gem 'puma', '~> 2.9.0'
17
- gem 'sidekiq', '~> 3.2.1'
16
+ #gem 'puma', '~> 2.10.2'
17
+ gem 'sidekiq', '~> 3.3.0'
18
18
  gem 'sinatra', '>= 1.4.5', require: false
19
19
 
20
- gem 'whenever', '~> 0.9.2', require: false
20
+ gem 'whenever', '~> 0.9.4', require: false
21
21
 
22
- gem 'sitemap_generator', '~> 5.0.2'
22
+ gem 'sitemap_generator', '~> 5.0.5'
23
23
  gem 'favicon_maker', '~> 1.3'
24
24
  gem 'kaminari', '~> 0.16.1'
25
25
 
26
26
  group :development do
27
27
  gem 'foreman', require: false
28
- gem 'spring', '~> 1.1.2'
28
+ gem 'spring', '~> 1.2.0'
29
+ gem 'web-console', '~> 2.0.0'
29
30
  gem 'rack-mini-profiler', '~> 0.9.1'
30
- gem 'bullet', '~> 4.10.0'
31
+ gem 'bullet', '~> 4.14.0'
31
32
  gem 'meta_request', '~> 0.3.0'
32
33
  gem 'railroady', '~> 1.1.1', require: false
33
34
  end
34
35
 
35
36
  group :development, :test do
36
- gem 'dotenv-rails', '~> 0.11.1'
37
+ gem 'dotenv-rails', '~> 1.0.2'
37
38
  end
38
39
 
39
40
  group :assets do
40
- gem 'sass-rails', '~> 4.0.3'
41
- gem 'coffee-rails', '~> 4.0.1'
42
- gem 'uglifier', '~> 2.5.1'
41
+ gem 'sass-rails', '~> 5.0.0'
42
+ gem 'coffee-rails', '~> 4.1.0'
43
+ gem 'uglifier', '~> 2.6.0'
43
44
  end
44
45
 
45
46
  group :doc do
@@ -1,13 +1,21 @@
1
- <script type="text/javascript">
2
- var _gaq = _gaq || [];
3
- <% if ENV['GOOGLE_ANALYTICS_UA'].present? %>
4
- _gaq.push(['_setAccount', '<%= ENV["GOOGLE_ANALYTICS_UA"] %>']);
5
- (function () {
6
- var ga = document.createElement('script');
7
- ga.type = 'text/javascript';
8
- ga.async = true;
9
- ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
10
- var s = document.getElementsByTagName('script')[0];
11
- s.parentNode.insertBefore(ga, s);
12
- })();
13
- <% end %>
1
+ <% if ENV['GOOGLE_ANALYTICS_UA'].present? %>
2
+ <script data-turbolinks-eval="false">
3
+ (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
4
+ (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
5
+ m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
6
+ })(window,document,'script','//www.google-analytics.com/analytics.js','ga');
7
+
8
+ ga('create', '<%= ENV["GOOGLE_ANALYTICS_UA"] %>', 'auto');
9
+ </script>
10
+
11
+ <script>
12
+ // Enable 'Demographics and interest reports' in your analytics settings
13
+ // ga('require', 'displayfeatures');
14
+
15
+ // Enable 'Use enhanced link attribution' in your analytics settings
16
+ // ga('require', 'linkid', 'linkid.js');
17
+
18
+ ga('set', 'location', location.href.split('#')[0]);
19
+ ga('send', 'pageview', { 'title': document.title });
20
+ </script>
21
+ <% end %>
@@ -19,11 +19,10 @@
19
19
  <script
20
20
  src="//cdnjs.cloudflare.com/ajax/libs/respond.js/1.4.2/respond.js"></script>
21
21
  <![endif]-->
22
- <%= render 'layouts/google_analytics_snippet' %>
23
22
  </head>
24
23
 
25
24
  <body>
26
- <%= render 'layouts/google_analytics_tracker' %>
25
+ <%= render 'layouts/google_analytics_snippet' %>
27
26
  <header>
28
27
  <%= render 'layouts/navigation' %>
29
28
  </header>
data/lib/orats/version.rb CHANGED
@@ -1,4 +1,4 @@
1
1
  # set the version of this gem
2
2
  module Orats
3
- VERSION = '0.9.5'
3
+ VERSION = '0.9.6'
4
4
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: orats
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.5
4
+ version: 0.9.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nick Janetakis
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-08-17 00:00:00.000000000 Z
11
+ date: 2014-12-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thor
@@ -121,7 +121,6 @@ files:
121
121
  - lib/orats/templates/includes/new/rails/app/views/layouts/_flash.html.erb
122
122
  - lib/orats/templates/includes/new/rails/app/views/layouts/_footer.html.erb
123
123
  - lib/orats/templates/includes/new/rails/app/views/layouts/_google_analytics_snippet.html.erb
124
- - lib/orats/templates/includes/new/rails/app/views/layouts/_google_analytics_tracker.html.erb
125
124
  - lib/orats/templates/includes/new/rails/app/views/layouts/_navigation.html.erb
126
125
  - lib/orats/templates/includes/new/rails/app/views/layouts/_navigation_auth.html.erb
127
126
  - lib/orats/templates/includes/new/rails/app/views/layouts/_navigation_links.html.erb
@@ -178,3 +177,4 @@ summary: Opinionated rails application templates.
178
177
  test_files:
179
178
  - test/integration/cli_test.rb
180
179
  - test/test_helper.rb
180
+ has_rdoc:
@@ -1,4 +0,0 @@
1
- <script type="text/javascript">
2
- // This is added in the body to track both turbolinks and regular hits.
3
- _gaq.push(['_trackPageview']);
4
- </script>