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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6eff1aac4c30a7dec57c39acd452c29a3bdb9c49
4
- data.tar.gz: 29797d5b150718aaa47e541d9704770d5150c9f7
3
+ metadata.gz: e568425f541f69f41ba121e430ad1fc09b731476
4
+ data.tar.gz: 612ac85090700ca27d90b26c002113e176a1c79b
5
5
  SHA512:
6
- metadata.gz: a7f958d7451b211dc2898b1b8e682941d35811a72f6f9b681c4d22942271eb9463a2fb9dbc5279f26c8012a8251135ecf6b3f9dbf2f68f31ddaeb5e437a8ee19
7
- data.tar.gz: 74a7d86be3ad9b76bcf3b9a4f79f14311f8dd00c74dd7d1bed5e3b3ae6dd4ff93f7bf6dc3e75ab0d92ced017d9b8c96d7d3d1435a6237367272236f05f4fa0a9
6
+ metadata.gz: 511d38357fbce3c89984fc975e005a9617773354544f0d2312c5170cc773dce5f35e396e1739db88738ea1c897c7599a204dbb724b37d98f3e259e7a2e87740e
7
+ data.tar.gz: 79495b552d7efad42190dfde7816bb1cb465cc0f0d13ad7abc5387ca46ae6d25a5a454831239bba4884dc2c697ff9dfa1dff51f968d6658d2461f8ebb8f144b3
data/README.md CHANGED
@@ -1,9 +1,12 @@
1
- # DribbbleAPI
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
- _Dribbble API wrapper gem_
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::#{__method__[0...-1].capitalize}"
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::#{__method__[0...-1].capitalize}"
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::#{__method__[0...-1].capitalize}"
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|
@@ -1,4 +1,4 @@
1
1
  # Dribbble Version
2
2
  module Dribbble
3
- VERSION = '1.0.2'
3
+ VERSION = '1.0.4'
4
4
  end
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.2
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-22 00:00:00.000000000 Z
11
+ date: 2015-11-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rest-client