start 0.0.6 → 0.0.7

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: 58f131646ed53f0d57a66a142ad3f49e39f1c2fb
4
- data.tar.gz: a9356a8b39feefe41ef1c47b9581225f8f7bd03b
3
+ metadata.gz: 34974b8b86d56e440ba02f2b21a5701b101883f2
4
+ data.tar.gz: 7823b1568057250c7eabcf77e9a85167c214e82d
5
5
  SHA512:
6
- metadata.gz: 8aca227ab004a5d9482c5659b0eb51ca84854c56ae94320289e5ba740af7620a169aea7b0b8655320c7e0052962b74410c9bb748a9070f637a2c880978981d88
7
- data.tar.gz: fc3130424a5a53d02fcd415af285eb08c9422b8e683f0de2a5423147a3dd90eef2bc6990753b4bac0a482f5d23e38dcf9000772dcee1f9e7500356ee140c9fc1
6
+ metadata.gz: eaf57948b27e6dc20239f1e5fe2115db63e5048178928d55a763cb7cf57cb047f8e4c757b6108b71aa51583c0072af3f4a16da05c2da244cf127ea78f63607f2
7
+ data.tar.gz: 309b3393413656d80ff32354326c0b9ab359e38ad39304f1179c1dd6dd4b5397ac68ec359d7e390adade52d335cd74fe5fb665963467738bcceeb35ddba2edbc
@@ -0,0 +1,11 @@
1
+ class Start::HerokuWakeUpGenerator < Rails::Generators::Base
2
+ source_root File.expand_path("../templates", __FILE__)
3
+
4
+ def add_gems
5
+ gem 'rufus-scheduler', '~> 2.0.19', group: :production
6
+ end
7
+
8
+ def copy_files
9
+ copy_file 'config/initializers/heroku_wake_up.rb', 'config/initializers/heroku_wake_up.rb'
10
+ end
11
+ end
@@ -0,0 +1,11 @@
1
+ if Rails.env.production?
2
+ require 'rufus/scheduler'
3
+ scheduler = Rufus::Scheduler.start_new
4
+
5
+ scheduler.every '10m' do
6
+ require 'net/http'
7
+ require 'uri'
8
+ url = "http://#{ENV['DOMAIN']}"
9
+ Net::HTTP.get_response(URI.parse(url))
10
+ end
11
+ end
@@ -1,4 +1,4 @@
1
- class LocalesGenerator < Rails::Generators::Base
1
+ class Start::LocalesGenerator < Rails::Generators::Base
2
2
  source_root File.expand_path("../templates", __FILE__)
3
3
 
4
4
  def copy_files
@@ -1,4 +1,4 @@
1
- class SlimGenerator < Rails::Generators::Base
1
+ class Start::SlimGenerator < Rails::Generators::Base
2
2
  source_root File.expand_path("../templates", __FILE__)
3
3
 
4
4
  def add_gems
@@ -1,4 +1,4 @@
1
- class UnicornGenerator < Rails::Generators::Base
1
+ class Start::UnicornGenerator < Rails::Generators::Base
2
2
  source_root File.expand_path("../templates", __FILE__)
3
3
 
4
4
  def add_gems
data/lib/start/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Start
2
- VERSION = "0.0.6"
2
+ VERSION = "0.0.7"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: start
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.6
4
+ version: 0.0.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Julio Protzek
@@ -39,17 +39,19 @@ executables: []
39
39
  extensions: []
40
40
  extra_rdoc_files: []
41
41
  files:
42
- - lib/generators/locales/locales_generator.rb
43
- - lib/generators/locales/templates/config/locales/devise.pt-br.yml
44
- - lib/generators/locales/templates/config/locales/pt-br.yml
45
- - lib/generators/locales/templates/config/locales/simple_form.pt-br.yml
46
- - lib/generators/slim/slim_generator.rb
47
- - lib/generators/slim/templates/application.html.slim
48
- - lib/generators/unicorn/templates/config/initializers/timeout.rb
49
- - lib/generators/unicorn/templates/config/unicorn.rb
50
- - lib/generators/unicorn/templates/environment
51
- - lib/generators/unicorn/templates/Procfile
52
- - lib/generators/unicorn/unicorn_generator.rb
42
+ - lib/generators/start/heroku_wake_up/heroku_wake_up_generator.rb
43
+ - lib/generators/start/heroku_wake_up/templates/config/initializers/heroku_wake_up.rb
44
+ - lib/generators/start/locales/locales_generator.rb
45
+ - lib/generators/start/locales/templates/config/locales/devise.pt-br.yml
46
+ - lib/generators/start/locales/templates/config/locales/pt-br.yml
47
+ - lib/generators/start/locales/templates/config/locales/simple_form.pt-br.yml
48
+ - lib/generators/start/slim/slim_generator.rb
49
+ - lib/generators/start/slim/templates/application.html.slim
50
+ - lib/generators/start/unicorn/templates/config/initializers/timeout.rb
51
+ - lib/generators/start/unicorn/templates/config/unicorn.rb
52
+ - lib/generators/start/unicorn/templates/environment
53
+ - lib/generators/start/unicorn/templates/Procfile
54
+ - lib/generators/start/unicorn/unicorn_generator.rb
53
55
  - lib/start/version.rb
54
56
  - lib/start.rb
55
57
  - lib/tasks/start_tasks.rake