warhol 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.
- data/.gemtest +0 -0
- data/.gitignore +17 -0
- data/.rspec +3 -0
- data/.ruby-version +1 -0
- data/.simplecov +8 -0
- data/.travis.yml +5 -0
- data/.yardopts +8 -0
- data/CHANGELOG.md +3 -0
- data/CONTRIBUTING.md +52 -0
- data/Gemfile +26 -0
- data/LICENSE.md +22 -0
- data/README.md +81 -0
- data/Rakefile +10 -0
- data/lib/warhol.rb +4 -0
- data/lib/warhol/version.rb +3 -0
- data/spec/lib/warhol_spec.rb +4 -0
- data/spec/spec_helper.rb +21 -0
- data/warhol.gemspec +25 -0
- metadata +131 -0
data/.gemtest
ADDED
File without changes
|
data/.gitignore
ADDED
data/.rspec
ADDED
data/.ruby-version
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
1.9.3-p448
|
data/.simplecov
ADDED
data/.travis.yml
ADDED
data/.yardopts
ADDED
data/CHANGELOG.md
ADDED
data/CONTRIBUTING.md
ADDED
@@ -0,0 +1,52 @@
|
|
1
|
+
# Contributing to Warhol
|
2
|
+
|
3
|
+
In the spirit of [free software][free-sw], **everyone** is encouraged to help
|
4
|
+
improve this project.
|
5
|
+
|
6
|
+
[free-sw]: http://www.fsf.org/licensing/essays/free-sw.html
|
7
|
+
|
8
|
+
Here are some ways *you* can contribute:
|
9
|
+
|
10
|
+
* by using alpha, beta, and prerelease versions
|
11
|
+
* by reporting bugs
|
12
|
+
* by suggesting new features
|
13
|
+
* by writing or editing documentation
|
14
|
+
* by writing specifications
|
15
|
+
* by writing code (**no patch is too small**: fix typos, add comments, clean up
|
16
|
+
inconsistent whitespace)
|
17
|
+
* by refactoring code
|
18
|
+
* by fixing [issues][]
|
19
|
+
* by reviewing patches
|
20
|
+
|
21
|
+
[issues]: https://github.com/sferik/twitter/issues
|
22
|
+
|
23
|
+
## Submitting an Issue
|
24
|
+
We use the [GitHub issue tracker][issues] to track bugs and features. Before
|
25
|
+
submitting a bug report or feature request, check to make sure it hasn't
|
26
|
+
already been submitted. When submitting a bug report, please include a [Gist][]
|
27
|
+
that includes a stack trace and any details that may be necessary to reproduce
|
28
|
+
the bug, including your gem version, Ruby version, and operating system.
|
29
|
+
Ideally, a bug report should include a pull request with failing specs.
|
30
|
+
|
31
|
+
[gist]: https://gist.github.com/
|
32
|
+
|
33
|
+
## Submitting a Pull Request
|
34
|
+
1. [Fork the repository.][fork]
|
35
|
+
2. [Create a topic branch.][branch]
|
36
|
+
3. Add specs for your unimplemented feature or bug fix.
|
37
|
+
4. Run `bundle exec rake spec`. If your specs pass, return to step 3.
|
38
|
+
5. Implement your feature or bug fix.
|
39
|
+
6. Run `bundle exec rake spec`. If your specs fail, return to step 5.
|
40
|
+
7. Run `open coverage/index.html`. If your changes are not completely covered
|
41
|
+
by your tests, return to step 3.
|
42
|
+
8. Run `RUBYOPT=W2 bundle exec rake spec 2>&1 | grep warhol`. If your changes
|
43
|
+
produce any warnings, return to step 5.
|
44
|
+
9. Add documentation for your feature or bug fix.
|
45
|
+
10. Run `bundle exec rake yard`. If your changes are not 100% documented, go
|
46
|
+
back to step 9.
|
47
|
+
11. Commit and push your changes.
|
48
|
+
12. [Submit a pull request.][pr]
|
49
|
+
|
50
|
+
[fork]: http://help.github.com/fork-a-repo/
|
51
|
+
[branch]: http://learn.github.com/p/branching.html
|
52
|
+
[pr]: http://help.github.com/send-pull-requests/
|
data/Gemfile
ADDED
@@ -0,0 +1,26 @@
|
|
1
|
+
source 'https://rubygems.org'
|
2
|
+
|
3
|
+
gemspec
|
4
|
+
|
5
|
+
group :development do
|
6
|
+
gem 'gem-release', '~> 0.6.0'
|
7
|
+
end
|
8
|
+
|
9
|
+
group :test do
|
10
|
+
gem 'rspec', '~> 2.14.1'
|
11
|
+
gem 'rspec-fire', '~> 1.2.0'
|
12
|
+
gem 'simplecov', '~> 0.7.1', require: false
|
13
|
+
gem 'timecop', '~> 0.6.2'
|
14
|
+
gem 'webmock', '~> 1.13.0'
|
15
|
+
end
|
16
|
+
|
17
|
+
group :development, :test do
|
18
|
+
gem 'pry', '~> 0.9.12'
|
19
|
+
gem 'pry-debugger', '~> 0.2.2'
|
20
|
+
gem 'pry-stack_explorer', '~> 0.4.9'
|
21
|
+
end
|
22
|
+
|
23
|
+
group :doc do
|
24
|
+
gem 'redcarpet', '~> 3.0.0'
|
25
|
+
gem 'yard', '~> 0.8.6'
|
26
|
+
end
|
data/LICENSE.md
ADDED
@@ -0,0 +1,22 @@
|
|
1
|
+
Copyright (c) 2013 Quad Learning, Inc.
|
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.
|
data/README.md
ADDED
@@ -0,0 +1,81 @@
|
|
1
|
+
# Warhol
|
2
|
+
|
3
|
+
[][gem]
|
4
|
+
[][travis]
|
5
|
+
[][gemnasium]
|
6
|
+
[][codeclimate]
|
7
|
+
|
8
|
+
A Ruby client gem for the [Canvas](canvas) LMS [API](canvas-api).
|
9
|
+
|
10
|
+
[canvas]: http://instructure.com
|
11
|
+
[canvas-api]: https://canvas.instructure.com/doc/api/
|
12
|
+
[gem]: https://rubygems.org/gems/warhol
|
13
|
+
[travis]: http://travis-ci.org/americanhonors/warhol
|
14
|
+
[gemnasium]: https://gemnasium.com/americanhonors/warhol
|
15
|
+
[codeclimate]: https://codeclimate.com/github/americanhonors/warhol
|
16
|
+
|
17
|
+
## Installation
|
18
|
+
|
19
|
+
Add this line to your application's Gemfile:
|
20
|
+
|
21
|
+
gem 'warhol'
|
22
|
+
|
23
|
+
And then execute:
|
24
|
+
|
25
|
+
$ bundle
|
26
|
+
|
27
|
+
Or install it yourself as:
|
28
|
+
|
29
|
+
$ gem install warhol
|
30
|
+
|
31
|
+
## Getting started
|
32
|
+
|
33
|
+
TODO: Write usage instructions here
|
34
|
+
|
35
|
+
## Documentation
|
36
|
+
|
37
|
+
[http://rdoc.info/gems/warhol][documentation]
|
38
|
+
|
39
|
+
[documentation]: http://rdoc.info/gems/warhol
|
40
|
+
|
41
|
+
## Supported Ruby Versions
|
42
|
+
|
43
|
+
This library aims to support, and is [tested against][travis] the following Ruby
|
44
|
+
implementations:
|
45
|
+
|
46
|
+
* Ruby 1.9.3
|
47
|
+
* Ruby 2.0.0
|
48
|
+
|
49
|
+
Development is primarily done in a Ruby 1.9.3 environment with the latest patch
|
50
|
+
release.
|
51
|
+
|
52
|
+
## Versioning
|
53
|
+
|
54
|
+
This library aims to adhere to [Semantic Versioning 2.0.0][semver]. Violations
|
55
|
+
of this scheme should be reported as bugs. Specifically, if a minor or patch
|
56
|
+
version is released that breaks backward compatibility, that version should be
|
57
|
+
immediately yanked and/or a new version should be immediately released that
|
58
|
+
restores compatibility. Breaking changes to the public API will only be
|
59
|
+
introduced with new major versions. As a result of this policy, you can (and
|
60
|
+
should) specify a dependency on this gem using the [Pessimistic Version
|
61
|
+
Constraint][pvc] with two digits of precision. For example:
|
62
|
+
|
63
|
+
spec.add_dependency 'twitter', '~> 4.0'
|
64
|
+
|
65
|
+
[semver]: http://semver.org/
|
66
|
+
[pvc]: http://docs.rubygems.org/read/chapter/16#page74
|
67
|
+
|
68
|
+
## Thanks
|
69
|
+
|
70
|
+
* Special thanks to the authors of the [twitter][twitter-gem] gem, from which
|
71
|
+
a good deal of this gem's boilerplate and foundation is based on.
|
72
|
+
|
73
|
+
[twitter-gem]: https://github.com/sferik/twitter
|
74
|
+
|
75
|
+
## Copyright
|
76
|
+
|
77
|
+
Copyright (c) 2013 Quad Learning, Inc.
|
78
|
+
|
79
|
+
See [LICENSE][] for details.
|
80
|
+
|
81
|
+
[license]: LICENSE.md
|
data/Rakefile
ADDED
data/lib/warhol.rb
ADDED
data/spec/spec_helper.rb
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
require 'simplecov'
|
2
|
+
require 'warhol'
|
3
|
+
require 'rspec'
|
4
|
+
require 'timecop'
|
5
|
+
require 'webmock/rspec'
|
6
|
+
|
7
|
+
WebMock.disable_net_connect!
|
8
|
+
|
9
|
+
RSpec.configure do |config|
|
10
|
+
config.expect_with :rspec do |c|
|
11
|
+
c.syntax = :expect
|
12
|
+
end
|
13
|
+
end
|
14
|
+
|
15
|
+
def fixture_path
|
16
|
+
File.expand_path('../fixtures', __FILE__)
|
17
|
+
end
|
18
|
+
|
19
|
+
def fixture(file)
|
20
|
+
File.new("#{fixture_path}/#{file}")
|
21
|
+
end
|
data/warhol.gemspec
ADDED
@@ -0,0 +1,25 @@
|
|
1
|
+
lib = File.expand_path('../lib', __FILE__)
|
2
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
3
|
+
require 'warhol/version'
|
4
|
+
|
5
|
+
Gem::Specification.new do |spec|
|
6
|
+
spec.name = 'warhol'
|
7
|
+
spec.version = Warhol::VERSION
|
8
|
+
spec.authors = ['Tony Burns']
|
9
|
+
spec.email = ['tony@tabolario.com']
|
10
|
+
spec.description = %q{A client for the Canvas LMS API.}
|
11
|
+
spec.summary = spec.description
|
12
|
+
spec.homepage = 'https://github.com/americanhonors/warhol'
|
13
|
+
spec.license = 'MIT'
|
14
|
+
|
15
|
+
spec.files = `git ls-files`.split($/)
|
16
|
+
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
|
17
|
+
spec.test_files = spec.files.grep(%r{^(spec|features)/})
|
18
|
+
spec.require_paths = ['lib']
|
19
|
+
|
20
|
+
spec.add_dependency 'faraday', '~> 0.8.7'
|
21
|
+
spec.add_dependency 'faraday_middleware', '~> 0.9.0'
|
22
|
+
|
23
|
+
spec.add_development_dependency 'bundler', '~> 1.3'
|
24
|
+
spec.add_development_dependency 'rake'
|
25
|
+
end
|
metadata
ADDED
@@ -0,0 +1,131 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: warhol
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.0
|
5
|
+
prerelease:
|
6
|
+
platform: ruby
|
7
|
+
authors:
|
8
|
+
- Tony Burns
|
9
|
+
autorequire:
|
10
|
+
bindir: bin
|
11
|
+
cert_chain: []
|
12
|
+
date: 2013-07-18 00:00:00.000000000 Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
15
|
+
name: faraday
|
16
|
+
requirement: !ruby/object:Gem::Requirement
|
17
|
+
none: false
|
18
|
+
requirements:
|
19
|
+
- - ~>
|
20
|
+
- !ruby/object:Gem::Version
|
21
|
+
version: 0.8.7
|
22
|
+
type: :runtime
|
23
|
+
prerelease: false
|
24
|
+
version_requirements: !ruby/object:Gem::Requirement
|
25
|
+
none: false
|
26
|
+
requirements:
|
27
|
+
- - ~>
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
version: 0.8.7
|
30
|
+
- !ruby/object:Gem::Dependency
|
31
|
+
name: faraday_middleware
|
32
|
+
requirement: !ruby/object:Gem::Requirement
|
33
|
+
none: false
|
34
|
+
requirements:
|
35
|
+
- - ~>
|
36
|
+
- !ruby/object:Gem::Version
|
37
|
+
version: 0.9.0
|
38
|
+
type: :runtime
|
39
|
+
prerelease: false
|
40
|
+
version_requirements: !ruby/object:Gem::Requirement
|
41
|
+
none: false
|
42
|
+
requirements:
|
43
|
+
- - ~>
|
44
|
+
- !ruby/object:Gem::Version
|
45
|
+
version: 0.9.0
|
46
|
+
- !ruby/object:Gem::Dependency
|
47
|
+
name: bundler
|
48
|
+
requirement: !ruby/object:Gem::Requirement
|
49
|
+
none: false
|
50
|
+
requirements:
|
51
|
+
- - ~>
|
52
|
+
- !ruby/object:Gem::Version
|
53
|
+
version: '1.3'
|
54
|
+
type: :development
|
55
|
+
prerelease: false
|
56
|
+
version_requirements: !ruby/object:Gem::Requirement
|
57
|
+
none: false
|
58
|
+
requirements:
|
59
|
+
- - ~>
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '1.3'
|
62
|
+
- !ruby/object:Gem::Dependency
|
63
|
+
name: rake
|
64
|
+
requirement: !ruby/object:Gem::Requirement
|
65
|
+
none: false
|
66
|
+
requirements:
|
67
|
+
- - ! '>='
|
68
|
+
- !ruby/object:Gem::Version
|
69
|
+
version: '0'
|
70
|
+
type: :development
|
71
|
+
prerelease: false
|
72
|
+
version_requirements: !ruby/object:Gem::Requirement
|
73
|
+
none: false
|
74
|
+
requirements:
|
75
|
+
- - ! '>='
|
76
|
+
- !ruby/object:Gem::Version
|
77
|
+
version: '0'
|
78
|
+
description: A client for the Canvas LMS API.
|
79
|
+
email:
|
80
|
+
- tony@tabolario.com
|
81
|
+
executables: []
|
82
|
+
extensions: []
|
83
|
+
extra_rdoc_files: []
|
84
|
+
files:
|
85
|
+
- .gemtest
|
86
|
+
- .gitignore
|
87
|
+
- .rspec
|
88
|
+
- .ruby-version
|
89
|
+
- .simplecov
|
90
|
+
- .travis.yml
|
91
|
+
- .yardopts
|
92
|
+
- CHANGELOG.md
|
93
|
+
- CONTRIBUTING.md
|
94
|
+
- Gemfile
|
95
|
+
- LICENSE.md
|
96
|
+
- README.md
|
97
|
+
- Rakefile
|
98
|
+
- lib/warhol.rb
|
99
|
+
- lib/warhol/version.rb
|
100
|
+
- spec/lib/warhol_spec.rb
|
101
|
+
- spec/spec_helper.rb
|
102
|
+
- warhol.gemspec
|
103
|
+
homepage: https://github.com/americanhonors/warhol
|
104
|
+
licenses:
|
105
|
+
- MIT
|
106
|
+
post_install_message:
|
107
|
+
rdoc_options: []
|
108
|
+
require_paths:
|
109
|
+
- lib
|
110
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
111
|
+
none: false
|
112
|
+
requirements:
|
113
|
+
- - ! '>='
|
114
|
+
- !ruby/object:Gem::Version
|
115
|
+
version: '0'
|
116
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
117
|
+
none: false
|
118
|
+
requirements:
|
119
|
+
- - ! '>='
|
120
|
+
- !ruby/object:Gem::Version
|
121
|
+
version: '0'
|
122
|
+
requirements: []
|
123
|
+
rubyforge_project:
|
124
|
+
rubygems_version: 1.8.23
|
125
|
+
signing_key:
|
126
|
+
specification_version: 3
|
127
|
+
summary: A client for the Canvas LMS API.
|
128
|
+
test_files:
|
129
|
+
- spec/lib/warhol_spec.rb
|
130
|
+
- spec/spec_helper.rb
|
131
|
+
has_rdoc:
|