commitment 0.1.3 → 0.1.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/commitment/version.rb +1 -1
- data/lib/commitment.rb +4 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: eb7aa212973bec790a845f434af0f55606992a12
|
4
|
+
data.tar.gz: c0ddd21e79216eee0b7802f4e449a271008dca6c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 981608f09461512f636f793278c4b8e5e1f7c699b76ec3980cc4c02297badf451f29f60a560eafd4aea015f56a00d3c6e5d7b7f5def43e51ea8f72c87ce8c8c2
|
7
|
+
data.tar.gz: 8528187b375bb9b0c8c72b79c9312e5720d1539af087d739cd41699787115cff5228f471ccaa2264eacd1067cf3277312178ffa473da1f0d26e26193f05d1c41
|
data/lib/commitment/version.rb
CHANGED
data/lib/commitment.rb
CHANGED
@@ -42,7 +42,10 @@ module Commitment
|
|
42
42
|
attr_reader :project_pathname
|
43
43
|
|
44
44
|
def default_project_pathname
|
45
|
-
if
|
45
|
+
if ENV.key?('PROJECT_PATHNAME')
|
46
|
+
require 'pathname'
|
47
|
+
Pathname.new(ENV['PROJECT_PATHNAME'])
|
48
|
+
elsif defined?(Rails)
|
46
49
|
Rails.root
|
47
50
|
else
|
48
51
|
require 'pathname'
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: commitment
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jeremy Friesen
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-08-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|