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 +4 -4
- data/.travis.yml +1 -1
- data/lib/dashing-contrib/configuration.rb +7 -1
- data/lib/dashing-contrib/version.rb +1 -1
- data/spec/configuration_spec.rb +8 -0
- metadata +4 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7cc48654817af40bf54c932dc7373e5423a709ae
|
4
|
+
data.tar.gz: 4274635bf993c916e0542949586fb985920ccee9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fbeccf5c940990bf89001f29230fbf8658f0cb026c63c309c651cdd724835aed0cb4446d5ac417ed89164fda75208fc2d2e6c00a1e0c7ded5d304c70eb77aed9
|
7
|
+
data.tar.gz: 24d0153279653c30d1f18e602038992d59bd031a19a2af5452e7dbf8a23fb9ede7e26e904e008841f08a629812b0aaebfe0ec4cd3a17eff585b896b38fada91e
|
data/.travis.yml
CHANGED
@@ -5,7 +5,13 @@ module DashingContrib
|
|
5
5
|
attr_accessor :template_paths
|
6
6
|
|
7
7
|
def initialize
|
8
|
-
@template_paths = [File.expand_path("../",
|
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
|
@@ -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.
|
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-
|
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
|