mutx 0.2.8 → 0.2.9

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: 53dd9362c79dd087f0f3342128442c859d9fa8a5
4
- data.tar.gz: 6fbbf9e0df11754f8c02f552307f835b911ccc58
3
+ metadata.gz: 14cfe0441e90c48a321dc4a09c5d63a87c873099
4
+ data.tar.gz: 0d2d36fc710b1c04b5629012d327fa44de2a016f
5
5
  SHA512:
6
- metadata.gz: c3447515919f113d8dca7459be9213174710946a8ec48cc4918f4c9bae28db2ef46b578a0b87770004c8096b5c840fbefe510b0b908e1e9d5d0ffe14973a31b6
7
- data.tar.gz: d9e63d688b45699cb8f61fb9ba6c1144e480a92cb65600a77094b073e3b06cba06f6687fa30c0f817337b4ebdebd6683e369e1064411ecf37019b953a4021f44
6
+ metadata.gz: a20ba078950f24e9524e2707b0ad47e0df8bc111373f6a1f58c7c183646908fba784115958bd9acc03d7f588232622e120cbf5b5d5b5ccb40385480796d6227f
7
+ data.tar.gz: c0082a8d1337154b383f0202207b38264d99036d3fb92e2f43398f9d24d07b34e6cffed79272adac5946d8c251a190bc42518a256623eb1fbefe139126549920
@@ -7,7 +7,7 @@ module Mutx
7
7
  define do
8
8
 
9
9
  on get do
10
- on "pull" do
10
+ on "commits" do
11
11
  result = Mutx::Database::MongoConnector.last_commit_webhook
12
12
  result_parsed = result["log"]["commits"].join.gsub('=>', ':')
13
13
  last = JSON.parse result_parsed #hash
@@ -19,6 +19,10 @@ module Mutx
19
19
  output = {:last_commit => last, :before_last_commit => before_last}
20
20
  res.write output.to_json
21
21
  end
22
+
23
+ on root do
24
+ res.redirect "git/commits"
25
+ end
22
26
  end
23
27
 
24
28
  on post do
@@ -1,3 +1,3 @@
1
1
  module Mutx
2
- VERSION = "0.2.8"
2
+ VERSION = "0.2.9"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mutx
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.8
4
+ version: 0.2.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Roman Rodriguez