one_inch_punch 0.5.0 → 0.5.1
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.
- data/History.txt +5 -0
- data/lib/punch/version.rb +1 -1
- data/lib/punch.rb +1 -2
- data/spec/fixnum_spec.rb +1 -1
- data/spec/punch_command_spec.rb +1 -1
- data/spec/punch_instance_spec.rb +1 -1
- data/spec/punch_spec.rb +1 -1
- metadata +57 -123
- data/Manifest.txt +0 -25
- data/Rakefile +0 -4
- data/config/hoe.rb +0 -79
- data/config/requirements.rb +0 -15
- data/script/console +0 -10
- data/script/destroy +0 -14
- data/script/generate +0 -14
- data/setup.rb +0 -1585
- data/tasks/deployment.rake +0 -34
- data/tasks/environment.rake +0 -7
- data/tasks/website.rake +0 -9
data/History.txt
CHANGED
data/lib/punch/version.rb
CHANGED
data/lib/punch.rb
CHANGED
@@ -53,8 +53,7 @@ class Punch
|
|
53
53
|
stats = {}
|
54
54
|
projects.each { |project| stats[project] = status(project, options) }
|
55
55
|
if options[:short]
|
56
|
-
stats.reject! { |k, v|
|
57
|
-
stats.reject! { |k, v| v != 'in' and v[:status] != 'in' }
|
56
|
+
stats.reject! { |k, v| !in?(k) }
|
58
57
|
stats = 'out' if stats.empty?
|
59
58
|
end
|
60
59
|
return stats
|
data/spec/fixnum_spec.rb
CHANGED
data/spec/punch_command_spec.rb
CHANGED
data/spec/punch_instance_spec.rb
CHANGED
data/spec/punch_spec.rb
CHANGED
metadata
CHANGED
@@ -1,159 +1,93 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: one_inch_punch
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
5
|
-
prerelease:
|
6
|
-
segments:
|
7
|
-
- 0
|
8
|
-
- 5
|
9
|
-
- 0
|
10
|
-
version: 0.5.0
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.5.1
|
5
|
+
prerelease:
|
11
6
|
platform: ruby
|
12
|
-
authors:
|
7
|
+
authors:
|
13
8
|
- Yossef Mendelssohn
|
14
9
|
autorequire:
|
15
10
|
bindir: bin
|
16
11
|
cert_chain: []
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
dependencies:
|
21
|
-
- !ruby/object:Gem::Dependency
|
22
|
-
name: timely
|
23
|
-
prerelease: false
|
24
|
-
requirement: &id001 !ruby/object:Gem::Requirement
|
25
|
-
none: false
|
26
|
-
requirements:
|
27
|
-
- - ">="
|
28
|
-
- !ruby/object:Gem::Version
|
29
|
-
hash: 29
|
30
|
-
segments:
|
31
|
-
- 0
|
32
|
-
- 0
|
33
|
-
- 1
|
34
|
-
version: 0.0.1
|
35
|
-
type: :runtime
|
36
|
-
version_requirements: *id001
|
37
|
-
- !ruby/object:Gem::Dependency
|
12
|
+
date: 2012-03-19 00:00:00.000000000Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
38
15
|
name: bacon
|
39
|
-
|
40
|
-
requirement: &id002 !ruby/object:Gem::Requirement
|
16
|
+
requirement: &2157947500 !ruby/object:Gem::Requirement
|
41
17
|
none: false
|
42
|
-
requirements:
|
43
|
-
- -
|
44
|
-
- !ruby/object:Gem::Version
|
45
|
-
hash: 19
|
46
|
-
segments:
|
47
|
-
- 1
|
48
|
-
- 1
|
49
|
-
- 0
|
18
|
+
requirements:
|
19
|
+
- - ! '>='
|
20
|
+
- !ruby/object:Gem::Version
|
50
21
|
version: 1.1.0
|
51
22
|
type: :development
|
52
|
-
version_requirements: *id002
|
53
|
-
- !ruby/object:Gem::Dependency
|
54
|
-
name: facon
|
55
23
|
prerelease: false
|
56
|
-
|
24
|
+
version_requirements: *2157947500
|
25
|
+
- !ruby/object:Gem::Dependency
|
26
|
+
name: facon
|
27
|
+
requirement: &2157947000 !ruby/object:Gem::Requirement
|
57
28
|
none: false
|
58
|
-
requirements:
|
59
|
-
- -
|
60
|
-
- !ruby/object:Gem::Version
|
61
|
-
|
62
|
-
segments:
|
63
|
-
- 0
|
64
|
-
- 4
|
65
|
-
- 1
|
66
|
-
version: 0.4.1
|
29
|
+
requirements:
|
30
|
+
- - ! '>='
|
31
|
+
- !ruby/object:Gem::Version
|
32
|
+
version: 0.5.0
|
67
33
|
type: :development
|
68
|
-
version_requirements: *id003
|
69
|
-
- !ruby/object:Gem::Dependency
|
70
|
-
name: hoe
|
71
34
|
prerelease: false
|
72
|
-
|
35
|
+
version_requirements: *2157947000
|
36
|
+
- !ruby/object:Gem::Dependency
|
37
|
+
name: timely
|
38
|
+
requirement: &2157946540 !ruby/object:Gem::Requirement
|
73
39
|
none: false
|
74
|
-
requirements:
|
75
|
-
- -
|
76
|
-
- !ruby/object:Gem::Version
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
type: :development
|
84
|
-
version_requirements: *id004
|
85
|
-
description: a simple time-tracking tool
|
86
|
-
email:
|
40
|
+
requirements:
|
41
|
+
- - ! '>='
|
42
|
+
- !ruby/object:Gem::Version
|
43
|
+
version: 0.0.1
|
44
|
+
type: :runtime
|
45
|
+
prerelease: false
|
46
|
+
version_requirements: *2157946540
|
47
|
+
description: A simple time-tracking tool, compatible with Ara T. Howard's punch gem.
|
48
|
+
email:
|
87
49
|
- ymendel@pobox.com
|
88
|
-
executables:
|
50
|
+
executables:
|
89
51
|
- punch
|
90
52
|
extensions: []
|
91
|
-
|
92
|
-
|
93
|
-
- History.txt
|
53
|
+
extra_rdoc_files: []
|
54
|
+
files:
|
94
55
|
- License.txt
|
95
|
-
- Manifest.txt
|
96
|
-
- README.txt
|
97
|
-
files:
|
98
56
|
- History.txt
|
99
|
-
- License.txt
|
100
|
-
- Manifest.txt
|
101
57
|
- README.txt
|
102
|
-
- Rakefile
|
103
|
-
- bin/punch
|
104
|
-
- config/hoe.rb
|
105
|
-
- config/requirements.rb
|
106
|
-
- lib/punch.rb
|
107
|
-
- lib/punch/core_ext.rb
|
108
58
|
- lib/punch/core_ext/fixnum.rb
|
109
|
-
- lib/punch/
|
59
|
+
- lib/punch/core_ext.rb
|
110
60
|
- lib/punch/instance.rb
|
111
|
-
-
|
112
|
-
-
|
113
|
-
- script/generate
|
114
|
-
- setup.rb
|
61
|
+
- lib/punch/version.rb
|
62
|
+
- lib/punch.rb
|
115
63
|
- spec/fixnum_spec.rb
|
116
64
|
- spec/punch_command_spec.rb
|
117
65
|
- spec/punch_instance_spec.rb
|
118
66
|
- spec/punch_spec.rb
|
119
67
|
- spec/spec_helper.rb
|
120
|
-
-
|
121
|
-
|
122
|
-
- tasks/website.rake
|
123
|
-
has_rdoc: true
|
124
|
-
homepage: http://yomendel.rubyforge.org
|
68
|
+
- bin/punch
|
69
|
+
homepage: http://github.com/ymendel/one_inch_punch/
|
125
70
|
licenses: []
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
- --main
|
130
|
-
- README.txt
|
131
|
-
require_paths:
|
71
|
+
post_install_message:
|
72
|
+
rdoc_options: []
|
73
|
+
require_paths:
|
132
74
|
- lib
|
133
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
75
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
134
76
|
none: false
|
135
|
-
requirements:
|
136
|
-
- -
|
137
|
-
- !ruby/object:Gem::Version
|
138
|
-
|
139
|
-
|
140
|
-
- 0
|
141
|
-
version: "0"
|
142
|
-
required_rubygems_version: !ruby/object:Gem::Requirement
|
77
|
+
requirements:
|
78
|
+
- - ! '>='
|
79
|
+
- !ruby/object:Gem::Version
|
80
|
+
version: '0'
|
81
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
143
82
|
none: false
|
144
|
-
requirements:
|
145
|
-
- -
|
146
|
-
- !ruby/object:Gem::Version
|
147
|
-
|
148
|
-
segments:
|
149
|
-
- 0
|
150
|
-
version: "0"
|
83
|
+
requirements:
|
84
|
+
- - ! '>='
|
85
|
+
- !ruby/object:Gem::Version
|
86
|
+
version: '0'
|
151
87
|
requirements: []
|
152
|
-
|
153
|
-
|
154
|
-
rubygems_version: 1.3.7
|
88
|
+
rubyforge_project:
|
89
|
+
rubygems_version: 1.8.10
|
155
90
|
signing_key:
|
156
91
|
specification_version: 3
|
157
|
-
summary:
|
92
|
+
summary: Track your time locally.
|
158
93
|
test_files: []
|
159
|
-
|
data/Manifest.txt
DELETED
@@ -1,25 +0,0 @@
|
|
1
|
-
History.txt
|
2
|
-
License.txt
|
3
|
-
Manifest.txt
|
4
|
-
README.txt
|
5
|
-
Rakefile
|
6
|
-
bin/punch
|
7
|
-
config/hoe.rb
|
8
|
-
config/requirements.rb
|
9
|
-
lib/punch.rb
|
10
|
-
lib/punch/core_ext.rb
|
11
|
-
lib/punch/core_ext/fixnum.rb
|
12
|
-
lib/punch/version.rb
|
13
|
-
lib/punch/instance.rb
|
14
|
-
script/console
|
15
|
-
script/destroy
|
16
|
-
script/generate
|
17
|
-
setup.rb
|
18
|
-
spec/fixnum_spec.rb
|
19
|
-
spec/punch_command_spec.rb
|
20
|
-
spec/punch_instance_spec.rb
|
21
|
-
spec/punch_spec.rb
|
22
|
-
spec/spec_helper.rb
|
23
|
-
tasks/deployment.rake
|
24
|
-
tasks/environment.rake
|
25
|
-
tasks/website.rake
|
data/Rakefile
DELETED
data/config/hoe.rb
DELETED
@@ -1,79 +0,0 @@
|
|
1
|
-
require 'punch/version'
|
2
|
-
|
3
|
-
AUTHOR = 'Yossef Mendelssohn' # can also be an array of Authors
|
4
|
-
EMAIL = 'ymendel@pobox.com'
|
5
|
-
DESCRIPTION = 'a simple time-tracking tool'
|
6
|
-
GEM_NAME = 'one_inch_punch' # what ppl will type to install your gem
|
7
|
-
RUBYFORGE_PROJECT = 'yomendel' # The unix name for your project
|
8
|
-
HOMEPATH = "http://#{RUBYFORGE_PROJECT}.rubyforge.org"
|
9
|
-
DOWNLOAD_PATH = "http://rubyforge.org/projects/#{RUBYFORGE_PROJECT}"
|
10
|
-
EXTRA_DEPENDENCIES = [
|
11
|
-
['timely', '>= 0.0.1']
|
12
|
-
] # An array of rubygem dependencies [name, version]
|
13
|
-
EXTRA_DEV_DEPENDENCIES = [
|
14
|
-
['bacon', '>= 1.1.0'],
|
15
|
-
['facon', '>= 0.4.1']
|
16
|
-
] # An array of rubygem dependencies [name, version]
|
17
|
-
|
18
|
-
@config_file = "~/.rubyforge/user-config.yml"
|
19
|
-
@config = nil
|
20
|
-
RUBYFORGE_USERNAME = "unknown"
|
21
|
-
def rubyforge_username
|
22
|
-
unless @config
|
23
|
-
begin
|
24
|
-
@config = YAML.load(File.read(File.expand_path(@config_file)))
|
25
|
-
rescue
|
26
|
-
puts <<-EOS
|
27
|
-
ERROR: No rubyforge config file found: #{@config_file}
|
28
|
-
Run 'rubyforge setup' to prepare your env for access to Rubyforge
|
29
|
-
- See http://newgem.rubyforge.org/rubyforge.html for more details
|
30
|
-
EOS
|
31
|
-
exit
|
32
|
-
end
|
33
|
-
end
|
34
|
-
RUBYFORGE_USERNAME.replace @config["username"]
|
35
|
-
end
|
36
|
-
|
37
|
-
|
38
|
-
REV = nil
|
39
|
-
# UNCOMMENT IF REQUIRED:
|
40
|
-
# REV = YAML.load(`svn info`)['Revision']
|
41
|
-
VERS = Punch::VERSION::STRING + (REV ? ".#{REV}" : "")
|
42
|
-
RDOC_OPTS = ['--quiet', '--title', 'one_inch_punch documentation',
|
43
|
-
"--opname", "index.html",
|
44
|
-
"--line-numbers",
|
45
|
-
"--main", "README",
|
46
|
-
"--inline-source"]
|
47
|
-
|
48
|
-
class Hoe
|
49
|
-
def extra_deps
|
50
|
-
@extra_deps.reject! { |x| Array(x).first == 'hoe' }
|
51
|
-
@extra_deps
|
52
|
-
end
|
53
|
-
end
|
54
|
-
|
55
|
-
# Generate all the Rake tasks
|
56
|
-
# Run 'rake -T' to see list of generated tasks (from gem root directory)
|
57
|
-
$hoe = Hoe.new(GEM_NAME, VERS) do |p|
|
58
|
-
p.developer(AUTHOR, EMAIL)
|
59
|
-
p.description = DESCRIPTION
|
60
|
-
p.summary = DESCRIPTION
|
61
|
-
p.url = HOMEPATH
|
62
|
-
p.rubyforge_name = RUBYFORGE_PROJECT if RUBYFORGE_PROJECT
|
63
|
-
p.test_globs = ["test/**/test_*.rb"]
|
64
|
-
p.clean_globs |= ['**/.*.sw?', '*.gem', '.config', '**/.DS_Store'] #An array of file patterns to delete on clean.
|
65
|
-
|
66
|
-
# == Optional
|
67
|
-
p.changes = p.paragraphs_of("History.txt", 0..1).join("\n\n")
|
68
|
-
p.extra_deps = EXTRA_DEPENDENCIES
|
69
|
-
p.extra_dev_deps = EXTRA_DEV_DEPENDENCIES
|
70
|
-
|
71
|
-
#p.spec_extras = {} # A hash of extra values to set in the gemspec.
|
72
|
-
|
73
|
-
end
|
74
|
-
|
75
|
-
CHANGES = $hoe.paragraphs_of('History.txt', 0..1).join("\\n\\n")
|
76
|
-
PATH = (RUBYFORGE_PROJECT == GEM_NAME) ? RUBYFORGE_PROJECT : "#{RUBYFORGE_PROJECT}/#{GEM_NAME}"
|
77
|
-
$hoe.remote_rdoc_dir = File.join(PATH.gsub(/^#{RUBYFORGE_PROJECT}\/?/,''), 'rdoc')
|
78
|
-
$hoe.rsync_args = '-av --delete --ignore-errors'
|
79
|
-
$hoe.spec.post_install_message = File.open(File.dirname(__FILE__) + "/../PostInstall.txt").read rescue ""
|
data/config/requirements.rb
DELETED
@@ -1,15 +0,0 @@
|
|
1
|
-
require 'fileutils'
|
2
|
-
include FileUtils
|
3
|
-
|
4
|
-
require 'rubygems'
|
5
|
-
%w[rake hoe newgem rubigen].each do |req_gem|
|
6
|
-
begin
|
7
|
-
require req_gem
|
8
|
-
rescue LoadError
|
9
|
-
puts "This Rakefile requires the '#{req_gem}' RubyGem."
|
10
|
-
puts "Installation: gem install #{req_gem} -y"
|
11
|
-
exit
|
12
|
-
end
|
13
|
-
end
|
14
|
-
|
15
|
-
$:.unshift(File.join(File.dirname(__FILE__), %w[.. lib]))
|
data/script/console
DELETED
@@ -1,10 +0,0 @@
|
|
1
|
-
#!/usr/bin/env ruby
|
2
|
-
# File: script/console
|
3
|
-
irb = RUBY_PLATFORM =~ /(:?mswin|mingw)/ ? 'irb.bat' : 'irb'
|
4
|
-
|
5
|
-
libs = " -r irb/completion"
|
6
|
-
# Perhaps use a console_lib to store any extra methods I may want available in the cosole
|
7
|
-
# libs << " -r #{File.dirname(__FILE__) + '/../lib/console_lib/console_logger.rb'}"
|
8
|
-
libs << " -r #{File.dirname(__FILE__) + '/../lib/one_inch_punch.rb'}"
|
9
|
-
puts "Loading one_inch_punch gem"
|
10
|
-
exec "#{irb} #{libs} --simple-prompt"
|
data/script/destroy
DELETED
@@ -1,14 +0,0 @@
|
|
1
|
-
#!/usr/bin/env ruby
|
2
|
-
APP_ROOT = File.expand_path(File.join(File.dirname(__FILE__), '..'))
|
3
|
-
|
4
|
-
begin
|
5
|
-
require 'rubigen'
|
6
|
-
rescue LoadError
|
7
|
-
require 'rubygems'
|
8
|
-
require 'rubigen'
|
9
|
-
end
|
10
|
-
require 'rubigen/scripts/destroy'
|
11
|
-
|
12
|
-
ARGV.shift if ['--help', '-h'].include?(ARGV[0])
|
13
|
-
RubiGen::Base.use_component_sources! [:rubygems, :newgem, :newgem_theme, :test_unit]
|
14
|
-
RubiGen::Scripts::Destroy.new.run(ARGV)
|
data/script/generate
DELETED
@@ -1,14 +0,0 @@
|
|
1
|
-
#!/usr/bin/env ruby
|
2
|
-
APP_ROOT = File.expand_path(File.join(File.dirname(__FILE__), '..'))
|
3
|
-
|
4
|
-
begin
|
5
|
-
require 'rubigen'
|
6
|
-
rescue LoadError
|
7
|
-
require 'rubygems'
|
8
|
-
require 'rubigen'
|
9
|
-
end
|
10
|
-
require 'rubigen/scripts/generate'
|
11
|
-
|
12
|
-
ARGV.shift if ['--help', '-h'].include?(ARGV[0])
|
13
|
-
RubiGen::Base.use_component_sources! [:rubygems, :newgem, :newgem_theme, :test_unit]
|
14
|
-
RubiGen::Scripts::Generate.new.run(ARGV)
|