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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: aedad3a0d9e443bc54826343cbc7f6fe816721fa
4
- data.tar.gz: 41ee979f5d60cb4f3ea36406db18ea8e52e84088
3
+ metadata.gz: d7bc98cf5a6cbd94080d31dcf716fe67924a5fe3
4
+ data.tar.gz: 6fd566e07763be7c50c8773ab364c39e03858a05
5
5
  SHA512:
6
- metadata.gz: 4b1ec20371fa123c39928e4fddb88245169b2d79083d314127e36d30c93e79b56bf95a383d26620cffb2cdef3cd65724bffed1fc79fbb58bed4229274fd65bad
7
- data.tar.gz: e7a93c8aec42f412ba25d5d19ad48df2f33ff0e4dbddb28a537d10ea93a4e17e93d49105f3fa6c17ddd20b2eba34be0b6c748b6dff3623c010d9d6fa6ab8d359
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
- ## Usage
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
- TODO: Write usage instructions here
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/[USERNAME]/metafrazo.
36
-
66
+ Bug reports and pull requests are welcome on GitHub at https://github.com/mikekavouras/metafrazo.
37
67
 
38
68
  ## License
39
69
 
@@ -9,8 +9,9 @@ module Metafrazo
9
9
 
10
10
  def generate
11
11
  init_git unless git_init?
12
- get_diff
12
+ diff = get_diff
13
13
  Dir.chdir(@root_dir)
14
+ diff
14
15
  end
15
16
 
16
17
  private
@@ -1,3 +1,3 @@
1
1
  module Metafrazo
2
- VERSION = "0.1.4"
2
+ VERSION = "0.1.5"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: metafrazo
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.4
4
+ version: 0.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mike Kavouras