dvl-flashes 0.0.3 → 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d97748038582edd84c1e451ef03b35b90079bdf7
4
- data.tar.gz: 805bfdb179e9989b53ca927501322a853b5b6725
3
+ metadata.gz: 779039cb16a7e5f2e3ae8779bc28567b4a3fcd76
4
+ data.tar.gz: 3479724396966665f377a95a6ed34ee393106db0
5
5
  SHA512:
6
- metadata.gz: fa9b1f9f567e7cbb03889610979376592f3c559193dc88a29bda8c096cda5787a9182f1ffcb59384defee0d6875b8d6104d9bacf80c231788170a82e03ec9028
7
- data.tar.gz: 4e087f0210621d19eea0b77133568d718624c12dcc2e6a6ce36c885193b3bc241820525c3e25a5a6f4c27be9d8ad7cf1f63bcadb83fd0a6c28fe9fd1d5b1745f
6
+ metadata.gz: 84f76086c60da50197407c5322e221032732c3d0e363b77a13445eda2ce278168920e9824f9e373a38cc1e778d6fdc04bc95d7c537791811ef7f295d52d09a1c
7
+ data.tar.gz: d7693b623a44d57d0723a6829223c1492e584815a23d6ee821e8101181aca4b86c1808d8c2e8ab59340e1495527b98c8c445787a07d76f8b9065b8eaae57f0aa
data/README.md CHANGED
@@ -61,7 +61,7 @@ DvlFlash('error', 'An error occured...');
61
61
 
62
62
  ## License
63
63
 
64
- MIT
64
+ [MIT](http://dobtco.mit-license.org/)
65
65
 
66
66
  [version]: https://img.shields.io/gem/v/dvl-flashes.svg
67
67
  [build_status]: https://circleci-badges.herokuapp.com/dobtco/dvl-flashes/cfb22255e126bd760d2bafdfba40ffbac7786f30
data/dvl-flashes.gemspec CHANGED
@@ -18,6 +18,7 @@ Gem::Specification.new do |s|
18
18
 
19
19
  s.add_dependency 'activesupport'
20
20
  s.add_dependency 'coffee-script'
21
+ s.add_dependency 'dvl-core'
21
22
  s.add_dependency 'erector-rails4'
22
23
  s.add_dependency 'sass'
23
24
 
@@ -27,5 +28,5 @@ Gem::Specification.new do |s|
27
28
  s.add_development_dependency 'rspec', '3.1.0'
28
29
  s.add_development_dependency 'rspec-html-matchers', '0.6.1'
29
30
  s.add_development_dependency 'sinatra', '1.4.5'
30
- s.add_development_dependency 'sinatra-assetpack', '0.3.3'
31
+ s.add_development_dependency 'sinatra-asset-pipeline'
31
32
  end
@@ -1,5 +1,5 @@
1
1
  module Dvl
2
2
  module Flashes
3
- VERSION = '0.0.3'
3
+ VERSION = '0.0.4'
4
4
  end
5
5
  end
data/preview/app.rb CHANGED
@@ -1,27 +1,28 @@
1
1
  require 'sinatra/base'
2
- require 'sinatra/assetpack'
2
+ require 'sinatra/asset_pipeline'
3
3
  require 'active_support/all'
4
4
  require 'erector'
5
5
  require 'dvl/flashes'
6
+ require 'dvl/core'
6
7
 
7
8
  class App < Sinatra::Base
8
9
 
9
10
  set :root, File.dirname(__FILE__)
11
+ set :assets_prefix, [
12
+ 'vendor/assets',
13
+ "#{Gem::Specification.find_by_name("dvl-core").gem_dir}/vendor/assets"
14
+ ]
10
15
 
11
- register Sinatra::AssetPack
12
-
13
- assets do
14
- serve '/js', from: '../vendor/assets/javascripts'
15
- serve '/css', from: '../vendor/assets/stylesheets'
16
- end
16
+ register Sinatra::AssetPipeline
17
17
 
18
18
  get '/' do
19
19
  Erector.inline {
20
20
  rawtext '<!doctype html>'
21
21
  html {
22
22
  head {
23
- link href: '/css/dvl/flashes.css', rel: 'stylesheet', type: 'text/css', media: 'all'
24
- style '* {box-sizing:border-box;}'.html_safe, type: 'text/css'
23
+ link href: '//fonts.googleapis.com/css?family=Open+Sans:400,300,700,600', rel: 'stylesheet', type: 'text/css'
24
+ link href: '/assets/dvl/core.css', rel: 'stylesheet', type: 'text/css', media: 'all'
25
+ link href: '/assets/dvl/flashes.css', rel: 'stylesheet', type: 'text/css', media: 'all'
25
26
  }
26
27
  body {
27
28
  # Uncomment to test rendering from existing HTML
@@ -40,7 +41,8 @@ class App < Sinatra::Base
40
41
  }
41
42
 
42
43
  script src: '//code.jquery.com/jquery-1.11.1.min.js'
43
- script src: '/js/dvl/flashes.js'
44
+ script src: '/assets/dvl/core.js'
45
+ script src: '/assets/dvl/flashes.js'
44
46
  }
45
47
  }
46
48
  }.to_html
@@ -1,17 +1,8 @@
1
+ @import 'dvl/core/includes';
2
+
1
3
  $dvlFlashZIndex: 1031 !default; // above modal
2
4
  $dvlFlashDefaultColor: #2886A8 !default;
3
5
 
4
- // Remove when we add `based` as a package
5
- $radius: 3px;
6
- $black: #222;
7
- $white: #fff;
8
- $lighterGray: #efefef;
9
- $lightGray: #e5e5e5;
10
- $darkGray: #aaa;
11
- $darkerGray: #777;
12
- $errorColor: #c12f2e;
13
- $successColor: #2aa828;
14
-
15
6
  .flash {
16
7
  position: fixed;
17
8
  left: 0;
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dvl-flashes
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Adam Becker
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-10-14 00:00:00.000000000 Z
11
+ date: 2014-11-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -38,6 +38,20 @@ dependencies:
38
38
  - - ">="
39
39
  - !ruby/object:Gem::Version
40
40
  version: '0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: dvl-core
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ">="
46
+ - !ruby/object:Gem::Version
47
+ version: '0'
48
+ type: :runtime
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ">="
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
41
55
  - !ruby/object:Gem::Dependency
42
56
  name: erector-rails4
43
57
  requirement: !ruby/object:Gem::Requirement
@@ -151,19 +165,19 @@ dependencies:
151
165
  - !ruby/object:Gem::Version
152
166
  version: 1.4.5
153
167
  - !ruby/object:Gem::Dependency
154
- name: sinatra-assetpack
168
+ name: sinatra-asset-pipeline
155
169
  requirement: !ruby/object:Gem::Requirement
156
170
  requirements:
157
- - - '='
171
+ - - ">="
158
172
  - !ruby/object:Gem::Version
159
- version: 0.3.3
173
+ version: '0'
160
174
  type: :development
161
175
  prerelease: false
162
176
  version_requirements: !ruby/object:Gem::Requirement
163
177
  requirements:
164
- - - '='
178
+ - - ">="
165
179
  - !ruby/object:Gem::Version
166
- version: 0.3.3
180
+ version: '0'
167
181
  description:
168
182
  email: adam@dobt.co
169
183
  executables: []
@@ -171,10 +185,8 @@ extensions: []
171
185
  extra_rdoc_files: []
172
186
  files:
173
187
  - ".gitignore"
174
- - ".hound.yml"
175
188
  - ".ruby-version"
176
189
  - Gemfile
177
- - LICENSE.md
178
190
  - README.md
179
191
  - circle.yml
180
192
  - dvl-flashes.gemspec
data/.hound.yml DELETED
@@ -1,5 +0,0 @@
1
- ruby:
2
- enabled: true
3
-
4
- coffee_script:
5
- enabled: true
data/LICENSE.md DELETED
@@ -1,20 +0,0 @@
1
- Copyright 2014 Department of Better Technology
2
-
3
- Permission is hereby granted, free of charge, to any person obtaining
4
- a copy of this software and associated documentation files (the
5
- "Software"), to deal in the Software without restriction, including
6
- without limitation the rights to use, copy, modify, merge, publish,
7
- distribute, sublicense, and/or sell copies of the Software, and to
8
- permit persons to whom the Software is furnished to do so, subject to
9
- the following conditions:
10
-
11
- The above copyright notice and this permission notice shall be
12
- included in all copies or substantial portions of the Software.
13
-
14
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
15
- EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16
- MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
17
- NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
18
- LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
19
- OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
20
- WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.