gash 0.1.3 → 0.1.4

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.
Files changed (11) hide show
  1. data/.ruby +44 -0
  2. data/HISTORY +16 -0
  3. data/LICENSE +22 -0
  4. data/Manifest +5 -4
  5. data/README.rdoc +23 -0
  6. data/lib/gash.rb +24 -9
  7. metadata +60 -73
  8. data/CHANGELOG +0 -7
  9. data/README +0 -3
  10. data/Rakefile +0 -19
  11. data/gash.gemspec +0 -92
data/.ruby ADDED
@@ -0,0 +1,44 @@
1
+ ---
2
+ source:
3
+ - Profile
4
+ authors:
5
+ - name: Magnus Holm
6
+ email: judofyr@gmail.com
7
+ - name: Michael Siebert
8
+ copyrights:
9
+ - holder: Magnus Holm
10
+ year: '2008'
11
+ license: MIT
12
+ - holder: Michael Siebert
13
+ year: '2008'
14
+ license: MIT
15
+ requirements:
16
+ - name: open4
17
+ version: ! '>=0.9.6'
18
+ - name: hanna-nouveau
19
+ groups:
20
+ - document
21
+ development: true
22
+ dependencies: []
23
+ alternatives:
24
+ - grit
25
+ conflicts: []
26
+ repositories:
27
+ - uri: git@github.com:judofyr/gash.git
28
+ scm: git
29
+ name: upstream
30
+ resources:
31
+ home: http://dojo.rubyforge.org/gash
32
+ code: http://github.com/judofyr/gash
33
+ extra: {}
34
+ load_path:
35
+ - lib
36
+ revision: 0
37
+ name: gash
38
+ title: Gash
39
+ version: 0.1.4
40
+ summary: Git + Hash
41
+ description: Gash = Git + Hash
42
+ created: '2008-08-30'
43
+ organization: dojo
44
+ date: '2012-02-24'
data/HISTORY ADDED
@@ -0,0 +1,16 @@
1
+ = Release History
2
+
3
+ == v0.1.4
4
+ * Fix for 1.9 escaping issue. (#5)
5
+
6
+ == v0.1.3
7
+ * Removed nasty eval. Switching to open4.
8
+
9
+ == v0.1.2
10
+ * Working correctly on empty branches.
11
+
12
+ == v0.1.1
13
+ * Tree got more Hash-methods. Better documentation.
14
+
15
+ == v0.1.0
16
+ * First version.
data/LICENSE ADDED
@@ -0,0 +1,22 @@
1
+ Copyright (c) 2008 Magnus Holm and Michael Siebert
2
+
3
+ Permission is hereby granted, free of charge, to any person
4
+ obtaining a copy of this software and associated documentation
5
+ files (the "Software"), to deal in the Software without
6
+ restriction, including without limitation the rights to use,
7
+ copy, modify, merge, publish, distribute, sublicense, and/or sell
8
+ copies of the Software, and to permit persons to whom the
9
+ Software is furnished to do so, subject to the following
10
+ conditions:
11
+
12
+ The above copyright notice and this permission notice shall be
13
+ included in all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
16
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
17
+ OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
18
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
19
+ HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
20
+ WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
21
+ FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
22
+ OTHER DEALINGS IN THE SOFTWARE.
data/Manifest CHANGED
@@ -1,5 +1,6 @@
1
- CHANGELOG
2
- lib/gash.rb
3
- Rakefile
4
- README
1
+ .ruby
2
+ HISTORY
3
+ README.rdoc
4
+ LICENSE
5
5
  Manifest
6
+ lib/gash.rb
@@ -0,0 +1,23 @@
1
+ = Gash, Git + Hash
2
+
3
+ == Description
4
+
5
+ Gash is a simple Ruby API for interfacing with a Git repo. While not as
6
+ feature rich as say {grit}[https://github.com/mojombo/grit], it is easier
7
+ to use b/c it effectively allows you to work with the files in the repo much
8
+ like you would any Ruby Hash.
9
+
10
+ == Documentation
11
+
12
+ Please see http://judofyr.github.com/gash or the documentation in lib/gash.rb!
13
+
14
+ == Copyrights
15
+
16
+ (MIT License)
17
+
18
+ Copyright 2008 Magnus Holm
19
+
20
+ Copyright 2008 Michael Siebert
21
+
22
+ See LICENSE file for license details.
23
+
@@ -16,6 +16,17 @@ require 'open4'
16
16
  #
17
17
  # Some of these "rules" might change it the future.
18
18
  #
19
+ # == How do you install it?
20
+ #
21
+ # The stable version can installed through RubyGems:
22
+ #
23
+ # sudo gem install gash
24
+ #
25
+ # The unstable version can be checked out {through Git at GitHub}[http://github.com/judofyr/gash],
26
+ # and installed through this command:
27
+ #
28
+ # rake install
29
+ #
19
30
  # == How do you use it?
20
31
  #
21
32
  # gash = Gash.new
@@ -29,8 +40,16 @@ require 'open4'
29
40
  #
30
41
  # == Credits
31
42
  #
32
- # This code is based upon git-shelve[http://www.siebert-wd.de/projects/git-shelve],
33
- # and is released under the same license; LGPL.
43
+ # This code is based upon git-shelve[https://github.com/siebertm/git-shelve],
44
+ # created by <b>Michael Siebert</b>, which is released under LGPL. However,
45
+ # Michael has allowed me to release this under the MIT-license as long as
46
+ # I keep his name here.
47
+ #
48
+ # And, in fact: I could never create this without the code written by Michael.
49
+ # You should really thank him!
50
+ #
51
+ # Older versions of Gash, which doesn't include this section or the MIT-license,
52
+ # is still licensed under LGPL.
34
53
  class Gash < SimpleDelegator
35
54
  module Errors
36
55
  # This error is raised when the Git-command fails.
@@ -340,10 +359,6 @@ class Gash < SimpleDelegator
340
359
  self
341
360
  end
342
361
 
343
- def changed! #:nodoc:
344
- @sha1 = nil
345
- end
346
-
347
362
  # Fetch the latest data from Git; you can use this as a +clear+-method.
348
363
  def update!
349
364
  clear
@@ -390,7 +405,7 @@ class Gash < SimpleDelegator
390
405
  end
391
406
  undef_method :dup
392
407
 
393
- private
408
+ #private
394
409
 
395
410
  def find_repo(dir)
396
411
  Dir.chdir(dir) do
@@ -528,7 +543,7 @@ class Gash < SimpleDelegator
528
543
  reserr = ""
529
544
  status = Open4.popen4(*git_cmd) do |pid, stdin, stdout, stderr|
530
545
  if input = options.delete(:input)
531
- stdin.write(input)
546
+ stdin.write(input.join)
532
547
  elsif block_given?
533
548
  yield stdin
534
549
  end
@@ -550,4 +565,4 @@ class Gash < SimpleDelegator
550
565
 
551
566
  [result, reserr, status]
552
567
  end
553
- end
568
+ end
metadata CHANGED
@@ -1,91 +1,78 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: gash
3
- version: !ruby/object:Gem::Version
4
- version: 0.1.3
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.4
5
+ prerelease:
5
6
  platform: ruby
6
- authors:
7
+ authors:
7
8
  - Magnus Holm
9
+ - Michael Siebert
8
10
  autorequire:
9
11
  bindir: bin
10
12
  cert_chain: []
11
-
12
- date: 2008-10-02 00:00:00 +02:00
13
- default_executable:
14
- dependencies:
15
- - !ruby/object:Gem::Dependency
13
+ date: 2012-02-24 00:00:00.000000000 Z
14
+ dependencies:
15
+ - !ruby/object:Gem::Dependency
16
16
  name: open4
17
- type: :runtime
18
- version_requirement:
19
- version_requirements: !ruby/object:Gem::Requirement
20
- requirements:
21
- - - ">="
22
- - !ruby/object:Gem::Version
23
- version: "0"
24
- - - "="
25
- - !ruby/object:Gem::Version
17
+ requirement: &12523280 !ruby/object:Gem::Requirement
18
+ none: false
19
+ requirements:
20
+ - - ! '>='
21
+ - !ruby/object:Gem::Version
26
22
  version: 0.9.6
27
- version:
28
- - !ruby/object:Gem::Dependency
29
- name: echoe
23
+ type: :runtime
24
+ prerelease: false
25
+ version_requirements: *12523280
26
+ - !ruby/object:Gem::Dependency
27
+ name: hanna-nouveau
28
+ requirement: &12520060 !ruby/object:Gem::Requirement
29
+ none: false
30
+ requirements:
31
+ - - ! '>='
32
+ - !ruby/object:Gem::Version
33
+ version: '0'
30
34
  type: :development
31
- version_requirement:
32
- version_requirements: !ruby/object:Gem::Requirement
33
- requirements:
34
- - - ">="
35
- - !ruby/object:Gem::Version
36
- version: "0"
37
- version:
38
- description: Git + Hash
39
- email: judofyr@gmail.com
35
+ prerelease: false
36
+ version_requirements: *12520060
37
+ description: Gash = Git + Hash
38
+ email:
39
+ - judofyr@gmail.com
40
40
  executables: []
41
-
42
41
  extensions: []
43
-
44
- extra_rdoc_files:
45
- - CHANGELOG
46
- - lib/gash.rb
47
- - README
48
- files:
49
- - CHANGELOG
50
- - lib/gash.rb
51
- - Rakefile
52
- - README
42
+ extra_rdoc_files:
43
+ - README.rdoc
44
+ files:
45
+ - .ruby
46
+ - HISTORY
47
+ - README.rdoc
48
+ - LICENSE
53
49
  - Manifest
54
- - gash.gemspec
55
- has_rdoc: true
56
- homepage: http://dojo.rubyforge.org/gash/
50
+ - lib/gash.rb
51
+ homepage: http://dojo.rubyforge.org/gash
52
+ licenses:
53
+ - MIT
54
+ - MIT
57
55
  post_install_message:
58
- rdoc_options:
59
- - --line-numbers
60
- - --inline-source
61
- - --title
62
- - Gash
63
- - --main
64
- - README
65
- - --main
66
- - Gash
67
- - --title
68
- - Gash
69
- require_paths:
56
+ rdoc_options: []
57
+ require_paths:
70
58
  - lib
71
- required_ruby_version: !ruby/object:Gem::Requirement
72
- requirements:
73
- - - ">="
74
- - !ruby/object:Gem::Version
75
- version: "0"
76
- version:
77
- required_rubygems_version: !ruby/object:Gem::Requirement
78
- requirements:
79
- - - ">="
80
- - !ruby/object:Gem::Version
81
- version: "1.2"
82
- version:
59
+ required_ruby_version: !ruby/object:Gem::Requirement
60
+ none: false
61
+ requirements:
62
+ - - ! '>='
63
+ - !ruby/object:Gem::Version
64
+ version: '0'
65
+ required_rubygems_version: !ruby/object:Gem::Requirement
66
+ none: false
67
+ requirements:
68
+ - - ! '>='
69
+ - !ruby/object:Gem::Version
70
+ version: '0'
83
71
  requirements: []
84
-
85
- rubyforge_project: dojo
86
- rubygems_version: 1.3.0
72
+ rubyforge_project:
73
+ rubygems_version: 1.8.11
87
74
  signing_key:
88
- specification_version: 2
75
+ specification_version: 3
89
76
  summary: Git + Hash
90
77
  test_files: []
91
-
78
+ has_rdoc:
data/CHANGELOG DELETED
@@ -1,7 +0,0 @@
1
- v0.1.3. Removed nasty eval. Switching to open4.
2
-
3
- v0.1.2. Working correctly on empty branches.
4
-
5
- v0.1.1. Tree got more Hash-methods. Better documentation.
6
-
7
- v0.1. First version.
data/README DELETED
@@ -1,3 +0,0 @@
1
- = Gash, Git + Hash
2
-
3
- Please see http://dojo.rubyforge.org/gash or the documentation in lib/gash.rb!
data/Rakefile DELETED
@@ -1,19 +0,0 @@
1
- require 'echoe'
2
- require 'hanna/rdoctask'
3
-
4
- Echoe.new('gash') do |p|
5
- p.project = "dojo"
6
- p.author = "Magnus Holm"
7
- p.email = "judofyr@gmail.com"
8
- p.summary = "Git + Hash"
9
- p.url = "http://dojo.rubyforge.org/gash/"
10
- p.runtime_dependencies = ["open4 >= 0.9.6"]
11
- p.rdoc_options += ["--main", "Gash", "--title", "Gash"]
12
- end
13
-
14
- Rake::Task[:publish_docs].instance_eval do
15
- @actions.clear
16
- enhance do
17
- sh("rsync -avc --delete doc/* judofyr@rubyforge.org:/var/www/gforge-projects/dojo/gash/")
18
- end
19
- end
@@ -1,92 +0,0 @@
1
-
2
- # Gem::Specification for Gash-0.1.3
3
- # Originally generated by Echoe
4
-
5
- --- !ruby/object:Gem::Specification
6
- name: gash
7
- version: !ruby/object:Gem::Version
8
- version: 0.1.3
9
- platform: ruby
10
- authors:
11
- - Magnus Holm
12
- autorequire:
13
- bindir: bin
14
-
15
- date: 2008-10-02 00:00:00 +02:00
16
- default_executable:
17
- dependencies:
18
- - !ruby/object:Gem::Dependency
19
- name: open4
20
- type: :runtime
21
- version_requirement:
22
- version_requirements: !ruby/object:Gem::Requirement
23
- requirements:
24
- - - ">="
25
- - !ruby/object:Gem::Version
26
- version: "0"
27
- - - "="
28
- - !ruby/object:Gem::Version
29
- version: 0.9.6
30
- version:
31
- - !ruby/object:Gem::Dependency
32
- name: echoe
33
- type: :development
34
- version_requirement:
35
- version_requirements: !ruby/object:Gem::Requirement
36
- requirements:
37
- - - ">="
38
- - !ruby/object:Gem::Version
39
- version: "0"
40
- version:
41
- description: Git + Hash
42
- email: judofyr@gmail.com
43
- executables: []
44
-
45
- extensions: []
46
-
47
- extra_rdoc_files:
48
- - CHANGELOG
49
- - lib/gash.rb
50
- - README
51
- files:
52
- - CHANGELOG
53
- - lib/gash.rb
54
- - Rakefile
55
- - README
56
- - Manifest
57
- - gash.gemspec
58
- has_rdoc: true
59
- homepage: http://dojo.rubyforge.org/gash/
60
- post_install_message:
61
- rdoc_options:
62
- - --line-numbers
63
- - --inline-source
64
- - --title
65
- - Gash
66
- - --main
67
- - README
68
- - --main
69
- - Gash
70
- - --title
71
- - Gash
72
- require_paths:
73
- - lib
74
- required_ruby_version: !ruby/object:Gem::Requirement
75
- requirements:
76
- - - ">="
77
- - !ruby/object:Gem::Version
78
- version: "0"
79
- version:
80
- required_rubygems_version: !ruby/object:Gem::Requirement
81
- requirements:
82
- - - ">="
83
- - !ruby/object:Gem::Version
84
- version: "1.2"
85
- version:
86
- requirements: []
87
-
88
- rubyforge_project: dojo
89
- rubygems_version: 1.3.0
90
- specification_version: 2
91
- summary: Git + Hash
92
- test_files: []