dashing-contrib 0.0.1 → 0.0.2

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: c6ee41bd7b0f202aabb85e08b3e1424cadd3aca5
4
- data.tar.gz: 31dbf7916f3a41a363e3a8573d84586dd8d60092
3
+ metadata.gz: f44934069e246c511d9b2185c3fc0e9f7a1f37c6
4
+ data.tar.gz: 14bdb361a8938ffb7af365df054010ee76e2083b
5
5
  SHA512:
6
- metadata.gz: b4ffe3efa276a724672ad4e816cf1675ae7a0b767f18f7d6daea1b0f513733713d06001f5db7f773be1ff188d612404e9fe6a99c6c5e92c107fda72fa268fbf4
7
- data.tar.gz: 2400189c3be076e44fc14190b7092b581389ccf574925735b5d41c5c8b50fef279efb5f68d1ae7d6f3e47ed8fa7c5023636396dea64ffeaff610bf87d7f12a94
6
+ metadata.gz: 1d4d8556de6c7971ad751f523daabda4ba85d4458c8d373f1ef06f267f06b13aa731d89ad2c2751e8778707d2855bdd26d6aa8a197313906d538b175708481be
7
+ data.tar.gz: 08dcf1de6c4bef9205c2fe577c70b9e7b87a6f87a90e65805ab4f5c03cc168ca2c39bae77d1c00a80ef43e3b8000ae3e3108210a744bf78e9c561d97e2d6fdda
data/README.md CHANGED
@@ -4,30 +4,40 @@ This projects is an extension to Shopify's Dashing. It aims to solve a couple of
4
4
  * Extend the Dashing's widgets functionality in a healthy pattern.
5
5
  * Embrace sharing, reusing, testing common jobs data manipulation functionality
6
6
  * Make it easier to work with History.yml in file and memory
7
+ * A common way to load external configuration via dotenv
7
8
 
8
-
9
-
10
9
  ## Installation
11
- Add this line to your application's Gemfile:
10
+ Add this line to your Dashing's dashboard Gemfile:
12
11
 
13
- gem 'dashing-contrib'
12
+ gem 'dashing-contrib', '~> 0.0.2'
14
13
 
15
14
  And then execute:
16
15
 
17
16
  $ bundle
18
17
 
19
- Or install it yourself as:
18
+ Add the following on top of the `config.ru`
19
+
20
+ $: << File.expand_path('./lib', __dir__)
21
+ require 'dashing-contrib'
22
+ require 'dashing'
23
+ DashingContrib.configure
24
+
25
+ Add these lines to `assets/javascripts/application.coffee`
26
+
27
+ #=require dashing-contrib/assets/widgets
28
+
29
+ Add these lines to `assets/stylesheets/application.scss`
30
+
31
+ //=require dashing-contrib/assets/widgets
32
+
33
+ ## Included Widgets
20
34
 
21
- $ gem install dashing-contrib
35
+ * [Rickshawgraph](https://gist.github.com/jwalton/7916168) made by [jwalton](https://gist.github.com/jwalton)
22
36
 
23
- ## Usage
37
+ ## Included Job helpers
24
38
 
25
- TODO: Write usage instructions here
39
+ TODO:
26
40
 
27
- ## Contributing
41
+ ## Components/Widgets made by contributors
28
42
 
29
- 1. Fork it
30
- 2. Create your feature branch (`git checkout -b my-new-feature`)
31
- 3. Commit your changes (`git commit -am 'Add some feature'`)
32
- 4. Push to the branch (`git push origin my-new-feature`)
33
- 5. Create new Pull Request
43
+ * [jwalton](https://gist.github.com/jwalton)
@@ -13,7 +13,7 @@ module DashingContrib
13
13
  end
14
14
 
15
15
  def self.configure
16
- yield configuration
16
+ yield configuration if block_given?
17
17
  self.configure_sprockets
18
18
  end
19
19
 
@@ -1,3 +1,3 @@
1
1
  module DashingContrib
2
- VERSION = "0.0.1"
2
+ VERSION = '0.0.2'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dashing-contrib
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jing Dong