duffy 0.0.6 → 0.0.7

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: 63abea13ed8baf2db1aa51531dc80cf3513a161b
4
- data.tar.gz: cbdb314e0fccd5048db224cffa94caec2de2dd29
3
+ metadata.gz: d2c0c79fd0c66096e43aabbb8f14e8270a059369
4
+ data.tar.gz: 622727f32c423cdbc15f5105f93c7097fc8f7d9c
5
5
  SHA512:
6
- metadata.gz: a39fba887145bbd46ea4b13570aa99c1354164efc4d0de8fece95701598674727e9e7e5460fa6baee6af1d7156fcf223a89c4660383fd9eec15d29f597d051c6
7
- data.tar.gz: 99434d1e26ab9d2a2dacb1e9b727fe00313f9f981d722398ddead077ceeb0309c9b2c8fa81d0ad143d207c0a2f0f118d399fbe54162bbc0d1f1135e20b6db461
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
@@ -1,3 +1,3 @@
1
1
  module Duffy
2
- VERSION = "0.0.6"
2
+ VERSION = "0.0.7"
3
3
  end
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.6
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-01-08 00:00:00.000000000 Z
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.3
99
+ rubygems_version: 2.4.2
98
100
  signing_key:
99
101
  specification_version: 4
100
102
  summary: Library of things