docks_theme_api 1.0.2 → 1.0.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- YzRmY2M3YWRjNDc0Yzg0ZTc1ZmU5Y2VjYWE2MDA3ZGZhMGFlMjgxNQ==
4
+ NjA0MTA4NDg2NDRhNjE3MmI4ZWViNDhmNGYzMjllMGViMGYyMDRhMw==
5
5
  data.tar.gz: !binary |-
6
- ZWE2ZDRmNGY5NWIxYjJjNzZhNTZmOWQ4ZWEwMzM4YjkwZWY0YTNmOA==
6
+ MzAxZmU5M2MxZDQxMjNlNTc3ZTM2ZDVjODg5NGYzMTVlM2E0ZTlhZQ==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- MmI3NmU3YTlmMzg0ZWQ5N2E1NGRkNjY0ZWY3NDRlZDUxYWNlMGEwYTRlMzQ3
10
- ZTBhYzYxMzUxYTQ0MjNlNTczMTJmZGVhM2JjZWY3MTQ1YjMxZGE0ODE0MjFm
11
- NTFmZTFlOWE3MWJjNzI2ZDBhMDgyMWY0ZTU1N2U3ZDA1N2NlYjI=
9
+ YTIxMTYxNThmNmU1MmFiOGZkNDY5Mjg5NTQ5ZDEzNmEwMzBmMTA3ZWEzOWI1
10
+ OWI5ZGI4ZjRlMmE0M2RmYTdkMGMwNTJlNDBmYTA3MjljOTcwMzM4NWM2OGM0
11
+ ZmE2OTM1YTQxYmM0YmQ0YmVhOGNmZTMwMWRlN2EwYTA5ZGFkYWQ=
12
12
  data.tar.gz: !binary |-
13
- MDY2NjMxNzU1ZDJkNjQwYjIzNmI4MmI1NzdmMDE1YTQ0MWQ3ZDNjNDBkZjAx
14
- ODBmNDM0MTRiNzE3ZTEwZWFkNDVlNzJlODg3OTdjMmE1NTljZGU0MjQ1Yzdj
15
- MzEyNWE4YTYwY2MwZGRlNDM0ODU2ZTc0NDI1MzA2N2RiZjMxNGQ=
13
+ ZGFlM2I3ZDU0YmIxOWExODBjY2Q4YmE1NDRiMmZkYjM3ODZlN2U4ZTYwMzFj
14
+ NmVmNTk5NTVhNWJhZjcyN2QwZGEzM2EwOWVmMmIxODU4ZjIwMzExZGJjY2U0
15
+ MmZhNzhkMDRlM2EzYjAxYThlZWNjNjRmY2E1OGQzZDZlNzQyNzU=
@@ -1,3 +1,5 @@
1
+ require File.expand_path("../lib/docks_theme_api/helpers/ui_helper.rb", __FILE__)
2
+
1
3
  Docks.configure do |config|
2
4
  config.sources = [
3
5
  "source/components/**/*.{scss,js,md}",
@@ -14,16 +16,12 @@ Docks.configure do |config|
14
16
  "pattern_library.js"
15
17
  ]
16
18
 
17
- config.asset_folders = {
18
- scripts: "scripts",
19
- styles: "styles"
20
- }
21
-
22
- config.templates = "pattern_library_assets/templates/erb"
19
+ config.templates = "assets/templates/erb"
20
+ config.helpers = [Docks::Themes::API::Helpers]
23
21
 
24
22
  config.mount_at = "pattern-library"
25
- config.use_theme_assets = false
26
- config.github_repo = "docks-app/docks_theme_api"
23
+ config.github_repo = "docks-app/api_theme"
24
+ config.theme = false
27
25
 
28
26
  config.pattern_id = lambda do |file|
29
27
  dir = File.basename(File.dirname(file))
@@ -5,7 +5,7 @@ $:.push File.expand_path("../lib", __FILE__)
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "docks_theme_api"
8
- s.version = "1.0.2"
8
+ s.version = "1.0.3"
9
9
  s.platform = Gem::Platform::RUBY
10
10
  s.required_ruby_version = ">= 1.9.3"
11
11
  s.authors = ["Chris Sauve"]
@@ -10,11 +10,11 @@ module Docks
10
10
  def initialize
11
11
  project_root = Pathname.new(File.expand_path("../../../", __FILE__))
12
12
  @assets = Assets.new(root: project_root + "assets", source_root: project_root + "source")
13
+ @helpers = [Helpers]
13
14
  end
14
15
 
15
16
  def configure(config)
16
- config.paginate = :pattern
17
- config.helpers += [Helpers]
17
+ config.paginate = "pattern"
18
18
  end
19
19
  end
20
20
  end
@@ -3,23 +3,18 @@ require "spec_helper"
3
3
  describe Docks::Themes::API do
4
4
  subject { described_class.instance }
5
5
 
6
+ describe "#helpers" do
7
+ it "has the helpers module" do
8
+ expect(subject.helpers).to eq [described_class::Helpers]
9
+ end
10
+ end
11
+
6
12
  describe "#configure" do
7
13
  let(:config) { OpenStruct.new(paginate: false, helpers: [:foo]) }
8
14
 
9
15
  it "updates pagination to be by pattern" do
10
16
  subject.configure(config)
11
- expect(config.paginate).to be :pattern
12
- end
13
-
14
- it "adds the helper module to helpers" do
15
- original_helpers = config.helpers.dup
16
- subject.configure(config)
17
-
18
- expect(config.helpers.length).to be original_helpers.length + 1
19
- expect(config.helpers).to include described_class::Helpers
20
- original_helpers.each do |helper|
21
- expect(config.helpers).to include helper
22
- end
17
+ expect(config.paginate).to eq "pattern"
23
18
  end
24
19
  end
25
20
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: docks_theme_api
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.2
4
+ version: 1.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chris Sauve