anytime 0.0.2 → 0.0.3

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.
@@ -0,0 +1,11 @@
1
+ class AnytimeController < ApplicationController
2
+
3
+ def freeze
4
+ Anytime.freeze_at(params[:year].to_i, params[:month].to_i, params[:day].to_i, params[:hour].to_i, params[:minute].to_i, params[:second].to_i)
5
+ redirect_to :back
6
+ end
7
+
8
+ def unfreeze
9
+ Anytime.unfreeze!
10
+ end
11
+ end
data/config/routes.rb ADDED
@@ -0,0 +1,4 @@
1
+ TimeApp::Application.routes.draw do
2
+
3
+ match 'freeze' => 'anytime#freeze'
4
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: anytime
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -35,6 +35,8 @@ extensions: []
35
35
  extra_rdoc_files: []
36
36
  files:
37
37
  - lib/anytime.rb
38
+ - app/controllers/anytime_controller.rb
39
+ - config/routes.rb
38
40
  homepage: http://rubygems.org/gems/anytime
39
41
  licenses: []
40
42
  post_install_message: