cassiopeia 0.1.6 → 0.1.7

Sign up to get free protection for your applications and to get access to all the features.
data/Rakefile CHANGED
@@ -2,6 +2,7 @@ require 'rake'
2
2
  require 'rake/testtask'
3
3
  require 'rake/rdoctask'
4
4
  require 'rake/gempackagetask'
5
+ require 'lib/cassiopeia'
5
6
 
6
7
  desc 'Default: .'
7
8
  task :default => :test
@@ -10,7 +11,7 @@ PKG_FILES = FileList[ '[a-zA-Z]*', 'lib/**/*' ]
10
11
 
11
12
  spec = Gem::Specification.new do |s|
12
13
  s.name = "cassiopeia"
13
- s.version = "0.1.6"
14
+ s.version = Cassiopeia::VERSION
14
15
  s.author = "smecsia"
15
16
  s.email = "smecsia@gmail.com"
16
17
  #s.homepage = ""
@@ -18,7 +19,6 @@ spec = Gem::Specification.new do |s|
18
19
  s.summary = "Rails plugin for custom CAS(Cassiopeia) server/client implementation"
19
20
  s.add_dependency('uuidtools')
20
21
  s.add_dependency('rails', '>=2.3.5')
21
- s.add_dependency('simple_rest')
22
22
  s.files = PKG_FILES.to_a
23
23
  s.require_path = "lib"
24
24
  s.has_rdoc = false
@@ -1,4 +1,4 @@
1
- require(File.join(RAILS_ROOT,"config/environment")) unless defined?(Rails)
1
+ require(File.join(Rails.root,"config/environment")) unless defined?(Rails)
2
2
  module Cassiopeia
3
3
  class BaseRack < Base
4
4
  CAS_RACK_SESSION_STORE = Cassiopeia::CONFIG[:rack_session_store]
@@ -25,10 +25,10 @@ module Cassiopeia
25
25
  :rack_session_store_expires_at_key => "cas_req_expires",
26
26
  :requests_save_enabled => true
27
27
  }
28
- CONFIG_PATH = "#{RAILS_ROOT}/config/cassiopeia.yml"
28
+ CONFIG_PATH = "#{Rails.root}/config/cassiopeia.yml"
29
29
  @@conf = {}
30
30
  if !File.exist?(CONFIG_PATH)
31
- raise "Cassiopeia config required! Please, create RAILS_ROOT/conf/cassiopeia.yml file with server/service url"
31
+ raise "Cassiopeia config required! Please, create #{CONFIG_PATH} file with server/service url"
32
32
  end
33
33
  @@conf = YAML::load(ERB.new((IO.read(CONFIG_PATH))).result).symbolize_keys if File.exist?(CONFIG_PATH)
34
34
  @@ticketClass = Class.class
data/lib/cassiopeia.rb CHANGED
@@ -1,7 +1,7 @@
1
1
  $:.unshift(File.dirname(__FILE__)) unless
2
2
  $:.include?(File.dirname(__FILE__)) || $:.include?(File.expand_path(File.dirname(__FILE__)))
3
3
  module Cassiopeia
4
- VERSION = '0.1.6'
4
+ VERSION = '0.1.7'
5
5
  autoload :User, 'cassiopeia/user'
6
6
  autoload :Base, 'cassiopeia/base'
7
7
  autoload :Exception, 'cassiopeia/base'
@@ -26,6 +26,6 @@ module Cassiopeia
26
26
  end
27
27
  end
28
28
 
29
- if defined? Rails && defined? RAILS_ROOT
29
+ if defined? Rails && defined? Rails.root
30
30
  Cassiopeia.enable
31
31
  end
metadata CHANGED
@@ -1,7 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cassiopeia
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.6
4
+ hash: 21
5
+ prerelease: false
6
+ segments:
7
+ - 0
8
+ - 1
9
+ - 7
10
+ version: 0.1.7
5
11
  platform: ruby
6
12
  authors:
7
13
  - smecsia
@@ -9,39 +15,39 @@ autorequire:
9
15
  bindir: bin
10
16
  cert_chain: []
11
17
 
12
- date: 2010-08-16 00:00:00 +04:00
18
+ date: 2010-11-08 00:00:00 +03:00
13
19
  default_executable:
14
20
  dependencies:
15
21
  - !ruby/object:Gem::Dependency
16
22
  name: uuidtools
17
- type: :runtime
18
- version_requirement:
19
- version_requirements: !ruby/object:Gem::Requirement
23
+ prerelease: false
24
+ requirement: &id001 !ruby/object:Gem::Requirement
25
+ none: false
20
26
  requirements:
21
27
  - - ">="
22
28
  - !ruby/object:Gem::Version
29
+ hash: 3
30
+ segments:
31
+ - 0
23
32
  version: "0"
24
- version:
33
+ type: :runtime
34
+ version_requirements: *id001
25
35
  - !ruby/object:Gem::Dependency
26
36
  name: rails
27
- type: :runtime
28
- version_requirement:
29
- version_requirements: !ruby/object:Gem::Requirement
37
+ prerelease: false
38
+ requirement: &id002 !ruby/object:Gem::Requirement
39
+ none: false
30
40
  requirements:
31
41
  - - ">="
32
42
  - !ruby/object:Gem::Version
43
+ hash: 9
44
+ segments:
45
+ - 2
46
+ - 3
47
+ - 5
33
48
  version: 2.3.5
34
- version:
35
- - !ruby/object:Gem::Dependency
36
- name: simple_rest
37
49
  type: :runtime
38
- version_requirement:
39
- version_requirements: !ruby/object:Gem::Requirement
40
- requirements:
41
- - - ">="
42
- - !ruby/object:Gem::Version
43
- version: "0"
44
- version:
50
+ version_requirements: *id002
45
51
  description:
46
52
  email: smecsia@gmail.com
47
53
  executables: []
@@ -75,21 +81,27 @@ rdoc_options: []
75
81
  require_paths:
76
82
  - lib
77
83
  required_ruby_version: !ruby/object:Gem::Requirement
84
+ none: false
78
85
  requirements:
79
86
  - - ">="
80
87
  - !ruby/object:Gem::Version
88
+ hash: 3
89
+ segments:
90
+ - 0
81
91
  version: "0"
82
- version:
83
92
  required_rubygems_version: !ruby/object:Gem::Requirement
93
+ none: false
84
94
  requirements:
85
95
  - - ">="
86
96
  - !ruby/object:Gem::Version
97
+ hash: 3
98
+ segments:
99
+ - 0
87
100
  version: "0"
88
- version:
89
101
  requirements: []
90
102
 
91
103
  rubyforge_project:
92
- rubygems_version: 1.3.5
104
+ rubygems_version: 1.3.7
93
105
  signing_key:
94
106
  specification_version: 3
95
107
  summary: Rails plugin for custom CAS(Cassiopeia) server/client implementation