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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 71245614cf5f21d2d77ce0e951134996d2f61415
4
- data.tar.gz: 4311fc38dbd9bd4668174fbf9fc000e3f3c669d1
3
+ metadata.gz: 4a97ae31d32595dc95e920a744c246bae5df1df8
4
+ data.tar.gz: 4a36ba3cd913bb11ed4068faf0e739fec1fd2058
5
5
  SHA512:
6
- metadata.gz: 89aad4f762a01731e423fdd45fe740dce27b75cdaa141eecd1b8c859f79987db7c2669d762a857b40ad8bacf4a96d01e7b67bc0ec5435902cb36b9502041a9be
7
- data.tar.gz: 60404d58593e824e0f8805036fe93277d5229e25498816786b6887c326f43bed99cdcecbcba13e6c6939ec83ec60c7f330956a86f433daf4a89e61bd83f52942
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
- The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
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
- @artifacts = JSON.parse(RestClient.get("#{artifacts_uri}?#{query}"))
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/",
@@ -62,7 +62,6 @@ module Accesslint
62
62
  gif
63
63
  ico
64
64
  jpg
65
- jpg
66
65
  js
67
66
  png
68
67
  svg
@@ -1,5 +1,5 @@
1
1
  module Accesslint
2
2
  module Ci
3
- VERSION = "0.1.8"
3
+ VERSION = "0.1.9"
4
4
  end
5
5
  end
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.8
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-08-27 00:00:00.000000000 Z
11
+ date: 2016-09-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler