shipyard-framework 0.3.5 → 0.3.6

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: ea939c080f803b442ca8814c2c35cff80b18f01a
4
- data.tar.gz: f3f6f8ccf89d00e149d9a0863237d79bc2a78faa
3
+ metadata.gz: 3435202a3b2f481a6c4fb578284b756ff4578352
4
+ data.tar.gz: 0ae9f15d95883e9e5d8b7672635762b955c8e9f8
5
5
  SHA512:
6
- metadata.gz: b50bbf378e8e4839dea03fdf03e364bfb69c71ec17062f64496f5725a8e3f83e5f66fa5280efa52e0e3e6518267b21fd5bd248a330cb16ce5ffe522e55f0dcc4
7
- data.tar.gz: 2552db236161f59ad7bc87b3730e82349194ad1264bbb137cc5cc906fb506fae83ca287d4e518e6009ccd644b3cf9e2fcacde015fbed3ab4b093b8456cebb807
6
+ metadata.gz: 6157e79ce601b18b253efe1258321346edd13e9e474be3725212c566f380fee7bafd3a39df0cad4a76b5c3b9ac4bb2a837f32e21b5a034e7c16ea31ad27c416b
7
+ data.tar.gz: 5cc85c2fcb560ab7589ba33a9cb2d61767ea165b7e0bb0d2746153d4799bc413095514f09a6d43ce7f09421e09c92794c268b7d4a1ccb8e2a21e38de4b0877fa
@@ -15,8 +15,11 @@ module Shipyard
15
15
  end
16
16
 
17
17
  # Output the appropriate button.
18
- tag = options.key?(:href) ? :a : :button
19
- content_tag tag, text, btn_options(args, options)
18
+ if options.key?(:href)
19
+ link_to text, options[:href], btn_options(args, options)
20
+ else
21
+ content_tag :button, text, btn_options(args, options)
22
+ end
20
23
  end
21
24
 
22
25
  private
@@ -1,3 +1,3 @@
1
1
  module Shipyard
2
- VERSION = '0.3.5'
2
+ VERSION = '0.3.6'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: shipyard-framework
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.5
4
+ version: 0.3.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Shipyard