endeavour 0.0.3 → 0.0.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: b0bbf14fafa0862be059d520ffeeed1bd09fd764
4
- data.tar.gz: bcc16927d65df57a1a6411c060715c8c5372c77a
3
+ metadata.gz: 8a247511ed96daa25a143673af303f47e6dad0d9
4
+ data.tar.gz: 7e14681ad51366c31fbef445faa738dccbbf5c4d
5
5
  SHA512:
6
- metadata.gz: 8573e1adaba344f4fd218d9a3cb0a079d9eff141a9f01cf73ff70ee093b28c7cecb661e70d0dce7c6a658d624976d5fcae3c98399bcf103bd63f058daec36683
7
- data.tar.gz: 1eedde85d87982f3c8f3afe4baeddb5f61a9959e44330bc443cc4f832ef0568b4b189d8044b336ab615f7723dc9fe7c6cb2faac3a52313f794c5e6ba4cd04280
6
+ metadata.gz: a09dc4bb8a15575009bd387b129cb95ef8fe1cf45e8aa289e33d59392b3c697666edd86e803dd1b52bce93ce6777c4b4a2be64e46f2cb9459ec31bf15f9d2043
7
+ data.tar.gz: d6e94953bb2b226499fcd415787e08dde684c79a896be482d80b3a6a56524e2fa4adaa74405c5b9845458e5bb90da6132f3b13c3ddd64522262bf256dd03ade5
data/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Endeavour
2
2
 
3
- Try, but better.
3
+ [Try](http://api.rubyonrails.org/classes/Object.html#method-i-try), but better.
4
4
 
5
5
  ## Installation
6
6
 
@@ -0,0 +1,7 @@
1
+ class Endeavour
2
+ class Railtie < Rails::Railtie
3
+ initializer 'endeavour.hook' do
4
+ Endeavour.hook!
5
+ end
6
+ end
7
+ end
@@ -1,3 +1,3 @@
1
1
  class Endeavour
2
- VERSION = '0.0.3'
2
+ VERSION = '0.0.4'
3
3
  end
data/lib/endeavour.rb CHANGED
@@ -16,3 +16,5 @@ class Endeavour
16
16
  self.class.call(@object, method, *args, &block)
17
17
  end
18
18
  end
19
+
20
+ require 'endeavour/railtie' if defined?(Rails)
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: endeavour
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Cory Kaufman-Schofield
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-09-15 00:00:00.000000000 Z
11
+ date: 2016-10-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: minitest-reporters
@@ -98,7 +98,7 @@ files:
98
98
  - lib/endeavour/core_ext.rb
99
99
  - lib/endeavour/core_ext/nil_class/try.rb
100
100
  - lib/endeavour/core_ext/object/try.rb
101
- - lib/endeavour/rails.rb
101
+ - lib/endeavour/railtie.rb
102
102
  - lib/endeavour/version.rb
103
103
  homepage: https://github.com/allspiritseve/endeavour
104
104
  licenses:
@@ -1,7 +0,0 @@
1
- class Endeavour
2
- class Rails < ::Rails::Engine
3
- initializer 'endeavour' do
4
- Endeavour.hook!
5
- end
6
- end if defined?(::Rails)
7
- end