duffy 0.0.6 → 0.0.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/duffy/string.rb +1 -1
- data/lib/duffy/version.rb +1 -1
- data/lib/duffy.rb +11 -1
- data/vendor/assets/stylesheets/duffy/print.css +34 -0
- data/vendor/assets/stylesheets/duffy/reset.css +42 -0
- metadata +5 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d2c0c79fd0c66096e43aabbb8f14e8270a059369
|
4
|
+
data.tar.gz: 622727f32c423cdbc15f5105f93c7097fc8f7d9c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0c347b65e761f2073ac863772a9a6d83c9dd9bab1ee53ff9eb0d56b4fa5cfceb34f56cc89f131c67a4e6a8ce162dd697ee7fe4492aec508536862bd68766fdc8
|
7
|
+
data.tar.gz: 88ad7895de82a7e4cc6a85d1770822bf466ecac9deff6b81b8be2805867dee410f26458762d1e1dd05a45674b7274f4c5ee13124c17531d06094d2682dc41f31
|
data/lib/duffy/string.rb
CHANGED
@@ -127,7 +127,7 @@ class String
|
|
127
127
|
# Special Cases:
|
128
128
|
result.gsub!(/ V(s?)\. /, ' v\1. ') # "v." and "vs."
|
129
129
|
result.gsub!(/([''])S\b/, '\1s') # 'S (otherwise you get "the SEC'S decision")
|
130
|
-
result.gsub!(/\b(AOB|AT&T|Q&A|II|III|IV|HR|CT|CHS|CME|HRS|PA|UDDS|USA|UWMF|WREN)\b/i) { |w| w.upcase } # "AT&T" and "Q&A", which get tripped up by
|
130
|
+
result.gsub!(/\b(AOB|AT&T|Q&A|II|III|IV|HR|CT|CHS|CME|DFM|HRS|PA|UDDS|USA|UWMF|WREN)\b/i) { |w| w.upcase } # "AT&T" and "Q&A", which get tripped up by
|
131
131
|
result
|
132
132
|
end
|
133
133
|
end
|
data/lib/duffy/version.rb
CHANGED
data/lib/duffy.rb
CHANGED
@@ -3,4 +3,14 @@ require File.dirname(__FILE__) + "/duffy/git"
|
|
3
3
|
require File.dirname(__FILE__) + "/duffy/string"
|
4
4
|
|
5
5
|
# Helper LazyLoaded:
|
6
|
-
require File.dirname(__FILE__) + "/duffy/railtie" if defined?(Rails)
|
6
|
+
require File.dirname(__FILE__) + "/duffy/railtie" if defined?(Rails)
|
7
|
+
|
8
|
+
|
9
|
+
# Required to add assets to pipeline
|
10
|
+
# example:
|
11
|
+
# [application.css]
|
12
|
+
# *= require duffy/reset
|
13
|
+
module Duffy
|
14
|
+
class Engine < Rails::Engine
|
15
|
+
end
|
16
|
+
end
|
@@ -0,0 +1,34 @@
|
|
1
|
+
@media print and (color) {
|
2
|
+
* {
|
3
|
+
/* Prevent browsers from discarding the majority of color info */
|
4
|
+
-webkit-print-color-adjust: exact;
|
5
|
+
-moz-print-color-adjust: exact;
|
6
|
+
print-color-adjust: exact;
|
7
|
+
}
|
8
|
+
|
9
|
+
a:link, a:visited {
|
10
|
+
text-decoration: none;
|
11
|
+
color: black;
|
12
|
+
}
|
13
|
+
|
14
|
+
.no_print {
|
15
|
+
display: none;
|
16
|
+
}
|
17
|
+
|
18
|
+
.print_only {
|
19
|
+
display: inherit;
|
20
|
+
}
|
21
|
+
|
22
|
+
/* You have to add the class ie to (preferably) <html> for this to work */
|
23
|
+
.ie .print_only {
|
24
|
+
display: block;
|
25
|
+
}
|
26
|
+
|
27
|
+
.print_right {
|
28
|
+
float: right;
|
29
|
+
}
|
30
|
+
|
31
|
+
.print_left {
|
32
|
+
float: left;
|
33
|
+
}
|
34
|
+
}
|
@@ -0,0 +1,42 @@
|
|
1
|
+
a, abbr, acronym, address, applet, article, aside, audio, b, big, blockquote, body, canvas, caption, center, cite, code, dd, del, details, dfn, div, dl, dt, em, embed, fieldset, figcaption, figure, footer, form, h1, h2, h3, h4, h5, h6, header, hgroup, html, i, iframe, img, input, ins, kbd, label, legend, li, mark, menu, nav, object, ol, output, p, pre, q, ruby, s, samp, section, small, span, strike, strong, sub, summary, sup, table, tbody, td, textarea, tfoot, th, thead, time, tr, tt, u, ul, var, video {
|
2
|
+
margin: 0;
|
3
|
+
padding: 0;
|
4
|
+
border: 0;
|
5
|
+
font-size: 100%;
|
6
|
+
font: inherit;
|
7
|
+
vertical-align: baseline;
|
8
|
+
|
9
|
+
/* FIX BOX SIZING FOR RESPONSIVE DESIGNS */
|
10
|
+
-webkit-box-sizing: border-box; /* Safari/Chrome, other WebKit */
|
11
|
+
-moz-box-sizing: border-box; /* Firefox, other Gecko */
|
12
|
+
box-sizing: border-box; /* Opera/IE 8+ */
|
13
|
+
}
|
14
|
+
|
15
|
+
article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, section
|
16
|
+
{ display: block;}
|
17
|
+
|
18
|
+
|
19
|
+
ol, ul { list-style: none;}
|
20
|
+
|
21
|
+
a:link, a:visited {
|
22
|
+
text-decoration: none;
|
23
|
+
color: black;
|
24
|
+
}
|
25
|
+
|
26
|
+
|
27
|
+
|
28
|
+
/* Useful default classes */
|
29
|
+
.print_only { display: none;}
|
30
|
+
.hidden,.hide { display: none;}
|
31
|
+
.full { width: 100%;}
|
32
|
+
.half { width: 50%;}
|
33
|
+
.right { float: right;}
|
34
|
+
.left { float: left;}
|
35
|
+
.l { text-align: left;}
|
36
|
+
.r { text-align: right;}
|
37
|
+
.c { text-align: center;}
|
38
|
+
.red { color:red;}
|
39
|
+
.large { font-size: larger;}
|
40
|
+
.test { border: 1px solid red;}
|
41
|
+
.no_overflow { overflow: hidden !important;}
|
42
|
+
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: duffy
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jacob Duffy
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-02-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -74,6 +74,8 @@ files:
|
|
74
74
|
- lib/duffy/version.rb
|
75
75
|
- spec/spec_helper.rb
|
76
76
|
- spec/string_spec.rb
|
77
|
+
- vendor/assets/stylesheets/duffy/print.css
|
78
|
+
- vendor/assets/stylesheets/duffy/reset.css
|
77
79
|
homepage: https://github.com/duffyjp/duffy
|
78
80
|
licenses:
|
79
81
|
- MIT
|
@@ -94,7 +96,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
94
96
|
version: '0'
|
95
97
|
requirements: []
|
96
98
|
rubyforge_project:
|
97
|
-
rubygems_version: 2.4.
|
99
|
+
rubygems_version: 2.4.2
|
98
100
|
signing_key:
|
99
101
|
specification_version: 4
|
100
102
|
summary: Library of things
|