mambanation 0.1.7 → 0.1.8
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION.yml +1 -1
- data/lib/mambanation/base.rb +4 -4
- data/lib/mambanation/nbproject/project.properties +3 -0
- data/lib/mambanation/nbproject/project.xml +11 -0
- metadata +28 -5
data/VERSION.yml
CHANGED
data/lib/mambanation/base.rb
CHANGED
@@ -131,12 +131,12 @@ module MambaNation
|
|
131
131
|
perform_get("/users/#{id.to_i}/posts.json")
|
132
132
|
end
|
133
133
|
|
134
|
-
def create_post(post)
|
135
|
-
perform_post("/posts", :body => { :post => post })
|
134
|
+
def create_post(post,user_id)
|
135
|
+
perform_post("/posts", :body => { :post => post , :user_id => user_id })
|
136
136
|
end
|
137
137
|
|
138
|
-
def posts(id)
|
139
|
-
perform_get("/posts/#{id.to_i}.json")
|
138
|
+
def posts(id, query = {})
|
139
|
+
perform_get("/posts/#{id.to_i}.json", :query => query)
|
140
140
|
end
|
141
141
|
|
142
142
|
def publish_post(id, stream_id)
|
@@ -0,0 +1,11 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<project xmlns="http://www.netbeans.org/ns/project/1">
|
3
|
+
<type>org.netbeans.modules.ruby.rubyproject</type>
|
4
|
+
<configuration>
|
5
|
+
<data xmlns="http://www.netbeans.org/ns/ruby-project/1">
|
6
|
+
<name>RubyProject5</name>
|
7
|
+
<source-roots/>
|
8
|
+
<test-roots/>
|
9
|
+
</data>
|
10
|
+
</configuration>
|
11
|
+
</project>
|
metadata
CHANGED
@@ -1,12 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mambanation
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
+
hash: 11
|
4
5
|
prerelease: false
|
5
6
|
segments:
|
6
7
|
- 0
|
7
8
|
- 1
|
8
|
-
-
|
9
|
-
version: 0.1.
|
9
|
+
- 8
|
10
|
+
version: 0.1.8
|
10
11
|
platform: ruby
|
11
12
|
authors:
|
12
13
|
- Jeremy Van de Wyngaert
|
@@ -23,9 +24,11 @@ dependencies:
|
|
23
24
|
name: hashie
|
24
25
|
prerelease: false
|
25
26
|
requirement: &id001 !ruby/object:Gem::Requirement
|
27
|
+
none: false
|
26
28
|
requirements:
|
27
29
|
- - ~>
|
28
30
|
- !ruby/object:Gem::Version
|
31
|
+
hash: 23
|
29
32
|
segments:
|
30
33
|
- 0
|
31
34
|
- 2
|
@@ -37,9 +40,11 @@ dependencies:
|
|
37
40
|
name: httparty
|
38
41
|
prerelease: false
|
39
42
|
requirement: &id002 !ruby/object:Gem::Requirement
|
43
|
+
none: false
|
40
44
|
requirements:
|
41
45
|
- - ~>
|
42
46
|
- !ruby/object:Gem::Version
|
47
|
+
hash: 11
|
43
48
|
segments:
|
44
49
|
- 0
|
45
50
|
- 5
|
@@ -51,9 +56,11 @@ dependencies:
|
|
51
56
|
name: yajl-ruby
|
52
57
|
prerelease: false
|
53
58
|
requirement: &id003 !ruby/object:Gem::Requirement
|
59
|
+
none: false
|
54
60
|
requirements:
|
55
61
|
- - ~>
|
56
62
|
- !ruby/object:Gem::Version
|
63
|
+
hash: 3
|
57
64
|
segments:
|
58
65
|
- 0
|
59
66
|
- 7
|
@@ -65,9 +72,11 @@ dependencies:
|
|
65
72
|
name: shoulda
|
66
73
|
prerelease: false
|
67
74
|
requirement: &id004 !ruby/object:Gem::Requirement
|
75
|
+
none: false
|
68
76
|
requirements:
|
69
77
|
- - ~>
|
70
78
|
- !ruby/object:Gem::Version
|
79
|
+
hash: 39
|
71
80
|
segments:
|
72
81
|
- 2
|
73
82
|
- 10
|
@@ -79,9 +88,11 @@ dependencies:
|
|
79
88
|
name: jnunemaker-matchy
|
80
89
|
prerelease: false
|
81
90
|
requirement: &id005 !ruby/object:Gem::Requirement
|
91
|
+
none: false
|
82
92
|
requirements:
|
83
93
|
- - ~>
|
84
94
|
- !ruby/object:Gem::Version
|
95
|
+
hash: 15
|
85
96
|
segments:
|
86
97
|
- 0
|
87
98
|
- 4
|
@@ -93,9 +104,11 @@ dependencies:
|
|
93
104
|
name: mocha
|
94
105
|
prerelease: false
|
95
106
|
requirement: &id006 !ruby/object:Gem::Requirement
|
107
|
+
none: false
|
96
108
|
requirements:
|
97
109
|
- - ~>
|
98
110
|
- !ruby/object:Gem::Version
|
111
|
+
hash: 59
|
99
112
|
segments:
|
100
113
|
- 0
|
101
114
|
- 9
|
@@ -107,9 +120,11 @@ dependencies:
|
|
107
120
|
name: fakeweb
|
108
121
|
prerelease: false
|
109
122
|
requirement: &id007 !ruby/object:Gem::Requirement
|
123
|
+
none: false
|
110
124
|
requirements:
|
111
125
|
- - ~>
|
112
126
|
- !ruby/object:Gem::Version
|
127
|
+
hash: 31
|
113
128
|
segments:
|
114
129
|
- 1
|
115
130
|
- 2
|
@@ -121,9 +136,11 @@ dependencies:
|
|
121
136
|
name: redgreen
|
122
137
|
prerelease: false
|
123
138
|
requirement: &id008 !ruby/object:Gem::Requirement
|
139
|
+
none: false
|
124
140
|
requirements:
|
125
141
|
- - ~>
|
126
142
|
- !ruby/object:Gem::Version
|
143
|
+
hash: 27
|
127
144
|
segments:
|
128
145
|
- 1
|
129
146
|
- 2
|
@@ -151,6 +168,8 @@ files:
|
|
151
168
|
- lib/mambanation.rb
|
152
169
|
- lib/mambanation/base.rb
|
153
170
|
- lib/mambanation/httpauth.rb
|
171
|
+
- lib/mambanation/nbproject/project.properties
|
172
|
+
- lib/mambanation/nbproject/project.xml
|
154
173
|
- lib/mambanation/request.rb
|
155
174
|
- test/fixtures/actions.json
|
156
175
|
- test/fixtures/badges.json
|
@@ -187,29 +206,33 @@ rdoc_options:
|
|
187
206
|
require_paths:
|
188
207
|
- lib
|
189
208
|
required_ruby_version: !ruby/object:Gem::Requirement
|
209
|
+
none: false
|
190
210
|
requirements:
|
191
211
|
- - ">="
|
192
212
|
- !ruby/object:Gem::Version
|
213
|
+
hash: 3
|
193
214
|
segments:
|
194
215
|
- 0
|
195
216
|
version: "0"
|
196
217
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
218
|
+
none: false
|
197
219
|
requirements:
|
198
220
|
- - ">="
|
199
221
|
- !ruby/object:Gem::Version
|
222
|
+
hash: 3
|
200
223
|
segments:
|
201
224
|
- 0
|
202
225
|
version: "0"
|
203
226
|
requirements: []
|
204
227
|
|
205
228
|
rubyforge_project:
|
206
|
-
rubygems_version: 1.3.
|
229
|
+
rubygems_version: 1.3.7
|
207
230
|
signing_key:
|
208
231
|
specification_version: 3
|
209
232
|
summary: wrapper for mambanation-api
|
210
233
|
test_files:
|
234
|
+
- test/mambanation_test.rb
|
235
|
+
- test/mambanation/request_test.rb
|
211
236
|
- test/mambanation/base_test.rb
|
212
237
|
- test/mambanation/httpauth_test.rb
|
213
|
-
- test/mambanation/request_test.rb
|
214
|
-
- test/mambanation_test.rb
|
215
238
|
- test/test_helper.rb
|