anytime 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/lib/app/helpers/anytime_helper.rb +4 -4
- data/lib/config/routes.rb +2 -2
- metadata +9 -14
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 6c0c252648d000af4f587376637fa9217487916b
|
4
|
+
data.tar.gz: 6aa0326c8c1da9432a779454a516ed86884b3f8d
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 4e1c473f2cf14d06963be1b1d6297a3854e97d5e9adf05df469d9f78bb55201edf612b59595f7601c52396383bdbc0489943003d946fdc529e225096d81e02ce
|
7
|
+
data.tar.gz: 6d4272147b0e3ffb5907af497d627ea3c6a69064488928b788f6992d378c8efbbe20afbdc576020cea73b08e4373e9235f554d8f5190a1e84cb391033f5acdbf
|
@@ -3,7 +3,7 @@ module AnytimeHelper
|
|
3
3
|
if active_environments.include?(Rails.env)
|
4
4
|
form_content = date_selector.safe_concat(form_submitter)
|
5
5
|
form_content.safe_concat(unfreeze_button)
|
6
|
-
content_tag_string(:form, form_content, :
|
6
|
+
content_tag_string(:form, form_content, action: freeze_path, method: :post, class: 'anytime-form')
|
7
7
|
end
|
8
8
|
end
|
9
9
|
|
@@ -17,15 +17,15 @@ module AnytimeHelper
|
|
17
17
|
end
|
18
18
|
|
19
19
|
def unfreeze_button
|
20
|
-
"<a href=#{unfreeze_path}><input type='button' value='unfreeze'></a>"
|
20
|
+
"<a href=#{unfreeze_path} data-method='delete'><input type='button' value='unfreeze'></a>"
|
21
21
|
end
|
22
22
|
|
23
23
|
def freeze_path
|
24
|
-
url_for :
|
24
|
+
url_for controller: 'anytime', action: 'freeze'
|
25
25
|
end
|
26
26
|
|
27
27
|
def unfreeze_path
|
28
|
-
url_for :
|
28
|
+
url_for controller: 'anytime', action: 'unfreeze'
|
29
29
|
end
|
30
30
|
|
31
31
|
def active_environments
|
data/lib/config/routes.rb
CHANGED
@@ -4,8 +4,8 @@ require "active_support/core_ext/hash/slice"
|
|
4
4
|
module ActionDispatch::Routing
|
5
5
|
class Mapper
|
6
6
|
def routes_anytime_to(path_name)
|
7
|
-
match path_name.to_s => 'anytime#freeze'
|
8
|
-
match 'un' + path_name.to_s => 'anytime#unfreeze'
|
7
|
+
match path_name.to_s => 'anytime#freeze', via: :post
|
8
|
+
match 'un' + path_name.to_s => 'anytime#unfreeze', via: :delete
|
9
9
|
end
|
10
10
|
end
|
11
11
|
end
|
metadata
CHANGED
@@ -1,8 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: anytime
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
5
|
-
prerelease:
|
4
|
+
version: 0.2.1
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- Jack Chen
|
@@ -14,21 +13,18 @@ dependencies:
|
|
14
13
|
- !ruby/object:Gem::Dependency
|
15
14
|
name: timecop
|
16
15
|
requirement: !ruby/object:Gem::Requirement
|
17
|
-
none: false
|
18
16
|
requirements:
|
19
|
-
- -
|
17
|
+
- - '>='
|
20
18
|
- !ruby/object:Gem::Version
|
21
19
|
version: 0.6.0
|
22
20
|
type: :runtime
|
23
21
|
prerelease: false
|
24
22
|
version_requirements: !ruby/object:Gem::Requirement
|
25
|
-
none: false
|
26
23
|
requirements:
|
27
|
-
- -
|
24
|
+
- - '>='
|
28
25
|
- !ruby/object:Gem::Version
|
29
26
|
version: 0.6.0
|
30
|
-
description:
|
31
|
-
Rails
|
27
|
+
description: Fix to support Rails 4
|
32
28
|
email: aquajach@gmail.com
|
33
29
|
executables: []
|
34
30
|
extensions: []
|
@@ -42,26 +38,25 @@ files:
|
|
42
38
|
- lib/generators/install_generator.rb
|
43
39
|
homepage: http://rubygems.org/gems/anytime
|
44
40
|
licenses: []
|
41
|
+
metadata: {}
|
45
42
|
post_install_message:
|
46
43
|
rdoc_options: []
|
47
44
|
require_paths:
|
48
45
|
- lib
|
49
46
|
required_ruby_version: !ruby/object:Gem::Requirement
|
50
|
-
none: false
|
51
47
|
requirements:
|
52
|
-
- -
|
48
|
+
- - '>='
|
53
49
|
- !ruby/object:Gem::Version
|
54
50
|
version: '0'
|
55
51
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
56
|
-
none: false
|
57
52
|
requirements:
|
58
|
-
- -
|
53
|
+
- - '>='
|
59
54
|
- !ruby/object:Gem::Version
|
60
55
|
version: '0'
|
61
56
|
requirements: []
|
62
57
|
rubyforge_project:
|
63
|
-
rubygems_version:
|
58
|
+
rubygems_version: 2.0.6
|
64
59
|
signing_key:
|
65
|
-
specification_version:
|
60
|
+
specification_version: 4
|
66
61
|
summary: Add a class to client side widget for customization
|
67
62
|
test_files: []
|