fitter-happier 0.0.4 → 0.0.5

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: 081e95fef745ac3d5e00620d15fc64413a740124
4
- data.tar.gz: b1d78ff499a607729f9a98a98f996be7302be8f1
3
+ metadata.gz: 7a00a9fbb03c8a32b7cf5545de15c3f25394f9ab
4
+ data.tar.gz: 91de8f100a8a2acd2ae11ef5f8a85d224c93d507
5
5
  SHA512:
6
- metadata.gz: 0287146aa2a0e9e559bb575e3d35cec58e9343c7675245f0d81d044427d256b9f2ddae53185347dcc87846f921c494a7d1ff51ea79e833afc6faf90057b31f36
7
- data.tar.gz: 9a752e11eadddeeadf95a9caded256533d0f26f2516e8f3ec0332ee6118267e97ea5ce86efa90414679ee33d05f1bb676eee555c0c659e1ffdedff5980318fd1
6
+ metadata.gz: 71d44fd0e23006cb58f6e9cf5c2f16ffe481b925720d776cb2bc25c15088b22f5ffcfa926dee9899699169d39d4e41e4cdd24f7633ef27b4ee9874ed8d577e6e
7
+ data.tar.gz: 8433553e1502a515155f65190a9de9d6a319d91321e101fa38c8222809d12e96a5fec318bce671098313f1336e79cc64257e704e585277c3da56bf9b9cc19243
data/CHANGELOG CHANGED
@@ -1,5 +1,9 @@
1
1
  CHANGELOG
2
2
  =========
3
+ Version 0.0.5
4
+ * Provides support for Rails 4
5
+ Version 0.0.4
6
+ * Fixes an incompatibility with postgresql
3
7
  Version 0.0.3
4
8
  * Provides Support for Rails 3.2
5
9
 
@@ -1,30 +1,30 @@
1
1
  class FitterHappierController < ActionController::Base
2
2
  layout nil
3
-
3
+
4
4
  def index
5
5
  render(:text => "FitterHappier Site Check Passed\n")
6
6
  end
7
-
7
+
8
8
  def site_check
9
9
  time = Time.now.to_formatted_s(:rfc822)
10
10
  render(:text => "FitterHappier Site Check Passed @ #{time}\n")
11
11
  end
12
-
12
+
13
13
  def site_and_database_check
14
14
  table_name = (Rails::VERSION::STRING >= '2.1.0' ? 'schema_migrations' : 'schema_info')
15
- query = "SELECT max(lpad(version, 20, 0)) FROM #{table_name}"
15
+ query = "SELECT max(lpad(version, 20, '0')) FROM #{table_name}"
16
16
  version = ActiveRecord::Base.connection.select_value(query).to_i
17
17
  time = Time.now.to_formatted_s(:rfc822)
18
18
  render(:text => "FitterHappier Site and Database Check Passed @ #{time}\nSchema Version: #{version}\n")
19
19
  end
20
-
20
+
21
21
  private
22
-
22
+
23
23
  def process_with_silence(*args)
24
24
  logger.quietly do
25
25
  process_without_silence(*args)
26
26
  end
27
27
  end
28
-
28
+
29
29
  alias_method_chain :process, :silence
30
30
  end
@@ -1,5 +1,5 @@
1
1
  Rails.application.routes.draw do
2
- match '/fitter_happier' => 'fitter_happier#index'
3
- match '/fitter_happier/site_check' => 'fitter_happier#site_check'
4
- match '/fitter_happier/site_and_database_check' => 'fitter_happier#site_and_database_check'
2
+ get '/fitter_happier' => 'fitter_happier#index'
3
+ get '/fitter_happier/site_check' => 'fitter_happier#site_check'
4
+ get '/fitter_happier/site_and_database_check' => 'fitter_happier#site_and_database_check'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fitter-happier
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jon Moses