pygg 0.0.2
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/.gitignore +4 -0
- data/Gemfile +4 -0
- data/Rakefile +1 -0
- data/lib/pygg.rb +13 -0
- data/lib/pygg/version.rb +3 -0
- data/pygg.gemspec +24 -0
- metadata +63 -0
data/.gitignore
ADDED
data/Gemfile
ADDED
data/Rakefile
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
require "bundler/gem_tasks"
|
data/lib/pygg.rb
ADDED
@@ -0,0 +1,13 @@
|
|
1
|
+
require "pygg/version"
|
2
|
+
|
3
|
+
module Pygg
|
4
|
+
class Twitter
|
5
|
+
def self.standard(username,amount,message)
|
6
|
+
username.gsub!('@','')
|
7
|
+
amount.gsub!('$','')
|
8
|
+
message.gsub!(/\s/,"+")
|
9
|
+
image = amount.to_i
|
10
|
+
"<a href='http://twitter.com/intent/tweet?text=#{message}+@pygg+pay+@#{username}+$#{amount}'><img src='http://pygg.co/blog/pygg_buttons/#{image}.png' alt='Pay with Pygg'></a>"
|
11
|
+
end
|
12
|
+
end
|
13
|
+
end
|
data/lib/pygg/version.rb
ADDED
data/pygg.gemspec
ADDED
@@ -0,0 +1,24 @@
|
|
1
|
+
# -*- encoding: utf-8 -*-
|
2
|
+
$:.push File.expand_path("../lib", __FILE__)
|
3
|
+
require "pygg/version"
|
4
|
+
|
5
|
+
Gem::Specification.new do |s|
|
6
|
+
s.name = "pygg"
|
7
|
+
s.version = Pygg::VERSION
|
8
|
+
s.authors = ["Michael Dijkstra"]
|
9
|
+
s.email = ["micdijkstra@gmail.com"]
|
10
|
+
s.homepage = ""
|
11
|
+
s.summary = %q{Create a Pay with Pygg button}
|
12
|
+
s.description = %q{Add social payments to your business by adding a ‘Pay with Pygg’ button to your site!}
|
13
|
+
|
14
|
+
s.rubyforge_project = "pygg"
|
15
|
+
|
16
|
+
s.files = `git ls-files`.split("\n")
|
17
|
+
s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
|
18
|
+
s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
|
19
|
+
s.require_paths = ["lib"]
|
20
|
+
|
21
|
+
# specify any dependencies here; for example:
|
22
|
+
s.add_development_dependency "rspec"
|
23
|
+
# s.add_runtime_dependency "rest-client"
|
24
|
+
end
|
metadata
ADDED
@@ -0,0 +1,63 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: pygg
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.2
|
5
|
+
prerelease:
|
6
|
+
platform: ruby
|
7
|
+
authors:
|
8
|
+
- Michael Dijkstra
|
9
|
+
autorequire:
|
10
|
+
bindir: bin
|
11
|
+
cert_chain: []
|
12
|
+
date: 2011-11-30 00:00:00.000000000Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
15
|
+
name: rspec
|
16
|
+
requirement: &70092597905580 !ruby/object:Gem::Requirement
|
17
|
+
none: false
|
18
|
+
requirements:
|
19
|
+
- - ! '>='
|
20
|
+
- !ruby/object:Gem::Version
|
21
|
+
version: '0'
|
22
|
+
type: :development
|
23
|
+
prerelease: false
|
24
|
+
version_requirements: *70092597905580
|
25
|
+
description: Add social payments to your business by adding a ‘Pay with Pygg’ button
|
26
|
+
to your site!
|
27
|
+
email:
|
28
|
+
- micdijkstra@gmail.com
|
29
|
+
executables: []
|
30
|
+
extensions: []
|
31
|
+
extra_rdoc_files: []
|
32
|
+
files:
|
33
|
+
- .gitignore
|
34
|
+
- Gemfile
|
35
|
+
- Rakefile
|
36
|
+
- lib/pygg.rb
|
37
|
+
- lib/pygg/version.rb
|
38
|
+
- pygg.gemspec
|
39
|
+
homepage: ''
|
40
|
+
licenses: []
|
41
|
+
post_install_message:
|
42
|
+
rdoc_options: []
|
43
|
+
require_paths:
|
44
|
+
- lib
|
45
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
46
|
+
none: false
|
47
|
+
requirements:
|
48
|
+
- - ! '>='
|
49
|
+
- !ruby/object:Gem::Version
|
50
|
+
version: '0'
|
51
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
52
|
+
none: false
|
53
|
+
requirements:
|
54
|
+
- - ! '>='
|
55
|
+
- !ruby/object:Gem::Version
|
56
|
+
version: '0'
|
57
|
+
requirements: []
|
58
|
+
rubyforge_project: pygg
|
59
|
+
rubygems_version: 1.8.10
|
60
|
+
signing_key:
|
61
|
+
specification_version: 3
|
62
|
+
summary: Create a Pay with Pygg button
|
63
|
+
test_files: []
|