appygram 1.0.2 → 1.0.3
Sign up to get free protection for your applications and to get access to all the features.
- data/appygram.gemspec +0 -2
- data/lib/appygram/version.rb +1 -1
- data/lib/appygram.rb +5 -2
- metadata +2 -2
data/appygram.gemspec
CHANGED
@@ -11,8 +11,6 @@ Gem::Specification.new do |s|
|
|
11
11
|
s.summary = %q{Communicate with the Appygram message routing service}
|
12
12
|
s.description = %q{Discovers topics and sends messages}
|
13
13
|
|
14
|
-
s.rubyforge_project = "appygram"
|
15
|
-
|
16
14
|
s.files = `git ls-files`.split("\n")
|
17
15
|
s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
|
18
16
|
s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
|
data/lib/appygram/version.rb
CHANGED
data/lib/appygram.rb
CHANGED
@@ -9,13 +9,16 @@ module Appygram
|
|
9
9
|
Appygram::Config.api_key = params[:api_key]
|
10
10
|
end
|
11
11
|
if params[:appygram_endpoint]
|
12
|
-
appygram_endpoint = params[:appygram_endpoint]
|
12
|
+
appygram_endpoint = params[:appygram_endpoint]
|
13
13
|
Appygram::Config.appygram_endpoint = URI appygram_endpoint
|
14
14
|
end
|
15
15
|
if params[:trace_endpoint]
|
16
|
-
trace_endpoint = params[:trace_endpoint]
|
16
|
+
trace_endpoint = params[:trace_endpoint]
|
17
17
|
Appygram::Config.trace_endpoint = URI trace_endpoint
|
18
18
|
end
|
19
|
+
# defaults if nothing is set
|
20
|
+
Appygram::Config.appygram_endpoint ||= URI 'https://appygram.herokuapp.com/appygrams'
|
21
|
+
Appygram::Config.trace_endpoint ||= URI 'https://appygram.appspot.com/traces'
|
19
22
|
if params[:platform]
|
20
23
|
Appygram::Config.platform = params[:platform] || 'web'
|
21
24
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: appygram
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.3
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -46,7 +46,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
46
46
|
- !ruby/object:Gem::Version
|
47
47
|
version: '0'
|
48
48
|
requirements: []
|
49
|
-
rubyforge_project:
|
49
|
+
rubyforge_project:
|
50
50
|
rubygems_version: 1.8.15
|
51
51
|
signing_key:
|
52
52
|
specification_version: 3
|