metafrazo 0.1.4 → 0.1.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +36 -6
- data/lib/metafrazo/git_diff_generator.rb +2 -1
- data/lib/metafrazo/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d7bc98cf5a6cbd94080d31dcf716fe67924a5fe3
|
4
|
+
data.tar.gz: 6fd566e07763be7c50c8773ab364c39e03858a05
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 85dffeed819ed7489f7c22f16939a2bf519896cd2e93e3e54eb89312d6c94b8f2e58142b8cab4c444aa2b2341fd731089c92904d5141d55b647acf2d47357929
|
7
|
+
data.tar.gz: f909056dbc2d7db1cc76a004ffa06548f9ea544f052bda45a4044ef4b2ca18dde6fee301b7772aa924de0c8a9668cbb75746178dc81dead9e97c4706cf728bfe
|
data/README.md
CHANGED
@@ -1,8 +1,6 @@
|
|
1
1
|
# Metafrazo
|
2
2
|
|
3
|
-
Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/metafrazo`. To experiment with that code, run `bin/console` for an interactive prompt.
|
4
3
|
|
5
|
-
TODO: Delete this and the text above, and describe your gem
|
6
4
|
|
7
5
|
## Installation
|
8
6
|
|
@@ -20,9 +18,42 @@ Or install it yourself as:
|
|
20
18
|
|
21
19
|
$ gem install metafrazo
|
22
20
|
|
23
|
-
##
|
21
|
+
## Configuration
|
22
|
+
```ruby
|
23
|
+
# basic
|
24
|
+
|
25
|
+
Metafrazo.configure do |config|
|
26
|
+
config.usernames = ["@mikekavouras"] # who gets notified?
|
27
|
+
config.token = "4567829390823jr32rj" # access token
|
28
|
+
config.path = "some/path/" # Path or file to watch. Must be relative to the root directory
|
29
|
+
end
|
30
|
+
```
|
31
|
+
|
32
|
+
```ruby
|
33
|
+
# advanced
|
34
|
+
|
35
|
+
Metafrazo.configure do |config|
|
36
|
+
config.usernames = ["@mikekavouras"]
|
37
|
+
config.token = "384759828923rji923j23"
|
38
|
+
config.repos = {
|
39
|
+
"username/reponame" => {
|
40
|
+
compare_branch: "develop",
|
41
|
+
path: "some/path"
|
42
|
+
},
|
43
|
+
"username/other_reponame" => {
|
44
|
+
path: "other/path/somewhere"
|
45
|
+
}
|
46
|
+
}
|
47
|
+
end
|
48
|
+
```
|
49
|
+
|
50
|
+
By default, Metafrazo assumes your base branch (`compare_path`) is `master`.
|
24
51
|
|
25
|
-
|
52
|
+
## Usage
|
53
|
+
```ruby
|
54
|
+
Metafrazo.run(payload) # payload = json from github webook
|
55
|
+
```
|
56
|
+
returns `true` if there are changes to the specified paths
|
26
57
|
|
27
58
|
## Development
|
28
59
|
|
@@ -32,8 +63,7 @@ To install this gem onto your local machine, run `bundle exec rake install`. To
|
|
32
63
|
|
33
64
|
## Contributing
|
34
65
|
|
35
|
-
Bug reports and pull requests are welcome on GitHub at https://github.com/
|
36
|
-
|
66
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/mikekavouras/metafrazo.
|
37
67
|
|
38
68
|
## License
|
39
69
|
|
data/lib/metafrazo/version.rb
CHANGED