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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d1f235b061b75b53b149c781a8087bdd4ab5e0fb
4
- data.tar.gz: f57319f6934765b0abb621b80f4999e72e16fc08
3
+ metadata.gz: eb7aa212973bec790a845f434af0f55606992a12
4
+ data.tar.gz: c0ddd21e79216eee0b7802f4e449a271008dca6c
5
5
  SHA512:
6
- metadata.gz: 93bc00fc0bd6aef1eb81fb4aa5e4cd0a48fe0c79c56de33eba754cf3f144c613dbd53d0d2f95d570f130d9a0436aa9dfc32d7a5bacf438c27138aca0ed94ab27
7
- data.tar.gz: 2518683605bb32f9887e422e016e9aa40bf169dc294b4a0972d13e7639267d133f23ed155dd3d0ee3bfbe37e5a24dfe486815306ab735166407e3a7bd2885c17
6
+ metadata.gz: 981608f09461512f636f793278c4b8e5e1f7c699b76ec3980cc4c02297badf451f29f60a560eafd4aea015f56a00d3c6e5d7b7f5def43e51ea8f72c87ce8c8c2
7
+ data.tar.gz: 8528187b375bb9b0c8c72b79c9312e5720d1539af087d739cd41699787115cff5228f471ccaa2264eacd1067cf3277312178ffa473da1f0d26e26193f05d1c41
@@ -1,3 +1,3 @@
1
1
  module Commitment
2
- VERSION = "0.1.3"
2
+ VERSION = "0.1.4"
3
3
  end
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 defined?(Rails)
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.3
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-07-13 00:00:00.000000000 Z
11
+ date: 2015-08-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler