dashing-contrib 0.1.2 → 0.1.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: 64ef000ef09364cdc1fbfb35a9b15f08361500bf
4
- data.tar.gz: e49c3b4c7787815e51240e235851edbce26278d2
3
+ metadata.gz: 7cc48654817af40bf54c932dc7373e5423a709ae
4
+ data.tar.gz: 4274635bf993c916e0542949586fb985920ccee9
5
5
  SHA512:
6
- metadata.gz: 77815a412ae3ec39ce3584fd1c8ba84c54d3ec0669e9964d219130d881f111b819a83978575136d09b977ef9a2288c5d25ead52e210fe852f0dee0c65bca9ae5
7
- data.tar.gz: 2a1d4d7d016078504f52d22a4a65147f03a3167b03cdc8976c42c9b051be49be41462175072867efddf46f91cd6af903bc6b02042e443e242076f3cc09c57258
6
+ metadata.gz: fbeccf5c940990bf89001f29230fbf8658f0cb026c63c309c651cdd724835aed0cb4446d5ac417ed89164fda75208fc2d2e6c00a1e0c7ded5d304c70eb77aed9
7
+ data.tar.gz: 24d0153279653c30d1f18e602038992d59bd031a19a2af5452e7dbf8a23fb9ede7e26e904e008841f08a629812b0aaebfe0ec4cd3a17eff585b896b38fada91e
@@ -3,4 +3,4 @@ rvm:
3
3
  - 2.0.0
4
4
  - 2.1.0
5
5
  - 2.1.1
6
- script: "bundle exec rspec"
6
+ script: "bundle exec rspec"
@@ -5,7 +5,13 @@ module DashingContrib
5
5
  attr_accessor :template_paths
6
6
 
7
7
  def initialize
8
- @template_paths = [File.expand_path("../", __dir__)]
8
+ @template_paths = [File.expand_path("../", dir)]
9
+ end
10
+
11
+ # __dir__ is only supported >= ruby 2.0, use __FILE__ approach
12
+ # Gem should support wide range of ruby versions
13
+ def dir
14
+ File.dirname(__FILE__)
9
15
  end
10
16
  end
11
17
  end
@@ -1,3 +1,3 @@
1
1
  module DashingContrib
2
- VERSION = '0.1.2'
2
+ VERSION = '0.1.3'
3
3
  end
@@ -0,0 +1,8 @@
1
+ require 'spec_helper'
2
+
3
+ describe DashingContrib::Configuration do
4
+ subject(:config) { DashingContrib::Configuration.new }
5
+
6
+ # Testing general compatilibity issues with file directory
7
+ it { expect(config.template_paths).to eq [File.expand_path("../lib", File.dirname(__FILE__))] }
8
+ end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dashing-contrib
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jing Dong
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-07-02 00:00:00.000000000 Z
11
+ date: 2014-07-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: dotenv
@@ -253,6 +253,7 @@ files:
253
253
  - lib/dashing-contrib/runnable_job.rb
254
254
  - lib/dashing-contrib/version.rb
255
255
  - spec/bottles/kue/client_spec.rb
256
+ - spec/configuration_spec.rb
256
257
  - spec/jobs/sidekiq_spec.rb
257
258
  - spec/runnable_job_spec.rb
258
259
  - spec/spec_helper.rb
@@ -283,6 +284,7 @@ summary: An extension to Dashing that makes easier to maintaining, sharing widge
283
284
  and test common tasks
284
285
  test_files:
285
286
  - spec/bottles/kue/client_spec.rb
287
+ - spec/configuration_spec.rb
286
288
  - spec/jobs/sidekiq_spec.rb
287
289
  - spec/runnable_job_spec.rb
288
290
  - spec/spec_helper.rb