serwersms 0.0.2 → 0.0.3

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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/serwersms.rb +5 -2
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: bf059fbf7c113d1e84d76f2d0dba32c6287b46ea
4
- data.tar.gz: 1b63e6556edae532a343d6c6e3c82ac362c5a93d
3
+ metadata.gz: 9ecdca19ba5b12801d76426a71415cdf5be0acfe
4
+ data.tar.gz: 0ce1ab4fa0b54db3e3df0addff5bae5118524ce3
5
5
  SHA512:
6
- metadata.gz: b110622bc15e98485186f399d7f06dc4bfcb22fcdfeebf8a96e0cef5823641e58d8f64b0612aac57d6c37f28d13b850340500bc36a6fedadfa57a209aa7c6f4f
7
- data.tar.gz: c76bcbecd54bf5a88c03ab307362b60a5090ccc0e2395342817fc96fe373073764fee35d0c693663d7e77f5f254684711852e40d36c6cf563c22388ac1857f3a
6
+ metadata.gz: f50403b6f3e529b955553d0026dea3d0b238f48f27348e70f869780dd27891167b1ee61bfe3cff06545ae2ab7a6f86f037479dbc8ea990be013dfa8e2db1b894
7
+ data.tar.gz: 42b25e90cda816824505a79e60661e60194f828c2d93f90813f005c9ae7f8239d0453d50cd64acda7dfc33b563ff6a2fe0bbbb8ef3d03f33be664742f64a277b
@@ -1,7 +1,8 @@
1
1
  class Serwersms
2
2
 
3
3
  @@api_url = 'http://api2.serwersms.pl/'
4
- @format = 'json';
4
+ @format = 'json'
5
+ @@system = 'client_ruby'
5
6
  attr :messages, true
6
7
  attr :files, true
7
8
  attr :premium, true
@@ -42,9 +43,11 @@ class Serwersms
42
43
  req = Net::HTTP::Post.new(uri.path,{'Content-Type' => 'application/json'})
43
44
  params['username'] = @username
44
45
  params['password'] = @password
46
+ params['system'] = @@system
47
+ puts @@system
45
48
  req.body = params.to_json
46
49
  res = https.request(req)
47
-
50
+
48
51
  return res.body
49
52
  end
50
53
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: serwersms
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - SerwerSMS
@@ -53,7 +53,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
53
53
  version: '0'
54
54
  requirements: []
55
55
  rubyforge_project:
56
- rubygems_version: 2.2.5
56
+ rubygems_version: 2.5.2
57
57
  signing_key:
58
58
  specification_version: 4
59
59
  summary: Ruby client for communication with the API v2 SerwerSMS.pl