clockwork_web 0.1.1 → 0.2.0

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
  SHA256:
3
- metadata.gz: f4cd36c6038fc2311a4d3f32bd8c1b18ce1d394c2001141c3ec6bb3a1efb7a47
4
- data.tar.gz: 5edfd3cef2ad94be65e220ed2fc3aaf0c0de9debc0c969a0c98451da49f84ac8
3
+ metadata.gz: 74d73597a4897bf13454c224f641f29f33f4eb7f52f601d61310fb49c633e6da
4
+ data.tar.gz: ba1c41be2a4ca03b4c3a96988683b79223dcfc5a65c94ae6608249acf3ae4a15
5
5
  SHA512:
6
- metadata.gz: cb4d7be71f0e322e0688139d628976a9e7cf04ad10def85e0058cea39117619d43837869af6edecb56810ffaedf9da4893627b97e976da4eff116677a7583d0d
7
- data.tar.gz: 4cdb54ced5a0107a530c40915c468acc50de9dd813f448cafc6f013d53e2f8042fad886e5999f71ea6fae14ee57ac31cb70580143812e24c595f9d8736827ee9
6
+ metadata.gz: 4c88b828b6c387fba8cbe67d874df5eea3ed0b5464701be2ef21be3ecbc311c713e50e01885b3e24e9b3b654321ebba18a0cdb287eeff2e9b1bf7f89075d3e14
7
+ data.tar.gz: 2597b48a72c38ae3cd9fda8abc068a0767a857489c018a3398d1ba3b1978cfbd75c13a3a3fdb5b5534de30c108c0c80c458d89836a1ffd8a45fdf55a2142a6ec
data/CHANGELOG.md CHANGED
@@ -1,3 +1,11 @@
1
+ ## 0.2.0 (2023-02-01)
2
+
3
+ - Dropped support for Ruby < 2.7 and Rails < 6
4
+
5
+ ## 0.1.2 (2023-02-01)
6
+
7
+ - Fixed CSRF vulnerability with Rails < 5.2 - [more info](https://github.com/ankane/clockwork_web/issues/4)
8
+
1
9
  ## 0.1.1 (2020-03-19)
2
10
 
3
11
  - Fixed load error
data/LICENSE.txt CHANGED
@@ -1,4 +1,4 @@
1
- Copyright (c) 2015-2020 Andrew Kane
1
+ Copyright (c) 2015-2022 Andrew Kane
2
2
 
3
3
  MIT License
4
4
 
data/README.md CHANGED
@@ -10,12 +10,14 @@ A web interface for Clockwork
10
10
 
11
11
  :tangerine: Battle-tested at [Instacart](https://www.instacart.com/opensource)
12
12
 
13
+ [![Build Status](https://github.com/ankane/clockwork_web/workflows/build/badge.svg?branch=master)](https://github.com/ankane/clockwork_web/actions)
14
+
13
15
  ## Installation
14
16
 
15
17
  Add this line to your application’s Gemfile:
16
18
 
17
19
  ```ruby
18
- gem 'clockwork_web'
20
+ gem "clockwork_web"
19
21
  ```
20
22
 
21
23
  And add it to your `config/routes.rb`.
@@ -44,7 +46,7 @@ ENV["CLOCKWORK_PASSWORD"] = "secret"
44
46
  #### Devise
45
47
 
46
48
  ```ruby
47
- authenticate :user, lambda {|user| user.admin? } do
49
+ authenticate :user, ->(user) { user.admin? } do
48
50
  mount ClockworkWeb::Engine, at: "clockwork"
49
51
  end
50
52
  ```
@@ -82,3 +84,12 @@ Everyone is encouraged to help improve this project. Here are a few ways you can
82
84
  - Fix bugs and [submit pull requests](https://github.com/ankane/clockwork_web/pulls)
83
85
  - Write, clarify, or fix documentation
84
86
  - Suggest or add new features
87
+
88
+ To get started with development:
89
+
90
+ ```sh
91
+ git clone https://github.com/ankane/clockwork_web.git
92
+ cd clockwork_web
93
+ bundle install
94
+ bundle exec rake test
95
+ ```
@@ -3,6 +3,8 @@ module ClockworkWeb
3
3
  layout false
4
4
  helper ClockworkWeb::HomeHelper
5
5
 
6
+ protect_from_forgery with: :exception
7
+
6
8
  http_basic_authenticate_with name: ENV["CLOCKWORK_USERNAME"], password: ENV["CLOCKWORK_PASSWORD"] if ENV["CLOCKWORK_PASSWORD"]
7
9
 
8
10
  def index
@@ -15,7 +15,7 @@ module ClockworkWeb
15
15
 
16
16
  def last_run(time)
17
17
  if time
18
- time_ago_in_words(time)
18
+ "#{time_ago_in_words(time, include_seconds: true)} ago"
19
19
  end
20
20
  end
21
21
 
@@ -1,3 +1,3 @@
1
1
  module ClockworkWeb
2
- VERSION = "0.1.1"
2
+ VERSION = "0.2.0"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: clockwork_web
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrew Kane
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-03-20 00:00:00.000000000 Z
11
+ date: 2023-02-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: clockwork
@@ -44,44 +44,16 @@ dependencies:
44
44
  requirements:
45
45
  - - ">="
46
46
  - !ruby/object:Gem::Version
47
- version: '0'
47
+ version: '6'
48
48
  type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
52
  - - ">="
53
53
  - !ruby/object:Gem::Version
54
- version: '0'
55
- - !ruby/object:Gem::Dependency
56
- name: bundler
57
- requirement: !ruby/object:Gem::Requirement
58
- requirements:
59
- - - ">="
60
- - !ruby/object:Gem::Version
61
- version: '0'
62
- type: :development
63
- prerelease: false
64
- version_requirements: !ruby/object:Gem::Requirement
65
- requirements:
66
- - - ">="
67
- - !ruby/object:Gem::Version
68
- version: '0'
69
- - !ruby/object:Gem::Dependency
70
- name: rake
71
- requirement: !ruby/object:Gem::Requirement
72
- requirements:
73
- - - ">="
74
- - !ruby/object:Gem::Version
75
- version: '0'
76
- type: :development
77
- prerelease: false
78
- version_requirements: !ruby/object:Gem::Requirement
79
- requirements:
80
- - - ">="
81
- - !ruby/object:Gem::Version
82
- version: '0'
83
- description:
84
- email: andrew@chartkick.com
54
+ version: '6'
55
+ description:
56
+ email: andrew@ankane.org
85
57
  executables: []
86
58
  extensions: []
87
59
  extra_rdoc_files: []
@@ -100,7 +72,7 @@ homepage: https://github.com/ankane/clockwork_web
100
72
  licenses:
101
73
  - MIT
102
74
  metadata: {}
103
- post_install_message:
75
+ post_install_message:
104
76
  rdoc_options: []
105
77
  require_paths:
106
78
  - lib
@@ -108,15 +80,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
108
80
  requirements:
109
81
  - - ">="
110
82
  - !ruby/object:Gem::Version
111
- version: '2.4'
83
+ version: '2.7'
112
84
  required_rubygems_version: !ruby/object:Gem::Requirement
113
85
  requirements:
114
86
  - - ">="
115
87
  - !ruby/object:Gem::Version
116
88
  version: '0'
117
89
  requirements: []
118
- rubygems_version: 3.1.2
119
- signing_key:
90
+ rubygems_version: 3.4.1
91
+ signing_key:
120
92
  specification_version: 4
121
93
  summary: A web interface for Clockwork
122
94
  test_files: []