kapnismology 0.0.2 → 0.0.3

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: b509aa57f24552e1207a28fd8d8ee87a7d8a98cd
4
- data.tar.gz: 74086fc4c1bd7368c8a1e3d7e84d4c23f22c14da
3
+ metadata.gz: 565f475fcc90aab29030360616ecfd60023389ca
4
+ data.tar.gz: 7492b82b186be20419569b6ca72daa80dce01304
5
5
  SHA512:
6
- metadata.gz: 935b970070e8c124e1d9e869a2cfed295a365b88777109f66b6f64a5bb96380bd7945db073674992cd32e1649fb2c140a41024f65df99f1ec8373096b10f6688
7
- data.tar.gz: 67edfe655cdf3799706f1536085d15c3d4b946ff8eba5e381fe7da40285ca8bff05345595f09ed92ffd6a308dec4a59b16023e69cc5565884f5d977e099a65e2
6
+ metadata.gz: e71b5b30517b5982b45d04415a46867f743e534641332cca94d3fcb7415b5c688fb22e32eff01de78a6ac10c53fe137e10ae37080027480e50b0003ef06c709b
7
+ data.tar.gz: 72c9f4d404408e29afb03760a226ed486b5a486a800dd312b5373918e816847fdf18f057c18c52677b88e42721698dacc2f60dbeab91d417f149c43be5fcd762
@@ -4,12 +4,18 @@ module Kapnismology
4
4
  app.config.eager_load_paths += Dir["#{app.config.root}/lib/**/*"]
5
5
  end
6
6
 
7
- # config.eager_load_paths += Dir["#{app.config.root}/lib/**/*"]
8
7
  isolate_namespace Kapnismology
9
- Rails.application.routes.draw do
10
- mount Kapnismology::Engine, at: "/smoke_test"
11
- end
8
+ end
12
9
 
10
+ class Routes
11
+ def self.insert!(path)
12
+ if defined?(Kapnismology) == false
13
+ raise 'require kapnismology before trying to insert routes'
14
+ end
15
+ Rails.application.routes.draw do
16
+ mount Kapnismology::Engine, at: path
17
+ end
18
+ end
13
19
  end
14
20
 
15
21
  end
@@ -1,6 +1,4 @@
1
1
  module Kapnismology
2
- ## Usable as a rake tasks, it just circles through all the results printing them.
3
- # If any result did not pass then the command should fail
4
2
  class RakeTask
5
3
  def output
6
4
  evaluations = SmokeTest.result
@@ -17,4 +15,4 @@ module Kapnismology
17
15
  passed ? "passed" : "failed"
18
16
  end
19
17
  end
20
- end
18
+ end
@@ -33,4 +33,4 @@ module Kapnismology
33
33
  end
34
34
 
35
35
  end
36
- end
36
+ end
@@ -1,3 +1,3 @@
1
1
  module Kapnismology
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.3"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kapnismology
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jordi Polo Carres
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-06-26 00:00:00.000000000 Z
11
+ date: 2015-09-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails