clockwork_web 0.1.0 → 0.1.2

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: cb4507656be51be5803d15951b721188e59f5e6bc509d53746029c4b599f3482
4
- data.tar.gz: a904897c40fc10a1cf053b00ac28fd2e9c7b8a546428df7e90e8ce8228b61df2
3
+ metadata.gz: 2eb60c497c60709c71a9a43c23c97ef8148db358c0ec33d3a25eae6fcd50244a
4
+ data.tar.gz: 88ad19a325f8e1c6769b449ac2d5de1ee725fd085252661b10945f38741315fc
5
5
  SHA512:
6
- metadata.gz: 5e2a303c738ef6ede0a87b0a2c56baa6f0e0d5239d8131a21778ac223682d48502157f07e4df88e17e7070df4782250e477b83112aac88b132e52f59e750ab2a
7
- data.tar.gz: 7bbfb873995d0c30698573a719a33b40ddc5e4b3b706528d669fe29146836be8650c469702ef7624682fc5f1f63dd1fc73a3780c36c7fdb5794757a25e347889
6
+ metadata.gz: 1cc819fbc39fbd73577bda5acee3dd8fef5c3bc96ed8db58ce2e8f9bc63b81573a2238842e77c7655b6332244cadd37ea89a007106727d902389a6673daa3cfe
7
+ data.tar.gz: 920351232699c622ec591afe092e13dd6242b2dbf04f35baefc705fffedc8016c95e54260ed0838afb0b6d280cdbf7a150b96c069564fb0cf0fdcaca2223f49f
data/CHANGELOG.md CHANGED
@@ -1,11 +1,19 @@
1
- ## 0.1.0
1
+ ## 0.1.2 (2023-02-01)
2
+
3
+ - Fixed CSRF vulnerability with Rails < 5.2 - [more info](https://github.com/ankane/clockwork_web/issues/4)
4
+
5
+ ## 0.1.1 (2020-03-19)
6
+
7
+ - Fixed load error
8
+
9
+ ## 0.1.0 (2019-10-28)
2
10
 
3
11
  - Added `on_job_update` hook
4
12
 
5
- ## 0.0.5
13
+ ## 0.0.5 (2015-05-13)
6
14
 
7
15
  - Added `running_threshold` option
8
16
 
9
- ## 0.0.4
17
+ ## 0.0.4 (2015-03-15)
10
18
 
11
19
  - Better monitoring for multiple processes
data/LICENSE.txt CHANGED
@@ -1,4 +1,4 @@
1
- Copyright (c) 2015-2019 Andrew Kane
1
+ Copyright (c) 2015-2022 Andrew Kane
2
2
 
3
3
  MIT License
4
4
 
data/README.md CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  A web interface for Clockwork
4
4
 
5
- [View the demo](https://clockwork-web.herokuapp.com/)
5
+ [View the demo](https://clockwork.dokkuapp.com/)
6
6
 
7
7
  - see list of jobs
8
8
  - monitor jobs
@@ -15,7 +15,7 @@ A web interface for Clockwork
15
15
  Add this line to your application’s Gemfile:
16
16
 
17
17
  ```ruby
18
- gem 'clockwork_web'
18
+ gem "clockwork_web"
19
19
  ```
20
20
 
21
21
  And add it to your `config/routes.rb`.
@@ -44,7 +44,7 @@ ENV["CLOCKWORK_PASSWORD"] = "secret"
44
44
  #### Devise
45
45
 
46
46
  ```ruby
47
- authenticate :user, lambda {|user| user.admin? } do
47
+ authenticate :user, ->(user) { user.admin? } do
48
48
  mount ClockworkWeb::Engine, at: "clockwork"
49
49
  end
50
50
  ```
@@ -82,3 +82,12 @@ Everyone is encouraged to help improve this project. Here are a few ways you can
82
82
  - Fix bugs and [submit pull requests](https://github.com/ankane/clockwork_web/pulls)
83
83
  - Write, clarify, or fix documentation
84
84
  - Suggest or add new features
85
+
86
+ To get started with development:
87
+
88
+ ```sh
89
+ git clone https://github.com/ankane/clockwork_web.git
90
+ cd clockwork_web
91
+ bundle install
92
+ bundle exec rake test
93
+ ```
@@ -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
@@ -1,3 +1,3 @@
1
1
  module ClockworkWeb
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.2"
3
3
  end
data/lib/clockwork_web.rb CHANGED
@@ -2,7 +2,7 @@ require "clockwork_web/version"
2
2
 
3
3
  # dependencies
4
4
  require "clockwork"
5
- require "safely_block/core"
5
+ require "safely/core"
6
6
 
7
7
  # engine
8
8
  require "clockwork_web/engine"
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.0
4
+ version: 0.1.2
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: 2019-10-28 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
@@ -52,36 +52,8 @@ dependencies:
52
52
  - - ">="
53
53
  - !ruby/object:Gem::Version
54
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
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
@@ -115,8 +87,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
115
87
  - !ruby/object:Gem::Version
116
88
  version: '0'
117
89
  requirements: []
118
- rubygems_version: 3.0.3
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: []