fixme 6.1.0 → 6.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/ci.yml +26 -0
- data/README.md +3 -3
- data/fixme.gemspec +1 -0
- data/lib/fixme/version.rb +1 -1
- data/spec/fixme_spec.rb +3 -0
- metadata +6 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 16e16af88b6b78de4b441bad22260a6ebadc1bc2daaeff1a1244c43b715da874
|
4
|
+
data.tar.gz: cdfc448199b5ddeb1ae6f7efd6fb801002b40f994dc78fc63309183f6f347c85
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 320d27cacd701df672ec5fb7dcbcb31feb9017fd4e06d294828a94bc4775a566be772806076f5d4c96f2cd23a05092d763648f23179957dd8305c2a25e5b5f3e
|
7
|
+
data.tar.gz: 91ed853d3d34ea23789c2f042c1db46c430303fa4ea07b55fae8e25d9602478a40eba6624b8d3a827c99e7c758fd2d045e75d1c452c81433842a6f4ff19b4e90
|
@@ -0,0 +1,26 @@
|
|
1
|
+
name: Ruby CI
|
2
|
+
|
3
|
+
on:
|
4
|
+
push:
|
5
|
+
branches: [ master ]
|
6
|
+
pull_request:
|
7
|
+
branches: [ master ]
|
8
|
+
|
9
|
+
jobs:
|
10
|
+
test:
|
11
|
+
|
12
|
+
runs-on: ubuntu-latest
|
13
|
+
|
14
|
+
strategy:
|
15
|
+
matrix:
|
16
|
+
ruby-version: ["3.0", "2.7", "2.6"]
|
17
|
+
|
18
|
+
steps:
|
19
|
+
- uses: actions/checkout@v2
|
20
|
+
- name: Set up Ruby ${{ matrix.ruby-version }}
|
21
|
+
uses: ruby/setup-ruby@ae9cb3b565e36682a2c6045e4f664388da4c73aa
|
22
|
+
with:
|
23
|
+
ruby-version: ${{ matrix.ruby-version }}
|
24
|
+
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
|
25
|
+
- name: Run tests
|
26
|
+
run: bundle exec rake
|
data/README.md
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
FIXME comments that raise after a certain point in time:
|
4
4
|
|
5
|
-
```
|
5
|
+
```ruby
|
6
6
|
FIXME "2014-07-31: Stop hard-coding currency."
|
7
7
|
currency = "USD"
|
8
8
|
```
|
@@ -30,7 +30,7 @@ When these exceptions trigger on your CI server they stop the line, blocking you
|
|
30
30
|
|
31
31
|
So you can configure the library to do something other than raise:
|
32
32
|
|
33
|
-
```
|
33
|
+
```ruby
|
34
34
|
# In a Rails project, this might be in config/initializers/fixme.rb
|
35
35
|
Fixme.explode_with do |details|
|
36
36
|
YourOwnCodeOrSomeLibrary.email_developers(details.full_message)
|
@@ -42,7 +42,7 @@ There's also `details.date`, `details.due_days_ago`, `details.message` and `deta
|
|
42
42
|
|
43
43
|
You can call `Fixme.raise_from(details)` to get the default behavior, if you want that under certain conditions:
|
44
44
|
|
45
|
-
```
|
45
|
+
```ruby
|
46
46
|
Fixme.explode_with do |details|
|
47
47
|
if details.due_days_ago > 5
|
48
48
|
Fixme.raise_from(details)
|
data/fixme.gemspec
CHANGED
@@ -11,6 +11,7 @@ Gem::Specification.new do |spec|
|
|
11
11
|
spec.summary = %q{Comments that raise after a certain point in time.}
|
12
12
|
spec.homepage = ""
|
13
13
|
spec.license = "MIT"
|
14
|
+
spec.metadata = { "rubygems_mfa_required" => "true" }
|
14
15
|
|
15
16
|
spec.files = `git ls-files -z`.split("\x0")
|
16
17
|
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
|
data/lib/fixme/version.rb
CHANGED
data/spec/fixme_spec.rb
CHANGED
@@ -107,16 +107,19 @@ describe Fixme, "#FIXME" do
|
|
107
107
|
end
|
108
108
|
|
109
109
|
it "raises in the 'test' environment" do
|
110
|
+
stub_env "RACK_ENV", nil
|
110
111
|
stub_env "APP_ENV", "test"
|
111
112
|
expect_to_raise
|
112
113
|
end
|
113
114
|
|
114
115
|
it "raises in the 'development' environment" do
|
116
|
+
stub_env "RACK_ENV", nil
|
115
117
|
stub_env "APP_ENV", "development"
|
116
118
|
expect_to_raise
|
117
119
|
end
|
118
120
|
|
119
121
|
it "does not raise in other environments" do
|
122
|
+
stub_env "RACK_ENV", nil
|
120
123
|
stub_env "APP_ENV", "production"
|
121
124
|
expect_not_to_raise
|
122
125
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fixme
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 6.1.
|
4
|
+
version: 6.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Henrik Nyh
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2021-11-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -73,6 +73,7 @@ executables: []
|
|
73
73
|
extensions: []
|
74
74
|
extra_rdoc_files: []
|
75
75
|
files:
|
76
|
+
- ".github/workflows/ci.yml"
|
76
77
|
- ".gitignore"
|
77
78
|
- CHANGELOG.md
|
78
79
|
- Gemfile
|
@@ -85,7 +86,8 @@ files:
|
|
85
86
|
homepage: ''
|
86
87
|
licenses:
|
87
88
|
- MIT
|
88
|
-
metadata:
|
89
|
+
metadata:
|
90
|
+
rubygems_mfa_required: 'true'
|
89
91
|
post_install_message:
|
90
92
|
rdoc_options: []
|
91
93
|
require_paths:
|
@@ -101,7 +103,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
101
103
|
- !ruby/object:Gem::Version
|
102
104
|
version: '0'
|
103
105
|
requirements: []
|
104
|
-
rubygems_version: 3.
|
106
|
+
rubygems_version: 3.2.31
|
105
107
|
signing_key:
|
106
108
|
specification_version: 4
|
107
109
|
summary: Comments that raise after a certain point in time.
|