gigatools 0.0.2 → 0.0.4

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: bb52a2cc839e3626e1461e5f3b20ee25822d1b22
4
- data.tar.gz: 8ed7b003c9c77fd2cd6fddba14eba69053d4de96
3
+ metadata.gz: 1ab40f2c0762bcf5c7ffbc194b0a7731eeb7e4c6
4
+ data.tar.gz: 29172dc3fc9cf7cbd033a067a8368bece355f65e
5
5
  SHA512:
6
- metadata.gz: 38750ac30c6c7577d1d3a2817cbe98601932bb707a94fb8bc4c24605c6d471536d63e8af4da95bdf72ba6229aed20618ff32a50265652b0a0e121011cc2568b5
7
- data.tar.gz: 357686b8dd45a3c26a4fc03352a74d581de123990b027172ee17e9a871215ba3802f97a7fbcc5ad55181b048153a2d952fa2aaa6a34a9f917ddac64ae81597a8
6
+ metadata.gz: f74593400364d5252a6d6f7a8c27aeaebff8828a31f6516d683ca72f18f9a63c61ebd5cfc2b40f4d9b7db86f199aa3964ba2dba58b2e94b97867b41c15dde371
7
+ data.tar.gz: ea5b3148313cd5970870055c3f1874f2dfaa27a781fcfa02707bed2be55aae63aebb9d525a6eba76d579058e2358bf817fc2e24640bde67ffa1d680b2f10a22d
@@ -0,0 +1,22 @@
1
+ *.gem
2
+ *.rbc
3
+ .bundle
4
+ .config
5
+ .yardoc
6
+ Gemfile.lock
7
+ InstalledFiles
8
+ _yardoc
9
+ coverage
10
+ doc/
11
+ lib/bundler/man
12
+ pkg
13
+ rdoc
14
+ spec/reports
15
+ test/tmp
16
+ test/version_tmp
17
+ tmp
18
+ *.bundle
19
+ *.so
20
+ *.o
21
+ *.a
22
+ mkmf.log
data/Gemfile ADDED
@@ -0,0 +1,4 @@
1
+ source 'https://rubygems.org'
2
+
3
+ # Specify your gem's dependencies in gigatools.gemspec
4
+ gemspec
@@ -0,0 +1,22 @@
1
+ Copyright (c) 2014 Joseph Hernandez
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,31 @@
1
+ # Gigatools
2
+
3
+ Gigatools is a gem for easily grabbing a Gigatools user's information and a event list without need for an API key.
4
+
5
+ ## Installation
6
+
7
+ Add this line to your application's Gemfile:
8
+
9
+ gem 'gigatools'
10
+
11
+ And then execute:
12
+
13
+ $ bundle
14
+
15
+ Or install it yourself as:
16
+
17
+ $ gem install gigatools
18
+
19
+ ## Usage
20
+
21
+ You can retrieve an object containing the user's information and event list by running:
22
+
23
+ Gigatools.find_by_username("GIGATOOLS_USERNAME")
24
+
25
+ ## Contributing
26
+
27
+ 1. Fork it ( https://github.com/imjoeco/gigatools/fork )
28
+ 2. Create your feature branch (`git checkout -b my-new-feature`)
29
+ 3. Commit your changes (`git commit -am 'Add some feature'`)
30
+ 4. Push to the branch (`git push origin my-new-feature`)
31
+ 5. Create a new Pull Request
@@ -0,0 +1,2 @@
1
+ require "bundler/gem_tasks"
2
+
@@ -0,0 +1,23 @@
1
+ # coding: utf-8
2
+ lib = File.expand_path('../lib', __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require 'gigatools/version'
5
+
6
+ Gem::Specification.new do |spec|
7
+ spec.name = "gigatools"
8
+ spec.version = Gigatools::VERSION
9
+ spec.authors = ["Joseph Hernandez"]
10
+ spec.email = ["joe@imjoe.co"]
11
+ spec.summary = "Unofficial Gigatools Gem"
12
+ spec.description = "A simple gem for integrating basic Gigatools user information"
13
+ spec.homepage = 'https://github.com/imjoeco/gigatools'
14
+ spec.license = "MIT"
15
+
16
+ spec.files = `git ls-files -z`.split("\x0")
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_development_dependency "bundler", "~> 1.6"
22
+ spec.add_development_dependency "rake", "~> 0"
23
+ end
@@ -1,6 +1,8 @@
1
- class Gigatools
2
- require 'gigatools_user'
3
- require 'gigatools_event'
1
+ require "gigatools/version"
2
+ require 'gigatools/gigatools_user'
3
+ require 'gigatools/gigatools_event'
4
+
5
+ module Gigatools
4
6
  require 'net/http'
5
7
  require 'json'
6
8
 
@@ -1,5 +1,5 @@
1
1
  class GigatoolsEvent
2
- require 'gigatools_utils'
2
+ require 'gigatools/gigatools_utils'
3
3
  require 'time'
4
4
 
5
5
  include GigatoolsUtils
@@ -1,13 +1,13 @@
1
1
  class GigatoolsUser
2
- require 'gigatools_utils'
2
+ require 'gigatools/gigatools_utils'
3
3
  include GigatoolsUtils
4
4
 
5
5
  attr_reader :id, :artistname, :url,
6
6
  :username, :bookingcontact, :mixcloud_url,
7
7
  :soundcloud_url, :twittername, :widgetname
8
8
 
9
- # events returns an array of GigatoolsEvent objects
10
- #if the user has any upcoming events
9
+ # Returns an array of GigatoolsEvent objects
10
+ # if the user has any upcoming events
11
11
  attr_reader :events
12
12
 
13
13
  def initialize(user_json, events_json)
@@ -0,0 +1,3 @@
1
+ module Gigatools
2
+ VERSION = "0.0.4"
3
+ end
metadata CHANGED
@@ -1,26 +1,62 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gigatools
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Joseph Hernandez
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-10-08 00:00:00.000000000 Z
12
- dependencies: []
11
+ date: 2014-10-09 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: bundler
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '1.6'
20
+ type: :development
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '1.6'
27
+ - !ruby/object:Gem::Dependency
28
+ name: rake
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '0'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
13
41
  description: A simple gem for integrating basic Gigatools user information
14
- email: joe@imjoe.co
42
+ email:
43
+ - joe@imjoe.co
15
44
  executables: []
16
45
  extensions: []
17
46
  extra_rdoc_files: []
18
47
  files:
48
+ - ".gitignore"
49
+ - Gemfile
50
+ - LICENSE.txt
51
+ - README.md
52
+ - Rakefile
53
+ - gigatools.gemspec
19
54
  - lib/gigatools.rb
20
- - lib/gigatools_event.rb
21
- - lib/gigatools_user.rb
22
- - lib/gigatools_utils.rb
23
- homepage: http://rubygems.org/gems/gigatools
55
+ - lib/gigatools/gigatools_event.rb
56
+ - lib/gigatools/gigatools_user.rb
57
+ - lib/gigatools/gigatools_utils.rb
58
+ - lib/gigatools/version.rb
59
+ homepage: https://github.com/imjoeco/gigatools
24
60
  licenses:
25
61
  - MIT
26
62
  metadata: {}