hangover 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
data/.gitignore ADDED
@@ -0,0 +1,4 @@
1
+ .hangover
2
+ .hangover_pid
3
+ pkg
4
+ .DS_Store
data/Gemfile CHANGED
@@ -2,5 +2,4 @@ source "http://rubygems.org"
2
2
 
3
3
  gem "rb-fsevent"
4
4
  gem "i18n"
5
- gem "activesupport"
6
- gem "jeweler"
5
+ gem "activesupport"
data/Gemfile.lock CHANGED
@@ -2,13 +2,7 @@ GEM
2
2
  remote: http://rubygems.org/
3
3
  specs:
4
4
  activesupport (3.0.3)
5
- git (1.2.5)
6
5
  i18n (0.5.0)
7
- jeweler (1.5.2)
8
- bundler (~> 1.0.0)
9
- git (>= 1.2.5)
10
- rake
11
- rake (0.8.7)
12
6
  rb-fsevent (0.4.0)
13
7
 
14
8
  PLATFORMS
@@ -17,5 +11,4 @@ PLATFORMS
17
11
  DEPENDENCIES
18
12
  activesupport
19
13
  i18n
20
- jeweler
21
14
  rb-fsevent
data/Rakefile CHANGED
@@ -1,31 +1,5 @@
1
- require 'rubygems'
2
1
  require 'bundler'
3
- begin
4
- Bundler.setup(:default, :development)
5
- rescue Bundler::BundlerError => e
6
- $stderr.puts e.message
7
- $stderr.puts "Run `bundle install` to install missing gems"
8
- exit e.status_code
9
- end
10
- require 'rake'
11
-
12
- require 'jeweler'
13
- Jeweler::Tasks.new do |gem|
14
- # gem is a Gem::Specification... see http://docs.rubygems.org/read/chapter/20 for more options
15
- gem.name = "hangover"
16
- gem.homepage = "http://github.com/unnu/hangover"
17
- gem.license = "MIT"
18
- gem.summary = %Q{Tracks any single change of a complete directory in a git repository.}
19
- gem.description = %Q{Later.}
20
- gem.email = "norman.timmler@gmail.com"
21
- gem.authors = ["unnu"]
22
- # Include your dependencies below. Runtime dependencies are required when using your gem,
23
- # and development dependencies are only needed for development (ie running rake tasks, tests, etc)
24
- gem.add_runtime_dependency 'rb-fsevent', '>= 0.4.0'
25
- gem.add_runtime_dependency 'activesupport', '>= 3.0.3'
26
- # gem.add_development_dependency 'rspec', '> 1.2.3'
27
- end
28
- Jeweler::RubygemsDotOrgTasks.new
2
+ Bundler::GemHelper.install_tasks
29
3
 
30
4
  require 'rake/testtask'
31
5
  Rake::TestTask.new(:test) do |test|
@@ -34,14 +8,4 @@ Rake::TestTask.new(:test) do |test|
34
8
  test.verbose = true
35
9
  end
36
10
 
37
- task :default => :test
38
-
39
- require 'rake/rdoctask'
40
- Rake::RDocTask.new do |rdoc|
41
- version = File.exist?('VERSION') ? File.read('VERSION') : ""
42
-
43
- rdoc.rdoc_dir = 'rdoc'
44
- rdoc.title = "hangover #{version}"
45
- rdoc.rdoc_files.include('README*')
46
- rdoc.rdoc_files.include('lib/**/*.rb')
47
- end
11
+ task :default => :test
data/bin/hangover CHANGED
@@ -2,10 +2,10 @@
2
2
  require 'fileutils'
3
3
  require File.expand_path(File.dirname(__FILE__) + '/../lib/hangover')
4
4
 
5
- command = ARGV.shift
5
+ command = ARGV.first
6
6
 
7
7
  begin
8
- Hangover.new(`pwd`.chomp).__send__(command, *ARGV)
8
+ Hangover.new(`pwd`.chomp).__send__(command)
9
9
  #rescue => e
10
10
  # $stderr.puts "ERROR: #{e.message}"
11
11
  # exit(1)
data/foo CHANGED
@@ -2,4 +2,4 @@ Das ist Zeile eins.
2
2
  Das ist Zeile zwei.
3
3
  Zeile drei ist weg.
4
4
 
5
- Mal sehen yo!
5
+ Mal sehen yo!
data/hangover.gemspec ADDED
@@ -0,0 +1,21 @@
1
+ # -*- encoding: utf-8 -*-
2
+ $:.push File.expand_path("../lib", __FILE__)
3
+ require "hangover/version"
4
+
5
+ Gem::Specification.new do |s|
6
+ s.name = "hangover"
7
+ s.version = Hangover::VERSION
8
+ s.platform = Gem::Platform::RUBY
9
+ s.authors = ["Norman Timmler"]
10
+ s.email = ["norma.timmler@gmail.com"]
11
+ s.homepage = ""
12
+ s.summary = %q{Unlimited undo.}
13
+ s.description = %q{Saves every change in a repositiory.}
14
+
15
+ s.rubyforge_project = "hangover"
16
+
17
+ s.files = `git ls-files`.split("\n")
18
+ s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
19
+ s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
20
+ s.require_paths = ["lib"]
21
+ end
@@ -0,0 +1,3 @@
1
+ module Hangover
2
+ VERSION = "0.0.2"
3
+ end
metadata CHANGED
@@ -5,124 +5,42 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 0
8
- - 1
9
- version: 0.0.1
8
+ - 2
9
+ version: 0.0.2
10
10
  platform: ruby
11
11
  authors:
12
- - unnu
12
+ - Norman Timmler
13
13
  autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2011-03-26 00:00:00 +01:00
18
- default_executable: hangover
19
- dependencies:
20
- - !ruby/object:Gem::Dependency
21
- name: rb-fsevent
22
- requirement: &id001 !ruby/object:Gem::Requirement
23
- none: false
24
- requirements:
25
- - - ">="
26
- - !ruby/object:Gem::Version
27
- segments:
28
- - 0
29
- version: "0"
30
- type: :runtime
31
- prerelease: false
32
- version_requirements: *id001
33
- - !ruby/object:Gem::Dependency
34
- name: i18n
35
- requirement: &id002 !ruby/object:Gem::Requirement
36
- none: false
37
- requirements:
38
- - - ">="
39
- - !ruby/object:Gem::Version
40
- segments:
41
- - 0
42
- version: "0"
43
- type: :runtime
44
- prerelease: false
45
- version_requirements: *id002
46
- - !ruby/object:Gem::Dependency
47
- name: activesupport
48
- requirement: &id003 !ruby/object:Gem::Requirement
49
- none: false
50
- requirements:
51
- - - ">="
52
- - !ruby/object:Gem::Version
53
- segments:
54
- - 0
55
- version: "0"
56
- type: :runtime
57
- prerelease: false
58
- version_requirements: *id003
59
- - !ruby/object:Gem::Dependency
60
- name: jeweler
61
- requirement: &id004 !ruby/object:Gem::Requirement
62
- none: false
63
- requirements:
64
- - - ">="
65
- - !ruby/object:Gem::Version
66
- segments:
67
- - 0
68
- version: "0"
69
- type: :runtime
70
- prerelease: false
71
- version_requirements: *id004
72
- - !ruby/object:Gem::Dependency
73
- name: rb-fsevent
74
- requirement: &id005 !ruby/object:Gem::Requirement
75
- none: false
76
- requirements:
77
- - - ">="
78
- - !ruby/object:Gem::Version
79
- segments:
80
- - 0
81
- - 4
82
- - 0
83
- version: 0.4.0
84
- type: :runtime
85
- prerelease: false
86
- version_requirements: *id005
87
- - !ruby/object:Gem::Dependency
88
- name: activesupport
89
- requirement: &id006 !ruby/object:Gem::Requirement
90
- none: false
91
- requirements:
92
- - - ">="
93
- - !ruby/object:Gem::Version
94
- segments:
95
- - 3
96
- - 0
97
- - 3
98
- version: 3.0.3
99
- type: :runtime
100
- prerelease: false
101
- version_requirements: *id006
102
- description: Later.
103
- email: norman.timmler@gmail.com
17
+ date: 2011-03-28 00:00:00 +02:00
18
+ default_executable:
19
+ dependencies: []
20
+
21
+ description: Saves every change in a repositiory.
22
+ email:
23
+ - norma.timmler@gmail.com
104
24
  executables:
105
25
  - hangover
106
26
  extensions: []
107
27
 
108
- extra_rdoc_files:
109
- - LICENSE.txt
110
- - README.rdoc
28
+ extra_rdoc_files: []
29
+
111
30
  files:
112
- - .document
31
+ - .gitignore
113
32
  - .rvmrc
114
33
  - Gemfile
115
34
  - Gemfile.lock
116
- - LICENSE.txt
117
- - README.rdoc
118
35
  - Rakefile
119
- - VERSION
120
36
  - bin/hangover
121
37
  - foo
38
+ - hangover.gemspec
122
39
  - lib/hangover.rb
123
40
  - lib/hangover/commit_message_builder.rb
124
41
  - lib/hangover/diff_tokenizer.rb
125
42
  - lib/hangover/repository.rb
43
+ - lib/hangover/version.rb
126
44
  - lib/hangover/watch_dir.rb
127
45
  - test/commit_message_builder_test.rb
128
46
  - test/diff_tokenizer_test.rb
@@ -132,9 +50,9 @@ files:
132
50
  - test/hangover_test.rb
133
51
  - test/test_helper.rb
134
52
  has_rdoc: true
135
- homepage: http://github.com/unnu/hangover
136
- licenses:
137
- - MIT
53
+ homepage: ""
54
+ licenses: []
55
+
138
56
  post_install_message:
139
57
  rdoc_options: []
140
58
 
@@ -145,7 +63,6 @@ required_ruby_version: !ruby/object:Gem::Requirement
145
63
  requirements:
146
64
  - - ">="
147
65
  - !ruby/object:Gem::Version
148
- hash: 567810515
149
66
  segments:
150
67
  - 0
151
68
  version: "0"
@@ -159,13 +76,16 @@ required_rubygems_version: !ruby/object:Gem::Requirement
159
76
  version: "0"
160
77
  requirements: []
161
78
 
162
- rubyforge_project:
79
+ rubyforge_project: hangover
163
80
  rubygems_version: 1.3.7
164
81
  signing_key:
165
82
  specification_version: 3
166
- summary: Tracks any single change of a complete directory in a git repository.
83
+ summary: Unlimited undo.
167
84
  test_files:
168
85
  - test/commit_message_builder_test.rb
169
86
  - test/diff_tokenizer_test.rb
87
+ - test/fixtures/one_line_changed.diff
88
+ - test/fixtures/only_one_add.diff
89
+ - test/fixtures/only_subs.diff
170
90
  - test/hangover_test.rb
171
91
  - test/test_helper.rb
data/.document DELETED
@@ -1,5 +0,0 @@
1
- lib/**/*.rb
2
- bin/*
3
- -
4
- features/**/*.feature
5
- LICENSE.txt
data/LICENSE.txt DELETED
@@ -1,20 +0,0 @@
1
- Copyright (c) 2011 Norman Timmler
2
-
3
- Permission is hereby granted, free of charge, to any person obtaining
4
- a copy of this software and associated documentation files (the
5
- "Software"), to deal in the Software without restriction, including
6
- without limitation the rights to use, copy, modify, merge, publish,
7
- distribute, sublicense, and/or sell copies of the Software, and to
8
- permit persons to whom the Software is furnished to do so, subject to
9
- the following conditions:
10
-
11
- The above copyright notice and this permission notice shall be
12
- included in all copies or substantial portions of the Software.
13
-
14
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
15
- EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16
- MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
17
- NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
18
- LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
19
- OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
20
- WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
data/README.rdoc DELETED
@@ -1,19 +0,0 @@
1
- = hangover
2
-
3
- Description goes here.
4
-
5
- == Contributing to hangover
6
-
7
- * Check out the latest master to make sure the feature hasn't been implemented or the bug hasn't been fixed yet
8
- * Check out the issue tracker to make sure someone already hasn't requested it and/or contributed it
9
- * Fork the project
10
- * Start a feature/bugfix branch
11
- * Commit and push until you are happy with your contribution
12
- * Make sure to add tests for it. This is important so I don't break it in a future version unintentionally.
13
- * Please try not to mess with the Rakefile, version, or history. If you want to have your own version, or is otherwise necessary, that is fine, but please isolate to its own commit so I can cherry-pick around it.
14
-
15
- == Copyright
16
-
17
- Copyright (c) 2011 Norman Timmler. See LICENSE.txt for
18
- further details.
19
-
data/VERSION DELETED
@@ -1 +0,0 @@
1
- 0.0.1