duffy 0.0.8 → 0.0.9

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: 361bbe6eab3ff805b7cb85505c2eaa7454288060
4
- data.tar.gz: 3898b205ab16a15c0650c2114ac5ddee28b69d43
3
+ metadata.gz: 95b2dfd6e5d63be6db524418268a771b00d3d55e
4
+ data.tar.gz: 7b0f0c1a6fc722af1efedc5651ecb93ed79bcbb0
5
5
  SHA512:
6
- metadata.gz: e1dae822379c3e5093f64b02918624bce7fb1dea26bc8879f3904c78c2e5b7924103fa1413b8dbbfcd76bbf100aa5d177360a81025825812272b52fff92da226
7
- data.tar.gz: c15affda9804b108a6de7e1236b8c774a8e91a4f4f435d5f19f7a150eeb350d4535a0b506813c4c20312cd3ac0e57a670f6642f6fac6b0220e1ab13f7f659175
6
+ metadata.gz: da8049f3a345c016cc2fa7bacc7a8e68402ca89d466a2b0dec690ce237a7156de208a7ad752a17088094ae580e7639fc908101d283cd672ffb1d0b280a9df39f
7
+ data.tar.gz: 7a9f0048e37181294768ffe10129ee3cc7238e7542d88ca1503bc18528103cd80968da1dd0340440f76a0d21aaceab7d48909f186954ec62f3096c5061ecd812
data/README.md CHANGED
@@ -24,7 +24,7 @@ String Patches:
24
24
  to_alpha
25
25
  to_alpha_numeric
26
26
  pretty_phone
27
- pretty_committer # TODO: Setup gem configuration to load patterns
27
+ pretty_committer # "bob".pretty_committer => "Robert McLovin"
28
28
  space2nbsp
29
29
  nl2br
30
30
  gender_human
@@ -32,7 +32,7 @@ String Patches:
32
32
  ```
33
33
 
34
34
  Git Access:
35
- This one is namespaced incase you use the 'git' gem. I found it to be overkill for what I wanted.
35
+ This one is namespaced in case you use the 'git' gem. I found it to be overkill for what I wanted.
36
36
  ```ruby
37
37
  Duffy::Git.log # => Produce tab separated listing of current git log.
38
38
  Duffy::Git.count # => Count of git commits in current branch
@@ -46,6 +46,12 @@ This is a work in progress. I'm going to try to put all my generic helpers here
46
46
  icon
47
47
  ```
48
48
 
49
+ CSS Reset & Print Styles: Very barebones CSS Reset / Sensible defaults and Print stylesheets.
50
+ ```ruby
51
+ require duffy/reset
52
+ require duffy/print
53
+ ```
54
+
49
55
  ## Contributing
50
56
 
51
57
  1. Fork it ( https://github.com/[my-github-username]/duffy/fork )
data/Rakefile CHANGED
@@ -1,2 +1,6 @@
1
1
  require "bundler/gem_tasks"
2
2
 
3
+ # Set RSpec to run as the default rake task.
4
+ require 'rspec/core/rake_task'
5
+ RSpec::Core::RakeTask.new(:spec)
6
+ task default: :spec
data/duffy.gemspec CHANGED
@@ -20,5 +20,6 @@ Gem::Specification.new do |spec|
20
20
 
21
21
  spec.add_development_dependency "bundler", "~> 1.7"
22
22
  spec.add_development_dependency "rake", "~> 10.0"
23
+ spec.add_development_dependency "rails"
23
24
  spec.add_development_dependency "rspec"
24
25
  end
@@ -0,0 +1,4 @@
1
+ module Duffy
2
+ class Engine < ::Rails::Engine
3
+ end
4
+ end
data/lib/duffy/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Duffy
2
- VERSION = "0.0.8"
2
+ VERSION = "0.0.9"
3
3
  end
data/lib/duffy.rb CHANGED
@@ -1,18 +1,17 @@
1
+ require File.dirname(__FILE__) + "/duffy/engine"
2
+ require File.dirname(__FILE__) + "/duffy/railtie" if defined?(Rails)
3
+
4
+
1
5
  require File.dirname(__FILE__) + "/duffy/version"
2
6
  require File.dirname(__FILE__) + "/duffy/git"
3
7
  require File.dirname(__FILE__) + "/duffy/string"
4
8
 
5
- # Helper LazyLoaded:
6
- require File.dirname(__FILE__) + "/duffy/railtie" if defined?(Rails)
7
-
8
9
 
9
10
  # Required to add assets to pipeline
10
11
  # example:
11
12
  # [application.css]
12
13
  # *= require duffy/reset
13
14
  module Duffy
14
- class Engine < Rails::Engine
15
- end
16
15
 
17
16
  def self.configuration
18
17
  @configuration ||= Duffy::Configuration.new
data/spec/spec_helper.rb CHANGED
@@ -1,4 +1,5 @@
1
1
  require 'bundler/setup'
2
+ require 'rails'
2
3
  Bundler.setup
3
4
  require 'duffy'
4
5
 
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.8
4
+ version: 0.0.9
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-02-04 00:00:00.000000000 Z
11
+ date: 2015-02-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -38,6 +38,20 @@ dependencies:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
40
  version: '10.0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: rails
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ">="
46
+ - !ruby/object:Gem::Version
47
+ version: '0'
48
+ type: :development
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: rspec
43
57
  requirement: !ruby/object:Gem::Requirement
@@ -68,6 +82,7 @@ files:
68
82
  - duffy.gemspec
69
83
  - lib/duffy.rb
70
84
  - lib/duffy/duffy_helper.rb
85
+ - lib/duffy/engine.rb
71
86
  - lib/duffy/git.rb
72
87
  - lib/duffy/railtie.rb
73
88
  - lib/duffy/string.rb