duffy 0.0.1 → 0.0.3

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: e49596034882727a05b0ace2685e25fca095d97a
4
- data.tar.gz: 6df700d252757a65d0fa34120cc6a405ffd5edb1
3
+ metadata.gz: 30abd81a96488a7b9d459dedaba4024d34955ba6
4
+ data.tar.gz: aad43f04f7da8249f5244ff88381d535c4f695fc
5
5
  SHA512:
6
- metadata.gz: 0ba21b1d7bd918463b39735602b3eef8dd1fccb9d757148ff1f7c20ecac54f8e9f3f2432b7075fd577fe959a23006fc88e0bf6929bd808a05174c3f2dad0bf63
7
- data.tar.gz: 890b1cd8b4c35fb761f924cba0015cf2d3da949a4470c3d7be3ece1b98deea9ec6a4426cc1ec85f41b046a1c2eab60a64cd427fc90fa67c81ef7a55b85e4da75
6
+ metadata.gz: 109756b56bfb368056ecc9a494bee298b8106daa01222f9249bc1eb7d22079a81ae6387f30994c7b946ab2f810dd02ae7a81c51ca0ab7e1679d6b1e268585152
7
+ data.tar.gz: d6a13b599b0c1842b904eb65e64e7f78306398898ffc89e23838802da23f91c0166a8cc0cb8c6cd3b5c1ccbca57cdce58aefb4ae56f4013c098cb7237bf78f46
data/.gitignore ADDED
@@ -0,0 +1,15 @@
1
+ /.idea*
2
+ /.bundle/
3
+ /.yardoc
4
+ /Gemfile.lock
5
+ /_yardoc/
6
+ /coverage/
7
+ /doc/
8
+ /pkg/
9
+ /spec/reports/
10
+ /tmp/
11
+ *.bundle
12
+ *.so
13
+ *.o
14
+ *.a
15
+ mkmf.log
data/Gemfile ADDED
@@ -0,0 +1,4 @@
1
+ source 'https://rubygems.org'
2
+
3
+ # Specify your gem's dependencies in duffy.gemspec
4
+ gemspec
data/LICENSE.txt ADDED
@@ -0,0 +1,22 @@
1
+ Copyright (c) 2014 JP Duffy
2
+
3
+ MIT License
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining
6
+ a copy of this software and associated documentation files (the
7
+ "Software"), to deal in the Software without restriction, including
8
+ without limitation the rights to use, copy, modify, merge, publish,
9
+ distribute, sublicense, and/or sell copies of the Software, and to
10
+ permit persons to whom the Software is furnished to do so, subject to
11
+ the following conditions:
12
+
13
+ The above copyright notice and this permission notice shall be
14
+ included in all copies or substantial portions of the Software.
15
+
16
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
19
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
20
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
21
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
22
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,31 @@
1
+ # Duffy
2
+
3
+ TODO: Write a gem description
4
+
5
+ ## Installation
6
+
7
+ Add this line to your application's Gemfile:
8
+
9
+ ```ruby
10
+ gem 'duffy'
11
+ ```
12
+
13
+ And then execute:
14
+
15
+ $ bundle
16
+
17
+ Or install it yourself as:
18
+
19
+ $ gem install duffy
20
+
21
+ ## Usage
22
+
23
+ TODO: Write usage instructions here
24
+
25
+ ## Contributing
26
+
27
+ 1. Fork it ( https://github.com/[my-github-username]/duffy/fork )
28
+ 2. Create your feature branch (`git checkout -b my-new-feature`)
29
+ 3. Commit your changes (`git commit -am 'Add some feature'`)
30
+ 4. Push to the branch (`git push origin my-new-feature`)
31
+ 5. Create a new Pull Request
data/Rakefile ADDED
@@ -0,0 +1,2 @@
1
+ require "bundler/gem_tasks"
2
+
data/duffy.gemspec ADDED
@@ -0,0 +1,23 @@
1
+ # coding: utf-8
2
+ lib = File.expand_path('../lib', __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require 'duffy/version'
5
+
6
+ Gem::Specification.new do |spec|
7
+ spec.name = "duffy"
8
+ spec.version = Duffy::VERSION
9
+ spec.authors = ["Jacob Duffy"]
10
+ spec.email = ["duffy.jp@gmail.com"]
11
+ spec.summary = "Library of things"
12
+ spec.description = "Random collection of useful things."
13
+ spec.homepage = "https://github.com/duffyjp/duffy"
14
+ spec.license = "MIT"
15
+
16
+ spec.files = `git ls-files -z`.split("\x0")
17
+ spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
18
+ spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
19
+ spec.require_paths = ["lib"]
20
+
21
+ spec.add_development_dependency "bundler", "~> 1.7"
22
+ spec.add_development_dependency "rake", "~> 10.0"
23
+ end
@@ -0,0 +1,3 @@
1
+ module Duffy
2
+ VERSION = "0.0.3"
3
+ end
data/lib/duffy.rb CHANGED
@@ -1,13 +1,29 @@
1
+ require "duffy/version"
2
+
1
3
  module Duffy
2
4
 
5
+
6
+ # I like to have a git log in the admin section of my websites. I use these in my capistrano tasks to
7
+ # generate what I need and upload along with the deployment.
8
+
3
9
  class Git
4
- def log
5
- puts "TEST"
10
+ class << self
11
+
12
+ # Produce tab separated listing of current git log.
13
+ # Useful for displaying a development history page.
14
+ def log
15
+ `git log --pretty=format:"%ad%x09%an%x09%s" --date=short`
16
+ end
17
+
18
+ # I tend use the commit count / 1000.0 as a version for my applications.
19
+ # You wouldn't want to do that if you're building a gem used by others.
20
+ def count
21
+ `git rev-list HEAD --count`
22
+ end
23
+
6
24
  end
7
-
8
25
  end
9
26
 
10
27
 
11
- end
12
-
13
28
 
29
+ end
metadata CHANGED
@@ -1,23 +1,59 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: duffy
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
- - JP Duffy
7
+ - Jacob Duffy
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
  date: 2014-12-16 00:00:00.000000000 Z
12
- dependencies: []
13
- description: Library of useful things.
14
- email: duffy.jp@gmail.com
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: bundler
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '1.7'
20
+ type: :development
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '1.7'
27
+ - !ruby/object:Gem::Dependency
28
+ name: rake
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '10.0'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '10.0'
41
+ description: Random collection of useful things.
42
+ email:
43
+ - duffy.jp@gmail.com
15
44
  executables: []
16
45
  extensions: []
17
46
  extra_rdoc_files: []
18
47
  files:
48
+ - ".gitignore"
49
+ - Gemfile
50
+ - LICENSE.txt
51
+ - README.md
52
+ - Rakefile
53
+ - duffy.gemspec
19
54
  - lib/duffy.rb
20
- homepage: http://rubygems.org/gems/duffy
55
+ - lib/duffy/version.rb
56
+ homepage: https://github.com/duffyjp/duffy
21
57
  licenses:
22
58
  - MIT
23
59
  metadata: {}
@@ -37,8 +73,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
37
73
  version: '0'
38
74
  requirements: []
39
75
  rubyforge_project:
40
- rubygems_version: 2.4.2
76
+ rubygems_version: 2.2.2
41
77
  signing_key:
42
78
  specification_version: 4
43
- summary: Useful Things
79
+ summary: Library of things
44
80
  test_files: []