jaconda 2.0.1 → 2.0.2
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile +3 -5
- data/README.markdown +1 -1
- data/Rakefile +2 -50
- data/jaconda.gemspec +1 -1
- data/lib/jaconda/room.rb +5 -0
- metadata +35 -53
data/Gemfile
CHANGED
data/README.markdown
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
Jaconda API
|
2
2
|
--------------
|
3
3
|
|
4
|
-
The official ruby wrapper for working with the [Jaconda REST API](http://help.jaconda.im/kb/api-v2/jaconda-api-documentation)'s
|
4
|
+
The official ruby wrapper for working with the [Jaconda REST API](http://help.jaconda.im/kb/api-v2/jaconda-api-documentation)'s JSON interface.
|
5
5
|
|
6
6
|
## Installation
|
7
7
|
|
data/Rakefile
CHANGED
@@ -1,50 +1,2 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
require 'rake'
|
5
|
-
require 'rake/gempackagetask'
|
6
|
-
|
7
|
-
gemspec = eval(File.read('jaconda.gemspec'))
|
8
|
-
Rake::GemPackageTask.new(gemspec) do |pkg|
|
9
|
-
pkg.gem_spec = gemspec
|
10
|
-
end
|
11
|
-
|
12
|
-
desc "build the gem and release it to rubygems.org"
|
13
|
-
task :release => :gem do
|
14
|
-
puts "Tagging #{gemspec.version}..."
|
15
|
-
system "git tag -a #{gemspec.version} -m 'Tagging #{gemspec.version}'"
|
16
|
-
puts "Pushing to Github..."
|
17
|
-
system "git push --tags"
|
18
|
-
puts "Pushing to rubygems.org..."
|
19
|
-
system "gem push pkg/#{gemspec.name}-#{gemspec.version}.gem"
|
20
|
-
end
|
21
|
-
|
22
|
-
require 'rake/testtask'
|
23
|
-
Rake::TestTask.new(:test) do |test|
|
24
|
-
test.libs << 'lib' << 'test'
|
25
|
-
test.pattern = 'test/**/test_*.rb'
|
26
|
-
test.verbose = true
|
27
|
-
end
|
28
|
-
|
29
|
-
begin
|
30
|
-
require 'rcov/rcovtask'
|
31
|
-
Rcov::RcovTask.new do |test|
|
32
|
-
test.libs << 'test'
|
33
|
-
test.pattern = 'test/**/test_*.rb'
|
34
|
-
test.verbose = true
|
35
|
-
end
|
36
|
-
rescue LoadError
|
37
|
-
task :rcov do
|
38
|
-
abort "RCov is not available. In order to run rcov, you must: sudo gem install spicycode-rcov"
|
39
|
-
end
|
40
|
-
end
|
41
|
-
|
42
|
-
require 'rake/rdoctask'
|
43
|
-
Rake::RDocTask.new do |rdoc|
|
44
|
-
version = File.exist?('VERSION') ? File.read('VERSION') : ""
|
45
|
-
|
46
|
-
rdoc.rdoc_dir = 'rdoc'
|
47
|
-
rdoc.title = "jaconda #{version}"
|
48
|
-
rdoc.rdoc_files.include('README*')
|
49
|
-
rdoc.rdoc_files.include('lib/**/*.rb')
|
50
|
-
end
|
1
|
+
#!/usr/bin/env rake
|
2
|
+
require "bundler/gem_tasks"
|
data/jaconda.gemspec
CHANGED
data/lib/jaconda/room.rb
CHANGED
@@ -9,6 +9,11 @@ module Jaconda
|
|
9
9
|
API::Presence.find(:all, :params => {:room_id => id})
|
10
10
|
end
|
11
11
|
|
12
|
+
def add_presence(user_id)
|
13
|
+
API::Presence.prefix = "/api/v2/rooms/:room_id/"
|
14
|
+
API::Presence.create(:room_id => id, :user_id => user_id)
|
15
|
+
end
|
16
|
+
|
12
17
|
def uploads
|
13
18
|
API::Upload.prefix = "/api/v2/rooms/:room_id/"
|
14
19
|
API::Upload.find(:all, :params => {:room_id => id})
|
metadata
CHANGED
@@ -1,49 +1,40 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: jaconda
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 2.0.2
|
5
5
|
prerelease:
|
6
|
-
segments:
|
7
|
-
- 2
|
8
|
-
- 0
|
9
|
-
- 1
|
10
|
-
version: 2.0.1
|
11
6
|
platform: ruby
|
12
|
-
authors:
|
7
|
+
authors:
|
13
8
|
- Anton Mironov
|
14
9
|
autorequire:
|
15
10
|
bindir: bin
|
16
11
|
cert_chain: []
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
requirement: &id001 !ruby/object:Gem::Requirement
|
12
|
+
date: 2013-01-10 00:00:00.000000000 Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
15
|
+
name: activeresource
|
16
|
+
requirement: !ruby/object:Gem::Requirement
|
23
17
|
none: false
|
24
|
-
requirements:
|
25
|
-
- -
|
26
|
-
- !ruby/object:Gem::Version
|
27
|
-
hash: 9
|
28
|
-
segments:
|
29
|
-
- 2
|
30
|
-
- 3
|
31
|
-
- 5
|
18
|
+
requirements:
|
19
|
+
- - ! '>='
|
20
|
+
- !ruby/object:Gem::Version
|
32
21
|
version: 2.3.5
|
33
|
-
name: activeresource
|
34
|
-
version_requirements: *id001
|
35
|
-
prerelease: false
|
36
22
|
type: :runtime
|
23
|
+
prerelease: false
|
24
|
+
version_requirements: !ruby/object:Gem::Requirement
|
25
|
+
none: false
|
26
|
+
requirements:
|
27
|
+
- - ! '>='
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
version: 2.3.5
|
37
30
|
description:
|
38
31
|
email: anton@jaconda.im
|
39
32
|
executables: []
|
40
|
-
|
41
33
|
extensions: []
|
42
|
-
|
43
|
-
extra_rdoc_files:
|
34
|
+
extra_rdoc_files:
|
44
35
|
- LICENSE
|
45
36
|
- README.markdown
|
46
|
-
files:
|
37
|
+
files:
|
47
38
|
- lib/jaconda/base.rb
|
48
39
|
- lib/jaconda/member.rb
|
49
40
|
- lib/jaconda/message.rb
|
@@ -59,40 +50,31 @@ files:
|
|
59
50
|
- LICENSE
|
60
51
|
- Rakefile
|
61
52
|
- README.markdown
|
62
|
-
has_rdoc: true
|
63
53
|
homepage: https://github.com/jaconda/jaconda-api
|
64
54
|
licenses: []
|
65
|
-
|
66
55
|
post_install_message:
|
67
|
-
rdoc_options:
|
56
|
+
rdoc_options:
|
68
57
|
- --charset=UTF-8
|
69
|
-
require_paths:
|
58
|
+
require_paths:
|
70
59
|
- lib
|
71
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
60
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
72
61
|
none: false
|
73
|
-
requirements:
|
74
|
-
- -
|
75
|
-
- !ruby/object:Gem::Version
|
76
|
-
|
77
|
-
|
78
|
-
- 0
|
79
|
-
version: "0"
|
80
|
-
required_rubygems_version: !ruby/object:Gem::Requirement
|
62
|
+
requirements:
|
63
|
+
- - ! '>='
|
64
|
+
- !ruby/object:Gem::Version
|
65
|
+
version: '0'
|
66
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
81
67
|
none: false
|
82
|
-
requirements:
|
83
|
-
- -
|
84
|
-
- !ruby/object:Gem::Version
|
85
|
-
|
86
|
-
segments:
|
87
|
-
- 0
|
88
|
-
version: "0"
|
68
|
+
requirements:
|
69
|
+
- - ! '>='
|
70
|
+
- !ruby/object:Gem::Version
|
71
|
+
version: '0'
|
89
72
|
requirements: []
|
90
|
-
|
91
73
|
rubyforge_project:
|
92
|
-
rubygems_version: 1.
|
74
|
+
rubygems_version: 1.8.24
|
93
75
|
signing_key:
|
94
76
|
specification_version: 3
|
95
77
|
summary: The official ruby wrapper for Jaconda API
|
96
|
-
test_files:
|
78
|
+
test_files:
|
97
79
|
- test/helper.rb
|
98
80
|
- test/test_jaconda.rb
|