beat 0.1.8 → 0.1.9

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 (4) hide show
  1. checksums.yaml +4 -4
  2. data/lib/beat.rb +27 -15
  3. data/lib/beat/version.rb +1 -1
  4. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: eb89ca2579bb904c17ba51ff90a46c13f7e20dbe
4
- data.tar.gz: 86c88945d93a4045b9a6fa669ad56d1573bcbbd4
3
+ metadata.gz: ee6cf582b3e6bd86b233b827028f5439a4a493f4
4
+ data.tar.gz: 5801b51de4a427df6ea6cccc3c9fdc84ef9c0f68
5
5
  SHA512:
6
- metadata.gz: 7a2ca37cf18fcffeb6064175d96d979053a459fe4cfdfb1e3e8d934879136378e66472d00dbc0be9287fe4d780d5b7839687556668595c1546add42be57f4ea4
7
- data.tar.gz: c2af0d26deab4810d1132200149ce3b4a1a4d08033ca84d1f80ab419eda0deb8d3a60a1bff0d42c86b5478818a97e5797072f284dca5c9fc49c07d00d13712c4
6
+ metadata.gz: 7a6cb35a201162e040a11652fbdc7fa5fd0c2f16def8eb1188d516d3e0600af7fb142fd45d71115beec40092b0faea56bc9e6915164a75ea81ca91154cce930f
7
+ data.tar.gz: 0e64db7c28389a8527d40c7c6dfa529eda4d8d90fbc1b5a0322bb89fb47236cf04de21a05ee0c4178da02c951f06779d716dc95a393cc0aacfd8965909fdd4bd
@@ -6,21 +6,33 @@ require 'json'
6
6
 
7
7
  module Beat
8
8
 
9
- class << self
10
-
11
- attr_accessor :api_token
12
- attr_accessor :api_url
13
-
14
- def send (title)
15
- uri = URI.parse(api_url)
16
- http = Net::HTTP.new(uri.host, uri.port)
17
- http.use_ssl = true
18
- http.verify_mode = OpenSSL::SSL::VERIFY_NONE
19
- reply = http.post(uri, "api_token="+api_token+"&title="+title)
20
- return reply
21
- end
22
-
23
- end
9
+ class << self
10
+
11
+ attr_accessor :api_token
12
+ attr_accessor :api_url
13
+
14
+ attr_accessor :api_token_2
15
+ attr_accessor :api_url_2
16
+
17
+ def send (title)
18
+ uri = URI.parse(api_url)
19
+ http = Net::HTTP.new(uri.host, uri.port)
20
+ http.use_ssl = true
21
+ http.verify_mode = OpenSSL::SSL::VERIFY_NONE
22
+ reply = http.post(uri, "api_token="+api_token+"&title="+title)
23
+ return reply
24
+ end
25
+
26
+ def send_2 (title)
27
+ uri = URI.parse(api_url_2)
28
+ http = Net::HTTP.new(uri.host, uri.port)
29
+ http.use_ssl = true
30
+ http.verify_mode = OpenSSL::SSL::VERIFY_NONE
31
+ reply = http.post(uri, "api_token="+api_token_2+"&title="+title)
32
+ return reply
33
+ end
34
+
35
+ end
24
36
 
25
37
 
26
38
  end
@@ -1,3 +1,3 @@
1
1
  module Beat
2
- VERSION = "0.1.8"
2
+ VERSION = "0.1.9"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: beat
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.8
4
+ version: 0.1.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jack Montfort
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-07-20 00:00:00.000000000 Z
11
+ date: 2016-08-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler