pushTextToGist 0.0.0

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 (3) hide show
  1. checksums.yaml +7 -0
  2. data/lib/pushTextToGist.rb +16 -0
  3. metadata +45 -0
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 253587ed011a9cd5558d4026220e895672543999
4
+ data.tar.gz: 7501c7dd6ca73dada558747cb717add91abe2c54
5
+ SHA512:
6
+ metadata.gz: 7ba630bb82e3c6651d0ed38f20bd8e2841a911fa6a9dfd4109a8b9b53f81a7508f19a83610942d3bf272717cd26ff963b488be811da647f5cfc62d5263249c30
7
+ data.tar.gz: 93525c1d5e4c3ed54b5cec5dde06d4f8c341c88c501f3266d6609bc40f0178041c24d19b72adb5df735c24fc175e5cc96208d47783081234dd2f5f842a93143b
@@ -0,0 +1,16 @@
1
+
2
+ class PushTextToPublicGist
3
+ require 'gist'
4
+
5
+ def self.push(text,username,password,gistId,fileName)
6
+ options={}
7
+ options[:username]=username
8
+ options[:password]=password
9
+ Gist.login!(options)
10
+ options1={}
11
+ options1[:update]=gistId
12
+ options1[:filename]=fileName
13
+ Gist.gist( text , options1 )
14
+ end
15
+
16
+ end
metadata ADDED
@@ -0,0 +1,45 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: pushTextToGist
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.0
5
+ platform: ruby
6
+ authors:
7
+ - Adarsha
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2015-08-23 00:00:00.000000000 Z
12
+ dependencies: []
13
+ description: A simple program to push text to a public gist
14
+ email: adarsha.shetty.89@live.in
15
+ executables: []
16
+ extensions: []
17
+ extra_rdoc_files: []
18
+ files:
19
+ - lib/pushTextToGist.rb
20
+ homepage: http://rubygems.org/gems/pushTextToGist
21
+ licenses:
22
+ - None
23
+ metadata: {}
24
+ post_install_message:
25
+ rdoc_options: []
26
+ require_paths:
27
+ - lib
28
+ required_ruby_version: !ruby/object:Gem::Requirement
29
+ requirements:
30
+ - - ">="
31
+ - !ruby/object:Gem::Version
32
+ version: '0'
33
+ required_rubygems_version: !ruby/object:Gem::Requirement
34
+ requirements:
35
+ - - ">="
36
+ - !ruby/object:Gem::Version
37
+ version: '0'
38
+ requirements: []
39
+ rubyforge_project:
40
+ rubygems_version: 2.4.8
41
+ signing_key:
42
+ specification_version: 4
43
+ summary: Gem to push text to a public gist
44
+ test_files: []
45
+ has_rdoc: