pilha 0.1.8 → 0.1.9
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/README.rdoc +4 -0
- data/lib/pilha.rb +2 -1
- metadata +3 -3
data/README.rdoc
CHANGED
|
@@ -22,6 +22,10 @@ Pilha aims to provide a ActiveRecord like interface for querying the StackExchan
|
|
|
22
22
|
Badge.all # returns all badges
|
|
23
23
|
User.find_by_badge_id(2) # returns all users awarded by the badge identified with 'id'
|
|
24
24
|
|
|
25
|
+
= Contributors
|
|
26
|
+
|
|
27
|
+
Michael Barton (https://github.com/michaelbarton)
|
|
28
|
+
|
|
25
29
|
= License
|
|
26
30
|
|
|
27
31
|
(The MIT License)
|
data/lib/pilha.rb
CHANGED
|
@@ -7,6 +7,7 @@ require 'zlib'
|
|
|
7
7
|
require 'json'
|
|
8
8
|
require 'open-uri'
|
|
9
9
|
require 'forwardable'
|
|
10
|
+
require 'ostruct'
|
|
10
11
|
|
|
11
12
|
require 'pilha/stack_overflow/base'
|
|
12
13
|
require 'pilha/stack_overflow/tag'
|
|
@@ -21,7 +22,7 @@ module StackExchange
|
|
|
21
22
|
module StackOverflow
|
|
22
23
|
class Client
|
|
23
24
|
URL = 'http://api.stackoverflow.com/'
|
|
24
|
-
API_VERSION = '0
|
|
25
|
+
API_VERSION = '1.0'
|
|
25
26
|
|
|
26
27
|
attr_reader :url
|
|
27
28
|
attr_reader :api_version
|
metadata
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: pilha
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
hash:
|
|
4
|
+
hash: 9
|
|
5
5
|
prerelease: false
|
|
6
6
|
segments:
|
|
7
7
|
- 0
|
|
8
8
|
- 1
|
|
9
|
-
-
|
|
10
|
-
version: 0.1.
|
|
9
|
+
- 9
|
|
10
|
+
version: 0.1.9
|
|
11
11
|
platform: ruby
|
|
12
12
|
authors:
|
|
13
13
|
- Dalto Curvelano Junior
|