namba 1.0.0 → 1.0.0.1

Sign up to get free protection for your applications and to get access to all the features.
data/.travis.yml ADDED
@@ -0,0 +1,11 @@
1
+ language: ruby
2
+ rvm:
3
+ - 1.8.7
4
+ - 1.9.2
5
+ - 1.9.3
6
+ - jruby-18mode
7
+ - jruby-19mode
8
+ - rbx-18mode
9
+ - rbx-19mode
10
+ - jruby-head
11
+ - ree
data/README.md CHANGED
@@ -1,5 +1,7 @@
1
1
  ## The Namba Ruby gem
2
2
 
3
+ [![Build Status](https://secure.travis-ci.org/ZeroOneStudio/namba.png)](http://travis-ci.org/ZeroOneStudio/namba)
4
+
3
5
  A Ruby wrapper for the Namba API. The full API description is available [here][]
4
6
 
5
7
  [here]: http://dev.namba.kg/api_description.php
@@ -20,7 +20,7 @@ module Namba
20
20
  end
21
21
 
22
22
  def set_status text
23
- post_data_to "http://api.namba.#{self.locale}/setStatus.php", { username: self.username, password: self.password, status: text }
23
+ post_data_to "http://api.namba.#{self.locale}/setStatus.php", { :username => self.username, :password => self.password, :status => text }
24
24
  end
25
25
 
26
26
  def get_events
@@ -42,7 +42,7 @@ private
42
42
  MultiJson.decode(response.body)
43
43
  end
44
44
 
45
- def post_data_to url, params = { username: self.username, password: self.password }
45
+ def post_data_to url, params = { :username => self.username, :password => self.password }
46
46
  response = Net::HTTP.post_form(URI.parse(url), params)
47
47
  MultiJson.decode(response.body)
48
48
  end
data/lib/namba/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Namba
2
- VERSION = "1.0.0"
2
+ VERSION = "1.0.0.1"
3
3
  end
data/namba.gemspec CHANGED
@@ -3,8 +3,8 @@ $:.push File.expand_path("../lib", __FILE__)
3
3
  require "namba/version"
4
4
 
5
5
  Gem::Specification.new do |gem|
6
- gem.authors = ["Sergey Kishenin"]
7
- gem.email = ["sergey.kishenin@gmail.com"]
6
+ gem.authors = ["Sergey Kishenin", "Michael Romanenko"]
7
+ gem.email = ["sergey.kishenin@gmail.com", "michael@romanenko.kg"]
8
8
  gem.description = %q{Ruby wrapper for Namba API}
9
9
  gem.summary = %q{Ruby wrapper for Namba API}
10
10
  gem.homepage = "https://github.com/ZeroOneStudio/namba"
metadata CHANGED
@@ -1,11 +1,12 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: namba
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.0.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
8
8
  - Sergey Kishenin
9
+ - Michael Romanenko
9
10
  autorequire:
10
11
  bindir: bin
11
12
  cert_chain: []
@@ -13,7 +14,7 @@ date: 2012-06-15 00:00:00.000000000 Z
13
14
  dependencies:
14
15
  - !ruby/object:Gem::Dependency
15
16
  name: multi_json
16
- requirement: &77004070 !ruby/object:Gem::Requirement
17
+ requirement: &84280090 !ruby/object:Gem::Requirement
17
18
  none: false
18
19
  requirements:
19
20
  - - ! '>='
@@ -21,10 +22,10 @@ dependencies:
21
22
  version: '0'
22
23
  type: :runtime
23
24
  prerelease: false
24
- version_requirements: *77004070
25
+ version_requirements: *84280090
25
26
  - !ruby/object:Gem::Dependency
26
27
  name: rspec
27
- requirement: &77002240 !ruby/object:Gem::Requirement
28
+ requirement: &84238420 !ruby/object:Gem::Requirement
28
29
  none: false
29
30
  requirements:
30
31
  - - ~>
@@ -32,10 +33,10 @@ dependencies:
32
33
  version: 2.7.0
33
34
  type: :development
34
35
  prerelease: false
35
- version_requirements: *77002240
36
+ version_requirements: *84238420
36
37
  - !ruby/object:Gem::Dependency
37
38
  name: rake
38
- requirement: &77001070 !ruby/object:Gem::Requirement
39
+ requirement: &84236540 !ruby/object:Gem::Requirement
39
40
  none: false
40
41
  requirements:
41
42
  - - ! '>='
@@ -43,10 +44,10 @@ dependencies:
43
44
  version: '0'
44
45
  type: :development
45
46
  prerelease: false
46
- version_requirements: *77001070
47
+ version_requirements: *84236540
47
48
  - !ruby/object:Gem::Dependency
48
49
  name: webmock
49
- requirement: &76999390 !ruby/object:Gem::Requirement
50
+ requirement: &84234790 !ruby/object:Gem::Requirement
50
51
  none: false
51
52
  requirements:
52
53
  - - ! '>='
@@ -54,10 +55,10 @@ dependencies:
54
55
  version: '0'
55
56
  type: :development
56
57
  prerelease: false
57
- version_requirements: *76999390
58
+ version_requirements: *84234790
58
59
  - !ruby/object:Gem::Dependency
59
60
  name: rack-test
60
- requirement: &76977690 !ruby/object:Gem::Requirement
61
+ requirement: &84230950 !ruby/object:Gem::Requirement
61
62
  none: false
62
63
  requirements:
63
64
  - - ! '>='
@@ -65,16 +66,18 @@ dependencies:
65
66
  version: '0'
66
67
  type: :development
67
68
  prerelease: false
68
- version_requirements: *76977690
69
+ version_requirements: *84230950
69
70
  description: Ruby wrapper for Namba API
70
71
  email:
71
72
  - sergey.kishenin@gmail.com
73
+ - michael@romanenko.kg
72
74
  executables: []
73
75
  extensions: []
74
76
  extra_rdoc_files: []
75
77
  files:
76
78
  - .gitignore
77
79
  - .rspec
80
+ - .travis.yml
78
81
  - Gemfile
79
82
  - Gemfile.lock
80
83
  - Guardfile