clockwork_web 0.1.1 → 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: f4cd36c6038fc2311a4d3f32bd8c1b18ce1d394c2001141c3ec6bb3a1efb7a47
4
- data.tar.gz: 5edfd3cef2ad94be65e220ed2fc3aaf0c0de9debc0c969a0c98451da49f84ac8
3
+ metadata.gz: 2eb60c497c60709c71a9a43c23c97ef8148db358c0ec33d3a25eae6fcd50244a
4
+ data.tar.gz: 88ad19a325f8e1c6769b449ac2d5de1ee725fd085252661b10945f38741315fc
5
5
  SHA512:
6
- metadata.gz: cb4d7be71f0e322e0688139d628976a9e7cf04ad10def85e0058cea39117619d43837869af6edecb56810ffaedf9da4893627b97e976da4eff116677a7583d0d
7
- data.tar.gz: 4cdb54ced5a0107a530c40915c468acc50de9dd813f448cafc6f013d53e2f8042fad886e5999f71ea6fae14ee57ac31cb70580143812e24c595f9d8736827ee9
6
+ metadata.gz: 1cc819fbc39fbd73577bda5acee3dd8fef5c3bc96ed8db58ce2e8f9bc63b81573a2238842e77c7655b6332244cadd37ea89a007106727d902389a6673daa3cfe
7
+ data.tar.gz: 920351232699c622ec591afe092e13dd6242b2dbf04f35baefc705fffedc8016c95e54260ed0838afb0b6d280cdbf7a150b96c069564fb0cf0fdcaca2223f49f
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
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
+
1
5
  ## 0.1.1 (2020-03-19)
2
6
 
3
7
  - 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
@@ -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.1"
2
+ VERSION = "0.1.2"
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.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: 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
@@ -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.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: []