mambanation 0.1.24 → 0.1.25

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/VERSION.yml +1 -1
  2. data/lib/mambanation/base.rb +10 -6
  3. metadata +4 -4
data/VERSION.yml CHANGED
@@ -1,5 +1,5 @@
1
1
  ---
2
2
  :minor: 1
3
- :patch: 24
3
+ :patch: 25
4
4
  :build:
5
5
  :major: 0
@@ -89,25 +89,29 @@ module MambaNation
89
89
  # Facets
90
90
  #
91
91
  # Options: facet_id
92
- def facet(id, query = {})
93
- perform_get("/facets/#{id.to_i}.json", :query => query)
92
+ def facet(facet_id, query = {})
93
+ perform_get("/facets/#{facet_id.to_i}.json", :query => query)
94
94
  end
95
95
 
96
96
  def famous_facets(query = {})
97
97
  perform_get("/facets/famous.json", :query => query)
98
98
  end
99
99
 
100
+ def favorite_facet(id, facet_id, query = {})
101
+ perform_put("/facets/#{facet_id.to_i}/favorite.json", :query => query)
102
+ end
103
+
100
104
  # Options: user_id
101
105
  def user_facets(id, query = {})
102
106
  perform_get("/users/#{id.to_i}/facets.json", :query => query)
103
107
  end
104
108
 
105
- def facet_coms(id, query = {})
106
- perform_get("/facets/#{id.to_i}/coms.json", :query => query)
109
+ def facet_coms(facet_id, query = {})
110
+ perform_get("/facets/#{facet_id.to_i}/coms.json", :query => query)
107
111
  end
108
112
 
109
- def facet_messages(id, query = {})
110
- perform_get("/facets/#{id.to_i}/messages.json", :query => query)
113
+ def facet_messages(facet_id, query = {})
114
+ perform_get("/facets/#{facet_id.to_i}/messages.json", :query => query)
111
115
  end
112
116
 
113
117
  #
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mambanation
3
3
  version: !ruby/object:Gem::Version
4
- hash: 43
4
+ hash: 41
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 24
10
- version: 0.1.24
9
+ - 25
10
+ version: 0.1.25
11
11
  platform: ruby
12
12
  authors:
13
13
  - "J\xC3\xA9r\xC3\xA9my Van de Wyngaert"
@@ -17,7 +17,7 @@ autorequire:
17
17
  bindir: bin
18
18
  cert_chain: []
19
19
 
20
- date: 2010-10-06 00:00:00 +02:00
20
+ date: 2010-10-20 00:00:00 +02:00
21
21
  default_executable:
22
22
  dependencies:
23
23
  - !ruby/object:Gem::Dependency