view_components 0.0.1 → 0.1.0
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/README.md +3 -2
- data/lib/view_components/version.rb +1 -1
- data/spec/dummy/config/environments/test.rb +5 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 272a91769f239034de2268364dd6ee58690fb1bd
|
|
4
|
+
data.tar.gz: d14fa4340288310a29c431b3f244865025e6ee9c
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: e3dd719e5e3efc1d3db9af5a4e1ec9b17be278fe2e48148caaaad44ba49c56ba4a5e980517063b930d1fc44f9570d71a5e9c3f357bebd588139cba5a3b7d1df6
|
|
7
|
+
data.tar.gz: 83250be3d0d0c26089d8b6dfe59f4edcf99f72030f2432a4c4fcd85ebce38cfebc2f1dff4c4fdb057291fe6811f657108a367cf1dc62deb519028cd254a01e22
|
data/README.md
CHANGED
|
@@ -36,9 +36,10 @@ Use it in your views:
|
|
|
36
36
|
|
|
37
37
|
## Installation
|
|
38
38
|
|
|
39
|
-
Add `
|
|
39
|
+
Add `view_components` to your Gemfile:
|
|
40
40
|
```ruby
|
|
41
|
-
|
|
41
|
+
source 'https://rubygems.org'
|
|
42
|
+
gem 'view_components'
|
|
42
43
|
```
|
|
43
44
|
|
|
44
45
|
## Usage
|
|
@@ -1,4 +1,8 @@
|
|
|
1
|
-
Rails
|
|
1
|
+
if Rails::VERSION::MAJOR == 3
|
|
2
|
+
Dummy::Application
|
|
3
|
+
else
|
|
4
|
+
Rails.application
|
|
5
|
+
end.configure do
|
|
2
6
|
# Settings specified here will take precedence over those in config/application.rb.
|
|
3
7
|
|
|
4
8
|
# The test environment is used exclusively to run your application's
|