jaconda 2.0.0 → 2.0.1

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/Gemfile ADDED
@@ -0,0 +1,6 @@
1
+ source :rubygems
2
+ gemspec
3
+
4
+ gem "rake"
5
+ gem "ruby-debug", :platforms => :mri_18
6
+ gem "ruby-debug19", :platforms => :mri_19
data/Rakefile CHANGED
@@ -1,20 +1,22 @@
1
- require 'rubygems'
1
+ require "bundler"
2
+ Bundler.setup
3
+
2
4
  require 'rake'
5
+ require 'rake/gempackagetask'
3
6
 
4
- begin
5
- require 'jeweler'
6
- Jeweler::Tasks.new do |gem|
7
- gem.name = "jaconda"
8
- gem.summary = "The official ruby wrapper for Jaconda API"
9
- gem.email = "ant.mironov@gmail.com"
10
- gem.homepage = "http://github.com/mironov/jaconda-api"
11
- gem.authors = ["Anton Mironov"]
12
- gem.add_dependency "activeresource", "~> 2.3.5"
13
- gem.add_development_dependency "thoughtbot-shoulda", ">= 0"
14
- end
15
- Jeweler::GemcutterTasks.new
16
- rescue LoadError
17
- puts "Jeweler (or a dependency) not available. Install it with: gem install jeweler"
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"
18
20
  end
19
21
 
20
22
  require 'rake/testtask'
@@ -37,10 +39,6 @@ rescue LoadError
37
39
  end
38
40
  end
39
41
 
40
- task :test => :check_dependencies
41
-
42
- task :default => :test
43
-
44
42
  require 'rake/rdoctask'
45
43
  Rake::RDocTask.new do |rdoc|
46
44
  version = File.exist?('VERSION') ? File.read('VERSION') : ""
@@ -49,4 +47,4 @@ Rake::RDocTask.new do |rdoc|
49
47
  rdoc.title = "jaconda #{version}"
50
48
  rdoc.rdoc_files.include('README*')
51
49
  rdoc.rdoc_files.include('lib/**/*.rb')
52
- end
50
+ end
@@ -1,62 +1,27 @@
1
- # Generated by jeweler
2
- # DO NOT EDIT THIS FILE DIRECTLY
3
- # Instead, edit Jeweler::Tasks in Rakefile, and run the gemspec command
4
- # -*- encoding: utf-8 -*-
5
-
6
1
  Gem::Specification.new do |s|
7
- s.name = %q{jaconda}
8
- s.version = "2.0.0"
2
+ s.name = "jaconda"
3
+ s.version = "2.0.1"
9
4
 
10
- s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
5
  s.authors = ["Anton Mironov"]
12
- s.date = %q{2011-02-27}
13
- s.email = %q{ant.mironov@gmail.com}
6
+ s.summary = "The official ruby wrapper for Jaconda API"
7
+
8
+ s.email = "anton@jaconda.im"
9
+ s.homepage = "https://github.com/jaconda/jaconda-api"
10
+
11
+ s.require_paths = ["lib"]
12
+ s.files = Dir['lib/**/*',
13
+ 'test/**/*',
14
+ 'jaconda.gemspec',
15
+ 'Gemfile',
16
+ 'LICENSE',
17
+ 'Rakefile',
18
+ 'README.markdown']
19
+
20
+ s.test_files = Dir['test/**/*']
14
21
  s.extra_rdoc_files = [
15
22
  "LICENSE",
16
23
  "README.markdown"
17
24
  ]
18
- s.files = [
19
- ".gitignore",
20
- "LICENSE",
21
- "README.markdown",
22
- "Rakefile",
23
- "VERSION",
24
- "jaconda.gemspec",
25
- "lib/jaconda.rb",
26
- "lib/jaconda/base.rb",
27
- "lib/jaconda/member.rb",
28
- "lib/jaconda/message.rb",
29
- "lib/jaconda/notification.rb",
30
- "lib/jaconda/presence.rb",
31
- "lib/jaconda/room.rb",
32
- "lib/jaconda/upload.rb",
33
- "test/helper.rb",
34
- "test/test_jaconda.rb"
35
- ]
36
- s.homepage = %q{http://github.com/mironov/jaconda-api}
37
25
  s.rdoc_options = ["--charset=UTF-8"]
38
- s.require_paths = ["lib"]
39
- s.rubygems_version = %q{1.3.7}
40
- s.summary = %q{The official ruby wrapper for Jaconda API}
41
- s.test_files = [
42
- "test/helper.rb",
43
- "test/test_jaconda.rb"
44
- ]
45
-
46
- if s.respond_to? :specification_version then
47
- current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
48
- s.specification_version = 3
49
-
50
- if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
51
- s.add_runtime_dependency(%q<activeresource>, ["~> 2.3.5"])
52
- s.add_development_dependency(%q<thoughtbot-shoulda>, [">= 0"])
53
- else
54
- s.add_dependency(%q<activeresource>, ["~> 2.3.5"])
55
- s.add_dependency(%q<thoughtbot-shoulda>, [">= 0"])
56
- end
57
- else
58
- s.add_dependency(%q<activeresource>, ["~> 2.3.5"])
59
- s.add_dependency(%q<thoughtbot-shoulda>, [">= 0"])
60
- end
61
- end
62
-
26
+ s.add_runtime_dependency("activeresource", ">= 2.3.5")
27
+ end
@@ -1,6 +1,6 @@
1
1
  module Jaconda
2
2
  class Notification < ActiveResource::Base
3
- self.prefix = "/api/v2/rooms/:room_id/"
3
+ self.prefix = "/api/v2/rooms/:room_id"
4
4
  self.element_name = ""
5
5
 
6
6
  def self.authenticate(options)
@@ -1,6 +1,5 @@
1
1
  require 'rubygems'
2
2
  require 'test/unit'
3
- require 'shoulda'
4
3
 
5
4
  $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
6
5
  $LOAD_PATH.unshift(File.dirname(__FILE__))
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jaconda
3
3
  version: !ruby/object:Gem::Version
4
- hash: 15
5
- prerelease: false
4
+ hash: 13
5
+ prerelease:
6
6
  segments:
7
7
  - 2
8
8
  - 0
9
- - 0
10
- version: 2.0.0
9
+ - 1
10
+ version: 2.0.1
11
11
  platform: ruby
12
12
  authors:
13
13
  - Anton Mironov
@@ -15,16 +15,14 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-02-27 00:00:00 +05:00
18
+ date: 2011-04-27 00:00:00 +06:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency
22
- name: activeresource
23
- prerelease: false
24
22
  requirement: &id001 !ruby/object:Gem::Requirement
25
23
  none: false
26
24
  requirements:
27
- - - ~>
25
+ - - ">="
28
26
  - !ruby/object:Gem::Version
29
27
  hash: 9
30
28
  segments:
@@ -32,24 +30,12 @@ dependencies:
32
30
  - 3
33
31
  - 5
34
32
  version: 2.3.5
35
- type: :runtime
33
+ name: activeresource
36
34
  version_requirements: *id001
37
- - !ruby/object:Gem::Dependency
38
- name: thoughtbot-shoulda
39
35
  prerelease: false
40
- requirement: &id002 !ruby/object:Gem::Requirement
41
- none: false
42
- requirements:
43
- - - ">="
44
- - !ruby/object:Gem::Version
45
- hash: 3
46
- segments:
47
- - 0
48
- version: "0"
49
- type: :development
50
- version_requirements: *id002
36
+ type: :runtime
51
37
  description:
52
- email: ant.mironov@gmail.com
38
+ email: anton@jaconda.im
53
39
  executables: []
54
40
 
55
41
  extensions: []
@@ -58,13 +44,6 @@ extra_rdoc_files:
58
44
  - LICENSE
59
45
  - README.markdown
60
46
  files:
61
- - .gitignore
62
- - LICENSE
63
- - README.markdown
64
- - Rakefile
65
- - VERSION
66
- - jaconda.gemspec
67
- - lib/jaconda.rb
68
47
  - lib/jaconda/base.rb
69
48
  - lib/jaconda/member.rb
70
49
  - lib/jaconda/message.rb
@@ -72,10 +51,16 @@ files:
72
51
  - lib/jaconda/presence.rb
73
52
  - lib/jaconda/room.rb
74
53
  - lib/jaconda/upload.rb
54
+ - lib/jaconda.rb
75
55
  - test/helper.rb
76
56
  - test/test_jaconda.rb
57
+ - jaconda.gemspec
58
+ - Gemfile
59
+ - LICENSE
60
+ - Rakefile
61
+ - README.markdown
77
62
  has_rdoc: true
78
- homepage: http://github.com/mironov/jaconda-api
63
+ homepage: https://github.com/jaconda/jaconda-api
79
64
  licenses: []
80
65
 
81
66
  post_install_message:
@@ -104,7 +89,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
104
89
  requirements: []
105
90
 
106
91
  rubyforge_project:
107
- rubygems_version: 1.3.7
92
+ rubygems_version: 1.6.2
108
93
  signing_key:
109
94
  specification_version: 3
110
95
  summary: The official ruby wrapper for Jaconda API
data/.gitignore DELETED
@@ -1,5 +0,0 @@
1
- *.gem
2
- coverage
3
- rdoc
4
- doc
5
- pkg
data/VERSION DELETED
@@ -1 +0,0 @@
1
- 2.0.0