git-flattr 0.0.10 → 0.0.11

Sign up to get free protection for your applications and to get access to all the features.
data/.gitignore CHANGED
@@ -11,6 +11,7 @@ spec/reports
11
11
  test/tmp
12
12
  test/version_tmp
13
13
  tmp
14
+ Gemfile.lock
14
15
 
15
16
  # YARD artifacts
16
17
  .yardoc
data/LICENSE ADDED
@@ -0,0 +1,20 @@
1
+ Copyright (c) 2012 Simon Gate
2
+
3
+ Permission is hereby granted, free of charge, to any person obtaining a
4
+ 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 included
12
+ in all copies or substantial portions of the Software.
13
+
14
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
15
+ OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
17
+ IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
18
+ CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
19
+ TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
20
+ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
data/README.md CHANGED
@@ -1,4 +1,51 @@
1
- git-flattr
2
- ==========
1
+ ```
2
+ _ _ __ _ _ _
3
+ __ _(_) |_ / _| | __ _| |_| |_ _ __
4
+ / _` | | __| | |_| |/ _` | __| __| '__|
5
+ | (_| | | |_ | _| | (_| | |_| |_| |
6
+ \__, |_|\__| |_| |_|\__,_|\__|\__|_|
7
+ |___/
8
+ ```
3
9
 
4
- This is a gem that makes it easy to Flattr GitHub repositories and commits from the command line. It's still in early development and currently you can only flattr repositories.
10
+ # What is Flattr?
11
+
12
+ Flattr is a social microdonation service that makes it a breeze to donate to open source projects, music artists, podcaster and blogger. You can read more about it on [http://flattr.com](http://flattr.com).
13
+
14
+ # But why git and Flattr?
15
+
16
+ I play around with open source a great deal and most of the projects are available on github. So I made a command line tool where you can easily flattr the currently checked out repo.
17
+
18
+
19
+ # Install
20
+
21
+ `git flattr` is distributed as a Ruby Gem.
22
+
23
+ `gem install git-flattr`
24
+
25
+ This will make the command `git flattr` available. For futher help run `git flattr help`
26
+
27
+ # Usage
28
+
29
+ You can both flattr repositories and individual commits.
30
+
31
+ ## Flattr a repository
32
+
33
+ When you are in a directory with a git GitHub repository you can easily flattr the repository.
34
+
35
+ `git flattr repo`
36
+
37
+ ## Flattr a commit
38
+
39
+ When you are in a directory with a git GitHub repository you can easily flattr a commit. You need the commit sha1, to view history run `git log`. Then copy the sha1 of the commit you would like to flattr and run this command.
40
+
41
+ `git flattr commit [sha1]`
42
+
43
+ ## Want to know more?
44
+
45
+ If you wan't to know more about the commands check out the help.
46
+
47
+ `git flattr`
48
+
49
+ # Copyright
50
+
51
+ Copyright (c) 2012 Simon Gate. See LICENSE for details.
data/bin/git-flattr CHANGED
@@ -6,7 +6,7 @@ require 'commander/import'
6
6
 
7
7
  program :name, "git flattr"
8
8
  program :description, "Easily flattr GitHub repositories from the CLI"
9
- program :version, VERSION
9
+ program :version, GitFlattr::VERSION
10
10
  program :help, 'Author', 'Simon Gate <simon@smgt.me>'
11
11
  default_command :help
12
12
 
data/git-flattr.gemspec CHANGED
@@ -4,7 +4,7 @@ require "version"
4
4
 
5
5
  Gem::Specification.new do |s|
6
6
  s.name = 'git-flattr'
7
- s.version = VERSION
7
+ s.version = GitFlattr::VERSION
8
8
  s.authors = ['Simon Gate']
9
9
  s.email = ['simon@smgt.me']
10
10
  s.summary = %q{Flattr GitHub repositories from the cli}
@@ -13,6 +13,7 @@ Gem::Specification.new do |s|
13
13
  s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
14
14
  s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
15
15
 
16
+ s.add_runtime_dependency "system_timer"
16
17
  s.add_runtime_dependency "flattr"
17
18
  s.add_runtime_dependency "launchy"
18
19
  s.add_runtime_dependency "commander"
data/lib/git-flattr.rb CHANGED
@@ -52,14 +52,14 @@ class Git
52
52
 
53
53
  def github_repo? url
54
54
 
55
- if url.match %r{^https://[\w-]+@github\.com}
56
- match = url.match(%r{^https://[\w-]+@github\.com/([\w-]+)/([\w-.]+)\.git$})
55
+ if url.match %r{^https://[-\w]+@github\.com}
56
+ match = url.match(%r{^https://[-\w]+@github\.com/([-\w]+)/([-\.\w]+)\.git$})
57
57
  elsif url.match %r{^git@github\.com:}
58
- match = url.match(%r{^git@github\.com:([\w-]+)/([\w-.]+)\.git$})
58
+ match = url.match(%r{^git@github\.com:([-\w]+)/([-\.\w]+)\.git$})
59
59
  elsif url.match %r{^git://github\.com/}
60
- match = url.match(%r{^git://github\.com/([\w-]+)/([\w-.]+)\.git$})
60
+ match = url.match(%r{^git://github\.com/([-\w]+)/([-\.\w]+)\.git$})
61
61
  elsif url.match %r{^https://github\.com/}
62
- match = url.match(%r{^https://github\.com/([\w-]+)/([\w-.]+)\.git$})
62
+ match = url.match(%r{^https://github\.com/([-\w]+)/([-\.\w]+)\.git$})
63
63
  end
64
64
 
65
65
  if !match.nil?
data/lib/version.rb CHANGED
@@ -1 +1,3 @@
1
- VERSION="0.0.10"
1
+ module GitFlattr
2
+ VERSION="0.0.11"
3
+ end
metadata CHANGED
@@ -1,75 +1,91 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: git-flattr
3
- version: !ruby/object:Gem::Version
4
- version: 0.0.10
3
+ version: !ruby/object:Gem::Version
4
+ hash: 9
5
5
  prerelease:
6
+ segments:
7
+ - 0
8
+ - 0
9
+ - 11
10
+ version: 0.0.11
6
11
  platform: ruby
7
- authors:
12
+ authors:
8
13
  - Simon Gate
9
14
  autorequire:
10
15
  bindir: bin
11
16
  cert_chain: []
12
- date: 2012-05-07 00:00:00.000000000 Z
13
- dependencies:
14
- - !ruby/object:Gem::Dependency
15
- name: flattr
16
- requirement: !ruby/object:Gem::Requirement
17
+
18
+ date: 2012-10-26 00:00:00 Z
19
+ dependencies:
20
+ - !ruby/object:Gem::Dependency
21
+ name: system_timer
22
+ prerelease: false
23
+ requirement: &id001 !ruby/object:Gem::Requirement
17
24
  none: false
18
- requirements:
19
- - - ! '>='
20
- - !ruby/object:Gem::Version
21
- version: '0'
25
+ requirements:
26
+ - - ">="
27
+ - !ruby/object:Gem::Version
28
+ hash: 3
29
+ segments:
30
+ - 0
31
+ version: "0"
22
32
  type: :runtime
33
+ version_requirements: *id001
34
+ - !ruby/object:Gem::Dependency
35
+ name: flattr
23
36
  prerelease: false
24
- version_requirements: !ruby/object:Gem::Requirement
25
- none: false
26
- requirements:
27
- - - ! '>='
28
- - !ruby/object:Gem::Version
29
- version: '0'
30
- - !ruby/object:Gem::Dependency
31
- name: launchy
32
- requirement: !ruby/object:Gem::Requirement
37
+ requirement: &id002 !ruby/object:Gem::Requirement
33
38
  none: false
34
- requirements:
35
- - - ! '>='
36
- - !ruby/object:Gem::Version
37
- version: '0'
39
+ requirements:
40
+ - - ">="
41
+ - !ruby/object:Gem::Version
42
+ hash: 3
43
+ segments:
44
+ - 0
45
+ version: "0"
38
46
  type: :runtime
47
+ version_requirements: *id002
48
+ - !ruby/object:Gem::Dependency
49
+ name: launchy
39
50
  prerelease: false
40
- version_requirements: !ruby/object:Gem::Requirement
41
- none: false
42
- requirements:
43
- - - ! '>='
44
- - !ruby/object:Gem::Version
45
- version: '0'
46
- - !ruby/object:Gem::Dependency
47
- name: commander
48
- requirement: !ruby/object:Gem::Requirement
51
+ requirement: &id003 !ruby/object:Gem::Requirement
49
52
  none: false
50
- requirements:
51
- - - ! '>='
52
- - !ruby/object:Gem::Version
53
- version: '0'
53
+ requirements:
54
+ - - ">="
55
+ - !ruby/object:Gem::Version
56
+ hash: 3
57
+ segments:
58
+ - 0
59
+ version: "0"
54
60
  type: :runtime
61
+ version_requirements: *id003
62
+ - !ruby/object:Gem::Dependency
63
+ name: commander
55
64
  prerelease: false
56
- version_requirements: !ruby/object:Gem::Requirement
65
+ requirement: &id004 !ruby/object:Gem::Requirement
57
66
  none: false
58
- requirements:
59
- - - ! '>='
60
- - !ruby/object:Gem::Version
61
- version: '0'
67
+ requirements:
68
+ - - ">="
69
+ - !ruby/object:Gem::Version
70
+ hash: 3
71
+ segments:
72
+ - 0
73
+ version: "0"
74
+ type: :runtime
75
+ version_requirements: *id004
62
76
  description:
63
- email:
77
+ email:
64
78
  - simon@smgt.me
65
- executables:
79
+ executables:
66
80
  - git-flattr
67
81
  extensions: []
82
+
68
83
  extra_rdoc_files: []
69
- files:
84
+
85
+ files:
70
86
  - .gitignore
71
87
  - Gemfile
72
- - Gemfile.lock
88
+ - LICENSE
73
89
  - README.md
74
90
  - Rakefile
75
91
  - bin/git-flattr
@@ -79,27 +95,36 @@ files:
79
95
  - spec/git_spec.rb
80
96
  homepage:
81
97
  licenses: []
98
+
82
99
  post_install_message:
83
100
  rdoc_options: []
84
- require_paths:
101
+
102
+ require_paths:
85
103
  - lib
86
- required_ruby_version: !ruby/object:Gem::Requirement
104
+ required_ruby_version: !ruby/object:Gem::Requirement
87
105
  none: false
88
- requirements:
89
- - - ! '>='
90
- - !ruby/object:Gem::Version
91
- version: '0'
92
- required_rubygems_version: !ruby/object:Gem::Requirement
106
+ requirements:
107
+ - - ">="
108
+ - !ruby/object:Gem::Version
109
+ hash: 3
110
+ segments:
111
+ - 0
112
+ version: "0"
113
+ required_rubygems_version: !ruby/object:Gem::Requirement
93
114
  none: false
94
- requirements:
95
- - - ! '>='
96
- - !ruby/object:Gem::Version
97
- version: '0'
115
+ requirements:
116
+ - - ">="
117
+ - !ruby/object:Gem::Version
118
+ hash: 3
119
+ segments:
120
+ - 0
121
+ version: "0"
98
122
  requirements: []
123
+
99
124
  rubyforge_project:
100
- rubygems_version: 1.8.23
125
+ rubygems_version: 1.8.6
101
126
  signing_key:
102
127
  specification_version: 3
103
128
  summary: Flattr GitHub repositories from the cli
104
- test_files:
129
+ test_files:
105
130
  - spec/git_spec.rb
data/Gemfile.lock DELETED
@@ -1,30 +0,0 @@
1
- PATH
2
- remote: .
3
- specs:
4
- git-flattr (0.0.2)
5
- commander
6
- flattr
7
- launchy
8
-
9
- GEM
10
- remote: http://rubygems.org/
11
- specs:
12
- addressable (2.2.8)
13
- commander (4.1.2)
14
- highline (~> 1.6.11)
15
- faraday (0.8.0)
16
- multipart-post (~> 1.1)
17
- flattr (0.3.5)
18
- faraday (~> 0.7)
19
- multi_json (~> 1.0)
20
- highline (1.6.11)
21
- launchy (2.1.0)
22
- addressable (~> 2.2.6)
23
- multi_json (1.3.4)
24
- multipart-post (1.1.5)
25
-
26
- PLATFORMS
27
- ruby
28
-
29
- DEPENDENCIES
30
- git-flattr!