dribbble 1.0.2 → 1.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +5 -2
- data/lib/dribbble/utils/has_children.rb +3 -3
- data/lib/dribbble/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e568425f541f69f41ba121e430ad1fc09b731476
|
4
|
+
data.tar.gz: 612ac85090700ca27d90b26c002113e176a1c79b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 511d38357fbce3c89984fc975e005a9617773354544f0d2312c5170cc773dce5f35e396e1739db88738ea1c897c7599a204dbb724b37d98f3e259e7a2e87740e
|
7
|
+
data.tar.gz: 79495b552d7efad42190dfde7816bb1cb465cc0f0d13ad7abc5387ca46ae6d25a5a454831239bba4884dc2c697ff9dfa1dff51f968d6658d2461f8ebb8f144b3
|
data/README.md
CHANGED
@@ -1,9 +1,12 @@
|
|
1
|
-
#
|
1
|
+
# Dribbble API wrapper Gem
|
2
2
|
|
3
3
|
[![Gem Version](https://badge.fury.io/rb/dribbble.svg)](http://rubygems.org/gems/dribbble)
|
4
4
|
[![Build Status](https://travis-ci.org/Calyhre/dribbble.svg?branch=master)](https://travis-ci.org/Calyhre/dribbble)
|
5
5
|
|
6
|
-
|
6
|
+
Calyhre/dribbble is an unofficial API wrapper ruby gem for [Dribbble.com's API](http://developer.dribbble.com/).
|
7
|
+
|
8
|
+
[But, what it Dribbble?](https://dribbble.com/about)
|
9
|
+
> What are you working on? Dribbble is a community of designers answering that question each day. Web designers, graphic designers, illustrators, icon artists, typographers, logo designers, and other creative types share small screenshots (shots) that show their work, process, and current projects.
|
7
10
|
|
8
11
|
## Installation
|
9
12
|
|
@@ -16,19 +16,19 @@ module Dribbble
|
|
16
16
|
singularized_field = field[0...-1]
|
17
17
|
|
18
18
|
define_method field do |attrs = {}|
|
19
|
-
klass ||= Object.const_get "Dribbble::#{
|
19
|
+
klass ||= Object.const_get "Dribbble::#{singularized_field.capitalize}"
|
20
20
|
url = "/#{pluralized_class_name}/#{id}/#{field}"
|
21
21
|
klass.batch_new token, html_get(url, attrs), key, url
|
22
22
|
end
|
23
23
|
|
24
24
|
define_method "find_#{singularized_field}" do |child_id|
|
25
|
-
klass ||= Object.const_get "Dribbble::#{
|
25
|
+
klass ||= Object.const_get "Dribbble::#{singularized_field.capitalize}"
|
26
26
|
url = "/#{pluralized_class_name}/#{id}/#{field}/#{child_id}"
|
27
27
|
klass.new token, html_get(url), url
|
28
28
|
end
|
29
29
|
|
30
30
|
define_method "create_#{singularized_field}" do |attrs = {}|
|
31
|
-
klass ||= Object.const_get "Dribbble::#{
|
31
|
+
klass ||= Object.const_get "Dribbble::#{singularized_field.capitalize}"
|
32
32
|
url = "/#{pluralized_class_name}/#{id}/#{field}"
|
33
33
|
res = html_post url do |payload|
|
34
34
|
klass.available_fields.each do |field|
|
data/lib/dribbble/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dribbble
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Calyhre
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-11-
|
11
|
+
date: 2015-11-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rest-client
|