accesslint-ci 0.1.8 → 0.1.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +21 -2
- data/lib/accesslint/ci/log_manager.rb +7 -3
- data/lib/accesslint/ci/scanner.rb +0 -1
- data/lib/accesslint/ci/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4a97ae31d32595dc95e920a744c246bae5df1df8
|
4
|
+
data.tar.gz: 4a36ba3cd913bb11ed4068faf0e739fec1fd2058
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 954fc21cfe1cf461a5c6270c33ccfba76872172673ad98bad36ec51c7e9e6fb7b092ee2ec038df979fd2fe9c1851114daf88990c11a428d119fb2f3446c96efc
|
7
|
+
data.tar.gz: df340b89a26bef3426a65929b87d9f1e10724015661152c4ae33c80a76d4e29d705bb7561c2ab70d26fd3c59f32d9e373372c911ba85df244bf0ce6ce61e4d68
|
data/README.md
CHANGED
@@ -11,6 +11,8 @@ the pull request that initiated the build in CircleCI.
|
|
11
11
|
|
12
12
|
## Installation
|
13
13
|
|
14
|
+
### Circle CI
|
15
|
+
|
14
16
|
1. Set up your CircleCI environment (API tokens for CircleCI and GitHub, artifacts)
|
15
17
|
1. Install dependencies (nodejs, `accesslint-cli`, `accesslint-ci`)
|
16
18
|
1. Start a development server
|
@@ -37,11 +39,28 @@ dependencies:
|
|
37
39
|
|
38
40
|
test:
|
39
41
|
post:
|
40
|
-
- bundle exec rails server
|
42
|
+
- bundle exec rails server -d -p 3000
|
41
43
|
- accesslint-ci scan http://localhost:3000
|
42
44
|
```
|
43
45
|
|
46
|
+
### TravisCI, Jenkins, etc.
|
47
|
+
|
48
|
+
AccessLint CI only works in CircleCI right now. See https://github.com/accesslint/accesslint-ci/issues/15
|
49
|
+
|
44
50
|
## License
|
45
51
|
|
46
|
-
|
52
|
+
AccessLint CI is Copyright © 2016 thoughtbot, inc. It is free software, and may be
|
53
|
+
redistributed under the terms specified by the [MIT License](http://opensource.org/licenses/MIT).
|
54
|
+
|
55
|
+
## About thoughtbot
|
56
|
+
|
57
|
+
![thoughtbot](https://thoughtbot.com/logo.png)
|
58
|
+
|
59
|
+
AccessLint is maintained and funded by thoughtbot.
|
60
|
+
|
61
|
+
We love open source software!
|
62
|
+
See [our other projects][community] or
|
63
|
+
[hire us][hire] to design, develop, and grow your product.
|
47
64
|
|
65
|
+
[community]: https://thoughtbot.com/tools?utm_source=github+accesslint
|
66
|
+
[hire]: https://thoughtbot.com/hire-us?utm_source=github+accesslint
|
@@ -21,9 +21,7 @@ module Accesslint
|
|
21
21
|
private
|
22
22
|
|
23
23
|
def artifact_url
|
24
|
-
|
25
|
-
|
26
|
-
artifact = @artifacts.first do |artifact|
|
24
|
+
artifact = artifacts.first do |artifact|
|
27
25
|
artifact["path"].end_with?("accesslint.log")
|
28
26
|
end
|
29
27
|
|
@@ -34,6 +32,12 @@ module Accesslint
|
|
34
32
|
end
|
35
33
|
end
|
36
34
|
|
35
|
+
def artifacts
|
36
|
+
@artifacts ||= JSON.parse(RestClient.get("#{artifacts_uri}?#{query}"))
|
37
|
+
rescue RestClient::NotFound
|
38
|
+
raise MissingArtifactError.new("No existing artifacts.")
|
39
|
+
end
|
40
|
+
|
37
41
|
def artifacts_uri
|
38
42
|
URI.join(
|
39
43
|
"https://circleci.com/",
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: accesslint-ci
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Cameron Cundiff
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-09-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|