unabridged 0.0.1

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: 18cd6bc3785243047819e8f81fa0894cfd867bd9
4
+ data.tar.gz: ad1c960f340f11a06f9ac71e2a1e3c4312ca855d
5
+ SHA512:
6
+ metadata.gz: 557333786fa1294aaa545566372f696aa3cffcafbfe3312bf9c81298d84adb7d8187df1865420ca4a92ac3c6547c11eca75e6db4c6dc67b8d72f01cba489872c
7
+ data.tar.gz: a479d1a5fbbc8f196743632c07f970bab5e6bdefafd6b642294a94fc06c773706e628c6387f1de9de89a67a9b62d63cb8116100bad05efc8f93b4a5064c818fa
@@ -0,0 +1,5 @@
1
+ pkg/*.gem
2
+ coverage/
3
+ .coveralls.yml
4
+ .bundle
5
+ Gemfile.lock
@@ -0,0 +1,11 @@
1
+ item do
2
+ expected do
3
+ static
4
+ set 'green'
5
+ end
6
+
7
+ actual do
8
+ gemnasium
9
+ slug 'akerl/unabridged'
10
+ end
11
+ end
data/.rspec ADDED
@@ -0,0 +1,2 @@
1
+ --format Fuubar
2
+ --color
@@ -0,0 +1,2 @@
1
+ Encoding:
2
+ Enabled: false
data/Gemfile ADDED
@@ -0,0 +1,4 @@
1
+ source 'https://rubygems.org'
2
+
3
+ gemspec
4
+
data/LICENSE ADDED
@@ -0,0 +1,22 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2016 Les Aker
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.
22
+
@@ -0,0 +1,22 @@
1
+ unabridged
2
+ =========
3
+
4
+ [![Gem Version](https://img.shields.io/gem/v/unabridged.svg)](https://rubygems.org/gems/unabridged)
5
+ [![Dependency Status](https://img.shields.io/gemnasium/akerl/unabridged.svg)](https://gemnasium.com/akerl/unabridged)
6
+ [![Build Status](https://img.shields.io/circleci/project/akerl/unabridged.svg)](https://circleci.com/gh/akerl/unabridged)
7
+ [![Coverage Status](https://img.shields.io/codecov/c/github/akerl/unabridged.svg)](https://codecov.io/github/akerl/unabridged)
8
+ [![Code Quality](https://img.shields.io/codacy/.svg)](https://www.codacy.com/app/akerl/unabridged)
9
+ [![MIT Licensed](https://img.shields.io/badge/license-MIT-green.svg)](https://tldrlegal.com/license/mit-license)
10
+
11
+ Scraper for historical GitHub contribution data
12
+
13
+ ## Usage
14
+
15
+ ## Installation
16
+
17
+ gem install unabridged
18
+
19
+ ## License
20
+
21
+ unabridged is released under the MIT License. See the bundled LICENSE file for details.
22
+
@@ -0,0 +1,14 @@
1
+ require 'bundler/gem_tasks'
2
+ require 'rspec/core/rake_task'
3
+ require 'rubocop/rake_task'
4
+
5
+ desc 'Run tests'
6
+ RSpec::Core::RakeTask.new(:spec)
7
+
8
+ desc 'Run Rubocop on the gem'
9
+ RuboCop::RakeTask.new(:rubocop) do |task|
10
+ task.patterns = ['lib/**/*.rb', 'spec/**/*.rb', 'bin/*']
11
+ task.fail_on_error = true
12
+ end
13
+
14
+ task default: [:spec, :rubocop, :build, :install]
@@ -0,0 +1,43 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require 'targit'
4
+ require 'mercenary'
5
+
6
+ def upload(file, repo, tag, options)
7
+ asset = Targit.new(file, repo, tag, options)
8
+ asset.upload!
9
+ puts "Successfully created asset! #{asset.url}"
10
+ end
11
+
12
+ Mercenary.program(:targit) do |p|
13
+ p.version Targit::VERSION
14
+ p.description 'Tool for adding GitHub release assets'
15
+ p.syntax 'targit [options] USER/REPO TAG /path/to/file'
16
+
17
+ # rubocop:disable Metrics/LineLength
18
+ p.option :force, '-f', '--force', 'Replace the asset if it already exists'
19
+ p.option :create, '-c', '--create', 'Create release if it does not exist'
20
+ p.option :release_name, '-r NAME', '--release NAME', 'Set the release name'
21
+ p.option :prerelease, '-p', '--prerelease', 'With -c, create as a dev release'
22
+ p.option :authfile, '-a FILE', '--authfile FILE', 'Set the auth files for GitHub credentials (comma-delimited)'
23
+ p.option :name, '-n NAME', '--name NAME', 'Set the name for the release asset'
24
+ # rubocop:enable Metrics/LineLength
25
+
26
+ p.action do |_, options|
27
+ repo, tag = ARGV.shift 2
28
+ if !repo || !tag
29
+ puts p
30
+ elsif !ARGV.empty?
31
+ ARGV.each { |file| raise("#{file} not found") unless File.exist? file }
32
+ ARGV.each do |file|
33
+ puts "Adding #{file} on #{tag} of #{repo}"
34
+ upload file, repo, tag, options
35
+ end
36
+ elsif !STDIN.tty?
37
+ raise('Name required if file is passed via STDIN') unless options[:name]
38
+ upload STDIN, repo, tag, options
39
+ else
40
+ puts p
41
+ end
42
+ end
43
+ end
@@ -0,0 +1,12 @@
1
+ dependencies:
2
+ override:
3
+ - 'rvm-exec 1.9.3-p551 bundle install'
4
+ - 'rvm-exec 2.0.0-p645 bundle install'
5
+ - 'rvm-exec 2.1.6 bundle install'
6
+ - 'rvm-exec 2.2.2 bundle install'
7
+ test:
8
+ override:
9
+ - 'rvm-exec 1.9.3-p551 bundle exec rake'
10
+ - 'rvm-exec 2.0.0-p645 bundle exec rake'
11
+ - 'rvm-exec 2.1.6 bundle exec rake'
12
+ - 'rvm-exec 2.2.2 bundle exec rake'
File without changes
@@ -0,0 +1,5 @@
1
+ ##
2
+ # Set the version (needed for Mercenary -v)
3
+ module Unabridged
4
+ VERSION = '0.0.1'.freeze
5
+ end
@@ -0,0 +1,11 @@
1
+ if ENV['CI'] == 'true'
2
+ require 'simplecov'
3
+ require 'codecov'
4
+ SimpleCov.formatter = SimpleCov::Formatter::Codecov
5
+ SimpleCov.start do
6
+ add_filter '/spec/'
7
+ end
8
+ end
9
+
10
+ require 'rspec'
11
+ require 'unabridged'
@@ -0,0 +1 @@
1
+ require 'spec_helper'
@@ -0,0 +1,29 @@
1
+ $:.unshift File.expand_path('../lib/', __FILE__)
2
+ require 'unabridged/version'
3
+
4
+ Gem::Specification.new do |s|
5
+ s.name = 'unabridged'
6
+ s.version = Unabridged::VERSION
7
+ s.date = Time.now.strftime('%Y-%m-%d')
8
+
9
+ s.summary = 'Scraper for historical GitHub contribution data'
10
+ s.description = "Scraper for historical GitHub contribution data"
11
+ s.authors = ['Les Aker']
12
+ s.email = 'me@lesaker.org'
13
+ s.homepage = 'https://github.com/akerl/unabridged'
14
+ s.license = 'MIT'
15
+
16
+ s.files = `git ls-files`.split
17
+ s.test_files = `git ls-files spec/*`.split
18
+ s.executables = ['unabridged']
19
+
20
+ s.add_dependency 'mercenary', '~> 0.3.4'
21
+ s.add_dependency 'nokogiri', '~> 1.6.5'
22
+ s.add_dependency 'curb', '~> 0.9.0'
23
+
24
+ s.add_development_dependency 'rubocop', '~> 0.35.0'
25
+ s.add_development_dependency 'rake', '~> 10.4.0'
26
+ s.add_development_dependency 'codecov', '~> 0.1.1'
27
+ s.add_development_dependency 'rspec', '~> 3.4.0'
28
+ s.add_development_dependency 'fuubar', '~> 2.0.0'
29
+ end
metadata ADDED
@@ -0,0 +1,173 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: unabridged
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ platform: ruby
6
+ authors:
7
+ - Les Aker
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2016-06-08 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: mercenary
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: 0.3.4
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: 0.3.4
27
+ - !ruby/object:Gem::Dependency
28
+ name: nokogiri
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: 1.6.5
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: 1.6.5
41
+ - !ruby/object:Gem::Dependency
42
+ name: curb
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: 0.9.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.9.0
55
+ - !ruby/object:Gem::Dependency
56
+ name: rubocop
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - "~>"
60
+ - !ruby/object:Gem::Version
61
+ version: 0.35.0
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - "~>"
67
+ - !ruby/object:Gem::Version
68
+ version: 0.35.0
69
+ - !ruby/object:Gem::Dependency
70
+ name: rake
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - "~>"
74
+ - !ruby/object:Gem::Version
75
+ version: 10.4.0
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - "~>"
81
+ - !ruby/object:Gem::Version
82
+ version: 10.4.0
83
+ - !ruby/object:Gem::Dependency
84
+ name: codecov
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - "~>"
88
+ - !ruby/object:Gem::Version
89
+ version: 0.1.1
90
+ type: :development
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - "~>"
95
+ - !ruby/object:Gem::Version
96
+ version: 0.1.1
97
+ - !ruby/object:Gem::Dependency
98
+ name: rspec
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - "~>"
102
+ - !ruby/object:Gem::Version
103
+ version: 3.4.0
104
+ type: :development
105
+ prerelease: false
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - "~>"
109
+ - !ruby/object:Gem::Version
110
+ version: 3.4.0
111
+ - !ruby/object:Gem::Dependency
112
+ name: fuubar
113
+ requirement: !ruby/object:Gem::Requirement
114
+ requirements:
115
+ - - "~>"
116
+ - !ruby/object:Gem::Version
117
+ version: 2.0.0
118
+ type: :development
119
+ prerelease: false
120
+ version_requirements: !ruby/object:Gem::Requirement
121
+ requirements:
122
+ - - "~>"
123
+ - !ruby/object:Gem::Version
124
+ version: 2.0.0
125
+ description: Scraper for historical GitHub contribution data
126
+ email: me@lesaker.org
127
+ executables:
128
+ - unabridged
129
+ extensions: []
130
+ extra_rdoc_files: []
131
+ files:
132
+ - ".gitignore"
133
+ - ".prospectus"
134
+ - ".rspec"
135
+ - ".rubocop.yml"
136
+ - Gemfile
137
+ - LICENSE
138
+ - README.md
139
+ - Rakefile
140
+ - bin/unabridged
141
+ - circle.yml
142
+ - lib/unabridged.rb
143
+ - lib/unabridged/version.rb
144
+ - spec/spec_helper.rb
145
+ - spec/unabridged_spec.rb
146
+ - unabridged.gemspec
147
+ homepage: https://github.com/akerl/unabridged
148
+ licenses:
149
+ - MIT
150
+ metadata: {}
151
+ post_install_message:
152
+ rdoc_options: []
153
+ require_paths:
154
+ - lib
155
+ required_ruby_version: !ruby/object:Gem::Requirement
156
+ requirements:
157
+ - - ">="
158
+ - !ruby/object:Gem::Version
159
+ version: '0'
160
+ required_rubygems_version: !ruby/object:Gem::Requirement
161
+ requirements:
162
+ - - ">="
163
+ - !ruby/object:Gem::Version
164
+ version: '0'
165
+ requirements: []
166
+ rubyforge_project:
167
+ rubygems_version: 2.5.1
168
+ signing_key:
169
+ specification_version: 4
170
+ summary: Scraper for historical GitHub contribution data
171
+ test_files:
172
+ - spec/spec_helper.rb
173
+ - spec/unabridged_spec.rb