nagareboshi 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 47f60d96ae02faa674171da584cb3717433f7a79
4
- data.tar.gz: 8fb039a4606b3819b10e8b002b9ceb2139da2c92
3
+ metadata.gz: 934015070f50f7113e5b7cee6bad0ff048d0ce78
4
+ data.tar.gz: 4bf2d6f879adeb3e1cf958118a46973a74d7c9f0
5
5
  SHA512:
6
- metadata.gz: 2c18eaaafdaa43e12b1baeb4d26c445353e789177ab678b2b8d0dba2875168d86fb9b608dcac82b71e448aa8099fb58d7808d59d1f54c6f22bba1d12ca97dcb5
7
- data.tar.gz: 4b4f892042c24cbcef3f4e7b89cfcbd27e19407290acead54792d2017e9a15dccdd63ac05f1ac45d3c4d69c350e517ea03a821d02db154bd1d44f5c0abd50ebb
6
+ metadata.gz: 218ef2937b4011ba848a6f262e9099932f1476c9522a6a1002f9d461e9cc11fef095e240a0c30376f874e5ed128e537dae0162297dd3b4a43b8e9cc3eda9a9f3
7
+ data.tar.gz: 761f6606fae69e1d9adbb41db7b596004f6c6e87ae7e6ca4c4892142d0fcecc6194dd5e7a5650260d09619e412a20c326e65f62b7de1619d717d08bff56eec7c
data/README.md CHANGED
@@ -22,13 +22,13 @@ Or install it yourself as:
22
22
 
23
23
  Ruby settings
24
24
 
25
- Ngareboshi.configure do |config|
25
+ Nagareboshi.configure do |config|
26
26
  config.send = true
27
27
  end
28
28
 
29
29
  Rails settings send to production only
30
30
 
31
- Ngareboshi.configure do |config|
31
+ Nagareboshi.configure do |config|
32
32
  config.send = Rails.env.production?
33
33
  end
34
34
 
@@ -5,7 +5,7 @@ module Nagareboshi
5
5
  def initialize
6
6
  @host = "pubsubhubbub.appspot.com"
7
7
  @send = false
8
- @use_ssl = true
8
+ @use_ssl = false
9
9
  end
10
10
  end
11
11
  end
@@ -35,7 +35,7 @@ module Nagareboshi
35
35
  end
36
36
 
37
37
  def uri
38
- "#{ssl? ? 'https' : 'http'}://#{Nagareboshi.configuration.host}/"
38
+ "#{ssl? ? 'https' : 'http'}://#{Nagareboshi.configuration.host}/publish"
39
39
  end
40
40
 
41
41
  def ssl?
@@ -1,3 +1,3 @@
1
1
  module Nagareboshi
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
@@ -3,7 +3,7 @@
3
3
  require 'spec_helper'
4
4
 
5
5
  describe Nagareboshi::Sender do
6
- let(:url) { "http://localhost/" }
6
+ let(:url) { "http://localhost/publish" }
7
7
  let(:sender) { Nagareboshi::Sender }
8
8
  before do
9
9
  Nagareboshi.configure do |config|
@@ -74,11 +74,11 @@ describe Nagareboshi::Sender do
74
74
 
75
75
  it "ssl? is true" do
76
76
  allow(sender).to receive(:ssl?).and_return(true)
77
- expect(subject).to eq "https://localhost/"
77
+ expect(subject).to eq "https://localhost/publish"
78
78
  end
79
79
 
80
80
  it "ssl? is false" do
81
- expect(subject).to eq "http://localhost/"
81
+ expect(subject).to eq "http://localhost/publish"
82
82
  end
83
83
  end
84
84
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: nagareboshi
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - shiro16