gistify 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 38ac61c999351b7af8526f60d69c64b2e29889bd
4
+ data.tar.gz: bb965dc6eb79d1310df1feb4a7c09d4c58f03fae
5
+ SHA512:
6
+ metadata.gz: f7b47da9ea422daf8f9e360e925d82fb3635dabb39c0d60f3a679b60010d27f3818e45760c1964288fd0217e7eea6e1fe14980a4d3154dba47e05bd226727d58
7
+ data.tar.gz: ad91dc38286ce7f51ae98b3aa160cbd58bb6aa0281dd3380d0fde795c29bca009ffe3751a6cd2c87207c7a96eef10ee50c7a78cebb6f0bfe18629f0a45824253
@@ -0,0 +1 @@
1
+ service_name: travis-ci
@@ -0,0 +1,19 @@
1
+ *.gem
2
+ *.rbc
3
+ .bundle
4
+ .git/
5
+ .config
6
+ .yardoc
7
+ Gemfile.lock
8
+ InstalledFiles
9
+ _yardoc
10
+ coverage
11
+ doc/
12
+ lib/bundler/man
13
+ pkg
14
+ rdoc
15
+ spec/reports
16
+ test/tmp
17
+ test/version_tmp
18
+ tmp
19
+ spec/fixtures/vcr_cassettes
data/.rspec ADDED
@@ -0,0 +1,2 @@
1
+ --color
2
+ --format progress
@@ -0,0 +1,7 @@
1
+ language: ruby
2
+ env:
3
+ matrix:
4
+ - secure: kSGnoo2FAFhir8mc1eGZWbwrjRM4RoVAuxu4PyArjVH8wL938KseLIoAmbv7meimxKwxNj58dWk0hVbGg1YqH9KhjzXAIll/5MLj1Ys1EknRLhkV+Wbrh/U0gFhBjT2UlDrkunw7y2iFn4b2k+jn5thGLqI9Ar9nL2MoLpuRSAQ=
5
+ - secure: N/CoZwB6Oepau86Wgtgp/gzp4y8+aGYTiPj06MUkeuTCUbuCpMYL5sxYGbfCM0vSl206el2d25rA+Pk9BEMAURy/f1neRb5y+J5aJP8BhOyidgIphjHNBWJ/xE8o4o6bzXhOoO8cdNOMPT0RbuWmz4Wu5Gliz66H+lVkwCzo9uo=
6
+ before_script:
7
+ - RAILS_ENV=test rake setup:vcr_directory
data/Gemfile ADDED
@@ -0,0 +1,4 @@
1
+ source 'https://rubygems.org'
2
+
3
+ # Specify your gem's dependencies in gistify.gemspec
4
+ gemspec
@@ -0,0 +1,22 @@
1
+ Copyright (c) 2013 Danny Garcia
2
+
3
+ MIT License
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining
6
+ a copy of this software and associated documentation files (the
7
+ "Software"), to deal in the Software without restriction, including
8
+ without limitation the rights to use, copy, modify, merge, publish,
9
+ distribute, sublicense, and/or sell copies of the Software, and to
10
+ permit persons to whom the Software is furnished to do so, subject to
11
+ the following conditions:
12
+
13
+ The above copyright notice and this permission notice shall be
14
+ included in all copies or substantial portions of the Software.
15
+
16
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
19
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
20
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
21
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
22
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@@ -0,0 +1,35 @@
1
+ # Gistify
2
+
3
+ [![Version](http://allthebadges.io/garciadanny/gistify/badge_fury.png)](http://allthebadges.io/garciadanny/gistify/badge_fury)
4
+ [![Dependencies](http://allthebadges.io/garciadanny/gistify/gemnasium.png)](http://allthebadges.io/garciadanny/gistify/gemnasium)
5
+ [![Build Status](https://travis-ci.org/garciadanny/gistify.png?branch=master)](https://travis-ci.org/garciadanny/gistify)
6
+ [![Coverage](http://allthebadges.io/garciadanny/gistify/coveralls.png)](http://allthebadges.io/garciadanny/gistify/coveralls)
7
+ [![Code Climate](http://allthebadges.io/garciadanny/gistify/code_climate.png)](http://allthebadges.io/garciadanny/gistify/code_climate)
8
+
9
+ TODO: Write a gem description
10
+
11
+ ## Installation
12
+
13
+ Add this line to your application's Gemfile:
14
+
15
+ gem 'gistify'
16
+
17
+ And then execute:
18
+
19
+ $ bundle
20
+
21
+ Or install it yourself as:
22
+
23
+ $ gem install gistify
24
+
25
+ ## Usage
26
+
27
+ TODO: Write usage instructions here
28
+
29
+ ## Contributing
30
+ Create a spec/fixtures/vcr_cassettes directory, this is were your vcr cassettes will automatically be saved during testing.
31
+ 1. Fork it
32
+ 2. Create your feature branch (`git checkout -b my-new-feature`)
33
+ 3. Commit your changes (`git commit -am 'Add some feature'`)
34
+ 4. Push to the branch (`git push origin my-new-feature`)
35
+ 5. Create new Pull Request
@@ -0,0 +1,17 @@
1
+ require "bundler/gem_tasks"
2
+ require "rspec/core/rake_task"
3
+ require 'fileutils'
4
+
5
+ RSpec::Core::RakeTask.new(:spec) do |spec|
6
+ spec.pattern = 'spec/**/*_spec.rb'
7
+ spec.rspec_opts = ['--backtrace']
8
+ end
9
+
10
+ task :default => :spec
11
+
12
+ namespace :setup do
13
+ desc 'creates a spec/fixtures/vcr_cassettes directory for testing'
14
+ task :vcr_directory do
15
+ FileUtils.mkpath 'spec/fixtures/vcr_cassettes/'
16
+ end
17
+ end
@@ -0,0 +1,6 @@
1
+ #! usr/bin/env ruby
2
+
3
+ $LOAD_PATH.unshift File.expand_path('../../lib', __FILE__)
4
+ require 'gistify'
5
+
6
+ Gistify::CLI.start ARGV
@@ -0,0 +1,32 @@
1
+ # coding: utf-8
2
+ lib = File.expand_path('../lib', __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require 'gistify/version'
5
+
6
+ Gem::Specification.new do |spec|
7
+ spec.name = "gistify"
8
+ spec.version = Gistify::VERSION
9
+ spec.authors = ["Danny Garcia"]
10
+ spec.email = ["dannygarcia.me@gmail.com"]
11
+ spec.description = %q{create gists from the command line}
12
+ spec.summary = %q{learning how to use thor to create gists from the command line}
13
+ spec.homepage = "https://github.com/garciadanny/gistify"
14
+ spec.license = "MIT"
15
+
16
+ spec.files = `git ls-files`.split($/)
17
+ spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
18
+ spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
19
+ spec.require_paths = ["lib"]
20
+
21
+ spec.add_dependency "thor", "~> 0.18.1"
22
+ spec.add_dependency "hirb", "~> 0.7.1"
23
+ spec.add_dependency "httparty", "~> 0.12.0"
24
+
25
+ spec.add_development_dependency "bundler", "~> 1.3"
26
+ spec.add_development_dependency "rake"
27
+ spec.add_development_dependency "rspec", "~> 2.14.1"
28
+ spec.add_development_dependency "vcr", "~> 2.6.0"
29
+ spec.add_development_dependency "webmock", "~> 1.15.0"
30
+ spec.add_development_dependency "coveralls", "~> 0.7.0"
31
+ spec.add_development_dependency "pry"
32
+ end
@@ -0,0 +1,33 @@
1
+ require 'thor'
2
+ require 'io/console'
3
+
4
+ module Gistify
5
+ class CLI < Thor
6
+ package_name "Gistify"
7
+ desc 'login', 'Creates an oauth token'
8
+ def login
9
+ GithubAuth.login username, password
10
+ end
11
+
12
+ desc 'list', 'Lists all your gists'
13
+ def list
14
+ GithubGist.list
15
+ end
16
+
17
+ desc 'file [FILENAME]', 'Creates a gist of the specified file. Wrap description in quotes.'
18
+ method_option :description, type: :string, aliases: '-d'
19
+ def file file_name
20
+ GithubGist.file file_name, options[:description]
21
+ end
22
+
23
+ private
24
+ def username
25
+ ask 'GitHub username: '
26
+ end
27
+
28
+ def password
29
+ $stdin.noecho { ask 'Password: ' }
30
+ end
31
+ end
32
+ end
33
+
@@ -0,0 +1,11 @@
1
+ require "gistify/version"
2
+
3
+ require 'gistify/githubauth'
4
+ require 'gistify/githubgist'
5
+ require 'cli'
6
+
7
+ module Gistify
8
+ TOKEN_LOCATION = File.expand_path '~/.gistify'
9
+ GISTS_API_URL = 'https://api.github.com/gists'
10
+ AUTHORIZATIONS_URL = 'https://api.github.com/authorizations'
11
+ end
@@ -0,0 +1,37 @@
1
+ require 'httparty'
2
+
3
+ module Gistify
4
+ class GithubAuth
5
+ include HTTParty
6
+ headers 'User-Agent' => 'garciadanny'
7
+
8
+ def self.login username, password
9
+ post_body = {scopes: ['gist']}
10
+ response = post AUTHORIZATIONS_URL, {
11
+ body: post_body.to_json,
12
+ basic_auth: {username: username, password: password}
13
+ }
14
+ token = response.parsed_response['token']
15
+ unless response['message'] == 'Bad credentials'
16
+ save_token token
17
+ else
18
+ invalid_credentials
19
+ end
20
+ end
21
+
22
+ private
23
+ def self.save_token user_token
24
+ File.open TOKEN_LOCATION, 'w', 0600 do |f|
25
+ f.write user_token
26
+ end
27
+ user_token
28
+ end
29
+
30
+ def self.invalid_credentials
31
+ raise InvalidCredentialsError,
32
+ "The Username/Password combination you entered was invalid. Please make sure you didn't misspell anything."
33
+ end
34
+ end
35
+ class InvalidCredentialsError < StandardError;
36
+ end
37
+ end
@@ -0,0 +1,76 @@
1
+ require 'httparty'
2
+ require 'hirb'
3
+
4
+ module Gistify
5
+ class GithubGist
6
+
7
+ include HTTParty
8
+
9
+ def self.list
10
+ response = get GISTS_API_URL, headers: {
11
+ 'Authorization' => "token #{user_token}",
12
+ 'User-Agent' => 'garciadanny'
13
+ }
14
+ print_response parse(response)
15
+ end
16
+
17
+ def self.file file_name, description = nil
18
+ pwd = FileUtils.pwd
19
+ file_location = File.join pwd, "/#{file_name}"
20
+ if File.exists?(file_location)
21
+ file_contents = read_file_contents file_location
22
+ gist_desc = description if description
23
+ create_gist file_name, file_contents, gist_desc
24
+ else
25
+ file_not_found
26
+ end
27
+ end
28
+
29
+ private
30
+ def self.user_token
31
+ File.read TOKEN_LOCATION
32
+ end
33
+
34
+ def self.parse response
35
+ response.map do |gist|
36
+ url = gist['html_url']
37
+ file_names = gist['files'].map(&:first)
38
+ description = gist['description']
39
+
40
+ {'Filename(s)' => file_names, 'Description' => description, 'URL' => url}
41
+ end
42
+ end
43
+
44
+ def self.print_response parsed_response
45
+ puts Hirb::Helpers::Table.render parsed_response, number: true, resize: false
46
+ end
47
+
48
+ def self.read_file_contents path
49
+ File.read path
50
+ end
51
+
52
+ def self.create_gist file_name, file_contents, description = 'gistify'
53
+ headers = {'Authorization' => "token #{user_token}", 'User-Agent' => 'garciadanny'}
54
+ body = {
55
+ description: "#{description}",
56
+ public: true,
57
+ files: {
58
+ "#{file_name}" => {
59
+ content: file_contents
60
+ }
61
+ }
62
+ }
63
+ response = post GISTS_API_URL, {
64
+ headers: headers,
65
+ body: body.to_json
66
+ }
67
+ p response['html_url']
68
+ end
69
+
70
+ def self.file_not_found
71
+ raise FileNotFound, "File not found. Please make sure to `cd` into the file's directory"
72
+ end
73
+ end
74
+
75
+ class FileNotFound < StandardError; end
76
+ end
@@ -0,0 +1,3 @@
1
+ module Gistify
2
+ VERSION = "0.0.2"
3
+ end
@@ -0,0 +1,42 @@
1
+ require 'spec_helper'
2
+
3
+ module Gistify
4
+
5
+ describe GithubAuth do
6
+
7
+ describe '.login' do
8
+
9
+ context 'given a valid username and password' do
10
+ it 'creates an oauth token for the client' do
11
+ VCR.use_cassette('githubauth-login') do
12
+ token = authenticate_client
13
+
14
+ expect(token).to_not be_empty
15
+ expect(token).to be_a String
16
+ end
17
+ end
18
+
19
+ it 'saves the token to ~/.gistify' do
20
+ VCR.use_cassette('githubauth-login') do
21
+ token = authenticate_client
22
+
23
+ file_path = File.join(Dir.home, '/.gistify')
24
+ file = File.open file_path
25
+
26
+ expect(file.read).to eq token
27
+ end
28
+ end
29
+ end
30
+
31
+ context 'given an invalid username or password' do
32
+ it 'returns a helpful error message' do
33
+ VCR.use_cassette('bad-login') do
34
+ expect{GithubAuth.login 'bad_username', 'bad_password'}.to raise_error(InvalidCredentialsError,
35
+ "The Username/Password combination you entered was invalid. Please make sure you didn't misspell anything."
36
+ )
37
+ end
38
+ end
39
+ end
40
+ end
41
+ end
42
+ end
@@ -0,0 +1,98 @@
1
+ require 'spec_helper'
2
+ require 'pry'
3
+
4
+ module Gistify
5
+
6
+ describe GithubGist do
7
+
8
+ describe '.list' do
9
+
10
+ before { authenticate_client }
11
+
12
+ context 'given an authenticated client' do
13
+ it "calls .print_response to print gists to the screen" do
14
+ VCR.use_cassette('github-gist-list') do
15
+ expect(GithubGist).to receive :print_response
16
+ gists = GithubGist.list
17
+ end
18
+ end
19
+ end
20
+ end
21
+
22
+ describe '.parse' do
23
+ context 'given a suceessful response' do
24
+ it 'parses the response into a hash with the gist info' do
25
+ response = [
26
+ {'html_url' => 'http://example.com',
27
+ 'files' => {'file_one' => {}, 'file_two' => {}},
28
+ 'description' => 'very intellectual description'
29
+ }
30
+ ]
31
+
32
+ expected_response = [{
33
+ 'Filename(s)' => ['file_one', 'file_two'],
34
+ 'Description' => 'very intellectual description',
35
+ 'URL' => 'http://example.com'
36
+ }]
37
+ expect(GithubGist.send :parse, response).to eq expected_response
38
+ end
39
+ end
40
+ end
41
+
42
+ describe '.user_token' do
43
+
44
+ context 'given a ~/.gistify file exists' do
45
+ it 'retrieves the user token from the file' do
46
+ token = 'user_token1234567'
47
+ token_directory = File.join(Dir.home, '/.gistify')
48
+ File.open(token_directory, 'w') { |f| f.write token }
49
+
50
+ expect(GithubGist.send :user_token).to eq token
51
+ end
52
+ end
53
+ end
54
+
55
+ describe '.file' do
56
+ context 'given an authenticated client' do
57
+
58
+ context 'when the file is found' do
59
+ let(:file_name) { 'a.rb' }
60
+ let(:file_contents) { 'abc' }
61
+ let(:file_location) { File.join FileUtils.pwd, file_name }
62
+
63
+ before(:each) do
64
+ authenticate_client
65
+ File.open(file_location, 'w') { |f| f.write file_contents }
66
+ end
67
+
68
+ after(:all) do
69
+ test_file = File.join(FileUtils.pwd, '/a.rb')
70
+ File.delete(test_file) if File.exists? test_file
71
+ end
72
+
73
+ it 'reads the contents of a file' do
74
+ VCR.use_cassette('create_gist') do
75
+ expect(GithubGist).to receive(:read_file_contents).with(file_location).and_return file_contents
76
+ GithubGist.file file_name
77
+ end
78
+ end
79
+
80
+ it 'creates a gist' do
81
+ VCR.use_cassette('create_gist') do
82
+ expect(GithubGist.file file_name).to match /https:/
83
+ end
84
+ end
85
+ end
86
+
87
+ context 'when the file is not found' do
88
+ it 'raises a FileNotFound error' do
89
+ expect{ GithubGist.file 'doesnt_exist.rb' }.to raise_error(FileNotFound,
90
+ "File not found. Please make sure to `cd` into the file's directory"
91
+ )
92
+ end
93
+ end
94
+
95
+ end
96
+ end
97
+ end
98
+ end
@@ -0,0 +1,21 @@
1
+ require 'rubygems' if RUBY_VERSION <= "1.8.7"
2
+
3
+ $:.unshift File.expand_path("../../lib", __FILE__)
4
+ $:.unshift File.expand_path("../../spec", __FILE__)
5
+
6
+ require 'coveralls'
7
+ Coveralls.wear!
8
+ require 'gistify'
9
+ require 'vcr'
10
+ require 'support/helper_methods'
11
+
12
+ spec_dir = File.join(FileUtils.pwd, 'spec/fixtures')
13
+ VCR.configure do |c|
14
+ c.cassette_library_dir = File.join(spec_dir, 'vcr_cassettes')
15
+ c.hook_into :webmock
16
+ end
17
+
18
+
19
+ RSpec.configure do |c|
20
+ c.include Gistify::HelperMethods
21
+ end
@@ -0,0 +1,10 @@
1
+ module Gistify
2
+ module HelperMethods
3
+
4
+ def authenticate_client
5
+ VCR.use_cassette('authenticate_client') do
6
+ GithubAuth.login ENV['GITHUB_USERNAME'], ENV['GITHUB_PASSWORD']
7
+ end
8
+ end
9
+ end
10
+ end
metadata ADDED
@@ -0,0 +1,208 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: gistify
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.2
5
+ platform: ruby
6
+ authors:
7
+ - Danny Garcia
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2013-11-30 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: thor
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ~>
18
+ - !ruby/object:Gem::Version
19
+ version: 0.18.1
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ~>
25
+ - !ruby/object:Gem::Version
26
+ version: 0.18.1
27
+ - !ruby/object:Gem::Dependency
28
+ name: hirb
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ~>
32
+ - !ruby/object:Gem::Version
33
+ version: 0.7.1
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ~>
39
+ - !ruby/object:Gem::Version
40
+ version: 0.7.1
41
+ - !ruby/object:Gem::Dependency
42
+ name: httparty
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ~>
46
+ - !ruby/object:Gem::Version
47
+ version: 0.12.0
48
+ type: :runtime
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ~>
53
+ - !ruby/object:Gem::Version
54
+ version: 0.12.0
55
+ - !ruby/object:Gem::Dependency
56
+ name: bundler
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - ~>
60
+ - !ruby/object:Gem::Version
61
+ version: '1.3'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - ~>
67
+ - !ruby/object:Gem::Version
68
+ version: '1.3'
69
+ - !ruby/object:Gem::Dependency
70
+ name: rake
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - '>='
74
+ - !ruby/object:Gem::Version
75
+ version: '0'
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - '>='
81
+ - !ruby/object:Gem::Version
82
+ version: '0'
83
+ - !ruby/object:Gem::Dependency
84
+ name: rspec
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - ~>
88
+ - !ruby/object:Gem::Version
89
+ version: 2.14.1
90
+ type: :development
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - ~>
95
+ - !ruby/object:Gem::Version
96
+ version: 2.14.1
97
+ - !ruby/object:Gem::Dependency
98
+ name: vcr
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - ~>
102
+ - !ruby/object:Gem::Version
103
+ version: 2.6.0
104
+ type: :development
105
+ prerelease: false
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - ~>
109
+ - !ruby/object:Gem::Version
110
+ version: 2.6.0
111
+ - !ruby/object:Gem::Dependency
112
+ name: webmock
113
+ requirement: !ruby/object:Gem::Requirement
114
+ requirements:
115
+ - - ~>
116
+ - !ruby/object:Gem::Version
117
+ version: 1.15.0
118
+ type: :development
119
+ prerelease: false
120
+ version_requirements: !ruby/object:Gem::Requirement
121
+ requirements:
122
+ - - ~>
123
+ - !ruby/object:Gem::Version
124
+ version: 1.15.0
125
+ - !ruby/object:Gem::Dependency
126
+ name: coveralls
127
+ requirement: !ruby/object:Gem::Requirement
128
+ requirements:
129
+ - - ~>
130
+ - !ruby/object:Gem::Version
131
+ version: 0.7.0
132
+ type: :development
133
+ prerelease: false
134
+ version_requirements: !ruby/object:Gem::Requirement
135
+ requirements:
136
+ - - ~>
137
+ - !ruby/object:Gem::Version
138
+ version: 0.7.0
139
+ - !ruby/object:Gem::Dependency
140
+ name: pry
141
+ requirement: !ruby/object:Gem::Requirement
142
+ requirements:
143
+ - - '>='
144
+ - !ruby/object:Gem::Version
145
+ version: '0'
146
+ type: :development
147
+ prerelease: false
148
+ version_requirements: !ruby/object:Gem::Requirement
149
+ requirements:
150
+ - - '>='
151
+ - !ruby/object:Gem::Version
152
+ version: '0'
153
+ description: create gists from the command line
154
+ email:
155
+ - dannygarcia.me@gmail.com
156
+ executables:
157
+ - gistify
158
+ extensions: []
159
+ extra_rdoc_files: []
160
+ files:
161
+ - .coveralls.yml
162
+ - .gitignore
163
+ - .rspec
164
+ - .travis.yml
165
+ - Gemfile
166
+ - LICENSE.txt
167
+ - README.md
168
+ - Rakefile
169
+ - bin/gistify
170
+ - gistify.gemspec
171
+ - lib/cli.rb
172
+ - lib/gistify.rb
173
+ - lib/gistify/githubauth.rb
174
+ - lib/gistify/githubgist.rb
175
+ - lib/gistify/version.rb
176
+ - spec/gistify/github_auth_spec.rb
177
+ - spec/gistify/github_gist_spec.rb
178
+ - spec/spec_helper.rb
179
+ - spec/support/helper_methods.rb
180
+ homepage: https://github.com/garciadanny/gistify
181
+ licenses:
182
+ - MIT
183
+ metadata: {}
184
+ post_install_message:
185
+ rdoc_options: []
186
+ require_paths:
187
+ - lib
188
+ required_ruby_version: !ruby/object:Gem::Requirement
189
+ requirements:
190
+ - - '>='
191
+ - !ruby/object:Gem::Version
192
+ version: '0'
193
+ required_rubygems_version: !ruby/object:Gem::Requirement
194
+ requirements:
195
+ - - '>='
196
+ - !ruby/object:Gem::Version
197
+ version: '0'
198
+ requirements: []
199
+ rubyforge_project:
200
+ rubygems_version: 2.1.11
201
+ signing_key:
202
+ specification_version: 4
203
+ summary: learning how to use thor to create gists from the command line
204
+ test_files:
205
+ - spec/gistify/github_auth_spec.rb
206
+ - spec/gistify/github_gist_spec.rb
207
+ - spec/spec_helper.rb
208
+ - spec/support/helper_methods.rb