makersinit 0.1.6 → 1.0.0

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: 792e9d982b3aacaf550776963502147a24ea1026
4
- data.tar.gz: 4d270d1e1bc96db86152f327a49c10007b838f46
3
+ metadata.gz: 925fb92c25e32a399f263327f753de8941dec495
4
+ data.tar.gz: d8072785c9b0db53648609f4a12840ca73255c6a
5
5
  SHA512:
6
- metadata.gz: 5e10635d2e1f461881f1603ef0fa46e345035f96209719ca244fbaa0aba1b3f98a12105112e8d3a5f49b2452d317a7195ca83679edb5c15917eefdb54a06055e
7
- data.tar.gz: f628af32913865411ec81a46885aeb430156fa4a37e1c4722fcd991453c3426eebe20b9f42468258847908e874cac44862aee51313f714e1e966613284bf04b6
6
+ metadata.gz: ebc4b9058c1ad4595b37bd3c97e80010ee5a99d453e42ca90007e2d05f005646188c4dae84bfda319e79f10b7eb4fd9c58e502dbeb5c8da2b6a318c09d5d6704
7
+ data.tar.gz: b93fb4b53d7f74e5e577e54c28137d12805b20065f170f3275211a1fe2c71d3498d9023c777f9dc27a6ba85b08e110ba8f608ff1fa9c8942846ad30db5057b1d
data/README.md CHANGED
@@ -25,10 +25,10 @@ Or install it yourself as:
25
25
  Navigate to the cloned directory, then:
26
26
 
27
27
  ```sh
28
- gem install `pwd`/makersinit-0.1.5.gem
28
+ gem install `pwd`/makersinit-1.0.0.gem
29
29
  ```
30
30
 
31
- (if the current version of the gem is 0.1.5).
31
+ (if the current version of the gem is 1.0.0).
32
32
 
33
33
  ## Usage
34
34
 
@@ -6,4 +6,4 @@ Kernel.system('git init')
6
6
  Makersinit.initialize_pre_push_script
7
7
  # Make the script executable
8
8
  Kernel.system('chmod +x .git/hooks/pre-push')
9
- `echo 'Initialized Makers Academy Tracking'`
9
+ `echo 'Initialized Makers Academy Tracking (MakersInit v1)'`
@@ -1,3 +1,3 @@
1
1
  module Makersinit
2
- VERSION = "0.1.6"
2
+ VERSION = "1.0.0"
3
3
  end
Binary file
@@ -1,5 +1,5 @@
1
- #!/bin/sh
2
- echo 'Pushing details to Tracker'
1
+ #!/bin/bash
2
+ echo 'Pushing details to Tracker (MakersInit v1)'
3
3
  # Notifies a webhook on attempted "git push". Called by "git
4
4
  # push" after it has checked the remote status, but before anything has been
5
5
  # pushed. If this script exits with a non-zero status nothing will be pushed.
@@ -20,7 +20,7 @@ echo 'Pushing details to Tracker'
20
20
  # Utility functions
21
21
  # Webhook-posting function
22
22
 
23
- function posthook {
23
+ posthook(){
24
24
  curl "git-receiver.herokuapp.com/commits" \
25
25
  -X POST \
26
26
  -H "Content-type: application/json" \
@@ -29,7 +29,7 @@ function posthook {
29
29
 
30
30
  # Join function in the style of Pascal Pilz
31
31
 
32
- function join { local IFS="$1"; shift; echo "$*"; }
32
+ join(){ local IFS="$1"; shift; echo "$*"; }
33
33
 
34
34
  remote="$1"
35
35
  url="$2"
@@ -62,7 +62,7 @@ do
62
62
  # Construct an array of the commit SHAs
63
63
  while read -r line; do
64
64
  commits_array+=(\""$line"\")
65
- done <<< "$commits"
65
+ done<<<"${commits}"
66
66
  # Construct the joined string for JSON
67
67
  commits_string=`join , "${commits_array[@]}"`
68
68
  email=`git config user.email`
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: makersinit
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.6
4
+ version: 1.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sam Morgan
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: exe
11
11
  cert_chain: []
12
- date: 2016-02-03 00:00:00.000000000 Z
12
+ date: 2016-04-14 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler
@@ -76,6 +76,7 @@ files:
76
76
  - exe/makersinit
77
77
  - lib/makersinit.rb
78
78
  - lib/makersinit/version.rb
79
+ - makersinit-0.1.5.gem
79
80
  - makersinit.gemspec
80
81
  - scripts/pre-push
81
82
  homepage: http://makersacademy.com
@@ -98,7 +99,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
98
99
  version: '0'
99
100
  requirements: []
100
101
  rubyforge_project:
101
- rubygems_version: 2.4.6
102
+ rubygems_version: 2.4.8
102
103
  signing_key:
103
104
  specification_version: 4
104
105
  summary: Makers Academy's customer-facing command-line tool.