sharkapps 0.1.0 → 0.1.1

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. data/VERSION +1 -1
  2. data/lib/sharkapps.rb +6 -1
  3. data/sharkapps.gemspec +1 -1
  4. metadata +3 -3
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.0
1
+ 0.1.1
data/lib/sharkapps.rb CHANGED
@@ -1,7 +1,7 @@
1
1
  module SharkApps
2
2
  class NotConfigured < Exception; end
3
3
  class << self
4
- attr_accessor :server_url, :username, :password, :app_id
4
+ attr_accessor :server_url, :username, :password, :app_id, :canvas_name
5
5
  end
6
6
 
7
7
  require "facebooker2"
@@ -25,6 +25,10 @@ module SharkApps
25
25
  @app_id || raise_unconfigured_exception
26
26
  end
27
27
 
28
+ def self.canvas_name
29
+ @canvas_name || raise_unconfigured_exception
30
+ end
31
+
28
32
  def self.raise_unconfigured_exception
29
33
  raise NotConfigured.new("No configuration provided for Shark Apps. Call SharkApps.load_sharkapps_yaml in an initializer")
30
34
  end
@@ -34,6 +38,7 @@ module SharkApps
34
38
  self.username = hash[:username]
35
39
  self.password = hash[:password]
36
40
  self.app_id = hash[:app_id]
41
+ self.canvas_name = hash[:canvas_name]
37
42
  end
38
43
 
39
44
  def self.load_sharkapps_yaml
data/sharkapps.gemspec CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{sharkapps}
8
- s.version = "0.1.0"
8
+ s.version = "0.1.1"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Eyal Kedem"]
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sharkapps
3
3
  version: !ruby/object:Gem::Version
4
- hash: 27
4
+ hash: 25
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 0
10
- version: 0.1.0
9
+ - 1
10
+ version: 0.1.1
11
11
  platform: ruby
12
12
  authors:
13
13
  - Eyal Kedem